Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Latest commit

 

History

History
50 lines (29 loc) · 1.9 KB

README.md

File metadata and controls

50 lines (29 loc) · 1.9 KB

arduino-sensors

remote sensing with arduinos

The sketches here are categorized by wireless module and sensor type until I work out a way to better modularize the parts.

If you would like to add a sensor or a wireless module, im suing msgpack to send the data. Please be aware of how the keys are suffixed with the unit (such as "temp_c") and how each packet also includes a string for "stype" being the sensor type (eg "stype": "bme280") and a string for the node id.

you can select different output formats for the base station, including sending the data straight to telegraf through a http handler.

xbee configuration

Make sure xbees are on the same network.

They should be in "API Mode With Escapes [2]".

Remember to write down your base stations address (mine look like 0013A200 40BF137D) the last half of this address should go in BASE_SL with the 0x prefix (like 0x40BF137D).

general configuration

The NODE_ID define should be changed for each arduino you program, this is just to help you keep track of which node is which.

you can change the interval through the INTERVAL define at the start of each sketch. it is in seconds

For telegraf, you should use the configuration block:

[[inputs.http_listener]]
  ## Address and port to host HTTP listener on
  service_address = ":8186"

dependencies

all the arduino sketches depend on these libraries:

Xbee-Arduino

ArduinoBufferedStreams

arduino_msgpack

some sensors depend on these libraries:

Finitespace BMP280

DHT-sensor-library

the base station depends on these external python packages:

digi-xbee

pytelegraf[http]