Configuring Raspberry Pi and sensors
In this project, we will use the Raspberry Pi 2 and Adafruit kit components to use a PIR (Pyroelectric/Passive Infrared Sensor) motion sensor to detect the motion of an object, which triggers a USB webcam to snap a photo and send it to the bot.
Prerequisites
Before getting started with the project, let's take a look at the hardware and software requirements.
Hardware
The following list details are the hardware required for the project:
- Raspberry Pi2 Model B
- Breadboard
- Logitech USB camera (this component is not there in Adafruit kit)
- PIR motion sensor
- LED
- Resistor
- Adafruit female to male jumper wires (only five wires needed)
Software
Now, let's take a look at the software required for the project:
- Windows 10 PC
- Visual Studio 2015 Community Edition or Enterprise Edition
- Azure subscription
- Azure App Service (API App)
- Azure IoT Hub
Now that we are equipped with all the hardware and software required for this project, let's get started with configuring the Raspberry Pi and...