diff --git a/docs/tutorials/arduino-uno-schematic.mdx b/docs/tutorials/arduino-uno-schematic.mdx new file mode 100644 index 00000000..ea182284 --- /dev/null +++ b/docs/tutorials/arduino-uno-schematic.mdx @@ -0,0 +1,524 @@ +--- +title: Arduino Uno Schematic +description: Build a schematic-only Arduino Uno compatible circuit with the ATmega328P core, USB-UART bridge, power rails, reset circuit, clock, and headers. +--- + +import CircuitPreview from "@site/src/components/CircuitPreview" + +## Overview + +This tutorial builds a schematic-only Arduino Uno compatible board in +tscircuit. The goal is not to route a PCB; it is to capture the recognizable +functional blocks that make the Uno useful as a reference design: + +- ATmega328P microcontroller core +- USB-UART bridge for programming and serial monitor access +- 5 V and 3.3 V power rails +- 16 MHz crystal and load capacitors +- reset pull-up, reset button, and auto-reset capacitor +- digital, analog, power, and ICSP headers +- built-in `L` LED on `D13` + +## Full Schematic Snippet + +Use this snippet as a starting point for documentation, education, or a +schematic-only compatibility reference. It keeps each block named clearly so you +can replace the generic footprints with exact manufacturer parts later. + + ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .anode" }} + /> + + + + + + + + + + + + + + + +) +`} +/> + +## Block Notes + +### Microcontroller Core + +The ATmega328P symbol groups user-facing GPIO on the left and right, then keeps +power, reference, ground, and oscillator pins on the top and bottom. That makes +the schematic easier to read than a strict DIP pin order while still preserving +the Uno pin names. + +### USB-UART And Auto Reset + +The USB connector feeds a small USB-UART bridge. The bridge `TXD` pin connects +to `D0_RX`, `RXD` connects to `D1_TX`, and `DTR` passes through `C_RESET` to the +`RESET` net. That auto-reset capacitor is what lets the bootloader reset when +the serial port opens during upload. + +### Power Rails + +`VIN` feeds a 5 V regulator, USB VBUS feeds the 5 V rail through `F_USB`, and +the 5 V rail feeds a 3.3 V regulator. The schematic includes both rails on +`J_POWER`, matching the mental model users expect from an Uno compatible board. +Keep decoupling capacitors close to the microcontroller and regulator pins when +you later convert this into a PCB. + +### Clock And Reset + +The 16 MHz crystal uses two 22 pF load capacitors to ground. `R_RESET` pulls +reset high, and `SW_RESET` pulls it low when pressed. + +### Headers + +The headers expose the Uno-style groups: + +- `J_DIGITAL_LOW` for `D0` through `D7` +- `J_DIGITAL_HIGH` for `D8` through `D13`, `AREF`, `SDA`, and `SCL` +- `J_ANALOG` for `A0` through `A5` +- `J_POWER` for reset, power, and ground +- `J_ICSP` for SPI programming + +## Extending The Snippet + +For a manufacturable Uno-compatible PCB, replace the generic footprints with +the exact connectors, regulators, USB-UART bridge, and microcontroller package +you plan to source. Then add PCB placement, keepouts, and routing constraints in +a separate layout-focused tutorial or component.