Rudy Parra
Published

Smart Alarm Clock

Transform your mornings with our smart alarm clock, controlling Hue lights, Wemo switches, and built-in Neopixels for a perfect wake-up.

BeginnerWork in progress15
Smart Alarm Clock

Story

Read more

Custom parts and enclosures

Structure

Base

Casing

Schematics

Circuit Diagram

Schematic

NoteBook Drawings

NoteBook Drawings

Code

Smart Room Controller

The provided code is for a smart alarm clock program, designed and developed by Rudy Parra. It appears to be intended to control various aspects of your morning routine, including setting alarms, managing lighting, and connecting to smart home devices. Here's a breakdown of its key functionalities: 1. **Time Tracking:** The program keeps track of time, with variables `hour` and `minute1` to represent the current time. 2. **Hue Lights:** It interfaces with Hue Lights. When the alarm goes off (possibly through a user interface not shown in this code), it sets the Hue lights to full brightness. 3. **Wemo Switches:** The program can control Wemo switches. When a specific button is pressed (possibly a snooze button), it turns on the Wemo switches. 4. **Encoder:** An encoder is used to set the time, set the alarm, and manually control lights and Wemo switches through a series of clicks. The encoder's pins are defined in the code. 5. **OLED Display:** Two OLED displays (`display1` and `display2`) are set up to show the current time with large text. 6. **NeoPixels:** It uses NeoPixels for lighting effects. The code initializes and manages NeoPixels, creating a visual effect. 7. **Servo Control:** Servo motors are attached to `rightLeg` and `leftLeg`, although their specific use is not clear from the provided code. 8. **Button Control:** The program checks button presses to trigger actions. The `Button` class seems to handle button interactions. 9. **Wi-Fi Connection:** There are indications of Wi-Fi connection setup, including configuring network credentials, but the details are not fully provided. 10. **Buzzer:** A buzzer is utilized to produce a sound effect. It's driven by the pin `D16`. Please note that this code appears to be part of a larger project, and some functionalities may require external hardware or connections that are not included in this code snippet. Additionally, the full functionality of the code may depend on interactions with external hardware and additional code that's not provided.

Credits

Rudy Parra
3 projects • 8 followers
Contact

Comments

Please log in or sign up to comment.