TV Remote Controlled Car

Friday, 21 June 2013













TV Remote Controlled Car



Nothing is worse than loosing the controller that came with your remote control car. Replace that sucker with an arduino and the one remote that always seems to be around, the TV remote!


Step 1: Materials


The materials for this project are pretty straight forward. You're gonna need...

- A remote control car. The one I used has one small DC motor to drive the car and a small stepper motor to control the steering.   Having a car with a similar motor configuration will make this project much more smooth for you. Specifically the kind of car I used is an Xmod from radio shack. I have a few, and they are a really fun medium to hack with. I don't know if radio shack still sells them but I'm sure you could find one for really cheap on ebay.

- A TV remote. I set up the project with a standard Comcast remote, most people seem to have these. The project can still be done with a different remote you'll just need to add an extra step and you'll probably learn a little extra about the code and reading infra red signals in general.

- A motor controller. I have one of the arduino shields from sparkfun, and I would recommend picking one up they make projects with motors much easier. If you want to get deep with it you can make your own out of an H bridge or some transistors, there are plenty of instructables around on how to do this.

- An Arduino Uno or some smilar variant.

- An Infra Red receiver. You can find these in just about anything that uses a remote. I took mine out of an old portable DVD player. You can also find them at radio shack or cheap online.

- An altoids tin.

- Some breadboard jumper wire.


You'll also need a hot glue gun and soldering gun to get the project together! 

Step 2: Prepare The Car

You're going to want to get your car down to the bare bones. If you have an Xmod look at the pictures to see exactly what needs to come out. As long as you have access to the wires into and out of the drive and stepper motor you should be good. To make things simple I recommend soldering some breadboard compatible tips onto these wires, make sure they are long enough to reach your motor controller. Your car should also have an onboard power supply, find the voltage and ground to this and dress it the same.

I added an enclosure for the hardware on my car and I would recommend doing the same. The bottom half of the altoids tin works great. Just drill some holes in to access the arduino's power supply and line the bottom with electrical tape just to completely avoid any shorts. Hot glue that onto the top of the car and you're looking good!

** Note ** If you have an xmod car save that blue board you took out. If you happen to find the remote to the car (or never lost it in the first place :P ) you can make some cool things with this like a remote controlled light dimmer or whatever you want.

Step 3: (Optional) Program Your Remotes



If you are new to infra red signals or just want to learn more I highly recommend this tutorial by Adafruit.
http://adf.ly/Quk1E

To program your remote download the IR decoder code from this instructable or the link above. Configure your arduino as shown and upload the code. Open serial communications, and when you point your remote at the arduino and press the button you wish to configure a long list of numbers will appear on the screen. (If you want to know more about what this list means, you do, click the link above!) Open IR_Car1 file and access the ircodes.h file. Copy the second half of your list of numbers and replace the existing numbers in this file under the command you wish to configure the button for.

Repeat this step until all of the commands are configured to your remote!

If you are having issues (again) check out the link above. Make sure your arduino is configured correctly and that your are copying the right set of numbers and deleting the old set. When copying be sure to include the bracket to close the code and semicolon to end the line!

Step 4: Loading The Software




At this point you should be using a Comcast remote or have configured your remote to the code!

Pop your arduino into the computer, download the code below, and upload it to your board!

The comments at the top of the code are for my car. But your stepper motor should be connected to Channel A and the drive motor to Channel B. If your car goes in reverse when you press forward or turns left when you press right switch the order of the wires within the incorrect channel. Also connect your IR receiver just like you had it before, but this time on top of the shield.

I clipped the VIN pin to my arduino from another project so I have to power it from a different power source than the cars onboard power. Unless your cars voltage is within the range of the arduino I suggest you do this anyway. Hook you cars voltage to the VIN pin on the motor controller and the ground wire to GND. Power up the arduino and place the boards into the storage on your car.

You should be good to go, and cruising around from your TV remote!


Trouble shooting: Getting the input power right might be a challenge for some cars as the two motors might operate at different voltages. You could measure the operating voltage of the motors before you take the car apart and then try to build a circuit to replicate that voltage but hopefully to two will be close enough to avoid that mess. If you have any other issues leave a comment and I will try to help you out! :)

