Remote Control Camera by Raspberry Pi
by AnnaMai in Circuits > Raspberry Pi
11477 Views, 76 Favorites, 0 Comments
Remote Control Camera by Raspberry Pi
![Raspberry pi - Remote control camera](/proxy/?url=https://content.instructables.com/FD5/59J6/ITKLLSJ3/FD559J6ITKLLSJ3.jpg&filename=Raspberry pi - Remote control camera)
This instructable will guide how to:
1. Put camera to Local web (for remote vision through Computer or Phone)
2. Control camera vision (using gear motor)
Part list for project:
1. Motor with gear https://amzn.to/2OLQxxq
2. Raspberry Pi B https://amzn.to/2VJIOBy
3. H-bridge https://amzn.to/2QS2FeI
4. USB camera (Logitech) https://amzn.to/35w1DMN
Put Stream Camera Into Local Web (using "motion")
$ sudo apt-get update
$ sudo apt-get install motion
$ sudo apt-get install libv4l-0
$ sudo apt-get install uvccapture
$ gedit /etc/default/motion
change "start_motion_daemon yes" (from "no")
$ gedit /etc/motion/motion.conf
change daemon on (from "off")
stream_localhost off (from "on")
framerate 100 (from "2")
stream_maxrate 10 (from "1")
$ service motion start
$ motion start
In case to stop camera:
$ motion stop
$ service motion stop
Open web browser, input address: 192.168.1.71:8081 -> camera image should be on web browser (note: 192.168.1.71 is Raspberry IP address)
Make Local Server
$ sudo apt-get install apache2 php5 libapache2-mod-php5
If everything is OK, local web will display in Web Browser after input address 192.168.1.71/index.html
This "index.html" is saved in /var/www/html/
Put "camera" and "IO Control" to Local Server
On step 1, camera image is on stream (192.168.1.71:8081)
On step 2, a local web server is made.
So an php page is made in Local server to load camera stream, meanwhile this php page also have 2 button (turn left/right) to control camera
For easy, whole project is save at this link (google share)
Take above files, extract it, then save all files and folder into /var/www/html/
Install Hardware
![6.JPG](/proxy/?url=https://content.instructables.com/FXN/LHBJ/ITKLLSBU/FXNLHBJITKLLSBU.jpg&filename=6.JPG)
![5.JPG](/proxy/?url=https://content.instructables.com/FY6/W8EB/ITKLLSB8/FY6W8EBITKLLSB8.jpg&filename=5.JPG)
![4.JPG](/proxy/?url=https://content.instructables.com/FEG/EJ9E/ITKLLSB1/FEGEJ9EITKLLSB1.jpg&filename=4.JPG)
![3.JPG](/proxy/?url=https://content.instructables.com/F47/JH9C/ITKLLSAH/F47JH9CITKLLSAH.jpg&filename=3.JPG)
![8 hardware.PNG](/proxy/?url=https://content.instructables.com/FCQ/OMLR/ITKLLSD1/FCQOMLRITKLLSD1.png&filename=8 hardware.PNG)
GPIO of Raspberry (GPIO_0, GPIO_7, GND) is used to control Motor driver (H-Bridge L298N)
Make camera base, install them all together as picture.
Test It!
![1.png](/proxy/?url=https://content.instructables.com/F41/QZER/ITKLLSA8/F41QZERITKLLSA8.png&filename=1.png)
Open web browser, input address 192.168.1.71/camera.php
Now we can test it, and see result