Have you ever found yourself having some crazy ideas that could easily make your life easier and more fun? Maybe an alarm for your stash of cookies that you don’t want anybody to touch. Some kind of a device that you put next to it and it sends you a notification and a picture when somebody tries to steal them. Sounds cool, right?
In this project we’ll be creating a light alarm. As it may be obvious from the name, this alarm triggers when there’s a source of light directed at it.
What you’ll need for this to work is:
- Arduino Uno
- 10 breadboard wires
- 2 LEDs
- 3 resistors – 220 Ω
In this tutorial we will use one magnetic – contact door sw / sensor and a buzzer for making a “noise” when a door is opened. Normally the reed is ‘open’ (no connection between the two wires). The other half is a magnet. When the magnet is less than 13mm (0.5″) away, the reed switch closes.
In this tutorial we will use the Adafruit TSL2561 sensor to measure LUX with Arduino.
The TSL2561 luminosity sensor is an advanced digital light sensor, ideal for use in a wide range of light situations. Compared to low cost CdS cells, this sensor is more precise, allowing for exact lux calculations and can be configured for different gain/timing ranges to detect light ranges from up to 0.1 – 40,000+ Lux on the fly.
In this tutorial we will use one strip with 8 RGB LEDs with the Arduino uno board. We will use the Adafruit’s NeoPixel library to change the color of each led.
Let’s get started!
What you will need
For this project you will need:
- Arduino uno