Chapter 12: Practice – A Voice-Controlled Smart Fan
In this final chapter of the book, we are going to develop another smart home device, a smart fan. We will take an ordinary fan that has mechanical buttons on it to control the fan speed and we will convert this fan into a smart one where we can set the speed by voice in addition to its buttons. The fan that I am going to hack in this project has four buttons, where one button is for stopping the fan and the other three are for three different speed modes, from slow to fast. The idea is to intercept the button presses by connecting the speed buttons of the fan to GPIO pins of ESP32 and control the speed via relays when a button press is detected. It will also respond to voice commands by changing ...
Get Developing IoT Projects with ESP32 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.