The Sunrise Wake-Up Alarm [MINI-PROJECT]


This circuit stays quiet when it’s in a reasonably dark place. But once you have a bright light shining directly onto the sensor, such as the sun, the circuit turns on the buzzer that creates an alarm sound that hopefully should wake you up.

The sensor you'll use here is a photoresistor, also called Light-Dependent Resistor (LDR). The resistance of the photoresistor is high when there is little to low light, or low when there is a lot of light.

The LDR and the resistor R1 make up a voltage divider. So when the resistance of the photoresistor is high, the voltage on the base of the resistor becomes low and turns off the transistor. When the resistance of the photoresistor is low, the voltage on the base becomes high and turns on the transistor.

When the transistor is on, the alarm goes off.

Part list:

  • Breadboard
  • Jumper wires
  • Active Buzzer *
  • Photoresistor
  • NPN Transistor (Ex: BC547)
  • Resistor 1 kΩ

* An active buzzer has an internal oscillator so that you can connect it to a battery and it will make sound. A passive buzzer does not have this, so you need to create an oscillator that connects to the buzzer in order to have it create sound.

Members Only Section

Hey there! To get access to this and all the other resources to learn electronics with Ohmify, you need to be a member.