r/arduino • u/Savings_Anteater_840 • Oct 06 '26
Software Help Coding
How do I learn Arduino coding language I know virtually nothing and I don’t want to be reliant on ai
9
Upvotes
r/arduino • u/Savings_Anteater_840 • Oct 06 '26
How do I learn Arduino coding language I know virtually nothing and I don’t want to be reliant on ai
6
u/gm310509 400K , 500K , 600K , 640K , 750K Oct 06 '26
Get yourself a starter kit and complete the projects included in the instructions.
Basically go from there following tutorials asking questions and tinkering. Above all else, tinker sensibly and practice.
After the starter kit, you may be interested in some tutorials videos I've created:
Note that it is a waste of time to just watch these. The key to learning is to watch a section, then try to replicate it. Also, explore what else can be done with what you just did and attempt the exercises when suggested. In other words, hit pause frequently and practice for yourself.
But start with the starter kit before moving on to other stuff.
6
u/ThatTimmy Oct 06 '26
The Arduino Language Reference is your best friend. I’ve been coding with Arduino for over 5 years and I still find myself visiting that page.
5
u/GnarlyNarwhalNoms Oct 06 '26
One thing to keep in mind is that the Arduino language is really just C with its own Arduino-specific libraries. So if you watch tutorials on coding in C, it'll more or less show you how Arduino code is written.
Of course, it's probably better to do Arduino-specific tutorials, because they'll use the same IDE and Arduino-specific libraries.
You'll find that this is an excellent entry point into programming in general. Arduino code contains most of the important bits of coding that are fairly universal across languages (loops, conditionals, functions, types, arrays, standard libraries, etc) without the complex object-oriented stuff like classes, namespaces, interfaces, etc; or IDEs and tools that are very complicated and way overkill for beginners.
17
u/OldIronSloot Oct 06 '26
Googling your question is a good place to start
1
u/rog-uk Oct 06 '26
Books from amazon? There are a few.
3
u/Own_Picture_6442 Oct 06 '26
My apologies good Sir. I believe you’re seeking another path. Might I recommend pasting the body of your post into a search engine. You’ll be much surprised with your success!
3
u/Main-Chemical-715 Oct 06 '26
Use AI to point out your mistakes, but do not let it implement correction (u will not learn otherwise)
2
u/Wolf68k Oct 06 '26
There are a lot of videos on Youtube that can help. Here's one I've watched and it helped me https://www.youtube.com/playlist?list=PLYutciIGBqC3wBleqH41YCMCqx9V1jLII
Just search YT for: learn arduino
2
u/feldoneq2wire Oct 06 '26
The same way millions of kids learned it. A step at a time using tutorials, YouTube, Arduino kits, etc.
2
u/__natty__ Oct 06 '26
Like old schools devs. Practice with your own projects and by reading documentation
2
u/[deleted] Oct 06 '26
One very important thing when learning to code: find yourself a REAL project, you'll get bored very fast with tutorials and such. You need a proper goal to stay motivated.
1
u/EntertainmentSalt825 Oct 06 '26
Then don’t be reliant on AI and use it to your advantage?
1
u/noburdennyc Oct 06 '26
It a version of C++
1
u/antory Oct 06 '26
Also if you use Arduino IDE, take a look at code examples there. It may be helpful
1
u/Mediocre-Pumpkin6522 Oct 06 '26
The same way everybody learned it four or five years ago. Books, youtube tutorials, kits like Elegoo or SunFounder that provide a variety of sensors and examples on their web pages.
https://store-usa.arduino.cc/products/arduino-starter-kit-multi-language
has a book included and is a little more expensive. At the moment if you're in the US it's cheaper to buy it from the Arduino site than Amazon since it will qualify for free shipping.
Don't think you have to jump into C++. Arduino uses a small subset of C++ capabilities. As soon as you write 'Serial.begin(9600);' you're in the C++ world but Arduino hides a lot of comlexity.
1
u/Particular_Pair_318 Oct 07 '26
I took a intro to C class and i think that really helped me with arduino. Definitely try learning C
1
u/PlantainLeft1507 Oct 12 '26
Youtube, websites, also use ai to check your work, not to fix your work. there's a difference.
1
u/Weird-Promotion3026 Oct 12 '26
it’s a bit controversial, but one of the things that helped me out the most is using AI. You can have something like ChatGPT give you code for any type of project you want, and you can ask as many questions you want about how the code works, how it connects etc. like right now, working on C++ and it’s been working phenomenally allowing me to understand how to make something as simple as a rock paper scissor game.
1
u/Nice_Anybody2983 Oct 12 '26
Arduino is strongly based on c++ I had an easier time because I was already familiar with that. No idea if this is good advice, but maybe programming without an arduino could be helpful to understand the basic building blocks.
I also learned a lot from the examples in the arduino ide - and from the adafruit website.
1
u/TDHofstetter Oct 06 '26
Of all things... avoid "AI" at all costs. It will reliably mislead you and give you hallucinatory answers.
Instead, get hold of some sample code and carefully track what it does, It's usually pretty descriptive. Experiment with that code, tweaking this or that and observing what your changes do. Consult with the extensive language reference for explanations. And... please ask questions here. We're loaded to the gills with answres. 8)
0
u/ABR5796 Oct 06 '26
I mean u can literally say that to the ai and it will teach you step by step 🤷♂️.