Remote control cars over the internet (telepresence)
rajesh.homelinux.org/
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,
back,
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.
http://www.epanorama.net/circuits/parallel_output.html
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
22
comments
|
Add Comment
|
Thank you!!™Êûš
http://www.controlmeonline.com/
http://www.instructables.com/community/Remote-control-cars-over-the-internet-UPDATE/
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:
http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/
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
also, what program should i use to make the webpage?
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"...
I may try that some time...
http://www.epanorama.net/circuits/parallel_output.html
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?
www.arduino.cc
www.processing.org
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.
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. ;)
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.
If you look at the bottom half of this webpage then you can see that there are multiple ways to do this.
http://www.epanorama.net/circuits/parallel_output.html
I know it is hard to see the circuit I built but take a look at it, (2nd picture on the picture list)
![]() |



















Vancouver Mini Maker Faire 2012
Rebuilding NordicTrack ski machine drive rollers
Looking for New Zealand-based Instructables authors for conference on August 27 in Wellington
Call to makers - Brighton Mini Maker Faire
Milk Crates - not as green as you think
TEDxBaghdad - Iraq - violence, dust storms and open sourced manufacturing
UK Mini Maker Faire - The Derby Silk Mill - New Poster to Share!







