Example of setting up a simple interface between a RC receiver and a Arduino controlled Robot with a Pro-mini or Teensy controller.

You can find the code for the Teensy here:
http://www.botsrule.com/pattonrobotics/Testing%20RC%20Connection.htm

The Teensy is available here:
http://pattonrobotics.com/t/motherboards-and-controllers

The Patton Robotics Motherboard is from here:
http://pattonrobotics.com/t/motherboards-and-controllers

, https://i.ytimg.com/vi/BcyPer–Yi0/hqdefault.jpg

source

23 Comments

  1. sir I am using latest Teensy 4.1 which is 3.3 tolerant device flysky i6 whose receiver is 5 V tolerant, so how can I manage to hookup the two devices together?

  2. Here is an modified code WARNING the Ch5 is not on pin 6 insted it is on pin 2 because on my arduino it does not work on this code BTW does somone also have issues with reading out the values on an arduino nano, i also have an HiFive1 and there it works perfectly fine. (This code is only to read out the values)

    int Ch2,Ch3,Ch4,Ch5,Ch6,Ch7,Ch8,Ch9,Ch10,Ch11;

    void setup() {

    // put your setup code here, to run once:

    Serial.begin(9600);

    pinMode(2,INPUT);

    pinMode(3,INPUT);

    pinMode(4,INPUT);

    pinMode(5,INPUT);

    pinMode(7,INPUT);

    pinMode(8,INPUT);

    pinMode(9,INPUT);

    pinMode(10,INPUT);

    pinMode(11,INPUT);

    pinMode(12,INPUT);

    }

    void PrintRC(){

    Serial.println("———————————–");

    Serial.print("Value Ch2 = ");

    Serial.println(Ch2);

    Serial.print("Value Ch3 = ");

    Serial.println(Ch3);

    Serial.print("Value Ch4 = ");

    Serial.println(Ch4);

    Serial.print("Value Ch5 = ");

    Serial.println(Ch5);

    Serial.print("Value Ch6 = ");

    Serial.println(Ch6);

    Serial.print("Value Ch7 = ");

    Serial.println(Ch7);

    Serial.print("Value Ch8 = ");

    Serial.println(Ch8);

    Serial.print("Value Ch9 = ");

    Serial.println(Ch9);

    Serial.print("Value Ch10 = ");

    Serial.println(Ch10);

    Serial.print("Value Ch11 = ");

    Serial.println(Ch11);

    delay(15000);

    }

    void loop() {

    // put your main code here, to run repeatedly:

    Ch2 = pulseIn(3,HIGH, 21000);

    Ch3 = pulseIn(4,HIGH, 21000);

    Ch4 = pulseIn(5,HIGH, 21000);

    Ch5 = pulseIn(2,HIGH, 21000);

    Ch6 = pulseIn(7,HIGH, 21000);

    Ch7 = pulseIn(8,HIGH, 21000);

    Ch8 = pulseIn(9,HIGH, 21000);

    Ch9 = pulseIn(10,HIGH, 21000);

    Ch10 = pulseIn(11,HIGH, 21000);

    Ch11 = pulseIn(12,HIGH, 21000);

    PrintRC();

    }

  3. I wouldnt buy anything in your Shop… Didnt reupload that dead link for years so how long will shipping last if i order anything???

  4. Hi brian, its posible modify the range of the values of the channels 1000, 1500 and 2000 microsecond?

  5. this was the thing i was searching on YouTube for a week thank u man this is the best tutorial where a computer screen is on one side and ur camera on other it makes ur tutorial more sensible

  6. Hi Brian. Thank you for sharing your amazing experiments. Great explanation. Jsut wondering whether you could help me with my project. I am making a RC Lawn mover.  I want to control wheel chair motors with arduino.  have you got or can make a a schematic for that. Thank you for your help

  7. thank you alot it helped me alot..im not a programmer and had a hard time understanding the code i have some questions:
    1. will this code work on an arduino uno???
    2. what kind of power source should i use???(2200 mah lipo??)
    3. can i control 3 stepper motors with this code if not which values should i change???
    plz reply soon 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.