How to wire up arduino uno and WS2812B-LED strip lighting and 16 key pad for game table

hello I am very new to this i have used a raspberry pi before but was very bad at programming and wiring even basic stuff i would imagine for others so understand i know nothing about righting code and small electronic wiring i have tried watching a million tutorial videos on how to do this stuff but its hard for me to pay attention when i have a million questions on things that i feal they do not address on and it leaves me with half the picture and extremely frustrated i have done a million google searches of WIRING DIAGRAM OF ARDUINO UNO INDAVIDUALLY CONTROLLABLE LED STRIP WS2812B AND DEVO 4X4 16 KEY KEY PAD it will show how to wire LED AND ARDUINO UNO OR KEYPAD AND ARDUINO UNO BUT NOT EVERYTHING TOGETHER IN ONE PICTURE OR DIAGRAM im trying to wire up a game table build would appreciate if anyone could help me out with a diagram of this as a whole and maybe a good place to start learning extream basics of programing thanks


Have you ever heard of the saying you eat an elephant in small pieces?
Start with a sketch to light up the LED strip. The best way to do that is to do a Library search on neopixel (the common name for WS2812). Please install one of the libraries; I looked for a name brand like Adafruit. When the installation is complete, click the ... beside the library name and select Examples. Look at each sketch and learn all the bits and pieces (what we call the API). Now, pick the example sketch that is close to what you want and start modifying it. If you don't see anything close, uninstall that library and try the next. Keep doing that until you have a model to work from.
Now, do the same for the keypad.
When both of these are very close to what you want, search the forum for 'merging' sketches. That's it.

1 Like
  • If you will be using an Arduino, tell us what components you have.

  • If you are going to be using a raspberry pi, ask for help on that forum.




Suggestions of things you need to master

Ask questions as they come up

  • Always start a project with a circuit schematic showing all the components and their interconnections.

  • Code “must” be written in a non blocking fashion.

  • To keep code organized and easy to follow, the State Machine technique needs to be adhered to.

  • Using HIGH or LOW does not explain what is happening, use names like: LEDon, RELAYon, ENABLED, CLOSED etc.

  • Avoid magic numbers. Use names that describe the value.


unsigned long oneSecond = 1000; // 1000 ms in one second

unsigned long oneMinute = 60 * oneSecond;

unsigned long oneHour = 60 * oneMinute;

unsigned long oneDay = 24 * oneHour;

  • Let the compiler do the math for you, for 15 minutes, instead of 900000 use: 15ul * oneMinute

  • Keep version backups so you can always go back to the last working version.

  • Do not use delay(…) as it will stop code execution during this delay interval.

  • Avoid using while( ) if there is any chance it significantly blocks normal code execution.

  • Use non blocking TIMERs based on the millis() or micros() functions.

  • Write your code in a neat easy to read style, use white space, add meaningful comments throughout.

  • Use the Arduino onboard LED on pin 13 as a heartbeat LED to show code is running and code is not stuttering.

  • For mechanical switches avoid looking at digital input levels, instead, look at digital input “changes in state”.

  • For readability, place { and } on separate lines by themselves, place each line of code on a separate line.

  • LEDs displaying the current state in a State Machine, can be used to diagnose problems.

  • For diagnosing problems, use serial monitor print statements to confirm variables are what you think they are.

  • Write only small blocks of code at a time. Prove the new code block works 100% before proceeding.

  • The way you learn how to write software is by writing software.




Make this commitment to yourself.

  • Before wiring and turning on the power to a circuit, I will always draw a schematic showing how I will connect the components in my project; this schematic is exactly how I will wire things.
  • I will double check that power connections are correct.
  • I will always use a series resistor of 220Ω on both Inputs and Outputs to protect my controller’s GPIO pins from my blunders.
  • I will never re-wire a circuit when power is applied.

We can help you in your journey when you need explanation on things you do not understand.




Go through this link for suggestions on Software and Hardware

1 Like

Thank you for the info

I’m using a arduino uno a DEVMO 2PCS 4 x 4 Matrix Array 16 Key Membrane Switch Keypad Keyboard Compatible with Ar-duino/AVR/PIC for the keypad and LED STRIP

Thank you for the resources but it gets crazy overwhelming to understand for me is there a spot to get wiring diagrams

  • This might be the problem.
    When things are overwhelming, suggests you are not ready to proceed.

  • We cannot over emphasize the importance of mastering the basics.

  • You need to become proficient with:
    - coding
    - hardware
    - construction techniques
    - reading and making schematics

  • The above can be overwhelming but you will not advance unless you put the effort into learning.

  • Schematics can be hand drawn.
    You can learn to use Kicad or EasyEDA schematic software.

I would suggest you get a copy of the Arduino Cookbook and skim it from front to back. Spend time doing projects that interest you. You may buy a few extra parts that way but charge it learning and eventually you will probably use them any way.

1 Like

I do need to learn the basics I don’t disagree there but I don’t understand why it’s so hard to see a wiring diagram of what I asked about I understand basic electric and have dealt with wiring my home I feel im handy and can do most DIY home projects it’s just when it comes to coding and these micro controllers I get frustrated

