This project is a Voice-Controlled Smart Fan system that uses an Arduino Uno, a DC motor, a servo motor, a TB6612FNG motor driver, and a Python program running on a PC. The DC motor, controlled through the motor driver, acts as the fan, while the servo motor rotates the fan left or right to align with the user. LEDs (Red, Yellow, and Green) are used to visually indicate the fan speed: low, medium, or high. The Arduino manages the motors and LEDs based on voice commands received over Serial communication (COM4). On the computer, a Python script uses the SpeechRecognition and PySerial libraries to capture voice commands from a microphone, convert them into text, and send the appropriate command to the Arduino via USB. Commands like "fan on", "fan off", "low", "medium", "high", "left", "right", "center", "full left", "full right", and "sweep" are recognized. We are also able to give an arbitrary command not included in the command list like "Turn on" , Google Gemini will recognise the command as "Fan on" instead, "move left and right" to be recognised as "sweep" and etc, where specific input is unnessesary. When a command is received, the Arduino adjusts the motor speed, moves the servo to the correct angle, or sweeps the fan automatically left to right. The TB6612FNG motor driver ensures the DC motor receives enough current safely without stressing the Arduino, and the servo motor is connected to a PWM pin to control its angle precisely. Overall, the system allows full hands-free control of the fan’s speed and direction through simple voice commands, making it a smart, interactive, and user-friendly device.

Built With

Share this project:

Updates