loading
This instructable covers the conversion of an RC truck into an Arduino controlled robot. My intent when beginning this project was to A) learn more about Arduino and programming B) build a reliable low cost platform to expand upon C) spend more money than I should at Radio Shack.

So if you are looking for an entry level project to cut your teeth on or a scalable platform for your wheeled robotic ambitions, I hope you find this instructable helpful and look forward to seeing how everyone improves upon it.

I conducted a search for similar instructables prior to writing this up and found a couple others (here and here) that are quite good and worth checking out as well. The main difference between my 'able and theirs' is that I used three PING sensors vice one to give our robot greater flexibility in regards to obstacle avoidance. The drawback here is of course the obvious and non-trivial increase in cost.

The robot navigating it's way down the sidewalk.

Step 1: Gather your supplies

Radio Shack
1:12 Chevrolet Silverado RC Truck - $40
Arduino UNO - $35
SEEED Motor Shield - $15
PING Ultrasonic sensor (x3) - $20 each
U Mold Plastic - $39
9V battery leads - $1
Adapataplug Tip "M" - $4 (or any 5.5 mm outer Diameter, 2.1 mm inner diameter plug)
22 AWG Wire
Solder
Heat shrink tubes
9V battery


Tools
Soldering Iron
Small tip screwdriver
Wire cutters
Pliers
Lighter (or heat gun for heat shrink)
Ammeter
Dremel or other small drill
Computer

<p>i am confused about the shunt. what exactly is it and how do i remove it</p>
<p>do you have to power both motor shield and arduino????</p>
<p>Umm yes and no. The 9V battery powered the Arduino and the Ping sensors. The sensor were attached to pins on the motor shield. These were just pass through pins to the Arduino board below though. I battery from the RC truck also ran through this shield but only fed the motors (the third picture in step 6). If the RC battery was a little bigger I could have left the shunt in place on the motor shield and powered everything off of it.</p>
<p>Ready to explore Mars! Excelent and very precise code. The chassis of this RC truck had a second motor for extra torque so I did some code additions. I also used ultrasonic sensors with echo and trigger. They were all defined on the setup. </p><p>Many Thanks!! </p>
<p>Dude, this is awesome! Really dig how you set up your sensors. Looks like yours could do some serious off roading.</p>
<p>Nice project...</p><p>should be possible to use the motor bridges already inside the car, saves a lot of money ;)</p><p>I will try such a project, and wanting to keep RC functionality...</p>
<p>sir how to converts the code if I use a ultrasonic sensor with echo ang trigger pins?.can u help me please..</p>
<p>Hi! I just made this robot and I used the sensors you are talking about. First, you have to define an &quot;int&quot; for each pin of the sensors &quot;int Pecho1&quot;, &quot;int Ptrig1&quot;, etc. Second, you have to set up the pins (echo as inputs, trig as outputs). Third, you have to delete the &quot;pinMode&quot; lines on the rest of the code. </p>
<p>You used a 9v battery?, I'm doing something similar but using one sensor and a lcd shield and I'm needing a lot more power. Would you know what I'm doing wrong?</p>
<p>How could I change this to fit the v2 shield?</p>
<p>That looks like a pretty awesome shield. Without having one in front of me, the physical connection looks pretty straight forward so I'm guessing you're really curious about the code changes. In short you'll need to use a different library in your sketch, change the motor pin #'s in the above sketch, change the steering and driving speeds (on your shield: 0=min, 255=max) and change all the digitalWrite(pinI#,HIGH/LOW) to run(FORWARD/ BACKWARD). For more a more specific and verbose answer, you should check out this page: <a href="https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/using-dc-motors." rel="nofollow">https://learn.adafruit.com/adafruit-motor-shield-v...</a></p><p>Hope that helps!</p>
<p>Link got cut off... this page:</p><p>https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/using-dc-motors</p>
<p>How could I change this to fit the v2 shield?</p>
<p>how much of an angle do the sensors need to be, relative to each other, so they don't interfere with each other? Or are you time-multiplexing them so there's never any two active at the same time?</p><p>btw you can get much cheaper sensors: $7.95 for 5: http://amazon.com/gp/product/B00IJWZTI4/</p>
<p>Going from memory, I believe the sensors have a sensing angle of +/- 30 degrees from center. In aligning the sensors I basically just eye-balled this and erred on the side of sensor overlap over having gaps in coverage. IRT to interference, you are correct I only &quot;ping&quot; one sensor at a time in the code with a 2 millisecond delay between them. </p><p>Thanks for the link! </p>
<p>*/<br>int pinI1=8;//define I1 interface&lt;br&gt;int pinI2=11;//define I2 interface</p><p>There should be an actual line break, instead of the &lt;BR&gt; .</p>
<p>Good catch! Thank you! Step has been edited.</p>
<p>THANKS FOR THE CLINIC ON HOW TO ROBOT A TRUCK<br>I AM NOT YELLING<br>I JUST CANT FIND CAPS LOCK<br>:)<br></p>
<p>That's awesome! Glad you found it helpful!</p>
Bro can i see ur wiring diagram for this?
Hi i have a question. Does the ping ultrasonic sensor consume 2.5 amp when it burst? How much current do you need if you connecting it with 5v. 30-50?
Full Review about Android-controlled RC car Blue Drone.. <br>full story at. <br>http://mobilephonedekho.com/full-review-android-controlled-rc-car-blue-drone/

About This Instructable

31,519views

84favorites

License:

More by immrroboto:RC Truck to Arduino Robot w/ multiple sensors Improve your work bench in about 4 seconds Make a hanging light out of a wine bottle 
Add instructable to: