An open API service indexing awesome lists of open source software.

https://github.com/skyzh/bluesensor

🌃 Collect climate data from sensors on Arduino. Part of the BlueSense Project.
https://github.com/skyzh/bluesensor

arduino cpp dht22 environment iot-device monitoring raspberry-pi sensor

Last synced: 28 days ago
JSON representation

🌃 Collect climate data from sensors on Arduino. Part of the BlueSense Project.

Awesome Lists containing this project

README

          

# BlueSensor

Running on Arduino, this program can send sensor data to Raspberry Pi.

Built for BlueSense-NG. For previous versions, refer to legacy branch.

## Dependencies

These libraries are embedded in this project.

* serialpb (BufferProtocol.[h|cpp])
* protobuf generated files (sense.pb.[c|h])

You'll need to install the following dependencies yourself.

* nanopb (use vcpkg or other tools to install protoc plugin, and also install it in Arduino libraries folder)
* BME280 https://github.com/finitespace/BME280
* Python 2.7 and protobuf (required by nanopb generator plugin)

## Data Transmission

All packets are encapsuled in serialpb buffer protocol. For each packet,

The first byte indicates channel.

* nanopb packet begins with `0x00`, then follows raw nanopb (protobuf) data.
* PM2.5 sensor data begins with `0x01`, then follows raw serial data.
* log message begins with `0x02`, then follows the byte string.