Chapter 4. Creating a Motion Sensing Light
In many public buildings, house gardens, or even common spaces such as restrooms, we can find lights that are triggered on when motion or presence is detected. These kinds of systems aim to save electricity by turning the lights on only when they are needed, not giving the chance of someone forgetting to turn them off.
In this chapter, we will create our own energy saving lighting system. We'll control a single AC powered lightbulb using a solid state relay, which will be operated by the Galileo considering sensorial data. You'll learn how to use the Arduino IDE to read digital and analog data from sensors. Finally, we'll build a web server to serve a web page, allowing you to control the whole system with it.
In this chapter, we will cover the following topics:
- Reading analog and digital inputs with the Arduino IDE
- Learning how to use a PIR sensor for motion detection
- Learning how to use a photoresistor to detect luminosity...