Scale from RC Radio 1% to 100% (Idea)
I need to Run a DC Motor but in a scale...
If some one dons this please help
RadioScalefactor = ThrottleMax - ThrottleMin
CycleStep =10
Scale= ((Throttle - ThrottleMin) * 100/ RadioScalefactor )
If (CurrentStep < Scale) And (Scale <= 100) Then
While (CurrentStep * CycleStep < 100)
CurrentStep = CurrentStep + 1
Wend
While (CurrentStep * CycleStep > 100)
CurrentStep = CurrentStep - 1
Wend
End If
MotorDc=CurrentStep (Motor Speed)
Scale from RC Radio 1% to 100% (Idea)
hey JDG
Thanks
PWM :
yes one direction thanks but ken you send some code of how you do that.
i need one idea from where to start