Skip to content

Leds #357

Answered by tttapa
kilehh asked this question in Q&A
Leds #357
Dec 9, 2020 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

No, you can't use a multiplexer to drive LEDs. A CD74HC4067 just consists of 16 switches that connect between one common pin and 16 “channel” pins. Only one of the switches can be connected at any given instant. This means that if you try to drive LEDs using a multiplexer, you can only turn on one of them at a time, which is probably not what you want. A workaround is to scan through all outputs really quickly to create a persistence of vision, but this requires you to spend time updating the LEDs all the time, eating up precious CPU time on your microcontroller. The common solution is to use a special-purpose chip to do the scanning, so you don't have to worry about it in your microcontr…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kilehh
Comment options

@tttapa
Comment options

@kilehh
Comment options

Answer selected by kilehh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants