UnbiasedReptile
New member
Hi,
Disclaimer, I am quite new to the embedded world.
I have a Teensy 4.1 and I want to control the RGB leds in several of these buttons. In total I have six buttons. Since they are common anode each buttons has three wires corresponing to the RGB leds that I need to control. This results in 6*3=18 analog pins needed. Since I am already using several pins for other things, I do not have enough pins for this.
I have looked at several potential solutions. I have seen some people use multiplexers, however this does not work in my case since I need to control them all at the same time? I have also seen DACs, however I have only found modules with a low amount of extra pins. I would prefere something like 16 extra analog pins.
Another question is that the LEDs in the button can use the 3.3v from the Teensy, however they could also be powered with higher voltages like 12V it says. How would I go about this?
Is there perhaps a module or similar that would do both of these for me (reduce the amount of pins needed from the Teensy and power the LEDs with 12V)?
Thanks!
Disclaimer, I am quite new to the embedded world.
I have a Teensy 4.1 and I want to control the RGB leds in several of these buttons. In total I have six buttons. Since they are common anode each buttons has three wires corresponing to the RGB leds that I need to control. This results in 6*3=18 analog pins needed. Since I am already using several pins for other things, I do not have enough pins for this.
I have looked at several potential solutions. I have seen some people use multiplexers, however this does not work in my case since I need to control them all at the same time? I have also seen DACs, however I have only found modules with a low amount of extra pins. I would prefere something like 16 extra analog pins.
Another question is that the LEDs in the button can use the 3.3v from the Teensy, however they could also be powered with higher voltages like 12V it says. How would I go about this?
Is there perhaps a module or similar that would do both of these for me (reduce the amount of pins needed from the Teensy and power the LEDs with 12V)?
Thanks!