Difference between revisions of "Self-Guided RC Car"
|Line 39:||Line 39:|
= Current Status =
= Current Status =
Revision as of 15:59, 3 September 2009
This is the wiki page for the self-guided RC car that TP is working on.
Several years ago when I had the nerve to blow money on such things, I attempted to build out a '68 Volkswagen Beetle for The DARPA Grand Challenge. During that time I thought it would be fun to convert a small RC car for self-guided operation also. I bought the car from RadioShack for maybe $30, tore it apart, and promptly forgot about it completely.
Inspired by joining Hive13, and particularly a similiar RC Vehicle project that Paul is working on, I am now trying to actually build this thing (the Volkswagen was never finished either, but I've already sold it).
Standard issue cheap piece of junk from Radio Shack. I believe it used to be some kind of truck maybe? Not very large.
The rear power motor is a simple brushed DC motor connected to a gearbox with two settings, high and low. I think the low setting gives more torque but don't hold me to it. The front steering motor is a smaller version of the rear motor. The front wheels are spring loaded, so the front end 'snaps back' to center when the steering motor is not being powered. The battery pack that came with the car says that it's 9.6V, but it consistently reads over 10V whenever I do occasionally get around to charging it.
Each motor is controlled by a simple transistor H-bridge, which allows a logic signal from a controller or something to turn the motor in either direction. I had meant to use power MOSFETs, but DebCo was out of the parts I wanted so I had to use BJT Darlingtons.
Chuck's Robotics Notebook has a nice tutorial on this kind of H-bridge, and my bridges are basically exactly as shown on this page except for different transistor parts and my complete lack of motivation to use opto-coupling.
For obstacle avoidance I'm currently trying to make due with two Sharp IR range sensors, which I bought from Hobby Engineering quite a while ago. These sensors have a range of about 2 feet or so and output a voltage from 0-5V based on the range to target detected.
Probably the only thing making this project unique in any sort of way is that at this point I'm not using a microcontroller. The algorithm for the car's decision making process is pretty straight forward, so for now I'm using discrete logic. The analog sensors are being monitored by comparators that fire a logical high when the voltage of the sensor reaches a predetermined level.
I'm thinking that the car should act in the following way:
|Left Sensor||Right Sensor||Action|
|Low||Low||Steering Centered, Moving Forward|
|Low||High||Steering to Left, Moving Forward|
|High||Low||Steering to Right, Moving Forward|
|High||High||Steering to Left, Moving Backward|
Based on this decision table, we get the following 'control' circuit:
(Note that this diagram shows LS chips - I used HC chips. The 100K resistors would need to be lowered to maybe 10K if using actual LS chips. The difference is LS chips are TTL whereas the HC chips are CMOS.)
- The car has been built as described above and works - kinda. It works if you define 'works' as "Does what I told it to do." I am currently re-thinking the steering control system - always backing up to the left is less than ideal and the car keeps running into stuff with its tires.
Aug 31, 2009
Built control circuitry. Tried to go to DebCo for some P-channel MOSFETs but they close at fraking 4pm!
Sept 1, 2009
Realized DebCo didn't have any P-channel MOSFETs for sale. Purchased transistors instead; re-designed and finished H-bridge portion of circuit. Demo'd car (as it were) at weekly Hive13 meeting; got some good feedback from other Hive members. I'm considering moving to using a PIC for control, possibly the PIC16F505, but others have expressed the opinion that this would lower whatever cool factor the car currently has going for it.
My stuff is perfect. Everything I do is wonderful. (Too lazy to describe all of the problems the car is currently having, so for now I'll just touch on them in the Next Steps section)
- Figure out exactly which dust filled hole in the bowels of my apartment my digital camera has fallen into and retreive it so I can take some pictures.
- Schematics would be cool. Sounds like work, which is less cool.
- Seriously consider adding at least one more forward sensor?
- Re-position sensors to include the space directly in front of the front tires within their field of view.
- Replace PNP Darlingtons with higher amp rated versions (low priority).
- Rethink and hopefully improve steering control design.
- Layout and solder finalized circuit.