Author Topic: Convert single input to multi output with enable/disable for each output  (Read 481 times)

0 Members and 1 Guest are viewing this topic.

Offline whiskeyjackTopic starter

  • Contributor
  • Posts: 10
  • Country: in
I want to connect 8 LEDs to one GPIO. GPIO goes high LEDs turn ON, GPIO goes LOW LEDs turn OFF or opposite logic - both are acceptable. I want to have some sort of IC in between which allows me to select one or more LEDs to turn ON when my GPIO goes HIGH (or LOW). It will be convenient if I can do this selection using i2c. So, if I have LED1 ... LED8 and I have enabled 2, 5, 7 then I can do a PWM on my GPIO and only LED - 2, 5, 7 turn ON based on PWM. Rest (1,3,4,6,8) remain OFF.

I am looking at demultiplexer list on Digikey but haven't found the right IC yet. Can someone help me select a part number? The IC needs to generate a weak logic output only. I will a mosfet/transistor to drive the LED from this weak logic output.
 

Offline ggchab

  • Frequent Contributor
  • **
  • Posts: 283
  • Country: be
Re: Convert single input to multi output with enable/disable for each output
« Reply #1 on: February 18, 2020, 02:05:38 pm »
An I/O expander like the MCP23017 ? Each of them could control 2 sets of 8 LEDs  :)
 
The following users thanked this post: whiskeyjack


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf