制造商零件编号 SSD005/4-V2B
BLUETOOTH 5 LOW ENERGY USB DONGL
Smart Sensor Devices
License: General Public License Bluetooth / BLE Adafruit Feather Raspberry Pi MCU
Basically, we are going to create an autonomous BLE beacon that advertise the current temperature, humidity etc.
For this example, we are using a Gas sensor BME680 and a OPT3002 Light-to-Digital Sensor.
Requirements
Arduino Libraries
The libraries can easily be installed through the Arduino IDE:
Connecting I2C sensors
Running the example
// How often we read the sensors and update the advertisings message
(in seconds)
#define READ_UPDATE_FREQUENCY 5
You should now see the output from the project.
Scanning the results
To see the results, you can use any BLE scanner app.
Here we use nRF Connect:
The data in the red box is our sensor values:
0x006203EB001700170041
When we parse the hex into decimal values we get:
Light: 0x0062 = 98 uW/cm2Pressure: 0x03EB = 1003 hPaTemperature: 0x0017 = 23 CelciusHumidity: 0x0017 = 23 %RhGas Resistance: 0x0041 = 65 KOhms