TransWikia.com

How do I control multiple 4 pin LEDs with minimum GPIO pins?

Electrical Engineering Asked by Kshitij Bhatnagar on January 4, 2021

I am using 42 four pin LEDs (common cathode) for my project, and I have to control them individually.

I know we can use "WS2812b" for more effective usage, but 4 pin is a requirement in my case.

I am using 74HC595 shift register to control 8 pins, but for controlling 42 LEDs I need 16 shift register, and not a good solution. Any idea/suggestions?

3 Answers

I'd like to mention Charlieplexing, which exploits the directionality of diodes and the ability for microcontrollers to both source and sink current to efficiently multiplex an array of LEDs.

I'm not sure exactly how well it will work with your common cathode RGB LEDs but it might be worth giving a try along with other methods

Answered by syntax on January 4, 2021

Use 2 Pcs HV5222PG-G, which is a 32-bit shift register ic. Or you can use any microcontroller to do so.

You will need 42+3 = 45 Pins in total.

Answered by Deepak on January 4, 2021

You want to multiplex your LED's.

This http://lednique.com/display-technology/multiplexed-display/ (Simple introduction) and this https://www.instructables.com/Practical-Guide-to-LEDs-4-Matrix-Multiplexing/ (more in-depth) are what you want to do.

It's not complex or unknown. You just didn't know what to call it ;) You'll probably need some line drivers or (if you're cheap like me) a bunch of transistors because your CPU's I/O won't be able to directly handle the current. The switches shown in the referenced links are, obviously, transistors or drivers....

Answered by Kyle B on January 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP