Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Arduino + RC Radio Remote Controller

Custom built or hacked Electronic boards and sensors
3 postsPage 1 of 1
3 postsPage 1 of 1

Arduino + RC Radio Remote Controller

Post by Raul » Fri Jun 17, 2011 12:06 am

Post by Raul
Fri Jun 17, 2011 12:06 am

Hi, I am newbie to the world of robotic.

I am lokking for a good remote control, and easy to work with arduino duemilanove.
I have some ideas how use IR to control the arduino, i already found some projects do guide me, like Dagu - Mini Biped http://robosavvy.com/store/product_info ... ts_id/1207 , but with IR the distance is limited.

I found this on Robosavvy http://robosavvy.com/store/product_info ... ts_id/1236
1º I want know if we can use RC Radio Remote Controller 2.4Ghz 6Ch with arduino duemilanove or any other arduino?

2º if is possible, the connection is made like the "Wild Thumper Arduino Controller "?
http://robosavvy.com/store/product_info ... ts_id/1168
The RC Receiver module sould be connected to pin D0 and D1 of the Arduino.

3º Or I can work with arduino duemilanove any RC radio remote controller??
like this one HobbyKing HK6DF 2.4Ghz FHSS 6Ch Tx & Rx (Mode 2)
http://www.hobbyking.com/hobbyking/stor ... duct=16239


Thanks
Hi, I am newbie to the world of robotic.

I am lokking for a good remote control, and easy to work with arduino duemilanove.
I have some ideas how use IR to control the arduino, i already found some projects do guide me, like Dagu - Mini Biped http://robosavvy.com/store/product_info ... ts_id/1207 , but with IR the distance is limited.

I found this on Robosavvy http://robosavvy.com/store/product_info ... ts_id/1236
1º I want know if we can use RC Radio Remote Controller 2.4Ghz 6Ch with arduino duemilanove or any other arduino?

2º if is possible, the connection is made like the "Wild Thumper Arduino Controller "?
http://robosavvy.com/store/product_info ... ts_id/1168
The RC Receiver module sould be connected to pin D0 and D1 of the Arduino.

3º Or I can work with arduino duemilanove any RC radio remote controller??
like this one HobbyKing HK6DF 2.4Ghz FHSS 6Ch Tx & Rx (Mode 2)
http://www.hobbyking.com/hobbyking/stor ... duct=16239


Thanks
Raul
Robot Builder
Robot Builder
Posts: 10
Joined: Tue Nov 20, 2007 11:29 pm

Post by nunogato » Fri Jun 17, 2011 4:06 pm

Post by nunogato
Fri Jun 17, 2011 4:06 pm

Hi Raul,

You can use any RC receiver with the arduino, you will just use one arduino PIN for each channel you want to receive.

Check the sample code of our Wild Thumper in this case it is reading only two channels of the RC Receiver, here is the code that deals with the RC input

Code: Select all
  Speed=pulseIn(RCleft,HIGH,25000);                           // read throttle/left stick
  Steer=pulseIn(RCright,HIGH,25000);                          // read steering/right stick


  if (Speed==0) Speed=1500;                                   // if pulseIn times out (25mS) then set speed to stop
  if (Steer==0) Steer=1500;                                   // if pulseIn times out (25mS) then set steer to centre

  if (abs(Speed-1500)<RCdeadband) Speed=1500;                 // if Speed input is within deadband set to 1500 (1500uS=center position for most servos)
  if (abs(Steer-1500)<RCdeadband>(Leftcenter+RCdeadband)) Leftmode=0;          // if left input is forward then set left mode to forward
  if (Rightspeed>(Rightcenter+RCdeadband)) Rightmode=0;       // if right input is forward then set right mode to forward

  LeftPWM=abs(Leftspeed-Leftcenter)*10/scale;                 // scale 1000-2000uS to 0-255
  LeftPWM=min(LeftPWM,255);                                   // set maximum limit 255

  RightPWM=abs(Rightspeed-Rightcenter)*10/scale;              // scale 1000-2000uS to 0-255
  RightPWM=min(RightPWM,255);                                 // set maximum limit 255
Hi Raul,

You can use any RC receiver with the arduino, you will just use one arduino PIN for each channel you want to receive.

Check the sample code of our Wild Thumper in this case it is reading only two channels of the RC Receiver, here is the code that deals with the RC input

Code: Select all
  Speed=pulseIn(RCleft,HIGH,25000);                           // read throttle/left stick
  Steer=pulseIn(RCright,HIGH,25000);                          // read steering/right stick


  if (Speed==0) Speed=1500;                                   // if pulseIn times out (25mS) then set speed to stop
  if (Steer==0) Steer=1500;                                   // if pulseIn times out (25mS) then set steer to centre

  if (abs(Speed-1500)<RCdeadband) Speed=1500;                 // if Speed input is within deadband set to 1500 (1500uS=center position for most servos)
  if (abs(Steer-1500)<RCdeadband>(Leftcenter+RCdeadband)) Leftmode=0;          // if left input is forward then set left mode to forward
  if (Rightspeed>(Rightcenter+RCdeadband)) Rightmode=0;       // if right input is forward then set right mode to forward

  LeftPWM=abs(Leftspeed-Leftcenter)*10/scale;                 // scale 1000-2000uS to 0-255
  LeftPWM=min(LeftPWM,255);                                   // set maximum limit 255

  RightPWM=abs(Rightspeed-Rightcenter)*10/scale;              // scale 1000-2000uS to 0-255
  RightPWM=min(RightPWM,255);                                 // set maximum limit 255
nunogato
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 86
Joined: Mon Mar 15, 2010 3:48 pm

Post by Raul » Sat Jun 18, 2011 2:34 am

Post by Raul
Sat Jun 18, 2011 2:34 am

Thanks, i will check the code when i buy the rc radio.
Thanks, i will check the code when i buy the rc radio.
Raul
Robot Builder
Robot Builder
Posts: 10
Joined: Tue Nov 20, 2007 11:29 pm


3 postsPage 1 of 1
3 postsPage 1 of 1