Also I can solder I built a home arcade and smart mirror with the raspberry pi but it didn’t come easy for me going to continue reading and learning and hopefully it gets easier appreciate the help

I have done projects that interest me no problem there built a smart mirror with magic mirror and raspberry pi and also an retro arcade with the raspberry pi but the programming stuff was hard for me and I have done some of this stuff but if I’m not really excited to learn something it’s hard for me to stay focused and the coding and wiring of Arduino is very difficult for me that’s why I asked a good starting spot

  • Show us a block diagram of how you perceive the hardware will look like.

  • Best you go to the raspberry pi forum, good luck.

1 Like

No problem for the wiring diagram, but it will take some time and a good set of specifications. I will assume that should take about a week by the time it is documented etc. My source charges about $250 per hour and a 5K minimum.

To learn enough to do what you want took most of us years, not an evening or a few weeks with google. Some of us like me had to use books and papers as google did not exist.

In the long run I think you need to learn some more about electronics. If you can solder etc it should not be that hard. The best thing to do is follow @sonofcy suggestion and break it into parts and do one at a time. @LarryD gave you a great outline to start with.

If you are not happy with this there is a for hire section and other forums. Please realize we are not in the free hardware and or code design service, we are people that enjoy the hobby and will spend a bit of time helping others.

What is this a quiz when you ask me to show what I think it should look like.
And you sound a little bitter when you tell me I should go to a raspberry pi forum lol I was just informing that I have done some projects with them so this is not my first time ever using a product like arduino it’s ok if you don’t want to help I feel all your responses are what I like to call nerd shamming talking down to me because I don’t understand something that you do or comes easy to you and not to me the way you jump to going to a different company’s forum

When you say it took years not a night to learn how to do this I get writing c++ or code is not easy and it is a skill set that you have built over time and I didn’t think I could learn coding overnight but I didn’t think it would take a week to program an LED strip to do some basic lighting for a table a lot of the stuff is already done in the library’s and I can use the examples.I don’t want anything crazy done just basic stuff so I don’t know if I communicated that wrong? I just see people with these nice wiring diagrams and if there was a good place to go to find that?

Also when you say you needed to read books and didn’t have access to google It sounds like there is some animosity there that people now can learn it much faster maybe then when you learned it which means that they can achieve the same thing easier I get the frustration but it’s a sign of the times.
I can ask Chat GBT to wright the coding and will do a pretty good job of getting someone started. I don’t know your age but im not super young either so I remember how things where before the change in culture with smartphones and tech that’s how everything goes as time goes on technology has made things much easier for people either way appreciate the help with some good places to start I will need to start there because a 5k retainer and 250hr is much to rich $ for me thanks though

post a couple of pictures of that (front and back)

  • In post 3 and 7 you were offered suggestions to gain the experience you need to succeed in this hobby.

  • Yes these can seem daunting when you stand back and view everything from a distance.
    You need to assign priorities in those areas where you are weakest.

  • There is no question, number one in the priority is becoming proficient in C++ coding.

  • I suggested the raspberry pi forums as that is where you have had a modicum of success in the past, no other reason.

  • Lots of volunteers here are ready to help when you need clarification or explanation.




  • Wow, really. :thinking:
    That’s disappointing.

  • Some unsolicited advice.
    Suggest you avoid making statements like these:
    - bad at programming and wiring even basic stuff
    - i know nothing about righting code
    - its hard for me to pay attention
    - it gets crazy overwhelming to understand for me
    - it’s just when it comes to coding and these micro controllers I get frustrated
    - it’s hard for me to stay focused and the coding and wiring of Arduino is very difficult for me that’s why I asked a good starting spot

  • A good starting spot is to draw a preliminary schematic showing all the components and their connections you think are needed.

  • If you are willing to proceed I will aid in making a schematic with your input requirements.
    If so, show us a block diagram of how you perceive the hardware will look like.

  • Might be wrong, I think the OP has these.
    DEVMO 2PCS 4 x 4 Matrix Array

Have you ever considered that we may not have one, considering all the time you spend looking for one. Once you understand the basics this will make sense to you.

Most of the users here design their own projects or elaborate on ones they found. The beginners start with something that is published and work with it, modify it until they understand it. Many never understand it.

That is entirely different. Home is AC, computers are DC, the voltages are different as are the currents etc.

Driving a nail, cutting a board is entirely different skill then soldering, programming etc it is an entirely different skill set as you know.

That is why I recommend the Arduino Cookbook but you condemned, why because you had to read?

Several people have given you good advice but poor me cannot do it. At this point I will let you be, good luck.

I have been reading and watching as much info as I can find and digest as possible tinker-cad is what I was looking for to make a good wiring diagram or someone who could show me that on tinker-cad but I already figured out the coding for it or I should say chat GBT did for me so I can finish this table but I plan on trying to learn so I’m able to write my own coding but as far as getting something done fast or an answer to my question chat GBT wrote a perfect script for what I needed and programmed every button on keypad and tells you exactly how to wire in about 10 seconds and if I see any errors when verifying the code you can copy and paste the error code in and it will fix it I get that you don’t learn how to wright code from doing this but it definitely helps because it will wright the script and explain why it wrote the code the way it did and seeing it and getting explanation helps.