02Lesson
Robotics Lab: Arduino Uno R3 Lesson and Pinout
Select a board in Robotics Lab to see its specifications, pin functions and component guide.
Board overview
Robotics Lab board guide · Arduino · 2010
The best-known learning board in the world. A simple, tough 8-bit ATmega328P microcontroller, forgiving 5 V logic and sockets that take jumper wires without soldering. Thousands of tutorials are written for it, and hundreds of add-on boards — "shields" — plug straight on top.
- Clock
- 16 MHz
- Flash
- 32 KB
- RAM
- 2 KB
- GPIO pins
- 14 + 6
- Logic level
- 5 V
- Price
- ≈ $25
Specs
Compare the electrical specs with other Robotics Lab boards. See the hardware references.
- Microcontroller
- ATmega328P (8-bit AVR)
- Clock speed
- 16 MHz
- Flash memory
- 32 KB (0.5 KB used by the bootloader)
- RAM / EEPROM
- 2 KB / 1 KB
- Digital pins
- 14, of which 6 with PWM
- Analog inputs
- 6 (10-bit ADC)
- Logic voltage
- 5 V
- Power
- USB 5 V, or 7–12 V via the jack / Vin
- Current per pin
- 20 mA (absolute maximum 40 mA)
- Interfaces
- UART, I²C, SPI
- Computer link
- USB-B through an ATmega16U2 bridge
- Size
- 68.6 × 53.4 mm, 25 g
What’s on the board
15 parts match the numbered labels in Robotics Lab. Click one and the camera flies to it.
Strengths and pitfalls
Use these trade-offs when choosing a board in Robotics Lab.
Strengths
- Forgiving: 5 V logic and sturdy pins survive a lot of beginner mistakes
- Huge community — every question already has an answer and a ready example
- Hundreds of shields: motor drivers, relays and displays stack on top with no wiring
- The microcontroller sits in a socket — a burnt chip can simply be swapped
Watch out
- No more than 20 mA from one pin: LEDs always need a resistor; motors and relays only through a driver or a transistor
- Do not power servos and motors from the board's 5V pin — give them their own supply and join the grounds (GND)
- 3.3 V sensors and modules must not be wired straight to the 5 V signal pins — use a level shifter
- Pins 0 and 1 are shared with the USB link: while something is connected to them a sketch may fail to upload
Pins
Learn which pins to use on the Robotics Lab workbench.
Power
5V and 3.3V are outputs for sensors and modules; GND is the common ground that every device in the circuit shares. Vin is the 7–12 V input. The 3.3V pin can supply no more than 50 mA.
Digital pins and PWM
Pins 0–13 work as inputs and outputs with 0 V and 5 V levels. The "~" next to 3, 5, 6, 9, 10 and 11 means PWM: analogWrite() smoothly controls brightness and speed.
Analog inputs
A0–A5 read a 0–5 V voltage with analogRead() and return a number from 0 to 1023. If you run out of digital pins, they also work as ordinary digital pins (D14–D19).
Buses
UART — pins 0 (RX) and 1 (TX), shared with the USB link to the computer. I²C — SDA and SCL (the same lines as A4 and A5). SPI — pins 10–13 and the ICSP header.
Interrupts
Pins 2 and 3 can react to a signal instantly, even when the program is busy with something else — attachInterrupt(). Handy for wheel encoders on a robot.
Hover over a pin in the Robotics Lab viewer to see its name and function.
- Power
- Ground
- Digital
- Analog
- Buses: UART, I²C, SPI
- Control: RESET, EN, BOOT
- Not connected
First code
Try the Robotics Lab starter example on your physical board.
// LED "L" is already on the board and wired to pin 13.// LED_BUILTIN is the ready-made name for that pin.void setup() { pinMode(LED_BUILTIN, OUTPUT); // pin 13 works as an output Serial.begin(9600); // open the USB link to the computer}void loop() { digitalWrite(LED_BUILTIN, HIGH); // 5 V on the pin — the LED is on Serial.println("on"); // shows up in the Serial Monitor delay(500); // wait half a second digitalWrite(LED_BUILTIN, LOW); // 0 V — the LED is off Serial.println("off"); delay(500);}
Where it shines
Use the Robotics Lab workbench to plan the wiring for a project.
- A first two-motor robot with a motor-driver shield
- An obstacle-avoiding robot with an ultrasonic distance sensor
- A line-following robot
- A robot arm on hobby servos
- A weather station with a display and sensors
Board background
See how this hardware fits into the Robotics Lab board collection.
"Uno" is Italian for "one": the board was named to mark the release of the Arduino 1.0 software.
Arduino was created in the Italian town of Ivrea and named after the bar where its founders used to meet. The bar, in turn, is named after Arduin of Ivrea, a king who ruled about a thousand years ago.
The board's design files are open to everyone — which is why there are so many compatible boards and clones.
Practice with this board
Try the same board in these Robotics Lab activities.
- Inspect the Robotics Lab 3D model to locate a component or connector.
- Try the Robotics Lab component quiz to check what you remember.
- Open the Robotics Lab workbench to simulate your wiring.
Sources
Manufacturer and hardware project documentation.
- Arduino UNO R3 hardware documentation
Board overview, pinout, technical specifications and schematics.