Arduino Uno R3 (ATmega328P)
Arduino Uno: runs real firmware (Arduino sketch, compiled for arduino:avr:uno, or Intel HEX / ELF) on an emulated ATmega328P at 16 MHz: digitalWrite/Read, analogRead (A0–A5), analogWrite (D3, D5, D6, D9, D10, D11), Serial, millis/delay, attachInterrupt, SPI, Wire (I²C), EEPROM. Supply via the 5V pin.
Key data
- Category
- Arduino
- Simulation model
- Microcontroller with real firmware
- Manufacturer part number
- Arduino Uno Rev3 (A000066)
- Reference prefix
- A
- Pins
- 23
- Land pattern
- Arduino_UNO_R3
Notes
The firmware runs on an emulated CPU core, instruction by instruction. Peripherals that the model implements (GPIO, timers, UART, SPI, I²C, ADC and others, see the description) act on the pins of the circuit, so the analog parts around the chip see the same voltages and timing as on a real board.
- Supply the board through the 5V pin (or a USB host part); GND to ground.
- Right-click the part and choose "Open in code editor" to write and compile its code; "Serial monitor" shows its UART output.
- In the inspector you can load a demo firmware or your own ELF / Intel HEX / BIN file instead.
- GPIO pins are real circuit pins: an LED on an output needs a series resistor, an input needs a defined level (pull-up or pull-down).
- The debugger in the code view stops at breakpoints and shows registers, variables and the call stack.
Simulation model
An emulated CPU core runs the firmware binary instruction by instruction. The GPIO pins are pins of the analog circuit: outputs drive through a driver resistance, inputs read the voltage with thresholds.
- Device
- atmega328p
- CPU core
- AVR 8-bit
- Emulator
- AVR emulator
- Firmware
- Arduino sketch compiled in the code view (arduino-cli, arduino:avr), or your own ELF / Intel HEX / BIN file
- Flash / RAM for firmware
- 32 KB / 2 KB
- Supply pins
- 5V / GND
- Mapped GPIO pins
- 21
Pins 23
simulatedreal chip onlyPin functions from the emulator and the datasheet.
| Pin | Name | Functions | Use |
|---|---|---|---|
| 5V | 5VSupply pin | Supply 5 V (regulated): powers the board, or 5 V output when powered over USB | |
| GND | GNDGround pin | Ground | |
| D0 | D0/RXI/O pin | USART0_RXD | USB serial (Serial) through the board's USB chip: free only when you do not upload or print |
| D1 | D1/TXI/O pin | USART0_TXD | USB serial (Serial) through the board's USB chip: free only when you do not upload or print |
| D2 | D2I/O pin | INT0 | General-purpose I/O: LEDs (with series resistor), buttons (with pull-up) |
| D3 | ~D3I/O pin | INT1OC2B | PWM output: LED dimming, servos, motor drivers |
| D4 | D4I/O pin | T0XCK | General-purpose I/O: LEDs (with series resistor), buttons (with pull-up) |
| D5 | ~D5I/O pin | OC0BT1 | PWM output: LED dimming, servos, motor drivers |
| D6 | ~D6I/O pin | OC0AAIN0 | PWM output: LED dimming, servos, motor drivers |
| D7 | D7I/O pin | AIN1 | General-purpose I/O: LEDs (with series resistor), buttons (with pull-up) |
| D8 | D8I/O pin | ICP1CLKO | General-purpose I/O: LEDs (with series resistor), buttons (with pull-up) |
| D9 | ~D9I/O pin | OC1A | PWM output: LED dimming, servos, motor drivers |
| D10 | ~D10/SSI/O pin | OC1BSPI_SS | SPI chip select (SS): keep it an output while the SPI runs as master |
| D11 | ~D11/MOSII/O pin | SPI_MOSIOC2A | SPI data out (MOSI): to DIN / SDA / SDI of the device |
| D12 | D12/MISOI/O pin | SPI_MISO | SPI data in (MISO): from DOUT / SDO of the device |
| D13 | D13/SCKI/O pin | SPI_SCK | On-board LED "L"; also SPI SCK |
| A0 | A0I/O pin | ADC0 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| A1 | A1I/O pin | ADC1 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| A2 | A2I/O pin | ADC2 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| A3 | A3I/O pin | ADC3 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| A4 | A4/SDAI/O pin | ADC4TWI_SDA | I²C data: pull-up (about 4.7 kΩ) to the supply |
| A5 | A5/SCLI/O pin | ADC5TWI_SCL | I²C clock: sensors, displays; pull-up (about 4.7 kΩ) to the supply |
| RESET | RESETInput pin · pulled up on the board | RESET | Reset, active low: pull to GND to restart the sketch |
PCB
Arduino_UNO_R3| Package | Land pattern | Status | Source |
|---|---|---|---|
| Shield | Arduino_UNO_R3 | Verified land pattern | KiCad 10.0.7: symbol Arduino_UNO_R3, footprint Module:Arduino_UNO_R3; as a shield: Uno R3 socket headers (pin headers on your own board) |