t.man
New Member
hi!
i want to regulate three LEDs birightness.
llike this:
have a setpoint. from my defined range, take any value and subtract the setpoint then the greater the difference the bighter the led. for example, take 0 - 15 and setpoint be 6.
o - 5 : green led
6 - 10: yellow led
11 - 15: red led
then looking at my setpoint, one can see green brightness increases from 5 to 0, yellow increases from 6 to 10, etc.
is that possible using a PWM or the red led would already have been bright, i've tried to read the datasheet but can't clearly get how PWM works
https://www.atmel.com/dyn/resources/prod_documents/doc2466.pdf
i want to regulate three LEDs birightness.
llike this:
have a setpoint. from my defined range, take any value and subtract the setpoint then the greater the difference the bighter the led. for example, take 0 - 15 and setpoint be 6.
o - 5 : green led
6 - 10: yellow led
11 - 15: red led
then looking at my setpoint, one can see green brightness increases from 5 to 0, yellow increases from 6 to 10, etc.
is that possible using a PWM or the red led would already have been bright, i've tried to read the datasheet but can't clearly get how PWM works
https://www.atmel.com/dyn/resources/prod_documents/doc2466.pdf