In this post, you are going to learn how to build a Wireless Video Surveillance Robot using Raspberry Pi.
In this post, you are going to learn how to build a Wireless Video Surveillance Robot using Raspberry Pi. You will be able to control it from your smartphone browser or PC browser. Not only you will be able to move the robot but also the camera as we will add a pan tilt system.
For Custom Projects, hire me at https://www.freelancer.com/u/Muhammadaqibdutt
Required Components for Wireless Video Surveillance Robot using Raspberry Pi
- Raspberry Pi (I have used Raspberry Pi 4, also tested with Raspberry pi 3)
- Power Supply for Raspberry Pi or Power Bank
- 2 x L293D
- 4WD Robot chassis kit
- Pan tilt bracket with servos
- DC Power source (I have used 2×18650 batteries with battery holder)
- 2 X 3 Pin Header
- 2X20 Pin Header
- 5 X 0.1uf Capacitor
- 0.33uf Capacitor
- 100uf Capacitor
- 330 ohm resistor
- 5 X Terminal block
Installing required Packages
For video streaming, we are going to use Flask. Flask is micro web framework written is Python that is very easy to use and requires no libraries.
Use following command to install Flask.
pip3 install Flask
Then we need to install Numpy as we will have to map values in between our code.
pip3 install numpy
Then we need to install OpenCV to captures frames from pi-camera. Before install OpenCV, we need to install some dependencies required by OpenCV.
sudo apt-get install libhdf5-dev -y && sudo apt-get install libhdf5-serial-dev -y && sudo apt-get install libatlas-base-dev -y && sudo apt-get install libjasper-dev -y && sudo apt-get install libqtgui4 -y && sudo apt-get install libqt4-test -y
pip3 install opencv-contrib-python==220.127.116.11
After that, we need to install pigpio package required for controlling servo motors.
pip3 install pigpio
In last, we need RPi.GPIO package required for controlling DC Motors.
pip3 install RPi.GPIO