5 IOT MODULE 5 RaspberryPi Programming using Python.pdf
Capstone_Project.ppt
1. CAPSTONE PRESENTATION
GROUP NO. – 30
BUILD A RASPBERRY PI SECURITY CAMERA NETWORK
16945 - DHRUVKUMAR M. PANCHAL
PROJECT GUIDE :- DR. Y. REN
2. PRESENTATION FLOW
Objective
Introduction
Why Raspberry Pi?
Getting Start With Raspberry Pi 3
Installation of OS into Raspberry Pi 3
Setting up static IP and wireless network on Raspberry Pi 3
Installation of MotionEye OS into Raspberry Pi 3
Scanning IP address of Raspberry Pi 3
Configure live streaming and motion detection
Application
Future Work
3. OBJECTIVE
• Objective :- In this project, I am going to make a Raspberry Pi security camera
using the standard Raspberry Pi camera. This is a cost effective way of getting a
security camera set up and running that you can view over the network and also it is
motion activated.
4. Uniqueness :
• Contains hardware and software both parts
• It will be cheaper than same products available in market
• Can be modified as per our requirement
Challenges :
• How to use raspberry pi 3 board and it’s commands
• How to interface camera with raspberry pi 3
• How to sense motion via camera and enable motion notification
5. WHY RASPBERRY PI?
In February 2015, Raspberry Pi Foundation CEO Eben Upton confirmed 5 million units had been sold. In
September 2016, 10 million Raspberry Pis have been now shipped to customers all over the world.
Require a Board which contain:-
GPIO for UART, SPI, I2C,
Ethernet port,
USB port,
On board Wi-fi and Bluetooth
https://www.element14.com/community/docs/DOC-80899/l/raspberry-pi-3-model-b-technical-specifications
6. GETTING START WITH RASPBERRY PI
SoC : Broadcom BCM 2837.
CPU :1.2 GHz 64-bit quad-core ARM Cortex- A53.
Memory : 1 GB
USB Port : 4 x 2.0 USB
Video Output : HDMI Port
Audio Output : 3.5 mm Jack.
On Board Storage : SD Card
On Board Network : 10/100 Mbps Ethernet Port,
802.11n wireless, Bluetooth 4.1
Low Level Peripheral : 40 - GPIO Pins.
Power Ratings : 800 mA ,4 W.
Power Source : 5V -USB or GPIO header
Weight : 45 g
Price : $ 35
https://en.wikipedia.org/wiki/Raspberry_Pi
7. PIN DIAGRAM OF RASPBERRY PI 3
http://raspberrypi.stackexchange.com/questions/40318/raspberry-pi-2-can-gpio-pins-29-40-be-used-gpio-gen-input-output-configurable-in
8. GETTING START WITH RASPBERRY PI
• Raspbian = Raspberry Pi + Debian
• Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware.
• An operating system is the set of basic programs and utilities that make your Raspberry Pi run.
• Initial build of over 35,000 Raspbian packages.
• Optimized for best performance on the Raspberry Pi.
https://en.wikipedia.org/wiki/Raspbbian
9. INSTALLATION OF RASPBIAN OS ON SD CARD
Format SD Card Properly.
Download the image file of latest Raspbian Software.
Extract the executable software from the zip file and run the win32DiskImager utility.
Select the drive letter of the SD card in the device box & select Write Option.
Now take out SD Card from system and Plug in SD Card into Raspberry Pi.
Make sure that you insert the card before powering on the Raspberry Pi, and that you shutdown the Raspberry Pi before
unplugging the card.
10. SETTING UP STATIC IP TO RASPBERRY PI 3
• By default the Pi is configured with a dynamic IP
address. To give it a static IP, we need to add our
desired static IP, our default gateway IP, and our
static domain name servers IP addresses to
the /etc /network/interface file.
http://www.circuitbasics.com/raspberry-pi-wifi-installing-wifi-dongle/
11. SETTING UP WIRELESS NETWORK
• Edit the /etc/wpa_supplicant/wpa_supplicant.conf
file by typing
Sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
at the command prompt. Replace the code in the file
with this code:
• Then type ctrl X to exit, and Y to save the changes.
http://www.circuitbasics.com/raspberry-pi-wifi-installing-wifi-dongle/
12. SETTING UP WIRELESS NETWORK
• To set up wireless network on raspberry pi 3, we
need to will need to change a few configuration
settings in two files: /etc/network/interfaces,
and /etc/wpa_supplicant/wpa_supplicant.conf.
• To edit these files, we need to use the Raspbian
text editor, Nano. At the command prompt,
type sudo nano /etc/network/interfaces to edit
the /etc/network/interfaces file.
http://www.circuitbasics.com/raspberry-pi-wifi-installing-wifi-dongle/
13. SETTING UP WIRELESS NETWORK
• To see a list of the currently available WiFi networks,
enter sudo iwlist wlan0 scan | grep ESSID at the
command prompt. To check the status of your WiFi
connection, type iwconfig at the command prompt.
• If you see something like “Link
Quality=0/100“ or “Signal Level=0/100“, go back and
make sure that you have entered everything exactly as
it is shown in the images. All of the configuration
settings should now be saved to work with your WiFi
dongle, so enter sudo power off into the command
prompt to shut down the Raspberry Pi. Now
disconnect the ethernet cable and the power cord. Wait
about one minute, then plug the power cord back into
it without the ethernet cable.
http://www.circuitbasics.com/raspberry-pi-wifi-installing-wifi-dongle/
14. MOTIONEYE OS
• MotionEyeOS is a Linux distribution that turns a single-board computer into a video surveillance
system.
• compatible with most USB cameras as well as with the Raspberry PI camera module
• motion detection with email notifications and working schedule
• media files can also be accessed through the built-in FTP server or SFTP server
• The OS is based on BuildRoot and uses motion as a backend and motionEye for the frontend.
https://github.com/ccrisan/motioneyeos/wiki/Features
15. INSTALLATION OF MOTION EYE OS
Format SD Card Properly.
Download the image file of latest motioneye os.
Extract the executable software from the zip file and run the win32DiskImager utility.
Select the drive letter of the SD card in the device box & select Write Option.
Now take out SD Card from system and Plug in SD Card into Raspberry Pi.
Make sure that you insert the card before powering on the Raspberry Pi, and that you shutdown the Raspberry Pi before
unplugging the card.
16. SCANNING IP ADDRESS OF RASPBERRY PI 3
• Installed advanced IP scanner software
• Start scanning IP address and search for motion_detection.mshome.net as device name.
• After getting IP address of Raspberry pi 3, log in into putty.
• Insert login name and password
24. E-MAIL NOTIFICATION
• Download application pushover application from following link.
• https://itunes.apple.com/us/app/pushover-notifications/id506088175?ls=1&mt=8
• Pushover is a simple push notification service that integrates easily into web apps like
IFTTT, network monitoring systems, shell scripts, and anything else that needs to send
alerts to your iPhone, iPad, Desktop, and other mobile devices. App has a free 7-day
trial and unlimited usage beyond the trial requires a one-time in-app purchase.
25. APPLICATIONS
• Used for remote video monitoring
• Used for outdoor security
• Monitor Operations
• For safety purpose