Recently, when trying to use``Use code tags to format code for the forum a sketch that I have been using for 10 years without problems, with the PinChangeInt library, to read the channels of an RC receiver, it has stopped working, don't read, and it seems that the setup is restarted, and the void is not executed loop.
Place a Serial Print in setup ( ) to see if the Arduino is indeed restarting.:
Yes I did. It restart. In IDE only appears the voidsetup serialprint
Always show us a good schematic of your proposed circuit. Show us **good images of your ‘actual’ wiring. Give links to components:
Is very easy Only two wires: Channel 3, pin Ch3, of the receiver to pin A10 in Arduino MEGA, and Ground Receiver pin, to GND pin in Arduino MEGA.
Trasmitter FUTABA FC-18 and Receiver FUTABA DUalConversion FP-R128DF
Check your voltages under load:
MEGA with 5A powersource OR/AND USB cable , and Receiver with 5 A regulator. Voltages are perfect under load.