Hardware and software requirements
Let's first see what is needed for this project. You need, of course, the same Intel Galileo Gen 2 board that we used for all the projects in this book.
You will need a 5V relay as well: I used a Pololu 5V relay for this task, and you will also need a photocell along with a 10k Ohm resistor and a standard 5V PIR motion sensor. Finally, you will need the usual breadboard and jumper wires. Here is a list of all the components that you will need for this project:
Intel Galileo Gen 2 board (https://www.sparkfun.com/products/13096)
PIR motion sensor (https://www.sparkfun.com/products/8630)
Photocell (https://www.sparkfun.com/products/9088)
10k Ohm resistor (https://www.sparkfun.com/products/8374)
Pololu 5V relay module (http://www.pololu.com/product/2480)
Breadboard (https://www.sparkfun.com/products/12002)
Jumper wires (https://www.sparkfun.com/products/8431)
On the software side, we will assume that your Galileo board is ready to be used with the Intel IoT image installed...