🔸 Control the opening and closing of blinds using voice commands through Alexa, providing convenience and automation.
🔸 Built to work with ESP32 or ESP8266 microcontrollers, ensuring flexibility in hardware choices.
🔸 Serial output provides real-time feedback on the status of the blinds and the received commands, enhancing user experience.
🔸 Connects to your home WiFi network, allowing for remote control and integration with smart home systems.
🔸 Adjustable rotation time for the servo motor, allowing for fine-tuning based on the specific blinds used.
🔸 Simple setup process with minimal configuration required, making it accessible for users of all skill levels.
The program begins by including necessary libraries for controlling the servo motor and connecting to WiFi. It initializes a servo object to manage the blinds and sets a variable for the full rotation time of the servo.
In the setup() function, the program establishes a connection to the specified WiFi network and waits until the connection is successful. Once connected, it registers a device with the Espalexa library, allowing it to respond to voice commands from Alexa.
The firstBlindChanged() function is triggered when a command is received. It checks the brightness value sent by Alexa: if the value is greater than zero, the blinds are closed by rotating the servo counterclockwise; if the value is zero, the blinds are opened by rotating the servo clockwise. The servo rotates for the specified duration before stopping.
The loop() function continuously processes incoming commands from Alexa, ensuring that the system remains responsive to user requests. Overall, this smart blind control program demonstrates the integration of IoT technology with everyday home automation, providing a practical solution for modern living.