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.
|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.|
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
A piezo can transform a quickly alternating voltage into sound. Some piezos can be used as a knock sensor.
After you've made this circuit, check out the programming instructions above