Read RC pulse that actually works?

Hi all

I tried RCArduinoFastLib and it is so glitchy and it sends random throttle to the RC car and i tried PulseIn but it is too slow.

Is there a working glitchless RC read pulse code?

pulseIn() blocks until a pulse is received or it times out. What did you have the timeout set to ?

I dont remember...

David121:
I dont remember...

The default is 1 second but it would be a very strange RC system if that was ever triggered.

How are the RC receiver and Arduino wired together ? What is powering both and do they have a common GND ?

UKHeliBob:
The default is 1 second but it would be a very strange RC system if that was ever triggered.

How are the RC receiver and Arduino wired together ? What is powering both and do they have a common GND ?

an ESC BEC was powering receiver at 6V, arduino powered through VIN from receiver, yes same ground.

1ms is full reverse, 1.5 ms neutral and 2ms is full throttle

Not a good idea to power the Arduino with 6V through VIN. That could certainly explain the glitchiness.

jremington:
Not a good idea to power the Arduino with 6V through VIN. That could certainly explain the glitchiness.

Are you implying i am not sending enough power to the Arduino? that could may be the problem since its shared power with a hungry servo. maybe i should try all the libraries again using a separate power source

That was a statement of fact. Sharing the power with a servo makes the situation much worse.

Use a separate regulator to provide 7V minimum to Vin or 5V to Vcc for the Arduino.

jremington:
That was a statement of fact. Sharing the power with a servo makes the situation much worse.

Use a separate regulator to provide 7V minimum to Vin or 5V to Vcc for the Arduino.

ill use a 2s lipo to vin directly and try again. ill post back soon as i try it out

I have given up for now. I tried using separate power and only relayed the throttle through the arduino but the code was sending the most random pulses to the ESC. This was using RCArduinoFastLib.