Daylight Alarm Clock
![Screenshot 2023-06-12 130605.png](/proxy/?url=https://content.instructables.com/F1U/GYUF/LIOKYZDM/F1UGYUFLIOKYZDM.png&filename=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](/proxy/?url=https://content.instructables.com/FPA/592K/LIOKYYHS/FPA592KLIOKYYHS.png&filename=Capture.PNG)
- A photoresistor
- A 10k Ω resistor
- A buzzer
- An Arduino board
- Breadboard
- 7 Wires
Insert Parts
![Capture2.PNG](/proxy/?url=https://content.instructables.com/F3Q/N18G/LIOKYYKP/F3QN18GLIOKYYKP.png&filename=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](/proxy/?url=https://content.instructables.com/FYC/6J5K/LIOKYYN9/FYC6J5KLIOKYYN9.png&filename=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](/proxy/?url=https://content.instructables.com/FO7/2125/LIOKYZ41/FO72125LIOKYZ41.png&filename=Capture3.PNG)
Copy the code displayed and upload it to your Arduino. Power it up and hope for the best!