Résumé :
|
"Dhairya continues his article series on how to build your own IoT platform. Here, in Part 2, he explains how to use the MQTT and Node-RED features of the platform backend you set up in Part 1 to build your first IoT project that controls relays through a Node-RED dashboard. Topics Discussed How to use the MQTT and Node-RED features of the platform backend you set up in Part 1How to set up the hardware for your IoT projectHow to do the coding for your IoT projectHow each of the major program functions workHow to set up the IoT platform Tech Used NodeMCU development board4-channel Relay moduleDHT11 sensorBreadboard and connecting wiresNode-REDMQTT Broker Last month, in Part 1 (Circuit Cellar 371, June 2021) [1], we set up our very own IoT platform. Just to refresh your memory, these are the steps we went through in that article: 1) Digital Ocean Droplet setup2) Installing Apache, PhpMyAdmin and MySQL.3) Installation of Node.js, Node-RED and the Mosquitto MQTT library Here, in Part 2, we will use the MQTT and Node-RED features of our platform to build our first project! The project demonstrates both the control and monitoring capabilities of our platform, enabling us to control relay modules (in other words, the appliances connected to these modules) through a Node-RED dashboard we create. It also monitors sensor values from the same dashboard. According to Wikipedia, the definition of home automation is as follows:“Home automation is building automation for a home, called a smart home or smart house. A home automation system will monitor and/or control home attributes such as lighting, climate, entertainment systems, and appliances." (Extrait de Circuit Cellar n°372)
|