PWM converter, need help

Wait, am I missing something? Shouldn't it be 99.4 mph?

ohhh, that's right. I used my rough assumption writing that reply. I will double check with more reliable PWM source. Thanks for pointing that out!

I just made this little chart for you to use. I hope this helps.

km/h mph
  0	  0.0
 10	  6.2
 20	 12.4
 30	 18.6
 40	 24.9
 50	 31.1
 60	 37.3
 70	 43.5
 80	 49.7
 90	 55.9
100	 62.1
110	 68.4
120	 74.6
130	 80.8
140	 87.0
150	 93.2
160	 99.4
170	105.6
180	111.8
190	118.1
200	124.3
1 Like

Nice to see it worked out for you. Don't hesitate to ask if something in the sketch you do not understand.
I recommend you remove the | 1 << TOIE1 as it caused some surprise to me, that I do not understand yet.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.