{"product_id":"sd-card-micro-sd-card-reader-module","title":"SD Card - Micro SD card reader Module","description":"\u003cdiv class=\"ep-desc\" style=\"color:#42434d; line-height:1.6;\"\u003e\n\u003cp style=\"font-size:1.08em; margin:0 0 10px;\"\u003e\u003cstrong\u003eA Micro SD card reader module with an SPI interface, a 3.3 V regulator and a level converter chip, for adding removable storage to Arduino, ESP32 and Raspberry Pi Pico projects.\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp style=\"margin:0 0 16px;\"\u003eThis module has a Micro SD card slot and a six-pin SPI header (GND, VCC, MISO, MOSI, SCK, CS). It supports Micro SD and Micro SDHC cards and is powered from 5 V, so you can log sensor data, store files or load content from a card with a few wires.\u003c\/p\u003e\n\u003cdiv style=\"display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px;\"\u003e\n\u003cdiv style=\"flex:1 1 130px; background:#f9f9fb; border:1px solid #e8e8e1; border-top:3px solid #313652; border-radius:6px; padding:10px 12px;\"\u003e\n\u003cdiv style=\"font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b6d7a;\"\u003eInterface\u003c\/div\u003e\n\u003cdiv style=\"font-weight:700; color:#272831;\"\u003eSPI, 6 pins\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"flex:1 1 130px; background:#f9f9fb; border:1px solid #e8e8e1; border-top:3px solid #313652; border-radius:6px; padding:10px 12px;\"\u003e\n\u003cdiv style=\"font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b6d7a;\"\u003eSupply\u003c\/div\u003e\n\u003cdiv style=\"font-weight:700; color:#272831;\"\u003e5 V\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"flex:1 1 130px; background:#f9f9fb; border:1px solid #e8e8e1; border-top:3px solid #313652; border-radius:6px; padding:10px 12px;\"\u003e\n\u003cdiv style=\"font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b6d7a;\"\u003eCards\u003c\/div\u003e\n\u003cdiv style=\"font-weight:700; color:#272831;\"\u003eMicro SD \/ SDHC\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"flex:1 1 130px; background:#f9f9fb; border:1px solid #e8e8e1; border-top:3px solid #313652; border-radius:6px; padding:10px 12px;\"\u003e\n\u003cdiv style=\"font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b6d7a;\"\u003eSize\u003c\/div\u003e\n\u003cdiv style=\"font-weight:700; color:#272831;\"\u003e42 × 24 mm\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003ch2\u003eWhy choose it\u003c\/h2\u003e\n\u003cul style=\"padding-left:1.2em;\"\u003e\n\u003cli\u003e\n\u003cstrong\u003eWorks with 5 V and 3.3 V boards\u003c\/strong\u003e — a level converter chip changes the signal levels, so the module can be wired to a UNO, an ESP32 or a Pico (VCC still needs 5 V).\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCard power is handled for you\u003c\/strong\u003e — an on-board LDO regulator makes the 3.3 V that the Micro SD card needs.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eStandard SPI\u003c\/strong\u003e — works with the Arduino SD library and the MicroPython sdcard driver, with six pins to wire.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eSpecifications\u003c\/h2\u003e\n\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em;\"\u003e\u003ctbody\u003e\n\u003ctr\u003e\u003cth colspan=\"2\" scope=\"colgroup\" style=\"text-align:left; background:#313652; color:#fff; padding:7px 10px; font-weight:600;\"\u003eCore\u003c\/th\u003e\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eCard types\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eMicro SD, Micro SDHC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eInterface\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSPI\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eControl pins\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e6 (GND, VCC, MISO, MOSI, SCK, CS)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eFile system (Arduino SD library)\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eFAT16 or FAT32\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth colspan=\"2\" scope=\"colgroup\" style=\"text-align:left; background:#313652; color:#fff; padding:7px 10px; font-weight:600;\"\u003ePower and signals\u003c\/th\u003e\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eSupply voltage (VCC)\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5 V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eOn-board regulator\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3.3 V LDO, powers the Micro SD card\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eLevel conversion\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e74LVC125A level converter IC on the signal lines; MISO is output at 3.3 V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth colspan=\"2\" scope=\"colgroup\" style=\"text-align:left; background:#313652; color:#fff; padding:7px 10px; font-weight:600;\"\u003ePhysical\u003c\/th\u003e\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eDimensions\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e42 × 24 mm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; font-weight:600; color:#272831;\"\u003eCard slot\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eMicro SD connector for easy card insertion and removal\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\u003c\/table\u003e\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003ePlatform\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWorks\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eArduino UNO \/ Nano \/ Mega (5 V)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e✓ Yes\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eVCC to 5 V. Built-in SD library. UNO pins: D10 (CS), D11 (MOSI), D12 (MISO), D13 (SCK).\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eESP32 (3.3 V)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e✓ Yes\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eVCC to the 5 V pin; signals are shifted by the module. Default SPI pins GPIO5 (CS), GPIO23 (MOSI), GPIO19 (MISO), GPIO18 (SCK).\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRaspberry Pi Pico (3.3 V)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e✓ Yes\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eVCC to VBUS (5 V). MicroPython with the sdcard driver.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eSoftware\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eArduino IDE \/ MicroPython\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eSD library (Arduino IDE) · sdcard.py (micropython-lib)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003ch2\u003eIn the box\u003c\/h2\u003e\n\u003cdiv style=\"display:flex; flex-wrap:wrap; gap:12px;\"\u003e\u003cdiv style=\"flex:1 1 220px; border:1px solid #e8e8e1; border-radius:6px; padding:10px 14px;\"\u003e\n\u003cdiv style=\"font-weight:700; color:#272831; margin-bottom:4px;\"\u003eIncluded\u003c\/div\u003e\n\u003cul style=\"margin:0; padding-left:1.2em;\"\u003e\u003cli\u003e1 × Micro SD card reader module (SPI, with level converter chip)\u003c\/li\u003e\u003c\/ul\u003e\n\u003c\/div\u003e\u003c\/div\u003e\n\u003ch2\u003eApplications\u003c\/h2\u003e\n\u003cul style=\"padding-left:1.2em;\"\u003e\n\u003cli\u003eData logging: save sensor readings to a text or CSV file\u003c\/li\u003e\n\u003cli\u003eStoring settings, text or other files on a removable card\u003c\/li\u003e\n\u003cli\u003eAdding removable storage to an Arduino, ESP32 or Pico project\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c!-- EP:TUTORIAL START --\u003e\u003ch2\u003eTutorial\u003c\/h2\u003e\n\u003cdiv style=\"border:1px solid #e8e8e1; border-left:4px solid #313652; border-radius:6px; padding:10px 14px; margin:0 0 12px;\"\u003e\u003cdiv\u003e\n\u003cp style=\"margin:0 0 10px;\"\u003e\u003cstrong\u003eWhat you'll build:\u003c\/strong\u003e write a line of text to a file on a Micro SD card and read it back, so you know your wiring and card work. · About 20 minutes.\u003c\/p\u003e\n\u003ch3 style=\"margin:18px 0 8px; color:#272831;\"\u003eChoose your board\u003c\/h3\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eBoard\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eLogic voltage\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003ePins used\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eLanguage\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eBest for\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eArduino UNO\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5 V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eD10, D11, D12, D13\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eC++ (Arduino IDE)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eFirst-timers: the SD library is built in\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eESP32\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3.3 V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGPIO5, GPIO18, GPIO19, GPIO23\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eC++ (Arduino IDE)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eProjects that also need Wi-Fi\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eRaspberry Pi Pico\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003e3.3 V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eGP8, GP9, GP10, GP11\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eMicroPython (Thonny)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eLearning Python\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px;font-size:.95em;\"\u003eNew to this? Start with the Arduino UNO.\u003c\/p\u003e\n\u003ch3 style=\"margin:18px 0 8px; color:#272831;\"\u003eHow it works\u003c\/h3\u003e\n\u003cp style=\"margin:0 0 10px;\"\u003eThe module talks to your board over \u003cstrong\u003eSPI\u003c\/strong\u003e. Think of it as four wires with different jobs. A card needs a little more care than most modules, so here are the terms you will see:\u003c\/p\u003e\n\u003cul style=\"margin:0 0 10px; padding-left:20px;\"\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e — the return path. Every GND must be joined.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eMOSI \/ MISO\u003c\/strong\u003e — one wire carries data from the board to the card (MOSI), the other carries data back (MISO).\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eSCK\u003c\/strong\u003e — the clock wire. It sets the pace of the conversation.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCS (chip select)\u003c\/strong\u003e — tells the card \"I am talking to you now\".\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eLevel converter\u003c\/strong\u003e — a chip on the module that makes the signals suit the 3.3 V card, so the module can sit on a 5 V or a 3.3 V board.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cdetails style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:10px 0;\"\u003e\u003csummary style=\"cursor:pointer;\"\u003e\u003csvg width=\"240\" height=\"26\" viewbox=\"0 0 240 26\" role=\"img\" aria-label=\"Arduino UNO Tutorial\" style=\"vertical-align:middle;\"\u003e\u003cdefs\u003e\u003clineargradient id=\"ep-tut-uno\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\" spreadmethod=\"reflect\"\u003e\u003cstop offset=\"0\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"0.5\" stop-color=\"#BFE3FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"1\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003canimatetransform attributename=\"gradientTransform\" type=\"translate\" from=\"-1 0\" to=\"1 0\" dur=\"3s\" repeatcount=\"indefinite\"\u003e\u003c\/animatetransform\u003e\u003c\/lineargradient\u003e\u003c\/defs\u003e\u003ctext x=\"2\" y=\"19\" font-size=\"18\" font-weight=\"700\" font-style=\"italic\" font-family=\"Arial,Helvetica,sans-serif\" fill=\"url(#ep-tut-uno)\"\u003eArduino UNO Tutorial\u003c\/text\u003e\u003c\/svg\u003e\u003c\/summary\u003e\u003cp style=\"margin:0 0 10px;\"\u003e\u003cstrong\u003eYou need:\u003c\/strong\u003e Arduino UNO R3, USB cable (a data cable, not charge-only), 6 jumper wires, a Micro SD card formatted as FAT16 or FAT32.\u003c\/p\u003e\n\u003cdiv style=\"max-width:640px; margin:0 0 12px; border:1px solid #e8e8e1; border-radius:6px; padding:8px; background:#fff;\"\u003e\u003csvg viewbox=\"0 0 640 312\" width=\"100%\" role=\"img\" aria-label=\"Wiring diagram: Micro SD module to Arduino UNO\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"display:block; font-family:Arial,sans-serif;\"\u003e\u003ctitle\u003eWiring diagram: Micro SD module to Arduino UNO\u003c\/title\u003e\n\u003crect x=\"20\" y=\"30\" width=\"230\" height=\"252\" rx=\"10\" fill=\"#1f6f8b\"\u003e\u003c\/rect\u003e\u003ctext x=\"135\" y=\"55\" fill=\"#fff\" font-size=\"16\" font-weight=\"700\" text-anchor=\"middle\"\u003eArduino UNO\u003c\/text\u003e\u003crect x=\"440\" y=\"30\" width=\"180\" height=\"252\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"530\" y=\"55\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eMicro SD module\u003c\/text\u003e\u003ctext x=\"225\" y=\"89\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003e5V\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"85\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"85\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"89\" fill=\"#272831\" font-size=\"13\"\u003eVCC\u003c\/text\u003e\u003cpath d=\"M240 85 H445\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"123\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGND\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"119\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"119\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"123\" fill=\"#272831\" font-size=\"13\"\u003eGND\u003c\/text\u003e\u003cpath d=\"M240 119 H445\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"157\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eD12\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"153\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"153\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"157\" fill=\"#272831\" font-size=\"13\"\u003eMISO\u003c\/text\u003e\u003cpath d=\"M240 153 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"191\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eD11\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"187\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"187\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"191\" fill=\"#272831\" font-size=\"13\"\u003eMOSI\u003c\/text\u003e\u003cpath d=\"M240 187 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"225\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eD13\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"221\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"221\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"225\" fill=\"#272831\" font-size=\"13\"\u003eSCK\u003c\/text\u003e\u003cpath d=\"M240 221 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"259\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eD10\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"255\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"255\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"259\" fill=\"#272831\" font-size=\"13\"\u003eCS\u003c\/text\u003e\u003cpath d=\"M240 255 H445\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"340\" y=\"298\" font-size=\"12\" fill=\"#6b6d7a\" text-anchor=\"middle\"\u003eModule VCC on 5 V. Signals are shifted down to 3.3 V on the module.\u003c\/text\u003e\u003c\/svg\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.9em; color:#6b6d7a;\"\u003e\u003cspan style=\"color:#E53935;\"\u003e■\u003c\/span\u003e Power   \u003cspan style=\"color:#212121;\"\u003e■\u003c\/span\u003e GND   \u003cspan style=\"color:#1E88E5;\"\u003e■\u003c\/span\u003e SPI signals (MISO, MOSI, SCK)   \u003cspan style=\"color:#43A047;\"\u003e■\u003c\/span\u003e Chip select (CS)\u003c\/p\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e#\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eArduino UNO pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eModule pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWire colour\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eVCC\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003ePower. The module makes its own 3.3 V for the card.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e2\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eReturn path\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eD12\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eMISO\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData from the card to the board\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e4\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eD11\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eMOSI\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData from the board to the card\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eD13\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSCK\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSPI clock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003e6\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eD10\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eCS\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eChip select\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; padding:6px 10px; background:#fff8e6; border-left:3px solid #F9A825; border-radius:4px;\"\u003e\u003cstrong\u003eWatch out:\u003c\/strong\u003e Unplug the USB cable before you move any wire. Never swap VCC and GND.\u003c\/p\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e1\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInstall the Arduino IDE\u003c\/strong\u003e\u003cbr\u003eDownload and install the \u003ca href=\"https:\/\/www.arduino.cc\/en\/software\" target=\"_blank\" rel=\"noopener\"\u003eArduino IDE\u003c\/a\u003e, then plug the UNO into your computer.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e2\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003ePick the board and port\u003c\/strong\u003e\u003cbr\u003eChoose \u003cstrong\u003eTools → Board → Arduino AVR Boards → Arduino Uno\u003c\/strong\u003e, then \u003cstrong\u003eTools → Port\u003c\/strong\u003e and pick the port that appears when you plug the board in. If no port appears, use a data USB cable and install the USB driver for your board.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e3\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInsert the card\u003c\/strong\u003e\u003cbr\u003ePush the Micro SD card into the slot with the contacts facing the board, until it clicks into place.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e4\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eUpload the example\u003c\/strong\u003e\u003cbr\u003ePaste the sketch below into a new sketch and press \u003cstrong\u003eUpload\u003c\/strong\u003e. The built-in \u003ca href=\"https:\/\/docs.arduino.cc\/libraries\/sd\/\" target=\"_blank\" rel=\"noopener\"\u003eSD library\u003c\/a\u003e is already included with the IDE, so you do not need to install anything.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdetails open style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:8px 0 12px;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Example 1 — Write a line to a file and read it back\u003c\/summary\u003e\u003cpre style=\"background:#272831; color:#f4f4f6; padding:12px; border-radius:6px; overflow-x:auto; font-size:13px; line-height:1.45;\"\u003e\u003ccode style=\"background:transparent !important;color:#f4f4f6 !important;padding:0 !important;border:0 !important;font-family:Menlo,Consolas,monospace;font-size:13px;white-space:pre;\"\u003e\/\/ Wiring: VCC-\u0026gt;5V, GND-\u0026gt;GND, MISO-\u0026gt;D12, MOSI-\u0026gt;D11, SCK-\u0026gt;D13, CS-\u0026gt;D10\n#include \u0026lt;SPI.h\u0026gt;\n#include \u0026lt;SD.h\u0026gt;\n\nconst int CS_PIN = 10;   \/\/ chip select, same pin as in the wiring table\n\nvoid setup() {\n  Serial.begin(115200);  \/\/ Serial Monitor speed\n\n  if (!SD.begin(CS_PIN)) {\n    Serial.println(\"SD module or card not found - check wiring and card format\");\n    while (true) {}      \/\/ stop here\n  }\n  Serial.println(\"OK - epartners.co.nz test\");\n\n  \/\/ Add one line to test.txt (the file is created if it does not exist)\n  File f = SD.open(\"test.txt\", FILE_WRITE);\n  if (!f) {\n    Serial.println(\"Could not open test.txt for writing\");\n    while (true) {}\n  }\n  f.println(\"testing 1, 2, 3.\");  \/\/ you can change this text\n  f.close();\n  Serial.println(\"File written\");\n\n  \/\/ Read the file back\n  f = SD.open(\"test.txt\");\n  if (f) {\n    Serial.println(\"File content:\");\n    while (f.available()) {\n      Serial.write(f.read());\n    }\n    f.close();\n  }\n}\n\nvoid loop() {\n  \/\/ nothing to do here\n}\n\u003c\/code\u003e\u003c\/pre\u003e\u003c\/details\u003e\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e5\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eOpen the Serial Monitor\u003c\/strong\u003e\u003cbr\u003eOpen \u003cstrong\u003eTools → Serial Monitor\u003c\/strong\u003e and set the speed to \u003cstrong\u003e115200 baud\u003c\/strong\u003e (the speed the board uses to talk to your computer).\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cp style=\"margin:0 0 12px; padding:6px 10px; background:#eef7ee; border-left:3px solid #43A047; border-radius:4px;\"\u003e\u003cstrong\u003e✓ Check:\u003c\/strong\u003e The Serial Monitor shows \u003ccode\u003eOK - epartners.co.nz test\u003c\/code\u003e once, then \u003ccode\u003eFile written\u003c\/code\u003e and \u003ccode\u003eFile content:\u003c\/code\u003e followed by \u003ccode\u003etesting 1, 2, 3.\u003c\/code\u003e. Each time you press reset, one more line is added to the file.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:10px 0;\"\u003e\u003csummary style=\"cursor:pointer;\"\u003e\u003csvg width=\"160\" height=\"26\" viewbox=\"0 0 160 26\" role=\"img\" aria-label=\"ESP32 Tutorial\" style=\"vertical-align:middle;\"\u003e\u003cdefs\u003e\u003clineargradient id=\"ep-tut-esp32\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\" spreadmethod=\"reflect\"\u003e\u003cstop offset=\"0\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"0.5\" stop-color=\"#BFE3FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"1\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003canimatetransform attributename=\"gradientTransform\" type=\"translate\" from=\"-1 0\" to=\"1 0\" dur=\"3s\" repeatcount=\"indefinite\"\u003e\u003c\/animatetransform\u003e\u003c\/lineargradient\u003e\u003c\/defs\u003e\u003ctext x=\"2\" y=\"19\" font-size=\"18\" font-weight=\"700\" font-style=\"italic\" font-family=\"Arial,Helvetica,sans-serif\" fill=\"url(#ep-tut-esp32)\"\u003eESP32 Tutorial\u003c\/text\u003e\u003c\/svg\u003e\u003c\/summary\u003e\u003cp style=\"margin:0 0 10px;\"\u003e\u003cstrong\u003eYou need:\u003c\/strong\u003e ESP32 DevKitC (ESP32-WROOM-32), USB cable (data cable), 6 jumper wires, a Micro SD card formatted as FAT16 or FAT32.\u003c\/p\u003e\n\u003cdiv style=\"max-width:640px; margin:0 0 12px; border:1px solid #e8e8e1; border-radius:6px; padding:8px; background:#fff;\"\u003e\u003csvg viewbox=\"0 0 640 312\" width=\"100%\" role=\"img\" aria-label=\"Wiring diagram: Micro SD module to ESP32 DevKitC\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"display:block; font-family:Arial,sans-serif;\"\u003e\u003ctitle\u003eWiring diagram: Micro SD module to ESP32 DevKitC\u003c\/title\u003e\n\u003crect x=\"20\" y=\"30\" width=\"230\" height=\"252\" rx=\"10\" fill=\"#1f6f8b\"\u003e\u003c\/rect\u003e\u003ctext x=\"135\" y=\"55\" fill=\"#fff\" font-size=\"16\" font-weight=\"700\" text-anchor=\"middle\"\u003eESP32 DevKitC\u003c\/text\u003e\u003crect x=\"440\" y=\"30\" width=\"180\" height=\"252\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"530\" y=\"55\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eMicro SD module\u003c\/text\u003e\u003ctext x=\"225\" y=\"89\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003e5V\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"85\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"85\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"89\" fill=\"#272831\" font-size=\"13\"\u003eVCC\u003c\/text\u003e\u003cpath d=\"M240 85 H445\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"123\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGND\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"119\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"119\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"123\" fill=\"#272831\" font-size=\"13\"\u003eGND\u003c\/text\u003e\u003cpath d=\"M240 119 H445\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"157\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGPIO19\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"153\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"153\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"157\" fill=\"#272831\" font-size=\"13\"\u003eMISO\u003c\/text\u003e\u003cpath d=\"M240 153 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"191\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGPIO23\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"187\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"187\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"191\" fill=\"#272831\" font-size=\"13\"\u003eMOSI\u003c\/text\u003e\u003cpath d=\"M240 187 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"225\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGPIO18\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"221\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"221\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"225\" fill=\"#272831\" font-size=\"13\"\u003eSCK\u003c\/text\u003e\u003cpath d=\"M240 221 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"259\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGPIO5\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"255\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"255\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"259\" fill=\"#272831\" font-size=\"13\"\u003eCS\u003c\/text\u003e\u003cpath d=\"M240 255 H445\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"340\" y=\"298\" font-size=\"12\" fill=\"#6b6d7a\" text-anchor=\"middle\"\u003eModule VCC on 5 V. ESP32 pins are 3.3 V only; the module shifts its signals.\u003c\/text\u003e\u003c\/svg\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.9em; color:#6b6d7a;\"\u003e\u003cspan style=\"color:#E53935;\"\u003e■\u003c\/span\u003e Power   \u003cspan style=\"color:#212121;\"\u003e■\u003c\/span\u003e GND   \u003cspan style=\"color:#1E88E5;\"\u003e■\u003c\/span\u003e SPI signals (MISO, MOSI, SCK)   \u003cspan style=\"color:#43A047;\"\u003e■\u003c\/span\u003e Chip select (CS)\u003c\/p\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e#\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eESP32 pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eModule pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWire colour\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5V (labelled 5V or VIN)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eVCC\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003ePower. Do not use the 3V3 pin for VCC.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e2\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eReturn path\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGPIO19\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eMISO\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData from the card to the board\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e4\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGPIO23\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eMOSI\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData from the board to the card\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGPIO18\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSCK\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSPI clock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003e6\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eGPIO5\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eCS\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eChip select\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; padding:6px 10px; background:#fff8e6; border-left:3px solid #F9A825; border-radius:4px;\"\u003e\u003cstrong\u003eWatch out:\u003c\/strong\u003e ESP32 pins are 3.3 V only. Keep VCC on the 5 V pin and never feed a 5 V signal into a GPIO pin. The module’s MISO output is at 3.3 V, so it is safe for the ESP32.\u003c\/p\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e1\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInstall the Arduino IDE\u003c\/strong\u003e\u003cbr\u003eDownload and install the \u003ca href=\"https:\/\/www.arduino.cc\/en\/software\" target=\"_blank\" rel=\"noopener\"\u003eArduino IDE\u003c\/a\u003e.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e2\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eAdd the ESP32 boards\u003c\/strong\u003e\u003cbr\u003eOpen \u003cstrong\u003eFile → Preferences\u003c\/strong\u003e and paste \u003ccode\u003ehttps:\/\/espressif.github.io\/arduino-esp32\/package_esp32_index.json\u003c\/code\u003e into \u003cstrong\u003eAdditional boards manager URLs\u003c\/strong\u003e. Then open \u003cstrong\u003eTools → Board → Boards Manager\u003c\/strong\u003e, search for \u003cstrong\u003eesp32 by Espressif Systems\u003c\/strong\u003e and click Install (\u003ca href=\"https:\/\/docs.espressif.com\/projects\/arduino-esp32\/en\/latest\/installing.html\" target=\"_blank\" rel=\"noopener\"\u003eofficial install guide\u003c\/a\u003e).\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e3\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003ePick the board and port\u003c\/strong\u003e\u003cbr\u003eChoose \u003cstrong\u003eTools → Board → esp32 → ESP32 Dev Module\u003c\/strong\u003e, then \u003cstrong\u003eTools → Port\u003c\/strong\u003e. If no port appears, use a data USB cable and install the USB driver for your board.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e4\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInsert the card and upload\u003c\/strong\u003e\u003cbr\u003ePush the card into the slot, paste the sketch below and press \u003cstrong\u003eUpload\u003c\/strong\u003e. If the upload fails, open \u003cstrong\u003eTools → Upload Speed\u003c\/strong\u003e, choose \u003cstrong\u003e115200\u003c\/strong\u003e, and upload again. The SD library comes with the ESP32 board package.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdetails open style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:8px 0 12px;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Example 1 — Write a line to a file and read it back\u003c\/summary\u003e\u003cpre style=\"background:#272831; color:#f4f4f6; padding:12px; border-radius:6px; overflow-x:auto; font-size:13px; line-height:1.45;\"\u003e\u003ccode style=\"background:transparent !important;color:#f4f4f6 !important;padding:0 !important;border:0 !important;font-family:Menlo,Consolas,monospace;font-size:13px;white-space:pre;\"\u003e\/\/ Wiring: VCC-\u0026gt;5V, GND-\u0026gt;GND, MOSI-\u0026gt;GPIO23, MISO-\u0026gt;GPIO19, SCK-\u0026gt;GPIO18, CS-\u0026gt;GPIO5\n#include \u0026lt;FS.h\u0026gt;\n#include \u0026lt;SD.h\u0026gt;\n#include \u0026lt;SPI.h\u0026gt;\n\nconst int CS_PIN = 5;    \/\/ chip select, same pin as in the wiring table\n\nvoid setup() {\n  Serial.begin(115200);  \/\/ Serial Monitor speed\n\n  if (!SD.begin(CS_PIN) || SD.cardType() == CARD_NONE) {\n    Serial.println(\"SD module or card not found - check wiring and card format\");\n    while (true) {}      \/\/ stop here\n  }\n  Serial.println(\"OK - epartners.co.nz test\");\n  Serial.printf(\"Card size: %llu MB\\n\", SD.cardSize() \/ (1024 * 1024));\n\n  \/\/ Add one line to test.txt (the file is created if it does not exist)\n  File f = SD.open(\"\/test.txt\", FILE_APPEND);\n  if (!f) {\n    Serial.println(\"Could not open test.txt for writing\");\n    while (true) {}\n  }\n  f.println(\"testing 1, 2, 3.\");  \/\/ you can change this text\n  f.close();\n  Serial.println(\"File written\");\n\n  \/\/ Read the file back\n  f = SD.open(\"\/test.txt\");\n  if (f) {\n    Serial.println(\"File content:\");\n    while (f.available()) {\n      Serial.write(f.read());\n    }\n    f.close();\n  }\n}\n\nvoid loop() {\n  \/\/ nothing to do here\n}\n\u003c\/code\u003e\u003c\/pre\u003e\u003c\/details\u003e\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e5\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eOpen the Serial Monitor\u003c\/strong\u003e\u003cbr\u003eOpen \u003cstrong\u003eTools → Serial Monitor\u003c\/strong\u003e and set the speed to \u003cstrong\u003e115200 baud\u003c\/strong\u003e (the speed the board uses to talk to your computer).\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cp style=\"margin:0 0 12px; padding:6px 10px; background:#eef7ee; border-left:3px solid #43A047; border-radius:4px;\"\u003e\u003cstrong\u003e✓ Check:\u003c\/strong\u003e The Serial Monitor shows \u003ccode\u003eOK - epartners.co.nz test\u003c\/code\u003e once, the card size, then \u003ccode\u003eFile written\u003c\/code\u003e and \u003ccode\u003eFile content:\u003c\/code\u003e followed by \u003ccode\u003etesting 1, 2, 3.\u003c\/code\u003e. Each time you press EN (reset), one more line is added.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:10px 0;\"\u003e\u003csummary style=\"cursor:pointer;\"\u003e\u003csvg width=\"290\" height=\"26\" viewbox=\"0 0 290 26\" role=\"img\" aria-label=\"Raspberry Pi Pico Tutorial\" style=\"vertical-align:middle;\"\u003e\u003cdefs\u003e\u003clineargradient id=\"ep-tut-pico\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\" spreadmethod=\"reflect\"\u003e\u003cstop offset=\"0\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"0.5\" stop-color=\"#BFE3FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"1\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003canimatetransform attributename=\"gradientTransform\" type=\"translate\" from=\"-1 0\" to=\"1 0\" dur=\"3s\" repeatcount=\"indefinite\"\u003e\u003c\/animatetransform\u003e\u003c\/lineargradient\u003e\u003c\/defs\u003e\u003ctext x=\"2\" y=\"19\" font-size=\"18\" font-weight=\"700\" font-style=\"italic\" font-family=\"Arial,Helvetica,sans-serif\" fill=\"url(#ep-tut-pico)\"\u003eRaspberry Pi Pico Tutorial\u003c\/text\u003e\u003c\/svg\u003e\u003c\/summary\u003e\u003cp style=\"margin:0 0 10px;\"\u003e\u003cstrong\u003eYou need:\u003c\/strong\u003e Raspberry Pi Pico (with header pins), micro-USB cable (data cable), 6 jumper wires, a Micro SD card formatted as FAT16 or FAT32.\u003c\/p\u003e\n\u003cdiv style=\"max-width:640px; margin:0 0 12px; border:1px solid #e8e8e1; border-radius:6px; padding:8px; background:#fff;\"\u003e\u003csvg viewbox=\"0 0 640 312\" width=\"100%\" role=\"img\" aria-label=\"Wiring diagram: Micro SD module to Raspberry Pi Pico\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"display:block; font-family:Arial,sans-serif;\"\u003e\u003ctitle\u003eWiring diagram: Micro SD module to Raspberry Pi Pico\u003c\/title\u003e\n\u003crect x=\"20\" y=\"30\" width=\"230\" height=\"252\" rx=\"10\" fill=\"#1f6f8b\"\u003e\u003c\/rect\u003e\u003ctext x=\"135\" y=\"55\" fill=\"#fff\" font-size=\"16\" font-weight=\"700\" text-anchor=\"middle\"\u003eRaspberry Pi Pico\u003c\/text\u003e\u003crect x=\"440\" y=\"30\" width=\"180\" height=\"252\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"530\" y=\"55\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eMicro SD module\u003c\/text\u003e\u003ctext x=\"225\" y=\"89\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eVBUS (pin 40)\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"85\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"85\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"89\" fill=\"#272831\" font-size=\"13\"\u003eVCC\u003c\/text\u003e\u003cpath d=\"M240 85 H445\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"123\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGND (pin 13)\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"119\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"119\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"123\" fill=\"#272831\" font-size=\"13\"\u003eGND\u003c\/text\u003e\u003cpath d=\"M240 119 H445\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"157\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGP8 (pin 11)\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"153\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"153\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"157\" fill=\"#272831\" font-size=\"13\"\u003eMISO\u003c\/text\u003e\u003cpath d=\"M240 153 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"191\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGP11 (pin 15)\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"187\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"187\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"191\" fill=\"#272831\" font-size=\"13\"\u003eMOSI\u003c\/text\u003e\u003cpath d=\"M240 187 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"225\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGP10 (pin 14)\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"221\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"221\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"225\" fill=\"#272831\" font-size=\"13\"\u003eSCK\u003c\/text\u003e\u003cpath d=\"M240 221 H445\" stroke=\"#1E88E5\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"225\" y=\"259\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGP9 (pin 12)\u003c\/text\u003e\u003ccircle cx=\"240\" cy=\"255\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003ccircle cx=\"445\" cy=\"255\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"458\" y=\"259\" fill=\"#272831\" font-size=\"13\"\u003eCS\u003c\/text\u003e\u003cpath d=\"M240 255 H445\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ctext x=\"340\" y=\"298\" font-size=\"12\" fill=\"#6b6d7a\" text-anchor=\"middle\"\u003eModule VCC on VBUS (USB 5 V). Pico pins are 3.3 V only; the module shifts its signals.\u003c\/text\u003e\u003c\/svg\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.9em; color:#6b6d7a;\"\u003e\u003cspan style=\"color:#E53935;\"\u003e■\u003c\/span\u003e Power   \u003cspan style=\"color:#212121;\"\u003e■\u003c\/span\u003e GND   \u003cspan style=\"color:#1E88E5;\"\u003e■\u003c\/span\u003e SPI signals (MISO, MOSI, SCK)   \u003cspan style=\"color:#43A047;\"\u003e■\u003c\/span\u003e Chip select (CS)\u003c\/p\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e#\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eRaspberry Pi Pico pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eModule pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWire colour\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eVBUS (pin 40)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eVCC\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eUSB 5 V. Do not use 3V3(OUT) for VCC.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e2\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND (pin 13)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eReturn path\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGP8 (pin 11)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eMISO\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData from the card to the Pico\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e4\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGP11 (pin 15)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eMOSI\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData from the Pico to the card\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGP10 (pin 14)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSCK\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlue\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSPI clock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003e6\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eGP9 (pin 12)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eCS\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eChip select\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; padding:6px 10px; background:#fff8e6; border-left:3px solid #F9A825; border-radius:4px;\"\u003e\u003cstrong\u003eWatch out:\u003c\/strong\u003e Pico pins are 3.3 V only and do not tolerate 5 V signals. Power the module from VBUS (pin 40), and use the module’s MISO output, which is at 3.3 V. Unplug USB before moving wires.\u003c\/p\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e1\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInstall Thonny and MicroPython\u003c\/strong\u003e\u003cbr\u003eInstall \u003ca href=\"https:\/\/thonny.org\" target=\"_blank\" rel=\"noopener\"\u003eThonny\u003c\/a\u003e. Hold the \u003cstrong\u003eBOOTSEL\u003c\/strong\u003e button while you plug the Pico into USB, then install MicroPython from Thonny or from \u003ca href=\"https:\/\/micropython.org\/download\/RPI_PICO\/\" target=\"_blank\" rel=\"noopener\"\u003emicropython.org\u003c\/a\u003e. In the bottom-right corner choose the interpreter \u003cstrong\u003eMicroPython (Raspberry Pi Pico)\u003c\/strong\u003e.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e2\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInsert the card\u003c\/strong\u003e\u003cbr\u003ePush the Micro SD card into the slot with the contacts facing the board, until it clicks into place.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e3\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eSave the sdcard driver on the Pico\u003c\/strong\u003e\u003cbr\u003eOpen the \u003ca href=\"https:\/\/raw.githubusercontent.com\/micropython\/micropython-lib\/master\/micropython\/drivers\/storage\/sdcard\/sdcard.py\" target=\"_blank\" rel=\"noopener\"\u003esdcard.py driver\u003c\/a\u003e, copy all of it into a new Thonny file, choose \u003cstrong\u003eFile → Save as → Raspberry Pi Pico\u003c\/strong\u003e, make a folder called \u003ccode\u003elib\u003c\/code\u003e, and save the file there as \u003ccode\u003esdcard.py\u003c\/code\u003e.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e4\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eRun the example\u003c\/strong\u003e\u003cbr\u003ePaste the code below into a new Thonny file and press \u003cstrong\u003eRun\u003c\/strong\u003e (the green button). Press \u003cstrong\u003eStop\u003c\/strong\u003e to end it. To run it every time the Pico gets power, save it on the Pico as \u003ccode\u003emain.py\u003c\/code\u003e.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdetails open style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:8px 0 12px;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Example 1 — Write a line to a file and read it back\u003c\/summary\u003e\u003cpre style=\"background:#272831; color:#f4f4f6; padding:12px; border-radius:6px; overflow-x:auto; font-size:13px; line-height:1.45;\"\u003e\u003ccode style=\"background:transparent !important;color:#f4f4f6 !important;padding:0 !important;border:0 !important;font-family:Menlo,Consolas,monospace;font-size:13px;white-space:pre;\"\u003e# Wiring: VCC-\u0026gt;VBUS (pin 40), GND-\u0026gt;GND (pin 13), MISO-\u0026gt;GP8, CS-\u0026gt;GP9, SCK-\u0026gt;GP10, MOSI-\u0026gt;GP11\nimport machine\nimport os\nimport sdcard            # sdcard.py must be saved on the Pico (see step 3)\n\nMISO_PIN = 8             # pin numbers match the wiring table\nCS_PIN = 9\nSCK_PIN = 10\nMOSI_PIN = 11\n\ncs = machine.Pin(CS_PIN, machine.Pin.OUT)\nspi = machine.SPI(1, baudrate=1000000, polarity=0, phase=0, bits=8,\n                  firstbit=machine.SPI.MSB,\n                  sck=machine.Pin(SCK_PIN), mosi=machine.Pin(MOSI_PIN),\n                  miso=machine.Pin(MISO_PIN))\n\ntry:\n    sd = sdcard.SDCard(spi, cs)\n    os.mount(os.VfsFat(sd), \"\/sd\")   # the card now appears as the folder \/sd\nexcept OSError:\n    print(\"SD module or card not found - check wiring and card format\")\n    raise SystemExit\n\nprint(\"OK - epartners.co.nz test\")\n\n# Add one line to test.txt (the file is created if it does not exist)\nwith open(\"\/sd\/test.txt\", \"a\") as f:\n    f.write(\"testing 1, 2, 3.\\n\")   # you can change this text\nprint(\"File written\")\n\n# Read the file back\nprint(\"File content:\")\nwith open(\"\/sd\/test.txt\", \"r\") as f:\n    print(f.read())\n\u003c\/code\u003e\u003c\/pre\u003e\u003c\/details\u003e\u003cp style=\"margin:0 0 12px; padding:6px 10px; background:#eef7ee; border-left:3px solid #43A047; border-radius:4px;\"\u003e\u003cstrong\u003e✓ Check:\u003c\/strong\u003e The Shell at the bottom of Thonny shows \u003ccode\u003eOK - epartners.co.nz test\u003c\/code\u003e once, then \u003ccode\u003eFile written\u003c\/code\u003e and \u003ccode\u003eFile content:\u003c\/code\u003e followed by \u003ccode\u003etesting 1, 2, 3.\u003c\/code\u003e. Each time you run it, one more line is added.\u003c\/p\u003e\u003c\/details\u003e\u003ch3 style=\"margin:18px 0 8px; color:#272831;\"\u003eTroubleshooting\u003c\/h3\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eBoard\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eProblem\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eLikely cause\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eFix\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eAll\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e\"SD module or card not found\"\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eWire in the wrong place, card not pushed in, or the card is not FAT16\/FAT32\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eCheck each wire against the table, push the card in until it clicks, and format the card as FAT32.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eAll\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eNothing works with the wires as drawn\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003ePin order on your module differs from the diagram\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRead the labels printed on the module and connect by name (VCC, GND, MISO, MOSI, SCK, CS).\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eAll\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eCard works on a computer but not on the module\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eCard is formatted as a different file system\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eReformat the card as FAT16 or FAT32 and try again.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eESP32\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eStuck on \"Connecting…\"\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBoard is not in upload mode\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHold the BOOT button until uploading starts.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eESP32\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eUpload fails or stops part-way\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eUpload speed too high for the USB cable or USB chip\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eTools → Upload Speed → 115200, then upload again.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRaspberry Pi Pico\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e\u003ccode\u003eImportError: no module named 'sdcard'\u003c\/code\u003e\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003esdcard.py is not saved on the Pico\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSave sdcard.py inside a lib folder on the Pico (step 3).\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eRaspberry Pi Pico\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003ePico does not show up in Thonny\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eBoard not in MicroPython mode or a charge-only cable\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eHold BOOTSEL while plugging in, reinstall MicroPython, and use a data USB cable.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:10px 0 0;font-size:.95em;\"\u003e\u003cstrong\u003eTry next:\u003c\/strong\u003e log a sensor reading to a file every second, or read a text file line by line and print it.\u003c\/p\u003e\n\u003cp style=\"margin:12px 0 0; padding:8px 10px; background:#f9f9fb; border:1px dashed #e8e8e1; border-radius:4px; font-size:.92em; color:#42434d;\"\u003eSpotted a problem in this tutorial? Email \u003ca href=\"mailto:support@epartners.co.nz\"\u003esupport@epartners.co.nz\u003c\/a\u003e and we'll check it and update the tutorial.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/div\u003e\n\u003c!-- EP:TUTORIAL END --\u003e\u003cdiv style=\"border-left:4px solid #313652; background:#f9f9fb; border-radius:0 6px 6px 0; padding:12px 16px; margin:22px 0;\"\u003e\n\u003cdiv style=\"font-weight:700; color:#272831; margin-bottom:4px;\"\u003eGood to know\u003c\/div\u003e\n\u003cul style=\"margin:0; padding-left:1.2em;\"\u003e\n\u003cli\u003eFormat the card as FAT16 or FAT32. The Arduino SD library uses short 8.3 file names (for example \u003ccode\u003etest.txt\u003c\/code\u003e).\u003c\/li\u003e\n\u003cli\u003ePower the module (VCC) from 5 V, even on 3.3 V boards. The regulator on the module gives the card its 3.3 V; a Micro SD card can be damaged by more than 3.6 V.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003ch2\u003eVideo guide\u003c\/h2\u003e\n\u003cdiv style=\"position:relative; width:100%; padding-bottom:56.25%; height:0; margin:0 0 12px; border-radius:6px; overflow:hidden; background:#000;\"\u003e\u003ciframe src=\"https:\/\/www.youtube.com\/embed\/PQhQfww-qGQ?si=9_pKeVm0V0N9ojF_\" title=\"YouTube video player\" style=\"position:absolute; top:0; left:0; width:100%; height:100%; border:0;\" allow=\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003e\u003c\/iframe\u003e\u003c\/div\u003e\n\u003c!-- EP:DATASHEET START --\u003e\n\u003ch2\u003eDatasheet\u003c\/h2\u003e\n\u003cp style=\"margin:0 0 10px;\"\u003eKey figures from the manufacturer's datasheet for the \u003cstrong\u003e74LVC125A\u003c\/strong\u003e level converter chip on this module, which changes the signal levels between your board and the Micro SD card (Texas Instruments SN74LVC125A shown).\u003c\/p\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em;\"\u003e\u003ctbody\u003e\n\u003ctr\u003e\u003cth colspan=\"2\" scope=\"colgroup\" style=\"text-align:left; background:#313652; color:#fff; padding:7px 10px; font-weight:600;\"\u003eSN74LVC125A quad buffer\u003c\/th\u003e\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eFunction\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eQuadruple bus buffer gate: four buffers, each with its own output enable\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eSupply voltage (VCC)\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1.65 V to 3.6 V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eInput voltage\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e0 V to 5.5 V (inputs accept 3.3 V or 5 V signals)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eOutput enable (OE)\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eActive low: output is high-impedance when OE is high\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eOutput current at VCC = 3 V\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e±24 mA (high and low level, recommended maximum)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003ePropagation delay, A to Y, VCC = 3.3 V ± 0.3 V\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e2.5 ns typical, 4.8 ns maximum (−40 °C to 85 °C)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eOperating temperature\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSpecified from −40 °C to 85 °C and −40 °C to 125 °C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; font-weight:600; color:#272831;\"\u003ePackages (14-pin)\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eWQFN, SOIC, SSOP, SOP, TSSOP, VQFN\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:14px 0 10px;\"\u003e\u003ca href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0638\/6771\/5834\/files\/sn74lvc125a-datasheet.pdf?v=1795243693\" target=\"_blank\" rel=\"noopener\" style=\"display:inline-block; background:#313652; color:#fff; padding:8px 14px; border-radius:6px; text-decoration:none; font-weight:600;\"\u003eDownload the 74LVC125A datasheet (PDF, 2.5 MB)\u003c\/a\u003e\u003c\/p\u003e\n\u003c!-- EP:DSPREVIEW START --\u003e\u003cdetails style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:0 0 12px;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Preview the datasheet\u003c\/summary\u003e\u003ciframe src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0638\/6771\/5834\/files\/sn74lvc125a-datasheet.pdf?v=1795243693\" title=\"SN74LVC125A datasheet\" loading=\"lazy\" style=\"width:100%; height:640px; border:0; margin-top:8px;\"\u003e\u003c\/iframe\u003e\u003cp style=\"margin:6px 0 0; font-size:.9em; color:#6b6d7a;\"\u003eIf the preview does not load on your device, use the download link above.\u003c\/p\u003e\u003c\/details\u003e\u003c!-- EP:DSPREVIEW END --\u003e\u003cp style=\"margin:0 0 4px; font-size:.9em; color:#6b6d7a;\"\u003eSource: Texas Instruments, SN74LVC125A Quadruple Bus Buffer Gate With 3-State Outputs, SCAS290T (revised September 2024).\u003c\/p\u003e\n\u003c!-- EP:DATASHEET END --\u003e\n\u003ch2\u003eResources\u003c\/h2\u003e\n\u003cul style=\"padding-left:1.2em;\"\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/lastminuteengineers.com\/arduino-micro-sd-card-module-tutorial\/\" target=\"_blank\" rel=\"noopener\"\u003eLast Minute Engineers: Micro SD card module with Arduino\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/randomnerdtutorials.com\/esp32-microsd-card-arduino\/\" target=\"_blank\" rel=\"noopener\"\u003eRandom Nerd Tutorials: microSD card module with ESP32\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/docs.arduino.cc\/libraries\/sd\/\" target=\"_blank\" rel=\"noopener\"\u003eArduino SD library\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/raw.githubusercontent.com\/micropython\/micropython-lib\/master\/micropython\/drivers\/storage\/sdcard\/sdcard.py\" target=\"_blank\" rel=\"noopener\"\u003eMicroPython sdcard.py driver (micropython-lib)\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/www.arduino.cc\/en\/software\" target=\"_blank\" rel=\"noopener\"\u003eArduino IDE download\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/docs.espressif.com\/projects\/arduino-esp32\/en\/latest\/installing.html\" target=\"_blank\" rel=\"noopener\"\u003eESP32 Arduino core install guide\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/thonny.org\" target=\"_blank\" rel=\"noopener\"\u003eThonny\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/micropython.org\/download\/RPI_PICO\/\" target=\"_blank\" rel=\"noopener\"\u003eMicroPython for Raspberry Pi Pico\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0638\/6771\/5834\/files\/sn74lvc125a-datasheet.pdf?v=1795243693\" target=\"_blank\" rel=\"noopener\"\u003eSN74LVC125A datasheet (PDF)\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eWhich one should I choose?\u003c\/h2\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eProduct\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eKey difference\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eBest for\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eThis product (Micro SD card reader module)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSupply voltage 5 V, with an on-board 3.3 V regulator and a level converter chip\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBoards that have a 5 V pin: UNO, Mega, ESP32 and Pico (VBUS)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e\u003ca href=\"\/products\/sd-card-micro-sd-card-reader-module-2\"\u003eMicro SD card Reader Module (HA6001-1)\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eIts listing gives the input voltage as 3.3 V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBoards that supply 3.3 V to the module\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003e\u003ca href=\"\/products\/mp0006\"\u003eSD Card Reader Module (MP0006)\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eIts listing gives the input voltage as 3.3 V \/ 5 V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px;\"\u003eSetups where a 3.3 V \/ 5 V input range suits your board\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003ch2\u003eFAQ\u003c\/h2\u003e\n\u003cdetails style=\"border-bottom:1px solid #e8e8e1; padding:8px 0;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Does it work with 3.3 V boards like the ESP32 and Raspberry Pi Pico?\u003c\/summary\u003e\u003cp style=\"margin:6px 0 0;\"\u003eYes. The level converter chip lets the signal pins connect to 3.3 V boards, but the module’s VCC pin still needs 5 V, so use the 5 V pin (VBUS on the Pico).\u003c\/p\u003e\u003c\/details\u003e\u003cdetails style=\"border-bottom:1px solid #e8e8e1; padding:8px 0;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Which cards and file systems can I use?\u003c\/summary\u003e\u003cp style=\"margin:6px 0 0;\"\u003eMicro SD and Micro SDHC cards. Format the card as FAT16 or FAT32 for the Arduino SD library.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails style=\"border-bottom:1px solid #e8e8e1; padding:8px 0;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Is a Micro SD card included?\u003c\/summary\u003e\u003cp style=\"margin:6px 0 0;\"\u003eNo. The package contains only the module.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails style=\"border-bottom:1px solid #e8e8e1; padding:8px 0;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Which pins do I use on an Arduino UNO?\u003c\/summary\u003e\u003cp style=\"margin:6px 0 0;\"\u003eD10 for CS, D11 for MOSI, D12 for MISO and D13 for SCK, plus 5 V and GND.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails style=\"border-bottom:1px solid #e8e8e1; padding:8px 0;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Can I use a different CS pin?\u003c\/summary\u003e\u003cp style=\"margin:6px 0 0;\"\u003eYes. CS is a normal chip-select pin: change the CS_PIN number in the code and move the wire to match.\u003c\/p\u003e\u003c\/details\u003e\u003cp style=\"margin:20px 0 0; font-size:.92em; color:#6b6d7a;\"\u003eTechnical question about this part? Email \u003ca href=\"mailto:support@epartners.co.nz\"\u003esupport@epartners.co.nz\u003c\/a\u003e with your board and wiring, and we'll help you get it working.\u003c\/p\u003e\n\u003c\/div\u003e","brand":"ePartners","offers":[{"title":"Default","offer_id":42712866619642,"sku":"TP6005-1","price":3.99,"currency_code":"NZD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0638\/6771\/5834\/files\/sd-card-micro-sd-card-reader-module-715080.jpg?v=1726482160","url":"https:\/\/epartners.co.nz\/products\/sd-card-micro-sd-card-reader-module","provider":"ePartners","version":"1.0","type":"link"}