A computer is a very handy thing to use in your robots.

If you start listing all the features that can be used for robotic purposes you'll find that it is cheaper to buy a netbook than buying LCD, wifi and bluetooth modules, cameras, speech synthesizer modules, keypads, memory card readers, speakers and many other stuff.

Thats why I decided to make this platform to my netbook.  To let the computer control the motors, I tried two different ways: Firstly I used a arduino duemilanove with two motor driver boards , but then I found that it would be much easier if I just used a motoruino .

With this I could create lots of different applications that let my computer follow certain colors, follow human faces, detect flames, drive around the house avoiding walls, be remote controlled through the internet or using a wiimote, and the list of possibilities is almost endless. 

I have been developing this application, presented on the movie, which is called ComputerOnWheelsController.
You can learn more and download it at its page: http://www.franciscodias.net/applications/openframeworks/computer-on-wheels-controller

Or, if you prefer processing, you can find and download some examples that I've already done at my website: http://www.franciscodias.net/processing-applications

Step 1: Gather the materials

This is what you'll need:
    - 1x Box
    - 2x Motors, wheels  and supports
    - 1x Third wheel
    - 1x Battery pack 
    - Some wires and jumpers


  If you decide to use the motoruino you'll also need:
     - Motoruino
     - FDTI Cable


  If you prefer the arduino you'll need:
     - Arduino
     - USB A/B Cable
     - Dual Motor Driver, I used these . You can use whatever you want, for example, the L293D is very easy to use. Check the attached breadboard image.

