Here you will learn how to create an internet controlled robot or other installation using Livebots.

Livebots is a project I'm working on which consists of an easy to use website for all the robots that people can interact with through the internet.

As an example I will be using a simple Arduino UNO with a LED connected to an Raspberry Pi to show you the concept, but of course you can use anything that can be receive messages by the serial port and any computer you would like.

Here is it:

And here is another example:


Step 1: Program the arduino

Attached is a simple arduino program that reads the messages form the serial port and lights the LED when they contain "HIGH" and turns it off when "LOW".

Feel free to adapt it to your own needs.
Whoa! Pretty nice man! =D <br>Is there any way of controlling te Arduino by USB over the internet? Actually, I don't have a RapberryPi...
<p>you need a pi if you like Linux I am running raspbian wheezy (similar to Debian)</p>
ok thank you!
<p>you're welcome</p>
Haha this is a late reply. <br>Use the ethernet shield. It's not USB, but you can control it without another computer.
And this is a late thank you! ^^
Ok then,gotta try it someday. Thank you!
in step 6' <br>6. Make the project: <br>cd mjpg-streamer/mjpg-streamer <br> <br>And i got error: <br>pi@raspberrypi ~ $ cd mjpg-streamer/mjpg-streamer <br>bash: cd: mjpg-streamer/mjpg-streamer: No such file or directory <br> <br>I can only typed cd mjpg-streamer/ <br>Then i went on to &quot;make&quot; and still getting error <br>pi@raspberrypi ~/mjpg-streamer $ make <br>make: *** No targets specified and no makefile found. Stop. <br> <br>Can u help us to fix this problem? <br>
What happens when you type ls?
I'm having the same issue as supra_2009: <br>make: *** No targets specified and no makefile found. Stop. <br>If I type ls at the command line I get <br>index.html <br>
Does webcam driver has to be installed or not?
Can I put step 1 into step 2 folder? <br>
pi@raspberrypi ~ $ cd mjpg-streamer <br>pi@raspberrypi ~/mjpg-streamer $ ls <br>input_file.so mjpg-streamer.sh output_file.so <br>input_uvc.so mjpg-streamer.sh.orig output_http.so <br>mjpg-streamer.log mjpg_streamer output_udp.so <br>
this worked great for me. Do you know how to have the cam start at boot?
Do u installed webcam driver?
Try to adapt this tutorial maybe:http://www.raspberrypi-spy.co.uk/2013/07/running-a-python-script-at-boot-using-cron/
This is the best bit of info I have found on this.Thank you. <br> <br>The repository has moved though. It can be found at https://svn.code.sf.net/p/mjpg-streamer/code/ <br> <br>I also found this page useful to get mjpg-streamer running at boot. <br>http://www.rudiswiki.de/wiki/DockStarWebCamStream
This is the best bit of info I have found on this. Thank you. <br> <br>The repository has moved though it can be found at https://svn.code.sf.net/p/mjpg-streamer/code/ <br> <br>I also found this page useful to get mjpg-streamer running on boot.
Nice project. I came across your Instructable after I Googled how to install mjpg-streamer and your instructions worked perfectly, thank you for detailing it step by step. <br>Off to work on my version of telepresence :)
Very usefull. See more about creating sites http://saitomaster.com
Just had a go with the one with rolling eyes, great fun. Will there be an instructable for puppet bob one day?
I didn't think it was necessary, you just need to print it (<a href="http://www.thingiverse.com/thing:43708" rel="nofollow">http://www.thingiverse.com/thing:43708</a>), mount it, connect to an arduino and add it to Livebots how it is described here :-)
Hello, <br>let me start by saying this is a great projects! I've been doing some work with a similar concept for a few years already. If you're interested you can check out my old instructable at http://www.instructables.com/id/Arduino-Candygrabber/ . In the last few months I have begun to work on the project again. This time I did everything in Red5(the queue and the shared objects). <br>I'm interested which technology you used for Livebots? Of course, if you can share that info.
Awesome work! For Livebots we used ASP.NET Razor, but basically when someone clicks the button we just create a html file that replaces the previous, like for example on <a href="http://livebots.cc/Robot/Message/23.html" rel="nofollow">http://livebots.cc/Robot/Message/23.html</a><br> <br> Don't you want to add your project to Livebots?
Nice, well it could be useful for some projects in my hacklab, though not for my project as I need very fast response time(under 100ms) and streaming video. Have you tested what is the speed/time it takes from somebody clicking a button in the browser until the command gets to the robot? <br>In my last iteration I'm writing a Java program for RaspberryPi that would connect to the red5 server directly, and allow it to control it's GPIO pins.
I've never tested it properly but should be around 1 second. <br> <br>However, the controls can be inside an iframe, so you can use whatever you want. <br> <br>Looking forward to your hacklab projects there ;-)
Would it be possible to host the livebots code on our own personal domain?
I'm not sure if I understood your question... <br> <br>You can have your controls on Livebots from your domain using an iframe. Is that what you want?
Yes, I suppose that would work
That's extraordinary ..Man!!! really cool stuff
this is so crazy cool!
By the way, I think it would be very funny if you make a maze.
That's one of the ideas I had, the problem is that I'm out of time for that, so I was willing that someone would do that instead of me. Are you up to the challenge? ;-)<br> <br> If you any more ideas for new robots you can share them and vote for others here:&nbsp;<a href="http://livebots.cc/ideas" rel="nofollow">http://livebots.cc/ideas</a>&nbsp;<br>
Man, this is sooooooooooo cool! <br> <br>p.s.: It's very funny to see that robot dancing like crazy a min after I have the link of this page sent to a friend.
nice job, man!!
Awesome job ! I remember years ago a university that had a small bulldozer in a sandbox you could control over the internet. That was way before webcams and Arduinos and easier ways to do it like we have now. I had a lot of fun playing with it during breaktimes. Thought it would be fun to set up something like that. I can't wait to see how far this can go .
That is EXTREMELY awesome. I am in awe. The interface is sleek and embeddable (is that a word?). I shall endeavor to follow this tutorial, though it may be difficult. I am in college and must conform to our network firewall.
Glad you enjoyed it! <br> <br>Yes, getting access to the mjpg stream through the firewall might be difficult. Although you can try to use services like UStream, Bambuser, Hangouts on Air, etc... <br> <br>Hope to see your bot online soon! ;-)
Which operating system do u use ?
On the raspberry I tried both with the Raspian Wheezy and the Adafruit's Occidentallis and the process was the same :-) <br> <br>We've also tested the python class in Windows, OSX, Ubuntu and Linux Mint and it worked everywhere.

About This Instructable


173 favorites

Bio: Hi, My name is Francisco Dias and I'm a student from Lisbon, Portugal. Have a look at my website: http://franciscodias.net/
More by XicoMBD: Create an internet controlled robot using Livebots Arduino controlled Ping Pong Balls Launcher Build a USB Orange Thrower Machine
Add instructable to: