Hi guys, brand new to arduino! So far I am loving the platform.
I'm trying to connect my arduino board to my RC receiver. I have the receiver powered using a pretty standard 4xAA pack, and I have one channel of the receiver connected to pin 7 on the arduino (I've tried several different pins for this).
My problem: The code below just returns numbers in the range of 8000 (sometimes 9000 and sometimes 7000), and this doesn't change when I apply the controllers joystick. What's weirder is that the numbers return even when the wire to pin 7 is unplugged from the receiver (but still attached to the arduino). Does this make sense? Any thoughts?
int pin = 7;
unsigned long duration;
Serial.begin(9600); // Pour a bowl of Serial
duration = pulseIn(pin, LOW);
Serial.print("Channel 1:"); // Print the value of
Serial.println(duration); // each channel