How to connect these LED buttons to an Arduino pro micro (buttonbox)

Hello,
First of all, I am totally new to Arduino and have very limited knowledge of electronics. I have made a buttonbox and wondered if this connection would work for a LED button.
This is the wiring scheme I made for the LED button:


Can anyone tell me if this would work?
I have two of these LED buttons and thought I could connect them in a series to the VCC and GND and the inputs A3 and 9 to each other and also three other simple buttons. Is that right?

Welcome
If you are new have you tried any of the included sketches in the ide along with a breadboard

These type of buttons are generally just 2 components together and learning how to use individual components first is generally best, building up to your project.

Arduinos often have a built in led so you can breadboard them with a simple push button and learn the basics of coding.

Important concepts will be debouncing, millis timing, non blocking code.

Post what you manage to do and then we can help.

As for the wiring we would need to know the components and the data sheets for same and also how you want it to behave

Hello beschuitelia

Take a view to this guideline for the interconnction of buttons and leds to the Arduino.

Someone obviously put some effort into making the drawing. Why do you doubt it? Why not just try it?

No. (And anyone who says they can is a liar).

You describe the components you have as "led buttons" but what you have drawn is unclear. You seem to be indicating the device has 5 terminals, but only 3 are labelled.

You ask if this "would work" but you do not describe what you mean by "work". We cannot see into your mind to know what you mean by "work".

So please post a link to a page or document that gives technical details of the "led button". Also describe how you want to use the buttons, what function they will have in your project and how the LEDs will be used.

Your description is unclear. It could be that if you wire them in that way, the buttons, be LEDs, power supply or Arduino could be damaged by a short-circuit. So please post a schematic showing how you propose to wire them. Schematics are perfect for describing how components will be wired. English words, or words in any human language, are far from perfect for describing circuits.

Thank you for these tips! Here is a further explanation of what I am trying to make. I hope this is helpful and not missing anything.

So I am making a button box with the following wiring scheme:

I have bought the red (12V, Momentary self-reset, 19mm) version of this button: https://nl.aliexpress.com/item/1005002509687799.html?spm=a2g0o.order_list.order_list_main.139.1e2d79d2VsXq4e&gatewayAdapt=glo2nld
And I bought this momentary black engine start button: https://nl.aliexpress.com/item/1005002509687799.html?spm=a2g0o.order_list.order_list_main.139.1e2d79d2VsXq4e&gatewayAdapt=glo2nld

I want the lights to go on when I press the button and to go off when I press the button again.

I wondered how I could connect the two 'led buttons' named above in the wiring scheme I have. What is going to be different?

The buttons/switches I have are placed like this:

Well I don't know but maybe it will ruin some components

Alright, I'll look into that, thank you! I have sent a message here with some further info about the components.

Thank you for the info. I do unfortunately not have the knowledge yet to fully understand this but I'll check if it could be useful

Complex projects are just lots of simple things working together. You are posting schematics for complex things while asking simple questions. That would make me think you need to start somewhere more towards the beginning.

In my experience it is best to imagine the most simple aspect of your project and start there. Work iteratively one small step at a time. As stated earlier I would start with your arduino, a breadboard and a single momentary button (could just be a wire). This way you will understand your project completely and have a series of sketches that are useful to many other projects such as

Momentary button sketch
Momentary button and led sketch
Momentary buttons and led sketch
Momentary buttons and LEDs sketch
MBs and LEDs array sketch
MBs and LEDs bitArray sketch
Etc

Wiring is always dependent on the components data sheets and the intended action and can likewise be reduced to simplest form

Ie
Project with just load
Project with load and single button
Project with load button and led indicator
Etc

Shall I guess who is who?

Design a schematic by using standard circuit symbol .

1 Like

There are only two ways to make electronics

  • learn how to make it
  • buy it

Yep thank you so much. I thought it was nice to add a button with light but also knew it would probably be too complex if I didn't have a template of how to wire each wire. I think I'll just replace it with a normal button and finish this button box so I can use the template I found on the internet. I am really interested in these electronics so I am going to buy some starter stuff as you mentioned to learn how everything works and build up from there on.

The switch in the schematic is wired correctly, assuming it is the standard type of "illuminated switch" that is found on so many auto/marine dashboards etc.

If you are afraid of damaging things, use a power supply that has output short protection.

Yep it is. I am going to make some simple things in the upcoming months and learn how each component works! Starting from the bottom instead of jumping on these more complex things

Thanks

I refuse to spend time tracing wires on a layout for free. If you post a real schematic, I'm willing to look at it.

me too

I learn from my mistakes and I have made many. I have loads of PCBs shipped from china at some expense that are follies to my lack of following my own advice!

The great thing about arduino is that, although projects can seem amazingly complex they are just loads of simple things put together. The important thing is to understand the basics and then you will begin to understand the clever ‘tricks’ people do which gives the appearance of complexity.

  1. paper and pixels are cheap. Develop things this way! Schematics good!
  2. always distill to the simplest level and build from there even if you have to use representative components such as LEDs to represent a more complex load being off/on. These components are cheap and can be easily replaced if errors/learning occurs
  3. Work iteratively and “save as” often with good naming strategy
  4. look at data sheets for components and when joining 2 things together make sure that they are compatible and, if not, research how to make them so.
  5. make breadboards match schematics and if not working update both

And the 3 rules of everything

  1. don’t hurt yourself/others
  2. don’t hurt important/expensive things unless it conflicts with rule 1
  3. have fun unless it conflicts with rule 1 or 2
    :joy:
1 Like