WebIOPi in the MagPi : Cambot tutorial

For people who follow the MagPi, you certainly see my WebIOPi article in the two last issues. Unfortunately, my article has been cut in two parts, and the second part has just been published in the march issue.

In the article, I explain how to control a L293 H-Bridge connected to GPIOs using WebIOPi and few macros. Then, I give instructions to add a webcam stream inside the webpage. You will also find few tricks to use a Pi on a battery using a voltage regulator.

Assembling these stuff together allow to build a web remote controlled camera robot, a rover if you prefer.

You can find another article that uses WebIOPi with a Raspberry and an Arduino to build another rover. You can see the result in video :

7 thoughts on “WebIOPi in the MagPi : Cambot tutorial

  1. Dear Erik,
    I just wanted to thank you for the excellent article! This is the one thing I have wanted to do with my Pi for ages! The article is well explained and even a beginner like me can start to wade through this process to produce something equally as exciting. I will try to get your example working first and then try to port it to a robot arm project.
    currently struggling to get mjpg-streamer and webiopi to run together.
    I only manage to get the mjpg to run in the foreground and then cannot start the python script.
    I hope we get to see more articles from you in the future
    KR 7 Thanks for sharing!

  2. Thanks so much for this article. This is exactly what I was looking for.

    However, I’m having an issue. I have everything successfully installed, and when I run mjpg-streamer on its own, it works great. However, once I launch my webiopi server, mjpg-streamer stops responding. Shutting down the webiopi server will cause my video feed to resume.

    Any idea what the problem could be? They’re both using different port numbers and I tried changing them around. But no luck.

    • When I followed this tutorial, I started my python script but I get an empty webpage when I open the html file. What may be wrong there? I followed the instructions in the cambot.zip file

  3. I meant to post it here. I am having the very same text. The python script starts up and shows that the server is running but my webpage comes blank. I really am clueless here. Please help me. and great work with WebIOPi.