When we want to build automated interactive projects, like a robot, musical alarm, or just something to scare our pets, it’s easy to get caught up in the OUTPUT (what our mad-scientist project DOES), but it’s just as important to think about the INPUT (what we want to trigger that output).
For example, suppose I want my refrigerator to play some awesome rock song whenever I open it. I could probably come up with several ways to trigger the song, but the simplest solution might be use the RadioShack Light Detector Board (SKU 2760346) with my Arduino board and a sound module to cue up the band whenever the refrigerator light comes on.
My wife might not be amused, but I think it would be pretty cool.
RadioShack gives you plenty of options by providing a variety of other sensors as well, like the RadioShack Ultrasonic Range Sensor (SKU 2760342), which uses sound waves to measure distance, or the RadioShack PIR Sensor (SKU 2760347), which detects movement using passive infrared technology. These are great for many projects, but may be more sophisticated than I need for my fridge. I like the RadioShack Light Detector Board because it provides a simple, elegant solution. And if I wanted to move my project from the refrigerator to a cabinet, the RadioShack Light Detector Board features a variable resistor, which I could use to adjust the light sensitivity.
In the following support files folder, you can find schematics and some sample code to get you started. You can also incorporate this sample code into your own project code.
How would YOU use the RadioShack Light Detector Board?