Ht16k33 to drive rgb led

Status
Not open for further replies.

urbanspaceman

Well-known member
Hi, i have a 'simple' circuit with 9 rgb leds
this leds are driven by one ht16k33
i'm able to lit all the 9 leds in red, green and blue color
i can mix Red, Green and Blue but i can't control the brightness for each led...
brightness is common to all the leds...

any advice to control brightness and mix color to obtain all the possible colors?

maybe an extended version of the ht16k33 library, or a function...
Tahnks
 
I found a ht16k33 part on Adafruit with the note :: Note that the driver can turn LEDs on and off but does not have the ability to individually PWM dim them.

It is an i2c device sets a given value I suppose - not sure if the chip can do PWM with other commands not implemented - the chip detail says it has "16-step dimming circuit".
 
The data sheet might show how easy it would be to activate the dimming - and how it works that might show adding a single new command to the driver might allow controlling that.

Depending on how fast the i2c interface runs - multiple Hz updates might be possible to provide for some effects.

I did a quick search and stopped at Adafruit - then the linked data page - there may be more advanced drivers on github ...
 
The data sheet might show how easy it would be to activate the dimming - and how it works that might show adding a single betbright casino review driver might allow controlling that.

Depending on how fast the i2c interface runs - multiple Hz updates might be possible to provide for some effects.

I did a quick search and stopped at Adafruit - then the linked data page - there may be more advanced drivers on github ...

Thanks for the advice!
 
Hi, i have a 'simple' circuit with 9 rgb leds
this leds are driven by one ht16k33
i'm able to lit all the 9 leds in red, green and blue color
i can mix Red, Green and Blue but i can't control the brightness for each led...
brightness is common to all the leds...

any advice to control brightness and mix color to obtain all the possible colors?

maybe an extended version of the ht16k33 library, or a function...
Tahnks

I know this is an older post, but the question was never answered so I figured since it comes up on a Google search, it deserves an answer.

Here is a write up on this chip, under the section entitled "Dimming" there is a full explanation of what byte you need to send to dim the LEDs.

And in case that link becomes unavailable in the future, here is a screen shot of that section:

Screen Shot 2020-12-26 at 11.01.56 AM.png
 
Status
Not open for further replies.
Back
Top