02Lesson
Robotics Lab: Arduino Nano 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 · 2008
The Arduino Nano packs the same brain as the Arduino Uno onto a board the size of a USB stick. Its legs plug straight into a breadboard, which makes it a favourite for small robots, remote controls and wearables. You program it over USB from the Arduino IDE.
- Clock
- 16 MHz
- Flash
- 32 KB
- RAM
- 2 KB
- GPIO pins
- 22
- Logic level
- 5 V
- Price
- ≈ $4–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 (2 KB used by the bootloader)
- RAM
- 2 KB
- EEPROM
- 1 KB
- Digital pins
- 14 (D0–D13), 6 with PWM
- Analog inputs
- 8 (A0–A7), 10-bit
- Logic level
- 5 V
- Power
- USB 5 V or VIN 7–12 V
- Current per pin
- 20 mA recommended (40 mA absolute max)
- USB
- Mini-B, FT232RL bridge (CH340 on clones)
- Size
- 43.2 × 17.8 mm, about 7 g
What’s on the board
14 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
- Plugs straight into a breadboard — no extra wiring needed
- Runs the same sketches and libraries as the Uno
- Two more analog inputs than the Uno (A6 and A7)
- Small and light enough to fit inside any robot
Watch out
- 5 V logic: connect 3.3 V sensors and modules through a level shifter, or you can burn them out.
- Never power motors or servos from the board's 5V pin — give them their own supply and join the grounds (GND).
- One pin can supply only about 20 mA: an LED always needs a resistor, a motor always needs a driver.
- A6 and A7 are analog inputs only — pinMode and digitalWrite do nothing on them. The 3V3 pin gives just 50 mA.
Pins
Learn which pins to use on the Robotics Lab workbench.
Power
Over USB the board gets 5 V. Without a computer, feed 7–12 V into VIN or a regulated 5 V into the 5V pin. 3V3 is a weak 3.3 V output (50 mA max), GND is the common ground.
Digital pins
D0–D13 work as inputs and outputs with 0 V and 5 V levels. PWM (analogWrite) is available on D3, D5, D6, D9, D10 and D11. D0 and D1 talk to the computer — best leave them alone.
Analog inputs
A0–A7 measure a voltage from 0 to 5 V and return a number from 0 to 1023. A0–A5 can also be used as ordinary digital pins; A6 and A7 are analog inputs only.
I²C and SPI buses
I²C: A4 is SDA, A5 is SCL (displays, gyros, sensors). SPI: D11 is MOSI, D12 is MISO, D13 is SCK, D10 is SS (radio modules, SD cards).
Interrupts and reset
D2 and D3 can react to a signal instantly (attachInterrupt) — handy for wheel encoders. RST restarts the board when it is connected to GND.
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.
// Board: Arduino Nano, processor: ATmega328P.// If a clone refuses to upload, pick "ATmega328P (Old Bootloader)".const int LED = LED_BUILTIN; // the built-in "L" LED on pin D13void setup() { pinMode(LED, OUTPUT); // make D13 an output Serial.begin(9600); // open the USB link to the computer}void loop() { digitalWrite(LED, HIGH); // LED on Serial.println("On"); // message for the Serial Monitor delay(500); // wait half a second digitalWrite(LED, LOW); // LED off Serial.println("Off"); delay(500);}
Where it shines
Use the Robotics Lab workbench to plan the wiring for a project.
- The brain of a small two-motor robot with a motor driver
- A line-following robot with reflectance sensors
- A handheld remote with a joystick and an nRF24L01 radio
- A weather station with I²C sensors and a tiny display
- Driving the servos of a small robot arm
Board background
See how this hardware fits into the Robotics Lab board collection.
The Arduino Nano appeared in 2008. It was designed by Gravitech so the board could plug into a breadboard like an ordinary chip.
The Nano has two more analog inputs than the Uno: the flat ATmega328P package has pins A6 and A7 that the big through-hole chip lacks.
The board weighs about 7 grams — less than a single AAA battery.
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 Nano hardware documentation
Classic Nano specifications, pinout, USB connector and schematics.