Skip to datasheet
Uno Rev3 · ATmega328P development board

Arduino Uno Working Principle

Learn how Arduino Uno works with an illustrated explanation and practical readings.

Arduino Uno at a glance

Follow the labeled connections and functional stages

Arduino Uno working principle: illustrated functional stages, basic circuit and connections
Select the diagram to read it at full resolution.

How it works

4 stages · Explore one step at a time

Step 1 / 4

Power and reset

USB provides a nominal 5 V supply. A suitable external source uses the barrel connector or VIN and the onboard regulator path. Power selection, protection and reset circuitry support normal startup.

Step 2 / 4

Upload to the sketch processor

The ATmega16U2 presents the USB serial interface. The bootloader receives a sketch over the ATmega328P UART; the USB interface also supports automatic reset. The two ICSP headers program different processors.

Step 3 / 4

Read, compute and drive

The ATmega328P executes the sketch at 16 MHz. Its ADC samples analog voltages, timers generate PWM or timed events, and UART, SPI and I²C communicate with compatible devices.

Step 4 / 4

Respect shared pins

A4/SDA and A5/SCL are duplicated header connections. SPI appears at D11–D13 and the main ICSP header. Peripherals using the same timer or pin must be coordinated in software.

From clock cycles to a blinking LED.

Explore the Timer1 CTC output on PB1 / OC1A.

Hardware timing calculator

fOUT = fCPU ÷ [2 × prescaler × (OCR1A + 1)]. The output changes state once per compare match.

OC1A OUTPUT FREQUENCY—
——
TIME BETWEEN TOGGLES—One HIGH or LOW interval
SUPPLY-DEPENDENT CLOCK LIMIT—Manufacturer maximum-frequency curve
COMPARE REGISTER—OCR1A · unsigned 16-bit value

Output: PB1 / OC1A, physical pin D9. Set its DDR bit, CTC mode 4 and toggle-on-compare. Separate Timer1 CTC teaching example on OC1A/D9: f = 16 MHz / (2 × prescaler × (OCR1A + 1)). The default is 1 Hz. This is not the delay()-based D13 blink circuit and changing Timer1 can conflict with PWM/servo libraries.

Component view