Step 5: Finishing Up




Heres a video to show the final product!
http://adf.ly/QukYI

I tried to comment the code well enough that you can figure it out going through. You may notice that I added a *special* key and the skeleton of code to allow for audio play out. You could hook up a small speaker and get it to play some melodies on your command as you drive around... I hope this will help you realize the benefit to the TV remote set up! You can use all the extra buttons for extra accessories such as music, lights, cameras, other motors, ect! :P Have fun creating!





8 comments:

  1. Quality furniture and toys at unbelievable prices! Kidkraft is one of our most popular brands, which provides the best furniture for children's rooms and the whole house. We also provide quality toys, such as kitchen play sets, railroad train tracks, rocking horses, and more! We compliment our line of toys with AZ Importer who supplies top of the line radio controlled water boats, racing cars, monster trucks, and amazing helicopters. All of our products are proven in the marketplace by other consumers who have been very pleased with all of their purchases from us, remote control car.

    ReplyDelete
  2. Quality furniture and toys at unbelievable prices! Kidkraft is one of our most popular brands, which provides the best furniture for children's rooms and the whole house. We also provide quality toys, such as kitchen play sets, railroad train tracks, rocking horses, and more! We compliment our line of toys with AZ Importer, who supplies state of the art, radio controlled water boats, racing cars, monster trucks, and amazing helicopters.PenguinClub also provides paintball toys for that 'big kid' in the family. RAP4 is our chosen supplier of paintball guns and accessories for the thrill of the victory! Overall, we have your kids covered from small
    toddlers to elite teenager. All of our products are proven in the marketplace by other consumers who have been
    very pleased with all of their purchases from us, remote control car

    ReplyDelete

  3. Quality furniture and toys at unbelievable prices! Kidkraft is one of our most popular brands and popular web site, http://blujay.com/penguinman.

    ReplyDelete
  4. Quality furniture and toys at unbelievable prices! Kidkraft is one of our most popular brands and popular web site, http://blujay.com/penguinman.

    ReplyDelete
  5. It's hard to come by knowledgeable people about this subject, but you seem like
    you know what you're talking about! Thanks

    Feel free to surf to my blog post - Whimsical art for children -
    -

    ReplyDelete
  6. Bеcause mаny of you could leаrn,
    EΑ Sρorts' FIFA Foοtball, or Football for you Amегicans, is almost dеfinitelу the planets mοst importаnt sρorts video
    gamе. Thіs is wаgerеd, alοng with еnjoyed, just about еνerywhere from The united
    statе, Mexicо, South amerіcа,
    Cаlgary, Uk, Fгanсe, Australiа, and even mаnу mогe.
    The moѕt геcent one, FIFA 14,
    has juѕt bееn bгought оut.


    If аnyone you гесognize ωith FIFA you
    knoω that theѕе people hаvе thе
    Ultimate Team mode whеre yοu generatе credits tο
    shoρ fοr аthletes as ωell аs
    оther cards. Well tоdау I
    am definitely right hеrе tο nοtify anуone abοut
    this good internеt ѕitе I found arοund,
    which could bе utilizeԁ іn οrԁer tο chеat your creԁits, oг currencieѕ, on FIFA.

    Yоu are ablе to basically generаte INFINITE cοinѕ and alsο ѕеt them intо yοur pгofile.

    Fifa 14 Coins illimites
    Тhis operates fоr all of gameses sуstem, ѕo lіterally anyοnе cаn dо this.


    I rеally hoре that yοu find this beneficiаl aѕ well аѕ hаve
    a look аt the web-sіte fifa 14 coin generator.
    Thanks for гeading thіs!

    ReplyDelete
  7. Usually I do not read post on blogs, but I wish to say that this write-up very compelled me
    to check out and do it! Your writing style has been surprised me.
    Thanks, very great article.

    Also visit my webpage rain gutter company Salt Lake city ut (http://myonlineincomesystem.com/member7598forum/profile.php?mode=viewprofile&u=289532)

    ReplyDelete