I have got a radio transmitter and receiver and I want to control a motor with it. I can read the radio signal perfectly and I can also control the motor with a potentiometer. I use an Arduino MEGA 2560. The motors are actually brushless motors with ESC (Electronic Speed Controller)
The problem is if I put the line
motor.attach(2);
There is automatically jitter in the radio signal. The overall code is (it reads the radio signal and maps it to [0 - 100])
If you still need help - I've written a library for RC-Receiving which works quite well (I'm steering a quadcopter with it).
If you're still interested, write me a pm or so.
You don't say which transmitter/receiver you are using. ESCs put out loads of RF
interference, if you have a cheap receiver then you'll pick up lots of noise.
You need a correctly designed antenna, as far from the ESCs and motors as poss,
and a selective receiver with a decent front-end.