
Select flexible, low-cost hardware for the Node-RED ESP32 project, using Wi-Fi-enabled controllers (ESP32, Raspberry Pi) and generic sensors like DHT22 with simple motor control.
Ensure the power supply can deliver enough current to prevent ESP32 brownout and motor stall; a 9-volt, 2-amp supply with a capacitor works, with separate supplies also viable.
log in to the new Raspberry Pi, set a hostname like node-red.local, reboot, and verify the hostname to prepare for installing and configuring Node-RED.
Explore Node-RED basics for ESP32 projects by configuring nodes, building simple flows, using the debug and inject tools, and installing third-party dashboards on a Raspberry Pi.
Learn how the complete node in Node-RED links to other nodes and fires when that node completes, passing the message payload for reuse; deploy, test, and observe in debug window.
Create and configure a form widget in a dashboard flow, including text, checkboxes, and a date element, with submit and cancel actions, validation, and a form output display.
Install the mosquitto broker and clients on a Raspberry Pi via apt, start the service, verify it runs, and review the configuration file for future security and graphical client use.
Configure mosquitto to require client authentication by using a password file, set allow_anonymous false, and encrypt passwords with mosquitto_passwd, then restart the service.
Configure the mosquito broker to require authentication and demonstrate authenticated mqtt subscribers and publishers. Verify messages flow between authenticated clients on a Raspberry Pi and prepare for Node-RED integration.
Review the first prototype of the terrarium controller on a breadboard, integrating a motor pump, soil humidity sensor, ESP32, and a Node-RED dashboard to test automatic watering.
Demonstrate voltage sensing with two voltage dividers to monitor motor and MCU voltages, including resistor configurations, simulations, tolerances, and future telemetry and alerts.
Review the completed Node-RED and ESP32 circuit, focusing on a voltage divider and resistor values chosen via a simulator to protect the ESP32 while measuring motor and USB voltages.
Review the second version of the Node-RED flow for the ESP32 project, wire topics for MCU and motor voltage, and display formatted readings on the voltages dashboard.
Extend the node red flow to log terrarium telemetry from the ESP32 into a Google Sheet. Update records on motor state changes or at one minute to track humidity.
Learn to install and configure the Google Sheets node in Node-RED, including Google Drive APIs, credentials setup, and spreadsheet ID handling to read or append data in flows.
Set up a Google sheet for a node-red and ESP32 project by creating a Google Cloud project, enabling Drive and Sheets APIs, generating service account credentials, and sharing the sheet.
Updated December 2022 to support Node-Red version 3
In December 2022, we added a new section with eight lectures that cover Node-RED version 3.
With these lectures, you will learn how to upgrade your Node-RED instance to version 3 and use the most important new and updated features.
Updated June 2022 to support Node-Red version 2.2.2+ and Node.js 16.
More details about this update: We have added ten new lectures that show you how to update Node-Red to version 2.2.2, and Node.js to version 16, as well as how to use several of the new nodes that come with Node-Red 2.
There's also a lecture showing you how to complete this project without having to set up an actual terrarium so that you can learn without the mess.
This course teaches you how to design and build an automated control system using Node-RED and the ESP32.
This course will guide you through the construction of an automated control system. The deliverable is a Terrarium controller.
Along the way, you will learn a great deal about useful technologies such as the Node-Red programming environment and MQTT.
This course is perfect for makers familiar with the ESP32 and interested in learning how to use it alongside Node-RED.
Node-RED is a lightweight graphical programming tool. You can use it to join various hardware and software components and create applications such as the automated terrarium controller in this course.
Node-RED is used in a range of settings. Makers create home automation applications, and organisations use it to automate their factory floors, among many other possibilities.
The ESP32 is a powerful low-cost microcontroller with built-in Wi-Fi that we can program with the familiar Arduino IDE. Its "call to fame" is that it makes it easy for anyone familiar with the Arduino to leverage their knowledge and create gadgets that need more memory and processing power than what the Arduino Uno can provide, in addition to Wifi and Bluetooth. All this at a lower price point.