OK, I gave up on the web Editor and downloaded the IDE to run offline. Now I see the toolbar etc. But I get the same result: monitor returns zero after each timeout. I still see the DC level of the PWM vary as I move the RC transmitter's stick. God I wish I had a scope....
Since I am a newbie I am breaking this project into small pieces to gain experience. Step 1 is to try out the PulseIn. My current setup is a single 3-wire servo extension cable from anRC Rcvr channel to a 3-pin connector on my proto shield which connects to pin 15 on the Atmega (DIGITAL 9 connector pin). The Uno passes +5V to the Rcvr via this cable.
To answer your earlier question, the four servos are/will be powered from a separate supply which right now is a 6V lantern battery but if I do build a model ship will be NiMH or whatever. Thus the pins on the connectors intended for the servos are GND, +6V, Signal. The pins on the connectors intended for the RC Rcvr are GND, +5V, Signal. GND is common - Arduino, Rcvr, Servos. Right now there are no servos plugged in and no +6V; testing this will be the next stage when reading the Rcvr's PWM with PulseIn works.
By the way, I already like the offline IDE better than the web version.
So here is the code - right out of the Reference examples.
int pin = 15;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(pin, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int duration = pulseIn(pin, HIGH);
Serial.println(duration);