Hello,
David Lincoln, author of book "Programming and customizing Picaxe" (second edition) describes how work PWM command.
Page 161, a program for controlling motor speed and direction use a formula for determinate duty cycle in relation with the value of potentiometer. I would understand equation in line:
pwmonper = avalue - revmin*21/10 MAX 1023.
Why *21/10 ?
Congratulations.
Jean-Yves
David Lincoln, author of book "Programming and customizing Picaxe" (second edition) describes how work PWM command.
Page 161, a program for controlling motor speed and direction use a formula for determinate duty cycle in relation with the value of potentiometer. I would understand equation in line:
pwmonper = avalue - revmin*21/10 MAX 1023.
Why *21/10 ?
Congratulations.
Jean-Yves