Connecting RC Receiver channel signal output to Arduino Uno R3 D3, compiling, uploading the sketch and displaying the pwm value in Serial Monitor.
Sketch
#define pwmIn 3 // connect RC receiver signal output to Arduino Uno D3
int signal;
void setup() {
pinMode(pwmIn,INPUT);
Serial.begin(115200);
}
void loop() {
signal = pulseIn(pwmIn,HIGH);
Serial.println(signal);
delay(10);
}
No comments:
Post a Comment