Daylight Alarm Clock

by SebastianBanderado in Circuits > Arduino

145 Views, 0 Favorites, 0 Comments

Daylight Alarm Clock

Screenshot 2023-06-12 130605.png

This guide will show you how to create an alarm that will react to sunlight, allowing you to wake up everyday at the same time the sun rises!

Supplies

Capture.PNG
  • A photoresistor 
  • A 10k Ω resistor 
  • A buzzer 
  • An Arduino board 
  • Breadboard 
  • 7 Wires

Insert Parts

Capture2.PNG

Nothing complicated in this step, just insert devices into the breadboard and supply power to the breadboard.

Connect Wiring

Screenshot 2023-06-12 130605.png

Now you connect the wires to the Arduino and connect the devices to the power rails.


Photoresistor;

Connect a wire along the resistor row and onto the A2 hole on the Arduino. Also connect the resistor to the negative power rail.

Connect another wire along the other side to the positive power rail.


Buzzer;

Connect a wire between the positive pin on the buzzer and the #2 port on the Arduino.


Code

Capture3.PNG

Copy the code displayed and upload it to your Arduino. Power it up and hope for the best!

Downloads