Arduino
755 words · 4 min read · 3 sources
Arduino is an open-source electronics platform whose boards each carry a microcontroller — one chip that runs a single program on its own, with no operating system, from the moment it gets power.
The open-source microcontroller board that runs one program on bare metal — the part of a robot that gets the timing right.
Difficulty 1/5 · ClassroomAn Arduino is a small board with a single chip on it. You write a program on your computer, send it over USB, and the board runs that program by itself forever — switching pins on and off, reading sensors and driving motors. There is no operating system in the way, which is why Arduino is so good at doing things at an exact moment.
💡 Think of it like…
An Arduino is a pocket watch, not a laptop: it does one job, and it does it on the beat, every time.
Why it matters
Arduino made embedded programming approachable — and it is still the right tool for the timing-critical layer of a robot, even on builds where a bigger Linux computer does the thinking.
🤯 On the through-hole UNO R3 the ATmega328P sits in a socket rather than being soldered down, so a chip destroyed by a wiring mistake can be pulled out with your fingers and replaced. The surface-mount version of the same board does not give you that second chance.
🎯 Quick challenge
Your robot has to hold four servos at steady angles and time an ultrasonic sensor's echo to the microsecond, while also running camera-based object detection. How is that job usually split?
Arduino is an open-source electronics platform whose boards each carry a microcontroller — one chip holding a processor, a small amount of memory, and pins that connect to the outside world. You write a program on a computer, send it to the board over USB, and the board then runs that one program by itself, from the moment it gets power until the moment it loses it.
There is no operating system in between. That single fact explains almost everything people love and complain about.
What is actually on the board
The classic board is the UNO R3. Its main chip is an ATmega328P: an 8-bit AVR processor running at up to 16 MHz, with 32 kB of flash memory for your program, 2 kB of SRAM for the variables it juggles while running, and 1 kB of EEPROM that keeps its contents after the power is cut. Around the edge sit 14 digital input/output pins — six of which can produce a PWM signal — and six analog inputs that read a voltage level rather than just on or off.
The chip's built-in peripherals do the talking to other components: one serial port (USART), one SPI controller, and one dual-mode I2C controller, which between them cover most sensors you will meet. A second chip, an ATmega16U2, handles the USB link to your computer. The board takes 6–20 V on its VIN pad or 5 V over USB, and Arduino rates the whole board from −40 °C to 85 °C.
Why it is good at timing
A microcontroller runs your program and nothing else. No operating system is deciding which process gets the processor next, so when your code says to flip a pin high, the pin goes high right then. The timer and PWM channels are hardware: once set up, they keep their beat whether your code is busy or idle.
That is why an Arduino belongs next to the moving parts. A servo motor wants a pulse of a precise width repeated at a precise interval; a wheel encoder throws out edges you must not miss; an ultrasonic sensor is measured by the microseconds its echo takes to return. A board with no scheduler cannot be late.
The boards
| Board | Processor | Clock | Program memory | Working memory | Notable |
|---|---|---|---|---|---|
| UNO R3 | ATmega328P (8-bit AVR) | up to 16 MHz | 32 kB flash | 2 kB SRAM | 14 digital I/O (6 PWM), 6 analog in, 1 kB EEPROM |
| UNO R4 WiFi | Renesas RA4M1 (Arm Cortex-M4) | 48 MHz | 256 kB flash | 32 kB SRAM | 5 V board; Wi-Fi and Bluetooth via a separate ESP32-S3 module |
| Nano ESP32 | ESP32-S3 in a u-blox NORA-W106 module | — | 16 MB flash | — | Wi-Fi, Bluetooth 5 and ESP-NOW; USB-C; MicroPython supported |
Where Arduino stops
Two kilobytes of working memory will not hold a camera frame, and an 8-bit core will not run a neural network or a navigation stack. For vision, mapping, networking or ROS 2 you need a computer running Linux — which is what a Raspberry Pi is. The Pi can do all of that and cannot reliably bit-bang a servo, because Linux is always deciding what to run next; the Arduino is the opposite on both counts.
So the usual answer is not either/or. The Pi sees and decides; the Arduino, wired to a motor driver, moves things on time. They talk over serial, I2C or USB.
Common questions
Do I have to learn C++ to use an Arduino?
You write C/C++ in Arduino's own editor, but the beginner surface is small: a block that runs once at start-up and a block that repeats forever. Several boards, including the Nano ESP32, also support MicroPython.
Are the cheap compatible boards real Arduinos?
They are not made by Arduino, but because the hardware designs and the software are open source, clones generally take the same programs. What you give up is the manufacturer's testing, documentation and support — and the money no longer funds the platform you are learning on.
Can an Arduino run ROS 2?
Not by itself; ROS 2 expects a full operating system. The normal pattern is to run ROS 2 on a Linux board and connect the Arduino to it as the node that touches the hardware.
Next: the course path
Five free courses, from zero to your own robot design
Short videos with a quiz after each one, a final activity and a certificate per course.
See the course path →Plain English. Free. Unsubscribe in one click.
Keep going
Microcontroller
A microcontroller is a tiny self-contained computer — processor, memory, and input/output pins all on a single…
ConceptPWM (Pulse Width Modulation)
PWM is a trick for making a digital chip — which can only turn things fully on or fully off — behave as if it'…
ConceptServo motor
A servo motor is a small motor that knows its own angle — you tell it where to point, and it goes there and ho…
Last updated · 2026-11-08
Spotted something off? Report an error →