Arduino Light Alarm Clock With App

by woutersrobbe in Circuits > Arduino

229 Views, 1 Favorites, 0 Comments

Arduino Light Alarm Clock With App

66f3971c-e288-44c2-812a-c78965fde3fa.jpg

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

Naamloos.png

-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

Wire the LCD and the Clock Module

arduino-rtc-wiring-2-1024x398.png

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.

USE the Following Code

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

Wire the Following Parts for the On/Of Button

Wiring Components (1).png

Add the Arduino Code

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.

The Wiring

arduino.png

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



The APP

screen1.png
screen 3.png
screen 2.png

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

The Box

image_6487327.JPG

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.

The Box

image (2).jpeg

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.


The Box

image (1).jpeg
image.jpeg

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