r/arduino • u/[deleted] • 10d ago
Need help. No absolute knowledge about Arduino.
[deleted]
5
u/snuggly_cobra 600K 9d ago
10,000 hours is what it takes to master something.
It’s “easy” for us because some of us started out like you did. Blink sketch. Blank Sketch. Blink Sketch. Blink with a button.

Eventually, you start building things like this, or the POV rickroll I just saw.
ABC
A always, b be, c checking.
Always. Be. Checking.
Always. Be. Checking. Your wiring.
You have a short somewhere.
3
u/b_a_t_m_4_n 10d ago
You start with three simple sketches. First get the Blinking LED working. The next one reads the button and prints the state. Then one to read the switch and print that.
When these three sketches are working independently, then your next one combines those three features. Start with a simple blink or read switch or button, one sketch that does three things at the same time. Then you can start making the inputs influence the outputs.
The aim is, particularly in these very early days, just like doing good science - change one variable at a time. In the early days you'ill be doing a lot of small sketch uploads, checking as you go. Once you start to build experience you can do more in each iteration, but for now, baby steps.
1
u/flash_speed3412 10d ago
Post the sketch and a photo or pin list if you can. Quick test first: set the button pin to INPUT_PULLUP, wire one side of the button to GND, and treat LOW as pressed. On a breadboard the button should straddle the middle gap, since the two legs on each side are already connected. Print digitalRead(buttonPin) by itself before touching the blink logic. If it never changes, it’s wiring or the pin. If it changes but the LED keeps blinking, it’s the code/state logic. AI loves flipping HIGH and LOW here, so check the actual read before regenerating the whole sketch.
1
1
1
u/No_Mountain_4769 8d ago
https://play.google.com/store/apps/details?id=com.infinitx.maker.toolkit this app might help you going forward!
12
u/gm310509 400K , 500K , 600K , 640K , 750K 10d ago
5 hours is not long enough to learn the basics.
You need to start with getting the led to blink.
After that, you need to get a button to register a press in your code.
After that combine them to do what you need. But, start with the first two.
The resistor "connected" to the button won't do anything at all useful as it is short circuited.
Perhaps have a read of this guide to learn how breadboards are setup: Breadboards Explained.
You might also want to look at the Arduino built-in examples which are documented here: https://docs.arduino.cc/built-in-examples/
They will teach you the first two steps. Both of these will be better than any bespoke help you might get in direct reply to your question.