This project shows MQTT operation with EtherMega, DS18B20, Mosquitto MQTT broker by himself on Linux laptop. The original plan of this project is to control LED in the house as well as monitor room temperature. But he removed this section because of risk of High-volt control.
I connected DS18B20 Arduino module to 5V, GND and its output to digital pin 7. I used parts of provided OneWire example code to retrieve temperature in degrees celsius and get MQTT client to publish it to/home/office/temperature/topic.
TAG : 201403, W5100, Arduino, IoT, MQTT, Home automation, Tutorial
This project shows MQTT operation with EtherMega, DS18B20, Mosquitto MQTT broker by himself on Linux laptop. The original plan of this project is to control LED in the house as well as monitor room temperature. But he removed this section because of risk of High-volt control.
I connected DS18B20 Arduino module to 5V, GND and its output to digital pin 7. I used parts of provided OneWire example code to retrieve temperature in degrees celsius and get MQTT client to publish it to/home/office/temperature/topic.
COMMENTS