Joined: 30 Aug 2007 Posts: 144 Location: South Africa
Sending PWM duty cycle over RF
Posted: Mon Oct 29, 2007 2:57 pm
Hi. I am trying to read the value of a adc and sent it over rf to the reciever, to use that value as the duty cycle for the PWM of a motor. Problem is that it is not a smooth change in speed as i am turnig the pot. It looks as if the delay between the sent and recieve influence the value so much that it is visible on the motor speed. Can you please give some recomendation as to do it better.
You execute the code if the speed is 161 or higher.
But then you subtract 200 from the speed before you give it to the
pwm duty cycle function. Then you are giving the function a value
of -39. I'm sure you don't intend to do that.
Gerhard
Joined: 30 Aug 2007 Posts: 144 Location: South Africa
Posted: Mon Oct 29, 2007 8:31 pm
Thanks, although it didn't solve the problem on the recieve side it helped on the transmit side LED.
Late night mistake.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum