Fitness Racer: PC Control of an RC Car
An anonymous reader writes "This project gives step-by-step instructions + source for connecting a cheap RC car to your parallel port and driving it around with a Dance Dance Revolution pad (or joystick). A fun way to make an old toy fun for another few hours, and another way to pretend that reading Slashdot may eventually lead to body movement."
Give it WiFi and a webcam and I'm sure it would be even more fun. ;)
Im dreaming ofa big bndwdth, That can resist the
...to OSS racing games. :)
tasks(723) drafts(105) languages(484) examples(29106)
and yet more ways to waste time..
somehow I remember time being at a premium..
seems a long time ago now..
time to get me an RC car..
anime+manga together at last.. in real time.
This page explains how to cheaply connect a Dance Dance Revolution pad to an RC car via your PC, for literally minutes of racing enjoyment. Even more fun than the "race tracks" we played with in elementary school, where all you actually did was hold down a button and wait for your car to fall off the track.
:
:
:
:
The general approach taken here is to use the parallel port to flip the switches in the RC controller, thereby avoiding all the radio stuff. A few transistors are required to help the 3.3V parallel port pull down some pins on the 9V RC car controller.
Source code is included below... it actually just uses DirectInput to talk to the pad, so if you're burning to drive an RC car around with your PC joystick or keyboard, that works too. If you're using this approach, the software also tries to pulse the pins on the parallel port to give you some crude analog speed control.
What you'll need
A Dance Dance Revolution pad. I recommend buying one of the soft PlayStation pads, which run about $20, and nailing it down to a big piece of plywood, as is illustrated in the image to the left. The soft pads tend to slide around and/or rip apart without support, and the hard pads are expensive.
A cheap-ass RC car... the kind that actually has no analog steering, just four switches for forward, back, left, and right. This includes just about any car you get for $20 or less. I went with the fabulous Nikko Octane.
A few electronic components, namely:
# A DB-25-M connector
# Four resistors, about 500ohms
# Four NPN transistors
# Wire+solder
Total cost ~$6 at Radio Shack. I also used a breadboard to make nicer pictures, although this project is probably appropriate for the solder-in-the-air-and-cover-it-in-duct-tape-or-glu e approach.
Connecting the hardware
First you'll need to open up the controller and take a look at the switches. The buttons shown here each have four terminals on them, but you only need to make one connection to each button. If you're using a different car than I am, you'll need to put a voltmeter on the terminals to find out which ones you care about. What you want is a terminal that is normally sitting at 9V relative to the battery ground, but goes to 0V when you press the button. For this particular controller, there were two terminals on each button that fit this description, and I picked one arbitrarily on each button. If you're looking at the controller as shown in the image to the left, I chose
# The upper-right terminal on the "forward" button
# The lower-right terminal on the "reverse" button
# The lower-left terminal on the "left" button
# The upper-right terminal on the "right" button
Solder about 8 inches of wire to each of these terminals, and about 8" of wire to the battery ground.
Now we connect all the components, according to the schematic show on the left. The important points are
# Battery ground on the controller needs to get connected to ground on the parallel port
# The emitter from each transistor goes to the common ground
# The collector on each transistor goes to one of the terminals in the car controller
# The base on each transistor goes through a resistor to one of the parallel port data pins
The software expects the reverse, right, left, and forward switches to be on the parallel port's data 1, 2, 3, and 4 pins, respectively. Data 0 got left out because it was mean to the other children on the playground.
If you left enough wire between the components and the DB-25 connector, you can plug the whole mess right into the parallel port. I like to use an extension cable so I'm less likely to knock things out of my breadboard in the heat of my excitement about driving an RC car with my feet.
You'll also need to connect your DDR pad to your PC somehow and get it recognized as a game controller, assuming you actually want to use the
Im dreaming ofa big bndwdth, That can resist the
would be to conenct the remote to the parallel port, instead of the car. WTG, Michael!
driving it around with a Dance Dance Revolution pad (or joystick). A fun way to make an old toy fun for another few hours
This is Slashdot! The first coronaries will start after about 20 minutes.
OR a joystick?
Am I the only person that thinks controlling an R/C car with a DDR pad is retarded?
"You can drive this car with a wheel and pedals... OR you can control it using this jar of peanut butter and a hockey puck, wired to this monkey. "
My sig is blank, I typed this by hand.
another way to pretend that reading Slashdot may eventually lead to body movement.
All this scrolling and clicking and typing is a lot of movement for me already, you insensitive clod !
Maybe we deserve this world ?
Haha, I had a picture in my head of someone trying to drive round a little car with one of those awful, fat, stiff printer cables attached to the back. Silly me.
-3Suns
~~~~
The Revolution will be Slashdotted
Nintendo Power Pad > DDR pad. 'Nuff said.
"Hu, ho, ho-ah-oh-oh-oh. Hu, ho ho-ah-oh-oh-oh. Mario Paint! Whoaaa!"
It's led to body movement several times recently, as people have come upon the latest SCO story and laughed so hard that they had to get up off of the floor, back into their chairs...
That, or they've become so annoyed that they've actually gone outside to do something.
Do not look into laser with remaining eye.
. . . and another way to pretend that reading Slashdot may eventually lead to body movement.
Well, it would if the editors would accept more of my Natalie Portman stories, it would.
What else would the image be used for again?
Connect joystick. Pretend to use keyboard and joystick to play game. Watch crowd go crazy when the car is going round the room.
Did you submit this story to /. ?
Did you read the last few sentences? The transportation department is to blame for this one, they referred him to the FBI.
When in highschool My friend had a car that was the perfect size to make into a remotely Controled Real Car.. I would have Rhinolined the whole vehicle. Take it out to nowhere and Had fun Just watching a real car going, without a driver. we never did it... If I find a small vehicle I may do it Then make a webpage complete with my in handcuffs (ok maybe not) But hey maybe I could get that on slashdot. It would be halarious to see people look over on the highway at car with no driver. (In which case you really would get to see me in cuffs) Oh and for those wondering about safety I would of had a backup remote for brakes. The things you would do for the hell of it.
Because there isn't a story there. This is a case of the system working as intended. No rights were violated here. There is no cause for outrage.
The REAL jabber has the user id: 13196
What you do today will cost you a day of your life
How about doing that with a REAL car?
There's a growing sense that even if The Future comes,
most of us won't be able to afford it.
-- Lemmy
Try playing Gran Turismo 3 with Dance Dance Revolution pads. Against a drunk person, with said DDR pad.
Fun times, fun times.
Why yes I am paranoid! Thanks for asking!
For one of my senior-year classes at URI, we took apart the remote to a cheap car and did a similar trick of using transistors to simulate the switch-hitting.
We connected the transistors to the parallel port of a Motorola ColdFire eval board and wrote some software to program routes.
It would have been useful if the damn thing had any range whatsoever, but we spent a whole nine dollars on the car, so I'm not worried.
Version Number: V1.0
Revision Date: 10-21-2003
Patch(es) Replaced: None
Caveats: None
CVE Number(s): CAN-2003-4751
Tested Software:
Affected Software:
* Microsoft Windows 2000, Service Pack 2
* Microsoft Windows 2000, Service Pack 3, Service Pack 4
* Microsoft Windows XP Gold, Service Pack 1
* Microsoft Windows XP 64-bit Edition
* Microsoft Windows XP 64-bit Edition Version 2003
* Microsoft Windows Server 2003
Software Not Affected:
* Microsoft Windows Millennium Edition
* Microsoft Windows Server 2003 64-bit Edition
* Linux - All
Untested Software:
* SCO - No One Uses It So We Couldn't Test
Technical Description:
A security vulnerability exists in the Remote Control Service that could allow arbitrary code execution on an affected system. The vulnerability results because the Messenger Service does not properly validate the length of a message before passing it to the allocated buffer.
An attacker who successfully exploited this vulnerability could be easily drive remote controlled cars in to grandmothers or small children. This has been seen in the wild but has been limited to chasing cats.
So much for body movement.
An Indian-American Hindu committed to non-violent thought/speech/action alarmed by the global explosion of radical Islam
That must be a whopper of a car, to be able to drag a PC around with it.
--
"Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
and another way to pretend that reading Slashdot may eventually lead to body movement
What you mean you didn't actually do some pushups before you voted in this poll.
Win a signed Stephen Carpenter ESP Guitar from the Deftones: http://def-tag.com/?r=0008781
Now add one of those cheap cordless X-10 video cameras to the RC car, and watch the video on the computer while you drive it around using the computer controls.
Have all your friends get these too, and set up a little race course. It'll be just like a first-person driving game, but you'll all have real little cars you're controlling.
- Phat Tony.
Can anyone tell me how to set my sig on Slashdot?
Nobody on here is going to seriously build one .. we just want to look at the pictures
...really want one of those micro racers to do this with? Or a micro tank that shoots pellets? (That gun has to be triggered by somethine, might as well be a joystick trigger)... Terrorize the office or the classroom with your laptop! -Coach
"Never upset a goalie, getting hit with a blocker is an unpleasent experience - facemask or not." -Me
I'm glad to see we're hitting the bottom of the barrel today on news. I built a PC controlled RC car in highschool. gee, to think I could be famous for posting photos and a webpage about it RIGHT NOW.
Paul K.
to possess a hammer and nails at the same time.
KFG
How is that off topic you moding dickhead!?
/. post a story if no one submits it?
How can
while you seat around playing with toys there are children startving.
How many children did YOU kill today?
I would kill for something like this with Counter-Strike. Finally all those hours I spend could be put to exercise AND fragging. The ideal rig would make it possible to do all the basic movements- run, walk, strafe, crouch, jump, etc.
Remember that missions from GTA with RC cars? Humm.....
45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
Surprisingly not exciting.
If you do plan on doing it, you'll be happy to note that the X10 cameras run a long time off of a regular 9-volt battery. You'll be unhappy to note that the viewing angle on an X10 camera is far from perfect for driving.
Remote control plane? That's the ticket - and you can get a cheap RC plane for $60.
Let's not stir that bag of worms...
It would be interesting pitting a electric or gas powered R/c car controlled by a human vs a computer controlled car on one of those RC racing tracks.
I've found it's a lot quicker to build this kind of thing using relays for the switching. It means you don't have to do any thinking, and the switching speed is certainly fast enough for the application. I still used transistors to fire the relays - but it's still an extremely quick project.
Using relays also means the project can be re-used with different hardware much more easily - just change what's hooked up to the relays.
I also recommend the "UserPort" driver, which simply yields parallel port control to userland applications. Much simpler than monkeying about with special drivers.
Let's not stir that bag of worms...
I've been thinking about this for a while. With a Single Board Computer and a SV203 Board from Pontech (as listed on the palm pliot robot kit site) you could have some fun with this kind of thing. I would like to find a way of using the real RC controller to still drive it, but a Zaurus and WiFi would work good too :) :)
The thought of driving it around the parkign lot, then hitting a repeat button and watching it do teh same moves on it's own would be fun...not too mention all the possibilities of cameras and "defensive" programming/hardware
move along people
there is nothing to see here
As any truly enlightened geek know, the mod IS its own reward.
its OT because it has nothing to do with THIS story.
;)
dickhead
I've always wanted to replace the normal RC signal with WiFi. I can picture the robot battle craze moving to a standardized battle field where the people battling sit down at a standardized terminal and control RC mechs to fight with. using WiFi, you could build your own mechs as long as they could be controlled via WiFi. the battle field just has a wireless cloud over it. 'course, there's always the cool factor of having to log into and secure your mech before battle :)
AB HOC POSSUM VIDERE DOMUM TUUM
Neither did the post I replied to.
Though my post was more relevant than it was.
Though the pads are somewhat worn out, it is good to know that I have something to attempt in the near future.
But on a more serious note... could this have real-world applications in the future for someone who didn't have arms or hands? Could this, later on down the road, evolve into a foot-controlled robot that did basic tasks for those that needed it?
Being a goalie - I would sure like to see more people of your opinion. It would sure save a lot of hassle with the people that you have to demonstrate this effect on.
Stay tuned for new sig...
I've never tried an X10 camera on a plane - they're a little heavy (I've never bothered to disassemble one). The framerate should be fine - TV standard. The range on an X10 isn't spectacular, and degrades/chops with a moving source. Still, you'd get reasonable video if you kept the plane quite close. When I've done a plane mount, it's usually much more interesting to have a straight-down cam then a pilot cam - it would be hard to fly like this I'd think.
In any case, it's probably best to get a smaller, more efficient camera if you're actually going to try a plane mount.
Let's not stir that bag of worms...
and another way to pretend that reading Slashdot may eventually lead to body movement.
You mean in addition to the motion induced by reading the various posts with goatse references?
slashdot insists that this have a body.
I just randomly grabbed a subject from one of my spams figuring that it would be a good way to get attention to this comment.
I think this article is interesting not for geek reasons, but because it represents a thumb your nose to the slashvertisement we saw yesterday on the VIA-based Mobile Robot Design For Download. Even my own comment pointed out how you could basically build your own for for just the cost of few electronics.
Cool, slashdot is starting to tell their advertisers Kiss my ass! Way to go guys! Very admirable.
and then add a pneumatic hammer or flipper and some armour, plus a bit of AI, and you'll have _real_ Robot Wars.
very funny
http://techhouse.brown.edu/~neel/robot_tag.pdf
Yay me!
Instead of a DDR pad, use a wireless joypad. Then you can follow the car around!
Wait...
if(!toilet_paper) roll.replace(new roll);
This software will probably scrape your hard drive for email addresses and then spam them with your return address, install a DDoS slave and invoke the return of Zuul, Queen of Gozer.
Seriously, you have to download and install the program, then *two* drivers, and tell me (wise ones) you're not nervous about this?
--- Nothing clever here: move along now...
Hi all, just to show you our wireless RC car that we did at university. Just follow this link. This page is in construction, but there's the block diagram and somes pictures.
www3.sympatico.ca/jmbouffard
See ya
I can get suitable relays for a buck each - so that's 5 bucks (Canadian). Not too bad - but it is an expense.
Let's not stir that bag of worms...