Sparkfun Button Pad 2x2 - Beakout - More power

I'm working on a project where i'm using this: Button Pad 2x2 - Breakout PCB - COM-09277 - SparkFun Electronics together with their RGB Diodes: Button Pad 2x2 - Breakout PCB - COM-09277 - SparkFun Electronics

Everything works exactly like it should. I can the individual LEDs and nothing have blown up, but i want to power the LEDs from an external power source (i'm thinking 5 or 12V, depending on how much i need, as i have that easily available) to give them some more power, but i can't quite figure out how to do it because of how the breakout does the wiring of the LEDs.

Can anyone guide towards how i might achieve this?

My current schematic looks like this:

i see in your schema no power supply input

Hi, @kostecki
Welcome to the forum.

Can you add the LEDs and Button pad to your circuit.
At the moment it doesn't mean much without those important bits of hardware.

I notice you are using Tx and Rx pins for something, what is connected to JP1?

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

Oh, i apologize. The JP-connectors all corresponds to schematic for the breakout board: https://www.sparkfun.com/datasheets/Components/Buttons/2x2Button_Pad_Breakout-v01.pdf

The ESP32 is powered by USB - hence the missing power supply.

make new schematic and show where you want to attach 12v.

That's sorta the reason for this post. I don't know how to attach the 12V to the LEDs with the weird matrix that the breakout board uses.

I still need to be able to control the LEDs using the ESP32, but with external power.

so, Pins 6,7,8 are output, they provide power for LED and GND ist 21,22,24,25.
pin 1 is power for switch and goes thru buttons to pins 17,18,19,20. they no need to be changed.

GPIO26, GPIO27, GPIO32 and GPIO33 are output for the LEDs.
GPIO16, GPIO17 and GPIO18 are also output. These are the 3 R, G and B pins that are shared between all of the LEDs.
GPIO34, GPIO35, GPIO36 and GPIO39 are input for the switches.

Use the vin pin, read the data sheet for the max allowed voltage rating.

Why do you need more power? The leds are being driven as designed by the breakout board. All you want to do is plug it into the wall. Right? If so, use the vin pin and gnd

The LEDs are just very dim, so i was hoping to give them a bit more than the 3.3V provided by the ESP32.

You can use transistors or, 4n35 optoisolators, that are controlled by the output signals. Im not too sure if you can change the resistors or anything else

If you can change the resistors, then you should be able to make those pretty bright

R2 must match to proper current, because LED working from current, not from voltage.

1 Like

That seems to be exactly what i was looking for. Thank you so much for the help so far!

I'm not quite done struggling yet, though. I can't wrap my head around how to control the transistors (2N3903 that i had lying around) using the 3.3V on the output pins. Am i better of using something else? Is there an easy solution?

Hi,


Circled circuit will not work due to the voltage drop across the LED.
If the Blue LED drops 3.4V then the base of the BJT will need to be at 3V4 + 0V7 = 4V1
ESP32 can only output near 3V3.

You will also need to check the series resistor value.

@kostecki Sorry but we need a complete diagram including the switch AND LED wiring.

Tom.... :smiley: :+1: :coffee: :australia:

With the changes suggested by @kolaha it looks like this:

Hi,
Please read post #14.

Tom... :smiley: :coffee: :coffee: :australia:

Hi,
This will not work as you are switching the base to gnd.


The BJT will never turn ON.
Also you do not need to have BJT buffering the switches, it makes no improvement to the LED brightness.

Producing a circuit with all the components in it, including the switches and LED would have helped.

Tom.... :smiley: :coffee: :coffee: :coffee: :coffee: :australia:

EDIT.. See post #19.

Whoops.. I must have been tired :smiley:
Obviously the GND-pin coming form the LED (Pin4 on TB1-TB4 here) should be switched to ground.

Pin 1 and 2 aren't the switches. Pin 1 of TB1, TB2, TB3 and TB4 is the GND pin of each switch with a shared 3V3 coming from pin 2 on TB6

Hi,
I think this will help, schematic including buttons and LED arrays.

Your LEDs will appear dim as you are multiplexing, each LED getting a current supply with 25% duty cycle.

Sorry my mistake in post #17, looking at wrong switch config. :dizzy_face:

Tom... :smiley: :+1: :coffee: :australia:

Which is why i figured i should supply the LEDs with a higher voltage to give them some power power. Keep the current at 20mA, but raise the voltage above what the ESP32 can deliver on it's GPIO pins.

Am i completely missing things here?