Node-RED is an open-source graphical development (drag & drop) tool created by Nick O'Leary from IBM that helps you rapidly create application, especially event-driven application like Internet of Things (IOT) applications. It is already pre-installed in Raspbian Stretch for Raspberry Pi, or it can be installed by using Node.js.
The main reason we use Node-RED in this tutorial is because it does not require a very hardcore programming knowledge. It is simply drag and drop block of function, we call it node and then we put them all together.
Hardware Requirements for this project:
*if you already have raspbian before, just skip this step.
Follow with these schematic:
| Raspberry Pi Pin | 4 Channel Relay |
|---|---|
| Pin 4 (5v Pin) | VCC/ +Ve |
| Pin 6 (GND) | GND /-Ve |
| Pin 35 (GPIO 19) | IN 1 |
| Pin 37 (GPIO 26) | IN 2 |
| Pin 38 (GPIO 20) | IN 3 |
| Pin 40 (GPIO 21) | IN 4 |
node-red-contrib-gpionode-red-contrib-ui_j
Click the burger menu on top right corner, then click “Manage Palette”
Select Install Tab, then search and install each the
node-red-contrib-gpio & node-red-contrib-ui_j
Once finish install, click Close.