Sample plug n play Devduino V2.2 client for my nRF24L01 field gateway projects (see my profile for these). The design goal was a simple demo sketch that students could use as a basis for their projects.
The onboard ASSHA204A makes provisioning easier as each device is guaranteed to have a unique identifier. (In coming versions of the software I will use the encryption capabilities).
With some gateways (e.g. AdaFruit.IO) the device will be configured "automagically" on first telemetry update and it's just a matter of changing the feed name to something human readable.
For other gateways (e.g. Microsoft IoT Central) I put the device ID on a label on the outside of the enclosure so it can then be manually configured.
I have put in basic power conservation code which gives 4-6 weeks battery life depending on the RF Power and update rate settings so there is plenty of scope for improvement.
These devices are only USD18 each (Feb 2018) so I pass them out into the audience at conferences as part of SmartAG (temperature, humidity and light levels) or industrial monitoring (acceleration, temperature and proximity) scenario simulations.
This client uses
- Devduino V2.2 Sensor Node
- SeeedStudio Grove-Temperature & Humidity Sensor
- SeeedStudio Grove-Universal 4 Pin Buckled 5cm Cable
The sketch should work with Devduino Relay 1 Node as it has an ATSHA204A as well. For the Devduino V2/V3/V4 device the device ID will need to be manually configured.
For an enclosure I use an off the shelf weather proof (IP 66/67) box from a local electrical supplies wholesaler.
Comments