Introduction: Arduino Light Alarm Clock With App

An alarm clock that wakes you up with light rather than sound is known as a light alarm clock. You will wake up more naturally and feel more refreshed because it is made to simulate the natural light that gradually grows as the sun rises.


With the help of the user-friendly app that comes with our alarm clock, you can easily choose the preferred wake-up time. The alarm clock starts to gradually enhance the light 30 minutes before the scheduled time, simulating a sunrise in your bedroom. You will naturally awaken as a result of this gentle process, feeling renewed and energised.


The clock's alarm feature will go off at the designated time if you need an extra wake-up call. Say good-bye to sudden and upsetting noises that might keep you from sleeping and welcome to a restful and quiet awakening experience with our alarm clock and app.


The alarm clock will also include a tiny display that includes the time, date, and other details.

Supplies

-cables (25 pcs)

-2 breadboards

-2 Arduino UNO

-1 button

-4 resistors

-1 RGB led

-1 LCD

-1 clock module

-1 battery for the clock module

-ESP8266 HUSSAH feather (wifi module)

-USB-C kabel

-wood planks

-4 magnets

-some chopsticks

Step 1: Wire the LCD and the Clock Module

Wire the LCD and clock module as presented on the photo. Make sure you do this with the arduino UNO, with other arduino's the wiring is different.

Step 2: USE the Following Code

This is the code you need to install the lcd and have the same text on it.

Step 3: Wire the Following Parts for the On/Of Button

Step 4: Add the Arduino Code

Step 5: The Communication

In the following steps we will explain how we tried to let the Arduino talk to the server.

You will try to send a single byte code and one receive one back to activate a simple led.

Step 6: The Wiring

For these steps you will need :

-1 ESP 8266 HUSSAH feather (+drivers)

-1 Led

-1 100-ohm Resistor

-2 Female/Male wires

-USB cable (B)


Connect the wires to the led the short leg needs to be negative (GND) and the long one positive (A16) and upload the following code "stemproject" Don't forget to change the necessities in "arduino_sectrets.h"

Download MQTT Explorer and select your server. Change the server in the code.

When the board is connected to the server you can try to send a 0 or a 1 message

If the bytes come thru your led will light up



Step 7: The APP

Download the app code and import it into MIT app inventor and download the necessary companion app on your phone FYI, the newest is the best but crashes a lot and Android phones are slightly better


The first screen is the main menu, here you can start and stop your alarm

The second screen is your led light slider

The third screen is your timer

IMPORTANT NOTE: Do not close the app when it's running to avoid canceling your clock module


https://github.com/JJVanC/Alarmclock

Step 8: The Box

Get creative with your alarm clock design and personalize the box to your liking. At our end, we opted for a natural look and used wood to craft the box. To achieve the same aesthetic, all you'll need are four wooden planks of equal size (30x20cm) that you can glue together. And, for added support, use chopsticks to reinforce the joints.

Step 9: The Box

Now you need to make the two side planks (20x13cm).


One with a hole in for the lcd.


The other one is a normal plank with some chopsticks to the side.


Step 10: The Box

Attatch the magnets to the side woden plank and the main frame. This will make it easier to reach into your box.