Go Down

Topic: Controlling position of linear actuator (Read 2765 times) previous topic - next topic

Retroplayer

ok, doing some math...

PWM frequency is 125Hz. Minimum duty cycle is 0%. The steps are in 12.5% for 8 steps = 100%

If I were to translate that to 0 to 255, I would have duty cycles of 32, 64, 98, etc... (256/8)

Assuming I keep the PWM frequency at 125Hz
32 would give me 1ms
64 would give me 2ms
and so forth...

Is my math correct?

Go Up