Open Hive Arduino Yún gateway#
Tip
Please continue reading this document on our documentation space, all inline links will be working there.
Introduction#
This firmware runs on the Open Hive RFM69 Arduino Yún, a receiver node using radio link communication. Telemetry data is received from the Open Hive RFM69 sensor node, decoded from CSV and stored to a SD card. The most recent version is available at rfm69-gateway-sdcard.ino.
![// Synopsis of Open Hive RFM69 sensor node
digraph open_hive_rfm69_sensor_firmware_synopsis {
// Options
rankdir=LR;
ranksep=0.5;
// Style
//graph [splines=ortho];
node [pin=true, shape="box", fontname="Verdana"];
edge [fontname="Verdana"];
// Graph nodes represent hardware node units
"sensor-1" [label="Sensor node 1"];
"sensor-2" [label="Sensor node 2"];
"sensor-N" [label="Sensor node N"];
"gateway" [label="Gateway node\nArduino Yún"];
"sd" [label="SD card", style=dashed];
// Graph edges represent radio families and
// protocols spoken between node units.
"sensor-1" -> "gateway" [label="RFM69, CSV"];
"sensor-2" -> "gateway";
"sensor-N" -> "gateway";
"gateway" -> "sd" [style=dashed];
// Draw a dotted line between sensor-2
// and sensor-N, but retain node positions.
"sensor-2" -> "sensor-N" [dir=none, style=dotted];
{rank=same; "sensor-1"; "sensor-2"; "sensor-N" };
}](../../../_images/graphviz-27b34df46fcae9dd4dfba588a1a4c762c65366c0.png)

Build#
Build on your workstation#
# Acquire source code repository
git clone https://github.com/hiveeyes/arduino
# Select this firmware
cd arduino/openhive/rfm69-gateway-sdcard
# Build firmware
make build
# Upload to MCU
make upload
Tip
Please inspect the platformio.ini
file, and adjust it to match your setup.