<p>to make it smaller replace the laptop with a raspberry pi</p>
heiiii.... dont you need TTL logic converter... like max232???????? when connecting laptop with the microcintroller??????
The Arduinos that used have a FDTI chip ;-)
but im using a third party board with h-bridge....!!! which one is best for usart!!!
Is it arduino based?
noooo.. its not arduino based! and do you have the same code for avr studio.. or any hexfile of this code?????? if yes plzz share it!!!
I only have the arduino code, but it is very very simple. <br>It should be easy for you to replicate it. It only has to receive the chars from the serial port and actuate the motors accordingly. <br>Try to search for serial port communication examples...
Hey Guys... I'm using Arduino Diecimila... Selected correct Board and Serial port... But still i can't upload the program.I'm getting the following Error<br><br>***avrdude: stk500_getsync(): not in sync: resp=0x00 <br>avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51***<br> i'm searching in lots of Forums for 6 days but still i cant find the solution... can anyone help me out of this... Thanks in Advance...
Same thing has happened to me repeatedly with my uno i have no idea what to do.
Insane! I've seen some amazing things here on instructables but this is by far my favourite!<br><br>I wanna give this a go i've always been into robots. But i don't know where to get all the parts from... (i'm in the UK).
Thanks for the comment :D<br> You can get the motoruino directly from guibot (<a href="http://www.guibot.pt/motoruino/">http://www.guibot.pt/motoruino/</a>), just leave them a message.<br> The rest of the parts aren't so specific, you can get any motors, battery and wheels. You should be able to find this kind of thing on ebay, for example.<br> <br> If you're interested, I've been&nbsp;collaborating in the development of a&nbsp;similar platform, but much more powerful and capable:&nbsp;<a href="http://magabot.cc/dp/magabot">http://magabot.cc/dp/magabot</a>. Have a look :)
Cool Thanks!
i want a short help from u .is there any way i can controll this robo with psp a well as tag laptop's camera as to psp's screen<br>plese help ,as i want this to exebit this bot in exebition.<br>thanx<br>
Have also a look here:<br> <a href="http://www.instructables.com/community/PSP-REMOTE-COMPUTER-CONTROL/">http://www.instructables.com/community/PSP-REMOTE-COMPUTER-CONTROL/</a><br> <a href="http://www.instructables.com/id/Using-PSP-as-computer-Joystick-and-then-controllin/">http://www.instructables.com/id/Using-PSP-as-computer-Joystick-and-then-controllin/</a><br>
I've never tried it, but as it says on this Portuguese topic (<a href="http://translate.google.pt/translate?js=n&prev=_t&hl=pt-PT&ie=UTF-8&layout=2&eotf=1&sl=pt&tl=en&u=http%3A%2F%2Flusorobotica.com%2Findex.php%3Ftopic%3D3747.msg41461%23msg41461">http://translate.google.pt/translate?js=n&amp;prev=_t&amp;hl=pt-PT&amp;ie=UTF-8&amp;layout=2&amp;eotf=1&amp;sl=pt&amp;tl=en&amp;u=http%3A%2F%2Flusorobotica.com%2Findex.php%3Ftopic%3D3747.msg41461%23msg41461</a>), you may find these links helpful: <ul> <li> <a href="http://nil.rpc1.org/psp/remote.html">http://nil.rpc1.org/psp/remote.html</a> <li> <a href="http://mc.pp.se/psp/phones.xhtml">http://mc.pp.se/psp/phones.xhtml</a> </ul> Anyway, why don't you create a web app like this one, for example:&nbsp;<a href="http://drivefarrusco.appspot.com/">http://drivefarrusco.appspot.com/</a>&nbsp;?
What this mean? What I did wrong?<br> <br> <br> avrdude: stk500_getsync( ): not in sync: resp=0x00&nbsp;<br> avrdude: stk500_disable ( ): protocol error, expect=0x14, resp=0x51
I'm not sure. When I have that error I usually disconnect the board from the PC and reconnect it again. <br>But try to go to that link and see if it is useful.
My broblem was board choice...<br> My Motoruino board works with Arduino Duemilanove...<br> I first try choose Arduino Diecimila, but it's not accept that...
Hello! <br><br>Assuming it might be the FTDI cable please confirm that you are connecting the black cable on the same side where it says GND.<br><br>Confirm also you are selecting &quot;Arduino Duemilanove or Nano w/ ATmega328&quot;.<br><br>Please let me know if it worked.<br><br><br>
Yeah! It's working now... :)
Great!! ;)
Like I told you before, I choose the &quot;Arduino Duemilanove or Nano w/ ATmega328&quot;.<br><br>Are you sure that the problem isn't from the FTDI cable?
Yeah, my bad... I have dyslexia... :D<br> And &quot;broblem&quot; mean problem... :b<br> But now everything working perfectly...<br> FTDI cable working very well too. :)<br> Now I try to do that same project without laptop...&nbsp;<br> Some kind of wireless thing... I post some pictures later...&nbsp;
i have another idea to use ic l298d motor drivers<br>what correct ? <br><br><br>plz reply
On the picture you have a L298N. But yes, you can use it.
i have L298N motor board 1 in 2 dc geared motor !!! <br><br>my robot started working thank you
Nice!<br>Send me some photos or videos so I can post them on this 'ible ;)
Thanks for informations! :) <br> <br>My project is almost same as yours, but I add mouse controlled servos for webcam's rotation... <br> <br>http://www.youtube.com/watch?v=lFvQRWXX24U
what software you used to programming Motoruino..? <br>Can I use Arduino software to programming Motoruino...? :)
Yes, of course ;)<br> Have a look here:&nbsp;<a href="http://www.guibot.pt/faq/#caracteristicas">http://www.guibot.pt/faq/#caracteristicas</a><br> &quot;Besides the lack of the usb connection (you will need a TTL-USB converter described below), the <strong>Motoruino is 100% compatible with the Arduino Diecimila</strong>, including the pin position, so you can attach any compatible arduino Shield.&quot;<br> <br> On the arduino IDE you just have to choose &quot;Arduino Duemilanove or Nano w/ ATmega328&quot;.<br>
while creating face tracker ,i am comming across some problem i have added <br>pface detect<br>pface detect.dll<br>controlp5<br>jmyron<br>jmyron.dll<br>and folowed every step respectively but on the message bar an error is coming<br>that-............................./pfacedetect.dll -cannot find dependent file .<br>i am using win 7 32-bit. can u tell me where i am going wrong .<br>thankyou<br>
I'm not sure if it works with 7, I've only tested with XP. Where have you added that files?
i have addrd these files in the skech
does versions effect the making of application
I don't know
which version of processing r u using <br>
hai my robo started working thank you man..............i want to know that is there any way we can control robot through our voice
Cool! <br>Post a video here if you can :)<br>Yes, I've found this (https://code.google.com/p/ofxasr/) but I haven't had any time to integrate it with the COWC (ComputerOnWheelsController) application. <br>I may be able to do it next week when I finish my exams, but try to do it yourself!
forgive me if i am slily <br>where did you buy the motor <br>;)
&quot;They were from another robot, which I bought when I participated in this event, some years ago: http://www.roboparty.org/en/index.php?link=roboparty&quot;<br><br>PS: Read the older comments, your answers were already there ;-)
hey in the video you show iPhone controlling the robot <br>can you give me link for it<br><br>thanks
I've done that using this application (http://www.franciscodias.net/applications/openframeworks/computer-on-wheels-controller) and TeamViewer (http://www.teamviewer.com/en/) to control the computer with the iPhone.
where should v connect battery connection in h bridge l293d<br><br>
Like this, for example:<br><a href="http://www.flickr.com/photos/62941048@N05/5839612262/" title="Controlling two motors with L293D and a battery just for them by XicoMBD, on Flickr"><img alt="Controlling two motors with L293D and a battery just for them" height="309" src="http://farm6.static.flickr.com/5221/5839612262_e87f7eaf5f.jpg" width="500"></a>
thanks bro it worked perfectly<br><br>good response also<br><br>only one small problem wen i turn right it turns lift ans wen i turn lift it turns right
Good to know! Post a video if you can/want :D<br><br>That is easy to correct, in the code, replace &quot;case 'a':&quot; with &quot;case 'd':&quot; and &quot;case 'd':&quot; with &quot;case 'a':&quot;.
thanks for replying<br><br>i will show you the photo of my L298N arduino motor shield <br><br>can u help me to connect it<br><br>http://imageshack.us/photo/my-images/193/20110614001.jpg/<br><br>http://imageshack.us/photo/my-images/193/20110614003.jpg/<br><br>this is the motor shield
Connect one motor to the terminal which says &quot;Motor A&quot;, the other to &quot;Motor B&quot;, and connect the battery to its terminal.<br>Upload this code to the arduino: http://www.franciscodias.net/downloads/SerialMotors.pde?attredirects=0&amp;d=1
hi<br>can i use L298N arduino motor shield

About This Instructable


43 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: