Technical requirements
You can find the chapter code in the GitHub repository here: https://github.com/PacktPublishing/Internet-of-Things-with-ESP32/tree/main/ch12.
The external libraries can be found here: https://github.com/PacktPublishing/Internet-of-Things-with-ESP32/tree/main/common.
When we prototype on a breadboard, we need the following items as hardware:
- An ESP32 devkit
- A breadboard, four tactile buttons, and jumper wires
- A relay module with at least three relays on it (5 V DC input to drive 230 V AC output)
- A logic converter, 3.3 V to 5 V (for example, an AZ-Delivery TXS0108E logic level converter module)
- A power source (for example, the power supply module from the ELEGOO kit)
After developing and testing the code, we can move the hardware setup to a universal PCB so that we can mount the assembled hardware on a fan. You don't need to do this part of the project if you're happy with the prototype on the breadboard. However,...