MySensors Ethernet Gateway with ESP32

I needed a gateway that does not depend on a reliable WiFi connection, so Ethernet was the only option. The ESP32 processor is already designed to be used with Ethernet, using a LAN8720 interface module, which is available from Aliexpress etc. for under €3. This combination is well supported by the Arduino universe and the ETH library. To work properly, the module needs one minor modification, as described here or here. The MySensors website has instructions for how to build

Continue reading

Link quality estimation for MySensors with NRF24

The NRF24 chips don’t provide a “Received Signal Strength Indicator” (RSSI) like a WiFi link does, but there is a way to get an indicator of link quality which was good enough for my application. When the NRF24 chip doesn’t receive an acknowledge for a transmitted message, it tries to send it again, up to 15 times. The number of retries needed to get the message to its destination (“automatic re-transmit count”, ARC) is held in a chip register, and that

Continue reading

MyGasMeter – a low-power link between the gas meter and home automation

This sensor node is attached to the gas meter in my home. It uses a 2,4 GHz RF link to a MySensors MQTT gateway to reports natural gas consumption data to my home automation controller. The gas meter is of the type that creates magnetic pulses when the meter dial moves, so the connection is contact-less, and works without access to the inside of the “official” meter from the utility company.

Continue reading