Pages: 1 [2]   Go Down
Author Topic: Controlling position of linear actuator  (Read 2214 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
God Member
*****
Karma: 27
Posts: 829
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Pages: 1 [2]   Go Up
Jump to: