loading
Picture of RC Truck to Arduino Robot w/ multiple sensors
IMG_20131127_003721.jpg
IMG_20131127_004003.jpg
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.
 
Remove these adsRemove these ads by Signing Up

Step 1: Gather your supplies

Picture of Gather your supplies
IMG_0372.JPG
IMG_0373.JPG
529c3a8ed535cf7989000064.jpg
529c3a78d535cf99de000043.jpg
IMG_0429.JPG
5295d2d5d535cfe48b000044.jpg
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

goacego5 months ago

How could I change this to fit the v2 shield?

immrroboto (author)  goacego5 months ago

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: https://learn.adafruit.com/adafruit-motor-shield-v...

Hope that helps!

immrroboto (author)  immrroboto5 months ago

Link got cut off... this page:

https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/using-dc-motors

goacego5 months ago

How could I change this to fit the v2 shield?

gtoal6 months ago

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?

btw you can get much cheaper sensors: $7.95 for 5: http://amazon.com/gp/product/B00IJWZTI4/

immrroboto (author)  gtoal6 months ago

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 "ping" one sensor at a time in the code with a 2 millisecond delay between them.

Thanks for the link!

ed.nutter9 months ago

*/
int pinI1=8;//define I1 interface<br>int pinI2=11;//define I2 interface

There should be an actual line break, instead of the <BR> .

immrroboto (author)  ed.nutter6 months ago

Good catch! Thank you! Step has been edited.

ccreed made it!9 months ago

THANKS FOR THE CLINIC ON HOW TO ROBOT A TRUCK
I AM NOT YELLING
I JUST CANT FIND CAPS LOCK
:)

RCROVER.jpg
immrroboto (author)  ccreed6 months ago

That's awesome! Glad you found it helpful!

mcalma11 year ago
Bro can i see ur wiring diagram for this?
mcalma11 year ago
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..
full story at.
http://mobilephonedekho.com/full-review-android-controlled-rc-car-blue-drone/