Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 5th October 2007, 03:00 PM   (permalink)
Default How can i interface a controlled toy car to a computer?

Can anyone help me with a project?

I was thinking about interfacing a toy car to a computer port and then control the toy car's motion using keyboard input and using Visual Basic Program.

If I press the up arrow key the toy car will move forward If I press down it will move backwards, left if I press left arrow key and right if I press right arrow key.


Please help me

Sincerely,
andales
andales is offline   Reply With Quote
Old 5th October 2007, 05:23 PM   (permalink)
3v0
Default

Are you open to what type of computer port to use ?

It would be best to put a micro controller in the car. You will also need h-bridges to convert the control signals to levels that can run the motors.

It will be a lot of learning and fun (some misinformed would call it work) but it can be done.

The printer port could be used and would not require a micro controller. But you would have that massive cable to deal with.

Are you still interested ?

Last edited by 3v0; 5th October 2007 at 05:26 PM.
3v0 is offline   Reply With Quote
Old 6th October 2007, 02:12 AM   (permalink)
Default

I'm just guessing here, but I think those micro R/C cars have controls that are just switches (i.e. full left, full right, full forward, full reverse). I think it's the same deal with cheap R/C toys, with the exception of maybe a pot control for the throttle?

So to make it work without having a cable tethered to your computer, and with the least amount of parts, I'd say hack the R/C controller. Use the parallel port and interface that with the controller: transistors or h-bridges for the switches, and a programmable resistor for the pot.

Voila! Seems like an awesome project - good luck!

Last edited by Hank Fletcher; 6th October 2007 at 02:14 AM.
Hank Fletcher is offline   Reply With Quote
Old 7th October 2007, 12:11 AM   (permalink)
Default

Quote:
Originally Posted by 3v0
Are you still interested ?

yes of course. I am still interested. I will be using the parallel port. so What should be the configuration of the wires of the cable?what devices I shoould use?Do i need to use Max 232? can i have a schematics if possible?
andales is offline   Reply With Quote
Old 7th October 2007, 03:35 AM   (permalink)
Default

Quote:
Originally Posted by andales
yes of course. I am still interested. I will be using the parallel port. so What should be the configuration of the wires of the cable?what devices I shoould use?Do i need to use Max 232? can i have a schematics if possible?
The design and parts you need will largely be dictated by what you have to begin with, and what your plan for hacking the toy is. You don't need a MAX232 to interface your parallel port with anything (the MAX232 is for serial ports). The output (and input, if you want to program some sort of feedback into your toy) from the parallel port will be fine as it is. Read up on the parallel port if that's what you're going to use:
http://www.beyondlogic.org/ecp/ecp.htm

What's the toy car you're using? I still say hacking an existing R/C toy is the best way to go, but maybe the toy you have doesn't even have R/C to begin with? Even given the extra work it would take, I'd highly recommend adding an R/C component to your design over trying to plug a parallel port cable directly into your toy. How fun is that going to be, dragging a thick cable a whole three metres (because I don't think the parallel port is good for much longer than that) across your desk?
Hank Fletcher is offline   Reply With Quote
Old 7th October 2007, 04:03 AM   (permalink)
3v0
Default

RC would would be an improvement. IFF you do not want to go with RC

They used to sell toy cars and such with a remote that was connected to the toy with wires. To use one of these you would just replace the mechanical switches with transistors or relays controlled by the port.
3v0 is offline   Reply With Quote
Old 8th October 2007, 04:13 PM   (permalink)
Default

Quote:
Originally Posted by Hank Fletcher
What's the toy car you're using?
I was thinking about two kinds of toy cars, the bounded and the radio controlled toy cars. First I want to be able to control the bounded type and then the Radio Controlled.

Can you give me all the information includin schematics and VB source code?
andales is offline   Reply With Quote
Old 8th October 2007, 05:48 PM   (permalink)
Default

Quote:
Originally Posted by andales
Can you give me all the information includin schematics and VB source code?
Would if I could, but for starters I've never used VB (I use Liberty Basic), although I know many have successfully (and I'm presuming fairly easily) used VB to send and received parallel port signals. Read up on the parallel port in VB, the parts of the port in the link I posted, get some LEDs, and start trying to send some signals through the data port. Word of advice: be sure to set the data port for sending rather than receiving signals before you connect your LEDs.

The other reason I can't give you all the information you need is because I have no idea what you have to begin with. Get a cheap RC car, take it apart and put it back together again. By the time you've done that and read up on the parallel port, you should have all the answers you need.

Last edited by Hank Fletcher; 8th October 2007 at 05:57 PM.
Hank Fletcher is offline   Reply With Quote
Old 8th October 2007, 06:14 PM   (permalink)
Default

Quote:
Originally Posted by andales
I was thinking about two kinds of toy cars, the bounded and the radio controlled toy cars. First I want to be able to control the bounded type and then the Radio Controlled.

Can you give me all the information includin schematics and VB source code?
hi,
Look at this zip, it will give you an insight to the parallel port, theres also some of my VB source code you can use.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th July 2008 at 11:22 AM.
ericgibbs is offline   Reply With Quote
Old 12th October 2007, 07:06 AM   (permalink)
Default

Quote:
Originally Posted by 3v0
To use one of these you would just replace the mechanical switches with transistors or relays controlled by the port.
Can you give me the schematics for it?

I have bought two types of Toy cars. One is bounded and the other is wireless.

So how do I replace the mechanical switches with transistors or relays controlled by the port.? Can I have schematics?
andales is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Computer Controlled Router Monitor (switch) dannix General Electronics Chat 2 16th July 2007 07:21 PM
computer controlled power switch Michael Daly Electronic Projects Design/Ideas/Reviews 2 25th June 2007 06:14 PM
RC car controlled via computer drage Electronic Projects Design/Ideas/Reviews 6 22nd October 2006 11:37 AM
IR computer interface bogdanfirst General Electronics Chat 3 24th January 2004 09:02 PM
computer printer port interface bogdanfirst Electronic Projects Design/Ideas/Reviews 10 26th September 2003 07:27 AM



All times are GMT. The time now is 04:45 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.