What is Arduino? The most common starting point for learning embedded programming
Atlasbot · 20/8/2026 · 9 min read
For most newcomers, Arduino is the first name they hear when they start learning embedded programming — not by accident. Arduino is not just a hardware board, but an entire ecosystem: standardized boards, simple programming software (Arduino IDE), and libraries available for nearly every popular sensor/module.
What is Arduino?
Arduino is an open source hardware-software platform, consisting of 2 parts:
- Hardware board — uses AVR family microcontroller (most popular line, eg ATmega328P on Arduino Uno) or ARM (some newer Arduino boards), standardized design with easy-to-identify pins, usually has a USB port to load code directly without the need for a separate charging circuit.
- Arduino IDE + framework — programming environment that simplifies C/C++ into easy-to-use functions (
digitalWrite(),analogRead()...) — hides the complexity of directly manipulating hardware registers (mentioned in previous GPIO, Digital vs Analog articles).
Why is Arduino easy to learn?
Programming a "pure" microcontroller (like the STM32 with the HAL library/direct registers) requires a fairly in-depth understanding of the specific chip architecture. Arduino abstracts much of this detail:
// Arduino — just 2 lines needed to blink LED
void setup() { pinMode(13, OUTPUT); }
void loop() { digitalWrite(13, !digitalRead(13)); delay(500); }
The setup() (run once at startup) and loop() (run infinitely looping) constructs are the standard Arduino program template — simple, easy to visualize, and nearly every example/library in the Arduino community follows this exact template.
In short: Arduino is not "more powerful" than other microcontrollers — it is more accessible thanks to hardware abstraction and huge community/libraries, at the expense of lower performance and flexibility when deep optimization is needed.
Popular Arduino boards
| Board | Characteristics |
|---|---|
| Arduino Uno | The most popular, ATmega328P, is suitable for school and small projects |
| Arduino Mega | More I/O pins (54 pins), suitable for projects that need many sensors/motors at the same time |
| Arduino Nano | Compact size, same chip as Uno, suitable when needing to save space |
Technical details
Parameters
Detailed specifications of the ATmega328P — chip located on both Arduino Uno and Nano:
| Parameters | Value |
|---|---|
| Pulse | 16MHz |
| SRAM (RAM) | 2KB |
| Flash (program memory) | 32KB |
| EEPROM (storage not lost when power off) | 1KB |
| Number of GPIO pins | ~20 feet |
Register / Bit / Byte
The Arduino functions pinMode(), digitalWrite(), digitalRead() are essentially wrappers for the AVR chip's three native 8-bit registers — understanding this explains why manipulating registers directly is sometimes much faster than calling a library function:
DDRx(Data Direction Register) — determines whether each pin is INPUT (0) or OUTPUT (1), equivalent topinMode().PORTx(Port Register) — set/clear to output HIGH/LOW when the pin is OUTPUT, equivalent todigitalWrite().PINx(Pin Register) — reads the actual state of the pin when it is INPUT, equivalent todigitalRead().
x is the port name (B, C, or D on ATmega328P) — For example, digitalWrite(13, HIGH) on Arduino Uno is actually just PORTB |= (1 << 5) (pin 13 of PORTB, 5th bit).
Practical applications
The Arduino (or equivalent AVR chip) is usually responsible for the real-time motor control layer in a multi-layer AMR architecture (mentioned in the microcontroller vs Microprocessor article) — reading the encoder via interrupt, running the motor speed PID loop, then sending the odometry data to the MPU layer (Raspberry Pi) via UART/Serial. This role is suitable for Arduino because it doesn't need high computational performance, just stable response and low latency — the strengths of a simple 8-bit MCU.
Arduino's limitations need to be known before using it for large projects
- RAM is very limited — Arduino Uno only has 2KB of RAM — enough for most small projects but can easily run out of memory if processing large data (eg: buffering a lot of sensor data).
- No built-in WiFi/Bluetooth on basic AVR boards (Uno, Mega, Nano) — additional module required if wireless connection is required.
- Low processing speed — the 8-bit AVR chip runs at 16MHz, much slower than modern 32-bit ARM microcontrollers (STM32, ESP32) — not suitable for heavy computing tasks.
- No operating system — every
delay()completely blocks programs, there is no real concept of multitasking like on MPU running Linux.
Common mistakes
- Using
String(in capital letters) too much will cause you to run out of RAM — Arduino'sStringstyle automatically allocates memory dynamically, easily causing memory fragmentation and RAM overflow on a board with only 2KB — you should use character arrays (char[]) for long-running programs. - Use
delay()in a program that needs to respond quickly to many events — because without an operating system,delay(1000)blocks the entire program for 1 second, cannot read sensors or react to button presses during that time — you should use "non-blocking" techniques withmillis()or interrupt (see article Interrupt) when you need to do many things at the same time. - Wrong operating voltage when combining other modules — Arduino Uno operates at 5V signal level, but many modern sensor/display modules can only withstand 3.3V — plugging it in directly without going through the voltage level conversion circuit may damage the module.
- Expect Arduino to handle heavy tasks such as image processing/AI — RAM and speed are too limited for these tasks, need to switch to MPU (Raspberry Pi/Jetson) as mentioned in the previous article.
Conclusion
Arduino is a great starting point thanks to its accessibility and large community — but its limited RAM, speed, and lack of built-in wireless connectivity make it not suitable for every project. The next article in the column is about the ESP32 — a much more powerful microcontroller, with built-in WiFi/Bluetooth, often the next step after getting familiar with Arduino.
Get new articles and lessons by email
When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.
Unsubscribe any time with the link in each email. See our Privacy policy.