Greetings,
I have seen a LOT of solutions using interrupts that quite frankly confuse me, because I have an Arduino Mega and don't always see them as being interchangeable, so let me try asking something a little different...
In my case I have an RC Receiver that is outputting PWM, which others have said is really PPM, but it is 6 discrete outputs, not a single multiplexed signal.
If I wrote a program to set a pin as an Input and use PulseIn to read it, why isn't that a good solution? More importantly, how do I figure out which pins on the Arduino are being used for other things and cannot be used as an input, when the pinout maps say they should be able to be used as such?
I have 6 inputs I am trying to use which are digital inputs on pins 24 through 29. The entire bank of pins on the end of the Arduino Mega are pins 22 through 53, and they all say they are digital inputs.
However, no matter which 6 of these pins I use, I can only get a signal value on 3 of them. Can anybody explain in a somewhat simple way why this is? In my current test case, I can get input on 24, 26, & 28, but not 25, 27, & 29. No matter where I put the inputs, only half work. I even tried another receiver, so I don't believe that is where the problem is. This is really confusing to me - thanks in advance for any answers!
My most recent code is enclosed. I have a Robogalia accelerometer/gyro shield plugged into the Mega, but none of that code is active.
Thanks