Skip to content

LegoChicken/WebControlledRobot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi CamJam EduKit 3 Web Controlled Robot With Video Stream

Raspberry Pi Robot that can be controlled via a website with a live streaming webcam using Flask

Adapted from James Poole's and Pablo Rogina's projects with changes as follows:

Developed using VS Code with Visual Studio Code Remote - SSH extension, Python extension and Code Spell Checker extension.

Using VS Code (optional)

VS Code can remotely develop on the Pi, but it doesn't work on the Pi Zero. Setup by:

Installing Raspberry Pi Camera

https://www.raspberrypi.org/documentation/usage/camera/raspicam/raspistill.md 'raspistill --help' todo finish

Installing MJPG-streamer

Based on Michel Deslierres' instructions and mjpg-streamer:

  • sudo apt-get install cmake libjpeg8-dev
  • sudo apt-get install gcc g++
  • cd
  • git clone git@github.com:jacksonliam/mjpg-streamer.git
  • cd mjpg-streamer/mjpg-streamer-experimental/
  • make
  • sudo make install

Get help with the Raspberry Pi input plug in: ` Test with:

  • mjpg_streamer -i "input_raspicam.so -hf -vf -fps 10" -o "output_http.so -w /usr/local/share/mjpg-streamer/www/" &
  • http:\\<pi address>:8080/?action=stream
  • kill %1

Get input & output option help:

  • mjpg_streamer -i "input_raspicam.so --help"
  • mjpg_streamer -0 "output_http.so --help"

Important raspicam input parameters:

  • [-fps | --framerate]...: set video framerate, default 5 frame/sec

Installing WebControlledRobot

From https://github.com/LegoChicken/WebControlledRobot:

  • cd
  • git clone git@github.com:LegoChicken/WebControlledRobot.git
  • cd WebControlledRobot
  • chmod a+rx app.py # Make executable

Running the robot

  • ./app.py

To do

  • Give a fixed size to the web stream.
  • Improve LEGO strength
  • Document camera above

About

Raspberry Pi Robot that can be controlled via a website with a live streaming webcam

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.5%
  • HTML 37.5%