Cars Computers & Mobile Fun & Games Home
Driving an RC Car with Arduino and a USB Racing Wheel

rcCar_2

In this cool project, Mate Marschalko connects a USB racing wheel to a web browser running the HTML5 Gamepad API to wirelessly drive an RC car. This will likely go over the heads of anyone who doesn’t know JavaScript programming [raises own hand], but it doesn’t actually look too hard to do, if you basically know your way around JS and HTML5 (and Arduino hardware).

Mate Marschalko, who created the project, explains how the car itself was hacked to talk to the browser and Gamepad API (via a Javascript Node.js server and WebSockets):

The work has started off by taking out the original radio and motor drive modules and the antenna from the car. I was left with two motors, one for steering and one for acceleration, and the plan was to rebuild the whole architecture using Arduinos. I succeeded and the motors are now driven with a powerful H-bridge module (L298n) and the wireless connection is handled by two nRF24l01 antennas. The Arduino and the motors are both powered from the original 6V battery pack (4xAA).

rcCar_1

Besides the hardware hacking, I’m sure the tricky part is getting the on-board Arduino Nano to talk to the radio-connected Arduino Uno to then talk to the software stack who in turn needs to talk to the USB racing wheel. But if you check out the video, I think you can see how much it’s worth it. That looks like fun!

Marschalko has future plans for his racing rig. “There are so many parts of this projects that are really exciting and interesting and parts that are a little bit more difficult to fully implement,” he writes. He’s definitely planning on adding a webcam to the car, and beefing up its battery. And as he points out: “With WebSockets, you could actually connect multiple users and browsers together to create multiplayer games, for example.” Marschalko is also working on a free ebook on “JavaScript Electronics” that promises to make clear the steps involved in this project, even to complete beginners.

3 thoughts on “Driving an RC Car with Arduino and a USB Racing Wheel

    1. For the second version of the car my plan is definitely to leave the PC out. However, I’m not sure if the Leonardo is necessary. I would only use that to create a custom Arduino joystick for the PC. Instead, I just need an UNO and connect the steering wheel and pedal sensors to the Analog input pins.

      I will definitely try this (and add the FPV camera) and post updates to my website!

      1. The reason for suggesting the Leonardo, was that I was thinking about the direct access to the USB. However, I re-read the details and it can’t act as a host so gives you no advantage over the Uno.

Comments are closed.

Tagged

Gareth Branwyn is a freelance writer and the former Editorial Director of Maker Media. He is the author or editor of over a dozen books on technology, DIY, and geek culture. He is currently a contributor to Boing Boing, Wink Books, and Wink Fun. And he has a new best-of writing collection and “lazy man’s memoir,” called Borg Like Me.

View more articles by Gareth Branwyn