In another thread i am trying to light leds in accordance with the output from a MSGEQ7 audio chip.
while I await the arrival of these chips I have been experimenting with pwmout to drive an led.
Using a pot on adc channel three to provide a variable input level i am using the readadc output multiplied by 4 to give me a value between zero and 1023. I am using one of the pwmouts on c.5 of my 20x2 chip.using the 0- 1025 as the duty cycle value
The result i get is that i am able to vary the brightness but the led flickers all the time except when the duty cycle is zero when it goes out. Is it possible to choose a period which means that the output does not flicker but maintains a steady brightness level depending on the pot setting. This what i am trying to achieve , in my project i will have a loop which varies the duty cycle depnding on the output from the msg. but i don.t what the flicker undless determined by the input and not by the basic command.
Is what i seek to do possible and could somehelp with the command i need. Thanks for your help .
while I await the arrival of these chips I have been experimenting with pwmout to drive an led.
Using a pot on adc channel three to provide a variable input level i am using the readadc output multiplied by 4 to give me a value between zero and 1023. I am using one of the pwmouts on c.5 of my 20x2 chip.using the 0- 1025 as the duty cycle value
The result i get is that i am able to vary the brightness but the led flickers all the time except when the duty cycle is zero when it goes out. Is it possible to choose a period which means that the output does not flicker but maintains a steady brightness level depending on the pot setting. This what i am trying to achieve , in my project i will have a loop which varies the duty cycle depnding on the output from the msg. but i don.t what the flicker undless determined by the input and not by the basic command.
Is what i seek to do possible and could somehelp with the command i need. Thanks for your help .