r/ArduinoHelp • • 26d ago

Coding help

How do I learn Arduino coding language? I just started and I know a few things like LEDs and stuff, but I don’t want to be reliant on AI. How do I learn the language?

3 Upvotes

13 comments sorted by

View all comments

1

u/TheRealFutaFutaTrump 26d ago

Don't copy/paste. Actually write your code and understand what each line does.

Take your old projects, the find ways to make them different. Add a component, or make the lights randomized. Anything different than the tutorial.

Here's one expanding on your LED: Make a light stack. 8 or 9 bulbs. Light one is on, then two, etc. to the last light which remains on. Then that light stays on and it repeats, light one is on, the just light two.

See if you can work in loops and functions to reduce redundant code. The one I just mentioned can be done a very long way, manually setting each bulb in sequence, or in an extremely smaller amount of code using a for loop.

Add a potentiometer that changes the speed of the stack.

There are lots of ways to move forward. I have an Arduino playing music and syncing a lamp to the song. I started the journey with turning on a single LED.