Hi!
I have put together a circuit that appears to work... but....
OK - I have a 14M that is using pwmout (at 4Khz) at varying duty cycles, across a 100K/220uf, to drive an LM3914 and a 10-bar LED unit. The unit needs to build up from zero to a full set of bars and then back to zero again every few seconds. It continuously loops, with a 'beep' of sound when it hits min and max. The unit works fine.
However, I have found that if I set the duty-cycle for a new set of batteries (2xAA), as the battery voltages deteriorate, my initial calibration becomes useless and after a while, just 5 of the bars are ever illuminating.
(For various reasons, I would rather not use a higher voltage battery and a voltage regulator)
Question-1: Do my problems sound correct or could I have done something stupid?
Question-2: I was wondering if I could somehow monitor the battery voltage using the ADC and adjust my calibration accordingly using a formula based on the current voltage, to re-adjust exactly at what stage each bar illuminates....
If this sounds a sensible option (any other ideas?), assistance in what components/code I should be using to action the above would be gratefully received.
Detailed replies greatly appreciated.
Kind regards
Mik
I have put together a circuit that appears to work... but....
OK - I have a 14M that is using pwmout (at 4Khz) at varying duty cycles, across a 100K/220uf, to drive an LM3914 and a 10-bar LED unit. The unit needs to build up from zero to a full set of bars and then back to zero again every few seconds. It continuously loops, with a 'beep' of sound when it hits min and max. The unit works fine.
However, I have found that if I set the duty-cycle for a new set of batteries (2xAA), as the battery voltages deteriorate, my initial calibration becomes useless and after a while, just 5 of the bars are ever illuminating.
(For various reasons, I would rather not use a higher voltage battery and a voltage regulator)
Question-1: Do my problems sound correct or could I have done something stupid?
Question-2: I was wondering if I could somehow monitor the battery voltage using the ADC and adjust my calibration accordingly using a formula based on the current voltage, to re-adjust exactly at what stage each bar illuminates....
If this sounds a sensible option (any other ideas?), assistance in what components/code I should be using to action the above would be gratefully received.
Detailed replies greatly appreciated.
Kind regards
Mik