Daylight Alarm Clock
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
- A photoresistor
- A 10k Ω resistor
- A buzzer
- An Arduino board
- Breadboard
- 7 Wires
Insert Parts
Nothing complicated in this step, just insert devices into the breadboard and supply power to the breadboard.
Connect Wiring
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
Copy the code displayed and upload it to your Arduino. Power it up and hope for the best!