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
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.
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
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
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.
paper and pixels are cheap. Develop things this way! Schematics good!
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
Work iteratively and “save as” often with good naming strategy
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.
make breadboards match schematics and if not working update both
And the 3 rules of everything
don’t hurt yourself/others
don’t hurt important/expensive things unless it conflicts with rule 1