Transcript
Exercise 2: Burglar Alarm
Parts and Circuit
In addition to these parts you will need an Arduino UNO or Mehackit Board, a USB cable, a breadboard and a bunch of jumper wires.
Part | Image | Description |
---|---|---|
LDR (light-dependent resistor, photoresistor) | The resistance of an LDR changes with the amount of light. The brighter it gets, the less an LDR resists an electric current. | |
LED | Choose an LED you like - maybe something bright and alarming? | |
Resistor 10kΩ (10,000Ω ) | A 10 kilo-ohm (10,000 ohm) resistor is used with an LDR. Stripe colors: brown, black, orange, gold | |
Resistor 330Ω (or 220Ω) | 330Ω and 220Ω resistors are used with LEDs. Stripe colors for a 330Ω resistor: orange, orange, brown, gold | |
Piezo speaker | A piezo can transform a quickly alternating voltage into sound. Some piezos can be used as a knock sensor. |
Circuit
After you've made this circuit, check out the programming instructions above