Adafruit Bluetooth LE Sensor Nodes User Manual

Bluetooth LE Sensor Nodes to Raspberry Pi WiFi Bridge
Created by John Park
Last updated on 2021-04-16 12:38:58 PM EDT
2 3
3 8
15
15 15 16 16 16
18
18 18 19 19 20 20
21
21 21 22 22 22 23 24 24
25
25
26 26
26 26
27
27 28 28 28 29
31
31 31 33 33 35
Guide Contents Overview
Parts Optional Parts
Prepare the CLUE
Libraries Text Editor Code.py How It Works Measurements
Prepare the Feather Sense
Libraries Text Editor Code.py How It Works Measurements Other Boards
Raspberry Pi Quick Setup
SD Card Prep Power to the Pi Ping SSH Change the Password! Rename the Pi Update Application List Software Setup
Make sure you're using Python 3!
Install Blinka
Install Pi Bridge Software BLE Support
Adafruit Blinka BLEio Bluetooth Group
Install Python libraries
Add Examples Adafruit IO Shhh Secrets Service Identity Launch BroadcastNet Bridge
BroadcastNet on AIO
Adafruit IO Getting Started Renaming AIO Feeds Dashboard Setup Blocks Measurement List
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 2 of 37
Overview
Use sensor-packed Bluefruit boards and a Raspberry Pi to build a network of sensors that send data to Adafruit IO!
This project takes advantage of CircuitPython running on the Feather Bluefruit Sense (https://adafru.it/JA1) and CLUE boards (https://adafru.it/Jkd) (any nRF52840 Adafruit board will work (https://adafru.it/JA2)) and Python running on the Raspberry Pi.
The Pi receives advertised BLE sensor data from the Feather and CLUE and then sends that data over
WiFi or Ethernet to your Adafruit IO feed.
Its a super easy way to make a wireless sensor node, using the built in wireless/networking capabilities of the Raspberry Pi!
Parts
You can use any of the Adafruit nRF52840 boards and sensors you like. We'll show how it works with the Feather Sense and CLUE boards, since they pack so many sensors right on board.
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 3 of 37
Adafruit Feather nRF52840 Sense
The Adafruit Feather Bluefruit Sense takes our popular Feather nRF52840 Express and adds a smorgasbord of sensors... $32.50 In Stock
Your browser does not support the video tag. Adafruit CLUE - nRF52840 Express with Bluetooth LE
Do you feel like you just don't have a CLUE? Well, we can help with that - get a CLUE here at Adafruit by picking up this sensor-packed development board. We wanted to build some... $39.95 In Stock
Add to Cart
Add to Cart
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 4 of 37
Raspberry Pi 4 Model B
The Raspberry Pi 4 Model B is the newest Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing better! And what could make the Pi 4 better... Out of Stock
Official Raspberry Pi Power Supply 5.1V 3A with USB C
Add from Store
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 5 of 37
The official Raspberry Pi USB-C power supply is here! And of course, we have 'em in classic Adafruit black! Super fast with just the right amount of cable length to get your Pi 4... $7.95 In Stock
Raspberry Pi 3 - Model B+ - 1.4GHz Cortex-A53 with 1GB RAM
The Raspberry Pi 3 Model B is the most popular Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing better! And what could make the Pi 3... $35.00 In Stock
Add to Cart
Add to Cart
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 6 of 37
USB cable - USB A to Micro-B
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or... $2.95 In Stock
Add to Cart
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 7 of 37
Raspberry Pi Zero W Basic Pack - Includes Pi Zero W
Remember those cereal commercials that would always say, "part of a complete breakfast"? Well the Pi Zero's a lot like that bowl of cereal - while it's... $24.50 In Stock
Optional Parts
If you want to use, say, a Feather nRF52840 plus some plug-in STEMMA QT breakouts, here are some great options:
Adafruit Feather nRF52840 Express
The Adafruit Feather nRF52840 Express is the new Feather family member with Bluetooth Low Energy and native USB support featuring the nRF52840! It's... Out of Stock
Add to Cart
Out of
Stock
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 8 of 37
SparkFun Qwiic / Stemma QT FeatherWing (Shield for Thing Plus)
The SparkFun Qwiic FeatherWing (Shield for Thing Plus) provides an easy-to-assemble way to add the $4.95 In Stock
STEMMA QT / Qwiic JST SH 4-pin Cable - 100mm Long
Add to Cart
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 9 of 37
This 4-wire cable is a little over 100mm / 4" long and fitted with JST-SH female 4-pin connectors on both ends. Compared with the chunkier JST-PH these are 1mm pitch instead of... $0.95 In Stock
STEMMA QT / Qwiic JST SH 4-Pin Cable
This 4-wire cable is 50mm / 1.9" long and fitted with JST SH female 4-pin connectors on both ends. Compared with the chunkier JST PH these are 1mm pitch instead of 2mm, but... Out of Stock
Add to Cart
Out of
Stock
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 10 of 37
Adafruit DPS310 Precision Barometric Pressure / Altitude Sensor
How high are you right now? If you had a precision altitude sensor, you would know for sure! The DPS310 sensor from Infineon a high-precision barometric sensor, perfect for measuring... $6.95 In Stock
Add to Cart
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 11 of 37
Adafruit PCT2075 Temperature Sensor - STEMMA QT / Qwiic
The Adafruit PCT2075 Temperature Sensor is a 'code compatible' drop-in replacement for a very... $4.95 In Stock
Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT / Qwiic
The VCNL4040 is a handy two-in-one sensor, with a proximity sensor that works from 0 to 200mm (about
7.5 inches) and light sensor with range of 0.0125 to 6553 lux.We've all... $5.95 In Stock
Add to Cart
Add to Cart
© Adafruit Industries
https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-
bridge
Page 12 of 37
Loading...
+ 25 hidden pages