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
How it works
4 stages · Explore one step at a time
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.
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.
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.
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.
fOUT = fCPU ÷ [2 × prescaler × (OCR1A + 1)]. The output changes state once per compare match.
—OCR1A · unsigned 16-bit valueOutput: 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.