First, hi, I'm new around here, so take care of me .
Recently it arrived to my hands an Arduino Robot, the official one, and I've been trying to add to it a Rc control with some RC receiver that I had around here, the receiver is the spektrum sr3000rx, and I'm wondering if I can make use of the pulseIn instruction to read the channels of the receiver.
I've tried to use the same kind of code I used in an old project:
ch1 = pulseIn(TKD0, HIGH, 25000);
But when I print thee ch1 on the LCD screen I only see a 0. Any ideas?, this instruction is supported?, or there's another one for the robot to do so?
Umm the old project was with an UNO board, so I'm wondering if I have to put "something" before the instruction, for example to read I have to use Robot.digitalRead not digitalRead, so maybe I have to use Robot.pulseIn...arg, I'm just guessing, I'm tired of trying things.
I wanted to test the pin, to see if the receiver is sending the pulses with:
ch1 = Robot.digitalRead(TKD0);
And it works fine, I can see clearly the 1 on the screen that is telling me "hey, I have something here", but when I use the pulseIn I only receive a 0, and I know that I must have a number between 1000 and 2000.