Driving a meter in 60 steps

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
twesthoff
Posts: 247
Joined: 17 March 2006, 6:45 AM
Location: Fredericksburg, VA

Driving a meter in 60 steps

Post by twesthoff »

It shouldn't really matter what frequency you use for the PWM anything greater than 20Hz should work fine.  If you go too low you will see the needle wiggle.  If you are worried about not getting 0V, you can actually stop the pwm when you want to display zero.  All you will need is the meter, a resistor, a pwm pin, and your program.  You might want some push-button switches to set the time or some other way to set the time.

On 10/1/2013 4:20 PM, ZBasic wrote:
thanks

> The only effect of a slower clock is a lower maximum PWM frequency

but I assume 50hz isn't an issue ?



FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

Post by FFMan »

this is working out well - just making the final 328l based h/ware to fit in the meter unit.

not the most accurate cock in the world but a nice item put to use.

thanks
Post Reply