I want to end up controlling the ESC from the Arduino but first an just trying to read signals from the receiver.
The manual for the ESC is here: FLYSKY FS-R4A3-BS 2A-BS Protocol Three-in-One Receiver Instruction Manual
The normal wiring to run the RC car is like this:
To try with the Arduino I unplugged the clip from CH1 and wired the signal wire to pin 2 and the ground to GND and used the following code.
#define RCPin 2
int RCValue;
void setup() {
Serial.begin(9600);
pinMode(RCPin, INPUT);
}
void loop() {
RCValue = pulseIn(RCPin, HIGH);
Serial.println(RCValue);
}
When I now run the RC car, the code does nothing. No output from the serial monitor.
Did I miss something?