This time the integration of ESP8266 and the Node-RED platform was realized integrating a sensor DS18B20 of Protocol of Temperature Onewire.
From an HMI or SCADA Web creator on Node-Red-Dashboard using the MQTT protocol and the pubsubclient library converting the ESP8266 into the MQTT Client will perform the sensor reading periodically.
Previous tutorials Recommended
Tutorial 1 : Install Lubuntu (Ubuntu)
Tutorial 2 : Installation node red platform
Tutorial 3: Installation Node Red Dashboard
Tutorial 4: Installation Modbus TCP IP in Node Red
Tutorial 5: Installation of Mosquitto Broker MQTT in Lubuntu
Tutorial 6: Program ESP8266 con Arduino IDE
Tutorial 7: ESP8266 and Node-RED MQTT GPIO # 1
Arduino IDE
Mosquitto MQTT Broker
A sequence of nodes has been created to send data from the Dashboard.
Video Tutorial ESP8266 Temperature DS18B20 (Onewire) MQTT Node-Red IoT#6
Install Node-RED
Materials and Very cheap!!
- 1 ESP8266 01 or ESP8266 12E NodeMCU
- 1 Regulator LDV33CV 5 a 3.3V
- 1 Chip FTDI Serial
- 1 DS18B20 One Wire
Connections
Where to buy? and Very cheap!!
Downloads:
Github Arduino IDE code ESP8266 MQTT
Github pubsubclient Library
Node Red import code example
Previous tutorials Recommended
Tutorial 2 : Installation node red platform
Tutorial 3: Installation Node Red Dashboard
Tutorial 4: Installation Modbus TCP IP in Node Red
Tutorial 5: Installation of Mosquitto Broker MQTT in Lubuntu
Tutorial 6: Program ESP8266 con Arduino IDE
Tutorial 7: ESP8266 and Node-RED MQTT GPIO # 1