How to control lots of LEDs and buttons?

July 16, 2024, 18:55

jeromel1978

Hi, I have a project that requires 36 independently controlled LEDs and 36 buttons. I don't know what I need to be able to control that many LEDs and detect when any of the buttons are pushed. Any ideas?

oops.se

If you do a 6x6 matrix for the buttons = 12 GPIO and to control 36 LEDs use WS2812 that is individualy addressable LEDs that just needs one GPIO (+ a level shifter) to control the LEDs.

oops.se

So in total, with 13 GPIO pins you can control 36 buttons and 36 LEDs

jeromel1978

Awesome! Thanks! Definitely beats my 1-to-1 connections in my head. LOL

oops.se

yw