2022-08-18 12:00 AM - last edited on 2023-09-01 09:26 AM by Amel NASRI
I have a project. I have 13 button and these buttons control to leds. For example when i click first button, first led will be on (also when i click again, it will be off). So microcontroller need to knows everything about it. But how can i control these leds? Because i need 36*3 io pins (RGB). Also after i need to control brightness of all leds with dimmer.
(Do you have any IC suggestions for leds control & leds pwm control?)
2022-08-18 12:36 AM
you can use TLC59711 for LED driving. its also chainable IC
2022-08-18 12:45 AM
Or you can use digital RGB LED as WS2812D.
2022-08-18 01:49 AM
There are many LED drivers also from STMicroelectronics, e.g.:
Of course, the exact type depends on several factors, e.g. how you want to control the LEDs (I2C, SPI, etc). With RGB LEDs you will certainly only switch one LED per channel, so you should be able to get by with one LED driver for 5V.
Good luck!
Regards
/Peter
2022-08-18 02:53 AM
WS2812B LEDs are easy to buy and easy to use. Need only a SPI + DMA because of timing constraint:
https://adastra-soft.com/a-wand-with-light-animations-using-ws2812b/
2022-08-18 04:50 AM
or TIM+DMA https://www.hackster.io/javier-munoz-saez/coding-your-own-neopixel-driver-baremetal-stm32-b6b4d0