Friday, 19 October 2018

microcontroller - Serial control of 25 LEDs from a single pin


I have a microcontroller with one available digital pin.


How can I control 25 LEDs?




Answer



I2C IO Expander: - Some protocol overhead, but it should be expandable to a very large (thousands) number of LEDs.


Simple shift register - Dead Simple interface, the LEDs may flicker when updating if the shift register clock is not fairly fast. Using a double buffered shift register will fix this.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...