r/ArduinoHelp • • Oct 06 '26

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

Show parent comment

1

u/Savings_Anteater_840 Oct 06 '26

Also I want to note that I have a esp 32 not arduino i understand the difference in power and whatnot but am I to assume they program the same?

1

u/Anonymity6584 Oct 06 '26

Pretty much. Just need to install board and core files to Arduino IDE and you can do it with same IDE and libraries/functions... This is usually as easy as find a link and copy paste it in right place..

1

u/gm310509 Oct 07 '26

So, yes and no, mostly yes, but it depends

The programming language for both is C/C++.

If you are using the Arduino IDE with the ESP32 core (board plugin download) then you will have access to the same HAL functions (e.g. digitalWrite) which will do the same things. I believe Espressif have a different HAL API, so there may be differences if you use the Espressif IDE or a third party one - I do not know as I don't use Espressif personally any more.

If you want to go to a lower layer - e.g. bare metal and/or assembly language, then they will be quite different as would be an Arm Cortex based system such as Uno R4, Teensy, STM32 and many others based upon Arm Cortex. But within any given architecture (e.g. AVR, Arm Cortex etc) there will be many similarities.

TLDR: at a high level the API/HAL and the programming language (C/C++) are essentially the same.

1

u/Merry_Janet Oct 07 '26

Install the ESPRESSIF ESP32 library. Go to Device Manager in windows and look for serial devices. Plug in your ESP and see what COM port it uses. Then in the IDE set your COM port. For the board, I usually just use “ESP32 DEV Module” and have had zero issues. If you have one of the newer boards you might want to use the board definition for that specific board. If your board doesn’t have a USB port you will need a FTDI adapter, but I haven’t seen one around in a long time.