james-c / raspberry_pi_camera_bot

Dawn Robotics camera bot code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the code for a Raspberry Pi based camera robot. The robot's motors are driven by an Arduino compatible Dagu Mini Driver board. Tornado is used to provide a web interface for the robot which allows the robot to be driven around whilst streaming images back from the Raspberry Pi's camera.

Installing

This code has the following dependencies

  • Your Raspberry Pi must have its camera enabled
  • mjpg-streamer - a good tutorial is here
  • PySerial, Tornado, and Ino

install with

sudo apt-get update
sudo apt-get install python-pip python-dev python-serial
sudo pip install tornado ino

install with

git clone https://github.com/mrjoes/sockjs-tornado.git
cd sockjs-tornado
sudo python setup.py install

Finally, clone this repository by running

git clone https://bitbucket.org/DawnRobotics/raspberry_pi_camera_bot.git   

Running

Start the server by running

cd raspberry_pi_camera_bot
sudo ./robot_web_server.py

Alternatively, get the server to start when the Raspberry Pi boots by running

sudo cp init.d/robot_web_server /etc/init.d/robot_web_server
sudo chmod a+x /etc/init.d/robot_web_server
sudo update-rc.d robot_web_server defaults

About

Dawn Robotics camera bot code

License:Other


Languages

Language:Python 48.9%Language:C++ 14.2%Language:Arduino 12.4%Language:HTML 11.7%Language:CSS 4.4%Language:JavaScript 3.9%Language:C 3.8%Language:Shell 0.6%