Author Options:

Remote control cars over the internet (telepresence) Answered

I came across this site with 2 RC cars that can be controlled freely over the internet.

I want to make one of these setups, but I don’t know exactly how to do the codeing.

I got everything external under control. I am going to use the 25 pin printer parallel port. The only problem I have is trying to get a client pc on a webpage to communicate with my computer then to its serial port.

So I need some help with the following...
1. A webpage with buttons to control a program on the host.
2. A program on the host to control a parallel port.

I want a webpage to have 12 buttons, two sets of 6. One to control car 1 and the other for car 2. Each set will have the following keys.
forward left,
forward right,
back left,
back right.
(Or possibly a set of 6 buttons with a drop down menu to select the car to control.)

I can use ubuntu or Windows, doesn’t matter.

So if someone could guide me through the webpage makeing, communication to the host, and the host to the parallel port, I would greatly appreciate it.

Here is a link that you might find useful.

Update: I think the site at the top states that it uses Ubuntu and Apache.
Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.2 with Suhosin-Patch Server at rajesh.homelinux.org Port 80


I've just got finished with this project. I used an Arduino UNO along with an Ethernet Shield to the control the car over the internet. Here's the URL for anyone interested. The documentation is fairly detailed.



6 years ago

Why not just buy 39 dollar ip webcam with a moving base and hack it then use your droid as an on board wifi hot spot and run it all on 3g or 4g go any were verizion covers

Look at this folks - a real 24/7 working unit:

Hi folks, I'm one of the site mods at the RC-Carduino site.  A couple of quick things:

1) we use an arduino b/c it was the quickest/easiest way to get the webserver talking to the micro-controller (and it's only $30 for a dedicated arduino for this project - this is  a long term project for us so $30 is a small investment)

2)remote server is no problem - just forward the HTTP requests to the local machine that's connected to the arduino.

3)here's a link to the code to talk to the arduino from another program:
in ubuntu make sure the apache user is part of the 'dialout' group to talk to the serial port. - another option is to use a serial proxy as described on the arduino.cc website. (we haven't tried that yet).  Design a simple protocol (ours uses single ascii characters for each movement direction - easy and we can use a switch/case statement to interpret them quickly on the arduino)

If you want to be energy efficient, you'll want to control the lights with the arduino - get a "Automatic plug-in Light Control" - made by GE, available at walmart for $6.98 in the do-it-yourself section.  tape on an led over the light sensor - hook up the led to be normally on - and trun the led off when you want power to the lamp.  See this instructable for some details - but we don't recommend taking apart the light control like they do - it's unnecessary and potentially unsafe.

Happy Hacking

I'm sort of new to the C lanuage stuff. I olny know visuial basic.

also, what program should i use to make the webpage?

you don't need to know c for the ardunio-serial program  - you just have to be able to compile the program. If you're using linux, the gcc complier will be what you need and the todbot blog has the directions on how to complie it.

as for the arduino programming - the tutorials on the arduino.cc website are all you need.  Look for the switch/case tutorial, the Led blink tutorial (truing an led on and off is the same as turning a witch on and off program-wise).  And the Serial prot tutorial.  Install the arduino IDE and look through the example sketches (that's what arduino programs are called).

You can use any program to write a webpage - a text editor works just as well as an IDE for that part.  "use your google-fu grasshopper"...

Ok,  guess I will use the arduino. but still prefer to do it with a parallel port.

i reccomend you use an arduino, it'll be much simpler that way.

I prefer not to use the arduino even though I already have one because 1. Having it only be used for this wouldn’t let me use it for other projects. I know I can just buy another one but still,… 2. I already got all the parts for the Printer Port to car controller circuit. I’ll try to start the circuit building tomorrow.

oh well then...because an arduino would be a computer itself, from the computer you can simply send commands via serial and have the arduino do the hard work, But its too late as you said :P
I may try that some time...

Just so everyone knows, I will be using ubuntu for the host

Hello, I am building a similar product with arduino, processing, php, and mysql.

The project at rajesh.homelinux.org/  is called Carduino because it uses an arduino. Do you want to build this project without using an Arduino?


Most of the web control examples on the arduino/processing site only work with a localhost and not out on the www. Anyway I will keep you posted and possibly add an instructables.com post after I get everything sorted.

Keep us updated on your progress... thanks.

Ooh, Can you release the source?
All i need is the processing and PHP(what is mysql used for?) But if you are nice you can release it all.(would save me some time) :D

I could rewrite it(well some parts) to let me control it from a remote server, I got the idea in my head. ;)

That's cool. Too bad they are off for the night. I'll try tomorrow.

This part:    1. A webpage with buttons to control a program on the host.

Isn't so hard. A bit of Scripting will take care of that.

But, number 2 will be more difficult as you do need something to interface with your mechanism.

The paralle port will connect to the contact pads on the RC car controlers circuits, 4 each.

I know it is hard to see the circuit I built but take a look at it, (2nd picture on the picture list)