Radio receiver RC to arduino and output....


hi
i work on arduino mega 2560 radio rc controller , rc receiver
i search how give signal of rc receiver on arduino
and after take signal , put on pin of arduino output
i want signal on output same input

actually have connect rc receiver on arduino , arrive use fonction
pulsein() having value of signal
i know signal of rx receiver can have
- pulsewidth high between 1 , 2 microseconds
- pulsewidth low between 18 , 19 microseconds
- preiod 20 microseconds

but search how transfer signal @ input output of arduino.....

thanks help
sorry bad english, i'm french....

you mean milliseconds, not microseconds: 1000 2000 microseconds every 20000 microseconds.

something this:
code: [select]

servo servo;
void setup() {
      servo.attach(outputpin);
}
void loop() {
     servo.writemicroseconds(pulsein(inputpin, high, 20000));
}


Arduino Forum > Using Arduino > Project Guidance > Radio receiver RC to arduino and output....


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code