Page 1 of 1

GPIOS CONTROLLING MULTIPLE 5V LEDS

Posted: Tue Feb 03, 2015 10:26 pm
by CORRUPT27
Good day,

I am not a programmer or do i have any electrical experiance, so i can will take all the help i can get. My brother has created a arcade with a raspberry pi and is using 22 of these LED http://www.ultimarc.com/ultralux.html buttons. We are able to get them to light up using an external power. But my brother was hoping to have them light up according to what emulator you are using,. I have looked at a few examples where you can use the GPIO to control the lights. The only issue is that in the example the LEDs need 3.3V. These LEDs are 5V.

Can anyone point me in the right direction?

Thank you

Re: GPIOS CONTROLLING MULTIPLE 5V LEDS

Posted: Tue Feb 03, 2015 10:43 pm
by DougieLawson
The MCP23017 runs from the I2C bus and can drive 16 5V0 GPIO pins.
You can have up to 8 uniquely addressable MCP23017s on the I2C bus.

It's a very versatile chip and easy to drive from python or C/C++.

Re: GPIOS CONTROLLING MULTIPLE 5V LEDS

Posted: Wed Feb 04, 2015 7:07 pm
by CORRUPT27
I am sorry for my ignorance but how can i power my other 6 LEDs

Re: GPIOS CONTROLLING MULTIPLE 5V LEDS

Posted: Wed Feb 04, 2015 9:15 pm
by DougieLawson
CORRUPT27 wrote:I am sorry for my ignorance but how can i power my other 6 LEDs
Two MCP23017s give you 32 GPIO pins.