Basic WiFi/MQTT sensor node#
Tip
Please continue reading this document on our documentation space, all inline links will be working there.
Introduction#
A beehive monitoring sensor node based on the Adafruit Feather HUZZAH, featuring an ESP8266 MCU. Telemetry data is transmitted using WiFi/MQTT. The most recent firmware version is available at node-wifi-mqtt.ino.
Platform and supported peripherals#
Adafruit Feather HUZZAH with an ESP8266 MCU
HX711 ADC weigh scale breakout board
DS18B20 digital thermometer
See also
Nodes with identical hardware: Open Hive GSM and WiFi sensor nodes and ESP8266 beehive scale based on Homie
Details#
Wiring#
These Fritzing schematics describe the breadboard hardware wiring of the ESP8266 MCU with its sensor equipment (HX711, DS18B20 and DHT33).
Firmware#
Clone git repository#
# Acquire source code repository
git clone https://github.com/hiveeyes/arduino
# Select this firmware
cd arduino/backdoor/node-wifi-mqtt
Configure#
Have a look at the source code node-wifi-mqtt.ino and adapt setting variables according to your environment.
Configure WiFi and MQTT settings:
// WiFi parameters
#define WLAN_SSID "change-to-your-ssid"
#define WLAN_PASS "change-to-your-pw"
// MQTT server
#define MQTT_BROKER "swarm.hiveeyes.org"
#define MQTT_PORT 1883
#define AIO_USERNAME ""
#define AIO_KEY ""
Build#
The build system is based on PlatformIO.
Build firmware:
make
Upload to MCU#
export MCU_PORT=/dev/ttyUSB0
make upload