Linksys RC Monster Truck
Sunday, March 14, 2010 at 11:14PM If you haven't heard yet, I've been busy splicing together a Linksys WRT54GL router with a Traxxas Stampede Monster Truck. The plan is to be able to use any controller connected to a computer in order to drive the RC truck just like you would with the generic RC remote. Can you imagine driving a RC truck with a Xbox 360 controller, a joystick, a Wiimote, or perhaps even an iPhone? Well that's the plan so let me tell you where everything stands.
I have successfully established communication between a VB.NET program to a Linksys router over TCP that then sends commands to a Basic Stamp over RS232. Many thanks has to go to Jonathan Bennett over at http://www.jbprojects.net/. He came up with the original idea and design of the RC Linksys truck. On his website you will find detailed instructions on how he built his truck along with all of the code he wrote for the project. I am recycling his carserver.c program that runs on the Linksys router. The only change I've made is with the line :
toWrite = line[0] – 1;
to this:
toWrite = line[0];
If you are looking to write your own code for the Linksys router, check out http://gargoyle-router.com/old-openwrt-coding.html by Eric Bishop. He's written an excellent tutorial with how to cross compile programs that will run on a Linksys router.
Since I'm using a Basic Stamp instead of an Arduino, I'm writing all the code for the microcontroller from scratch. By using the Stamp, I don't have to use a Max232A level converter for serial communication between the Stamp and the Linksys. I will also be able to program PWM signals to drive the RC truck at variable speeds and turning radii. This is the most significant difference between my build and Jonathan's design. Currently his design is only capable of one speed forward and backward and one turning radius either left or right.
The platform which the Linksys router and the Stamp will sit upon on top of the truck has been finished and mounted to the frame. I decided to use 3mm Sintra sheets that you can find at http://www.solarbotics.com/construction_materials/. This is great stuff. Easy to machine but very strong and durable.
I'm entering the final phase of construction now. It's just a matter of mounting the router and other electronic parts to the chassis and finishing up the interface code. Here are some of my notes that should help you along.
- Get the Linksys WRT54 Ultimate Hacking book. It's a must have for understanding how to use the WRT54 router. Bookmark Page 299 when you decide to begin interfacing through the router's serial ports.
- If you aren't going to use Jonathan's carserver.c code for the router and plan to compile your own, you will need Linux.
- You have two versions of OpenWRT firmware for the router, White Russian and Kamikaze. If you want to keep things simple, go with White Russian. This firmware has had the most development on it. The hacking book and Eric Bishop's webpage use primarily White Russian. If you decide to go with Kamikaze, know whether you are using a 32bit or 64bit version of Linux. OpenWRT's 64bit Kamikaze SDK works straight out of the box. However, the 32bit SDK needs to be compiled on your machine before it can be used. It will take a couple of hours to do this. Don't worry though as there are plenty of instructions online. I decided to go with Kamikaze.
That's it for now. We will have video in the near future introducing the project and showing you all of the parts needed in order to get started. With some luck, we'll also have pictures of the build online soon so that you can follow along. I'll keep posting my progress as the project moves along so check back again soon.
Always remember, if it's not broken, take it apart anyway and enjoy voiding that warranty!
Ian |
10 Comments | 








