Bluey Beacon - Building a Nordic nRF52832 BLE IoT Sensor Beacon

image description

In this project, we’re going to build a BLE Beacon that transmits temperature, humidity and ambient light levels to a dashboard on the internet. Bluetooth Low Energy is a technology that was designed from the ground up to reduce power consumption. It’s common for BLE devices to keep going and going for months on a coin cell battery. A beacon is a typical example of such a device. All it does is wake up periodically, send data, and go back to sleep. There are different methods of connecting to a BLE device. In the case of the beacon, typically a non-connectable mode is used, either as ADV_NONCONN_IND or ADV_SCAN_IND. For our beacon, we will be using the first of these methods.

We’ll be sending sensor data in the advertisement packets, and there will be no scan response from the device. So how we get this sensor data on to the internet? For that we’ll use a Raspberry Pi 3 as a gateway. As you will see below, a Python script will grab the advertisement packets, parse the sensor data and use a combination of dweet.io and freeboard.io to post this data on the web.

You can read the rest of the article below:

http://electronut.in/bluey-beacon/