Hardware configuration

Now let's configure the hardware for this project. It will be really simple and we'll also set up the Wi-Fi connectivity of Yun.

This is a schematic to help you out (excluding the USB camera):

Hardware configuration

You just need to connect the PIR motion sensor to Yun. Connect VCC to the Arduino 5V pin, GND to GND, and the output of the sensor to pin number 8 of the Arduino Yun.

Finally, insert the USB camera into the USB port and the microSD card into the Arduino Yun.

The following is how it should look in the end:

Hardware configuration

Now, we are going to set up Yun so ...

Get Arduino: Building exciting LED based projects and espionage devices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.