Author Topic: IR protocol for RC toy cars ?  (Read 3283 times)

0 Members and 1 Guest are viewing this topic.

Offline AsimTopic starter

  • Regular Contributor
  • *
  • Posts: 171
IR protocol for RC toy cars ?
« on: November 07, 2013, 09:03:36 am »
Hello everyone


I decided to build a simple RC car, I want to build it from scratch ( the IR transmitter and receiver).
My question is what IR protocol should i use for programming the micro-controller ?
the RC car should work the same way the tanks work. i will use 4 inputs to control the direction of rotation of the motors

left motors ---------- right motors

forward----------------forward        (The  RC car will go forward )
forward----------------backward     (The  RC car will go to the right)
backward--------------forward       (The  RC car will go to the left)
backward--------------backward    (The  RC car will go to backward)


I hope my logic is correct, I am open for suggestions of any kind.

Thanks
 

Online ConKbot

  • Super Contributor
  • ***
  • Posts: 1395
Re: IR protocol for RC toy cars ?
« Reply #1 on: November 07, 2013, 06:07:51 pm »
I'd use a 38KHz modulated signal, and for the protocol, I'd probably use whatever protocol the remote for my TV uses for the directional pad that way I didnt have to build a controller.

Even without a scope you could use an arduino and a 38khz receiver module to capture the IR protocol http://playground.arduino.cc/Code/InfraredReceivers

Maybe even use the numbers to set the max speed of the toy, 1 tells it to go slow, 2 medium, 3 fast ;)
 

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2279
  • Country: ca
Re: IR protocol for RC toy cars ?
« Reply #2 on: November 07, 2013, 08:45:12 pm »
Choose an existing protocol from one of the three most popular "NEC", "RC5", or "SIRCS" (and variants). Do a little research and pick one you want to work with / learn about. Probably 99% of all consumer electronics with an IR remote use one of those.

After you've chosen a protocol, you can use any cheap universal remote to control your vehicle, by making it respond to the codes sent by the corresponding buttons.
 

Offline AsimTopic starter

  • Regular Contributor
  • *
  • Posts: 171
Re: IR protocol for RC toy cars ?
« Reply #3 on: November 08, 2013, 01:25:13 am »
alright, I will start with it soon

Thanks guys
 

Offline frank26080115

  • Regular Contributor
  • *
  • Posts: 74
Re: IR protocol for RC toy cars ?
« Reply #4 on: November 08, 2013, 07:30:12 am »
Do you have a smartphone with "IR Blaster"?

Mine does, and I can get an app that controls the pulses using a simple string representation of time intervals. So if you have a phone like mine, you've just avoided building half of a circuit and can implement whatever protocol you want.
 

Offline AsimTopic starter

  • Regular Contributor
  • *
  • Posts: 171
Re: IR protocol for RC toy cars ?
« Reply #5 on: November 08, 2013, 02:46:05 pm »
Do you have a smartphone with "IR Blaster"?

Mine does, and I can get an app that controls the pulses using a simple string representation of time intervals. So if you have a phone like mine, you've just avoided building half of a circuit and can implement whatever protocol you want.

no i don't have one, i want to build the transmitter and the receiver to learn while doing something i consider interesting.
 

Offline Gall

  • Frequent Contributor
  • **
  • Posts: 310
  • Country: ru
Re: IR protocol for RC toy cars ?
« Reply #6 on: November 08, 2013, 03:13:15 pm »
First, take any existing transmitter you like and determine its protocol by using an IR receiver connected to oscilloscope. soundcard line-in will work too. Then make a receiver for that protociol using an ATtiny. Later, replace the transmitter with another ATtiny.
The difficult we do today; the impossible takes a little longer.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf