
NOTE: You can find your Pi’s IP address by
entering ifconfig into your terminal command and
looking for the inet address.
3. BUILD THE ARDUINO CIRCUIT
Connect the LED and the 220Ω resistor to
the Arduino Nano’s pin D5 and ground, as
shown in Figure
F
. Connect the PIR sensor to
Arduino pins D8, power, and ground, as shown.
This sensor helps our Pi Smart Cam detect
movements, even in the dark.
4. SET UP ARDUINO SOFTWARE
Follow the general Arduino setup guide at
arduino.cc/en/Guide/ArduinoUno. Then upload
the motion sensor code from the Github repo,
pi-motion-sensor.ino, to your Arduino board.
The code snippets shown here demonstrate
how the Ar