Hardware requirements and setup
This project has been chosen to demonstrate the control capabilities of our Raspberry Pi MQTT system. Hence, there will be no sensors used in this project. But that is very possible and extremely easy to implement. In fact, that can be a challenge for you: build a project with both monitoring and control components.
For now, the components required to build this project are as follows (Figure 6.2):
- ESP32 development board
- 5V non-latching relay
- Hi-Link 5V power supply
- Two resistors – 10k ohm and 330 ohm
- Two-pin terminal connectors
- BC547 transistor
- 1N4007 diodes
- Buzzer
- LEDs
Figure 6.2 – Required components to build this project
Now, we will briefly go through each major component’s role, as we did for the first project.
ESP32 development board
We have chosen the ESP32 development board as the brains for this project (Figure 6.3). One major reason for that...