[{"data":1,"prerenderedAt":234},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fboards\u002Farduino-nano":3},{"id":4,"title":5,"body":6,"description":226,"extension":227,"meta":228,"navigation":229,"path":230,"seo":231,"stem":232,"__hash__":233},"content\u002Fdocs\u002Fboards\u002Farduino-nano.md","Arduino Nano",{"type":7,"value":8,"toc":220},"minimark",[9,13,17,22,122,126,156,160,177,181,216],[10,11,5],"h1",{"id":12},"arduino-nano",[14,15,16],"p",{},"The Arduino Nano is functionally an Uno R3 in a smaller package: same ATmega328P silicon, same 32 KB flash, same 2 KB RAM, but with a mini-USB connector and breadboard-friendly DIP pin spacing. Most clones use the CH340 USB-serial bridge, originals use the FT232.",[18,19,21],"h2",{"id":20},"specs","Specs",[23,24,25,38],"table",{},[26,27,28],"thead",{},[29,30,31,35],"tr",{},[32,33,34],"th",{},"Property",[32,36,37],{},"Value",[39,40,41,50,58,66,74,82,90,98,106,114],"tbody",{},[29,42,43,47],{},[44,45,46],"td",{},"MCU",[44,48,49],{},"ATmega328P, 16 MHz",[29,51,52,55],{},[44,53,54],{},"Flash",[44,56,57],{},"32 KB (0.5 KB bootloader)",[29,59,60,63],{},[44,61,62],{},"RAM",[44,64,65],{},"2 KB",[29,67,68,71],{},[44,69,70],{},"GPIO",[44,72,73],{},"14 digital (D0–D13) + 8 analog (A0–A7)",[29,75,76,79],{},[44,77,78],{},"ADC",[44,80,81],{},"A0–A7 (A6\u002FA7 are analog-only — no digital function)",[29,83,84,87],{},[44,85,86],{},"PWM",[44,88,89],{},"D3, D5, D6, D9, D10, D11",[29,91,92,95],{},[44,93,94],{},"I2C",[44,96,97],{},"1 bus — A4 (SDA), A5 (SCL)",[29,99,100,103],{},[44,101,102],{},"SPI",[44,104,105],{},"1 bus — D11 (COPI), D12 (CIPO), D13 (SCK), D10 (SS)",[29,107,108,111],{},[44,109,110],{},"UART",[44,112,113],{},"1 port — D0 (RX), D1 (TX) — used by Serial-over-USB",[29,115,116,119],{},[44,117,118],{},"OTA",[44,120,121],{},"Not supported",[18,123,125],{"id":124},"flashing","Flashing",[14,127,128,129,134,135,139,140,143,144,147,148,151,152,155],{},"USB cable plus STK500 bootloader. Flash from the ",[130,131,133],"a",{"href":132},"\u002Fplayground","Playground"," or ",[136,137,138],"code",{},"pio run -t upload -e nano",". If your clone needs the ",[136,141,142],{},"ATmegaBOOT_168_atmega328.hex"," \"old bootloader\" set ",[136,145,146],{},"board_upload.protocol = arduino"," and ",[136,149,150],{},"board_upload.speed = 57600"," in ",[136,153,154],{},"platformio.ini",".",[18,157,159],{"id":158},"notes","Notes",[161,162,163,167,174],"ul",{},[164,165,166],"li",{},"A6 and A7 are analog-only. They cannot be used as digital pins or as I2C\u002FSPI.",[164,168,169,170,173],{},"2 KB RAM is the same constraint as the Uno R3 — keep dynamic allocation tight, prefer ",[136,171,172],{},"F(\"string literals\")"," for serial output.",[164,175,176],{},"The Nano shares pins between the SPI and the SD-card pinout convention used by some shields. Make sure your wiring uses the right alternate function.",[18,178,180],{"id":179},"compile-flag","Compile flag",[182,183,188],"pre",{"className":184,"code":185,"language":186,"meta":187,"style":187},"language-ini shiki shiki-themes github-light github-dark","[env:nano]\nplatform = atmelavr\nboard = nanoatmega328\nframework = arduino\n","ini","",[136,189,190,198,204,210],{"__ignoreMap":187},[191,192,195],"span",{"class":193,"line":194},"line",1,[191,196,197],{},"[env:nano]\n",[191,199,201],{"class":193,"line":200},2,[191,202,203],{},"platform = atmelavr\n",[191,205,207],{"class":193,"line":206},3,[191,208,209],{},"board = nanoatmega328\n",[191,211,213],{"class":193,"line":212},4,[191,214,215],{},"framework = arduino\n",[217,218,219],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":187,"searchDepth":200,"depth":200,"links":221},[222,223,224,225],{"id":20,"depth":200,"text":21},{"id":124,"depth":200,"text":125},{"id":158,"depth":200,"text":159},{"id":179,"depth":200,"text":180},"Classic Arduino Nano (ATmega328P) board guide — same silicon as the Uno R3 in a smaller footprint.","md",{},true,"\u002Fdocs\u002Fboards\u002Farduino-nano",{"title":5,"description":226},"docs\u002Fboards\u002Farduino-nano","L1wZOEZBvY8wQG_ahSHhdiH4p3ZepPOdC9rLSjrENMs",1777412314780]