Raspberry pi - Remote control camera



This project will show how to turn left/right camera, as well as put camera image (stream) into Local web




Hardware needed:
1. Raspberry Pi https://amzn.to/2VAq8Gl
2. USB camera https://amzn.to/2T6OGoM

Overview steps:
1. Put stream camera into Local web (using "motion")
2. Make Local server
3. Put camera, IO control to Local server
4. Install hardware






1. 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 order to stop:
$ 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)

2. Make Local server
$ sudo apt-get install apache2 php5 libapache2-mod-php5
If everything is OK, local web will display in Web Browser as following:

This "index.html" is saved in /var/www/html/

3. 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/

4. Install hardware
GPIO of Raspberry (GPIO_0, GPIO_7, GND) is used to control Motor driver (H-Bridge L298N)

Connect system like this:


Make a camera base with Motor (gear type)

Put them together


That's it! Now camera can turn left/right everywhere using Local web (computer or phone)
Open web browser, input address 192.168.1.71/camera.php

Now, camera can remote control rotate:





You might also like:
1. Raspberry pi - remote control car camera
This project will make remote car control which can view camera attached on car.
It will need:
Hardware side:
1. Car toy
2. Two gear motor
3. Raspberry B+
4. Wifi dongle
5. Power bank (10A) (for Raspberry board)
6. Battery (for gear motor)
7. H-bridge circuit (L298N)


2. Rasbperry pi - FFmpeg install and stream to web
Following tutorial will show how to install FFmpeg into Raspberry Pi, then stream video to Local web which can be access through Computer/Phone/Tablet





8 comments:

  1. Is it possible to record a vĂ­deo into a usb memory stick ?

    ReplyDelete
    Replies
    1. no, this will not record into usb memory stick

      Delete
  2. Very good post. I simply came across your blog and wanted to express that I have really enjoyed reading your blog posts. In whatever way I'll be subscribing to your feed and I hope you post again soon.Spanish interpreter milwaukee

    ReplyDelete
  3. Easily, the is obviously the very best topic with this registry related issue. I remain in your conclusions and will eagerly enjoy your next updates. Just saying thanks won't you should be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to keep informed of any updates.video remote interpreting services

    ReplyDelete
  4. Great post. I was previously checking constantly this weblog and I'm impressed! Extremely useful information specially the closing part :) I maintain such information much. I used to be seeking this specific information for a lengthy time. Thanks and best of luck. my sites:spanish interpreter madison

    ReplyDelete
  5. This doesn't work for me. When I go to (pi-ip-address):8081, I get a grey screen that says: UNABLE TO OPEN VIDEO DEVICE.

    ReplyDelete
  6. I discovered your blog website on google and test a number of of your early posts. Continue to maintain up the very good operate. I just further up your RSS feed to my MSN Information Reader. Searching for ahead to reading more from you in a while!… real money casino

    ReplyDelete
  7. Positive site, where did u produce the data on this posting? I'm pleased I came across it though, ill be checking back soon to learn what additional posts you include.video remote interpreting services

    ReplyDelete