CORRUPT27
Posts: 3
Joined: Sat Mar 29, 2014 1:04 pm

GPIOS CONTROLLING MULTIPLE 5V LEDS

Tue Feb 03, 2015 10:26 pm

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

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: GPIOS CONTROLLING MULTIPLE 5V LEDS

Tue Feb 03, 2015 10:43 pm

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++.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

CORRUPT27
Posts: 3
Joined: Sat Mar 29, 2014 1:04 pm

Re: GPIOS CONTROLLING MULTIPLE 5V LEDS

Wed Feb 04, 2015 7:07 pm

I am sorry for my ignorance but how can i power my other 6 LEDs

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: GPIOS CONTROLLING MULTIPLE 5V LEDS

Wed Feb 04, 2015 9:15 pm

CORRUPT27 wrote:I am sorry for my ignorance but how can i power my other 6 LEDs
Two MCP23017s give you 32 GPIO pins.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”