main
Ray Publish 0.1.0 5ed8b15 8d ago
{
  "slug": "esp32-s2fn4r2",
  "version": "0.1.0",
  "type": "component",
  "description": "Espressif Systems WiFi Modules, QFN-56-EP(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "iot-communication modules",
    "esp32-s2fn4r2",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "esp32-s2fn4r2.kicad_sym",
    "esp32-s2fn4r2.kicad_mod",
    "esp32-s2fn4r2.glb",
    "esp32-s2fn4r2.step",
    "esp32-s2fn4r2.lbr",
    "docs/hero.png",
    "docs/esp32-s2fn4r2-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "esp32-s2fn4r2-hero.glb",
    "esp32-s2fn4r2-hero.overlay.json",
    "esp32-s2fn4r2-etched.glb"
  ],
  "component": {
    "mpn": "ESP32-S2FN4R2",
    "manufacturer": "Espressif Systems",
    "package": "QFN-56-EP(7x7)",
    "pin_count": 57,
    "category": "IoT/Communication Modules",
    "subcategory": "WiFi Modules",
    "datasheet": "https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf",
    "parts": {
      "symbol": "esp32-s2fn4r2.kicad_sym",
      "footprint": "esp32-s2fn4r2.kicad_mod",
      "model_3d": "esp32-s2fn4r2-hero.glb",
      "model_3d_plain": "esp32-s2fn4r2-etched.glb",
      "model_3d_step": "esp32-s2fn4r2-etched.step",
      "model_3d_step_plain": "esp32-s2fn4r2.step",
      "lbr": "esp32-s2fn4r2.lbr"
    },
    "distributor_links": {
      "lcsc": "C2844252",
      "mouser": "356-ESP32-S2FN4R2"
    },
    "distributor_check": {
      "checked_at": "2026-10-27T22:57:57Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "deferred",
        "error": "shared DigiKey quota guard: 977 calls left today"
      },
      "mouser": {
        "pn": "356-ESP32-S2FN4R2",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "VDDA",
        "type": "power_in",
        "description": "Analog power domain supply pin for the RF and analog circuitry."
      },
      {
        "number": "2",
        "name": "LNA_IN",
        "type": "bidirectional",
        "description": "Low Noise Amplifier (RF LNA) input/output signal pin for the 2.4 GHz receive path."
      },
      {
        "number": "3",
        "name": "VDD3P3",
        "type": "power_in",
        "description": "Analog power domain supply pin."
      },
      {
        "number": "4",
        "name": "VDD3P3",
        "type": "power_in",
        "description": "Analog power domain supply pin."
      },
      {
        "number": "5",
        "name": "GPIO0",
        "type": "bidirectional",
        "description": "Strapping pin for chip boot mode with a weak pull-up at reset, configurable via software IO MUX and GPIO matrix functions."
      },
      {
        "number": "6",
        "name": "GPIO1",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO1, TOUCH1 and ADC1_CH0 analog functions, default drive strength 20 mA."
      },
      {
        "number": "7",
        "name": "GPIO2",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO2, TOUCH2 and ADC1_CH1 analog functions, default drive strength 20 mA."
      },
      {
        "number": "8",
        "name": "GPIO3",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO3, TOUCH3 and ADC1_CH2 analog functions, default drive strength 20 mA."
      },
      {
        "number": "9",
        "name": "GPIO4",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO4, TOUCH4 and ADC1_CH3 analog functions, default drive strength 20 mA."
      },
      {
        "number": "10",
        "name": "GPIO5",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO5, TOUCH5 and ADC1_CH4 analog functions, default drive strength 20 mA."
      },
      {
        "number": "11",
        "name": "GPIO6",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO6, TOUCH6 and ADC1_CH5 analog functions, default drive strength 20 mA."
      },
      {
        "number": "12",
        "name": "GPIO7",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO7, TOUCH7 and ADC1_CH6 analog functions, default drive strength 20 mA."
      },
      {
        "number": "13",
        "name": "GPIO8",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO8, TOUCH8 and ADC1_CH7 analog functions, default drive strength 20 mA."
      },
      {
        "number": "14",
        "name": "GPIO9",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO9, TOUCH9 and ADC1_CH8 analog functions, default drive strength 20 mA."
      },
      {
        "number": "15",
        "name": "GPIO10",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO10, TOUCH10 and ADC1_CH9 analog functions, default drive strength 20 mA."
      },
      {
        "number": "16",
        "name": "GPIO11",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO11, TOUCH11 and ADC2_CH0 analog functions, default drive strength 20 mA."
      },
      {
        "number": "17",
        "name": "GPIO12",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO12, TOUCH12 and ADC2_CH1 analog functions, default drive strength 20 mA."
      },
      {
        "number": "18",
        "name": "GPIO13",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO13, TOUCH13 and ADC2_CH2 analog functions, default drive strength 20 mA."
      },
      {
        "number": "19",
        "name": "GPIO14",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO14, TOUCH14 and ADC2_CH3 analog functions, default drive strength 20 mA."
      },
      {
        "number": "20",
        "name": "VDD3P3_RTC",
        "type": "power_in",
        "description": "RTC domain supply pin."
      },
      {
        "number": "21",
        "name": "XTAL_32K_P",
        "type": "bidirectional",
        "description": "Positive clock signal connected to the crystal or oscillator for the 32 kHz external clock, also usable as RTC_GPIO15 and ADC2_CH4."
      },
      {
        "number": "22",
        "name": "XTAL_32K_N",
        "type": "bidirectional",
        "description": "Negative clock signal for the 32 kHz external clock input/output, also usable as RTC_GPIO16 and ADC2_CH5."
      },
      {
        "number": "23",
        "name": "DAC_1",
        "type": "bidirectional",
        "description": "Analog output of 8-bit DAC channel 1, also usable as RTC_GPIO17 and ADC2_CH6; the DAC uses VDD3P3_RTC_IO as voltage reference."
      },
      {
        "number": "24",
        "name": "DAC_2",
        "type": "bidirectional",
        "description": "Analog output of 8-bit DAC channel 2, also usable as RTC_GPIO18 and ADC2_CH7; the DAC uses VDD3P3_RTC_IO as voltage reference."
      },
      {
        "number": "25",
        "name": "GPIO19",
        "type": "bidirectional",
        "description": "General-purpose I/O that is also USB_D- for the USB OTG interface, with ADC2_CH8 and RTC_GPIO19 functions."
      },
      {
        "number": "26",
        "name": "GPIO20",
        "type": "bidirectional",
        "description": "General-purpose I/O that is also USB_D+ for the USB OTG interface, with ADC2_CH9 and RTC_GPIO20 functions."
      },
      {
        "number": "27",
        "name": "VDD3P3_RTC_IO",
        "type": "power_in",
        "description": "RTC and part of digital power domain supply for RTC IO pins."
      },
      {
        "number": "28",
        "name": "GPIO21",
        "type": "bidirectional",
        "description": "General-purpose I/O with RTC_GPIO21 function."
      },
      {
        "number": "29",
        "name": "SPICS1",
        "type": "bidirectional",
        "description": "SPI chip select 1 for in-package PSRAM; pin allocated to in-package flash/PSRAM and not recommended for other uses."
      },
      {
        "number": "30",
        "name": "VDD_SPI",
        "type": "power_in",
        "description": "In-package memory backup power line, which can also be configured as an output supplying in-package and off-package flash/PSRAM SPI IO."
      },
      {
        "number": "31",
        "name": "SPIHD",
        "type": "bidirectional",
        "description": "SPI hold signal for in-package flash/PSRAM; pin allocated to in-package memory and not to be used for other purposes."
      },
      {
        "number": "32",
        "name": "SPIWP",
        "type": "bidirectional",
        "description": "SPI write protect signal for in-package flash/PSRAM; pin allocated to in-package memory and not to be used for other purposes."
      },
      {
        "number": "33",
        "name": "SPICS0",
        "type": "bidirectional",
        "description": "SPI chip select 0 for in-package flash; pin allocated to in-package memory and not to be used for other purposes."
      },
      {
        "number": "34",
        "name": "SPICLK",
        "type": "bidirectional",
        "description": "SPI clock for in-package flash/PSRAM; pin allocated to in-package memory and not to be used for other purposes."
      },
      {
        "number": "35",
        "name": "SPIQ",
        "type": "bidirectional",
        "description": "SPI data line (MISO/SIO1) for in-package flash/PSRAM; pin allocated to in-package memory and not to be used for other purposes."
      },
      {
        "number": "36",
        "name": "SPID",
        "type": "bidirectional",
        "description": "SPI data line (MOSI/SIO0) for in-package flash/PSRAM; pin allocated to in-package memory and not to be used for other purposes."
      },
      {
        "number": "37",
        "name": "GPIO33",
        "type": "bidirectional",
        "description": "Higher data line IO4 for 8-line SPI, usable as GPIO only if the chip is not connected to flash or PSRAM in 8-line SPI mode; powered by VDD_SPI or VDD3P3_CPU."
      },
      {
        "number": "38",
        "name": "GPIO34",
        "type": "bidirectional",
        "description": "Higher data line IO5 for 8-line SPI, usable as GPIO only if the chip is not connected to flash or PSRAM in 8-line SPI mode; powered by VDD_SPI or VDD3P3_CPU."
      },
      {
        "number": "39",
        "name": "GPIO35",
        "type": "bidirectional",
        "description": "Higher data line IO6 for 8-line SPI, usable as GPIO only if the chip is not connected to flash or PSRAM in 8-line SPI mode; powered by VDD_SPI or VDD3P3_CPU."
      },
      {
        "number": "40",
        "name": "GPIO36",
        "type": "bidirectional",
        "description": "Higher data line IO7 for 8-line SPI, usable as GPIO only if the chip is not connected to flash or PSRAM in 8-line SPI mode; powered by VDD_SPI or VDD3P3_CPU."
      },
      {
        "number": "41",
        "name": "GPIO37",
        "type": "bidirectional",
        "description": "DQS/DM data strobe for 8-line SPI, usable as GPIO only if the chip is not connected to flash or PSRAM in 8-line SPI mode; powered by VDD_SPI or VDD3P3_CPU."
      },
      {
        "number": "42",
        "name": "GPIO38",
        "type": "bidirectional",
        "description": "General-purpose I/O with IO MUX functions F0-F4, powered by VDD3P3_CPU."
      },
      {
        "number": "43",
        "name": "MTCK",
        "type": "bidirectional",
        "description": "JTAG test clock input (default function) that can also be used as GPIO39, powered by VDD3P3_CPU."
      },
      {
        "number": "44",
        "name": "MTDO",
        "type": "bidirectional",
        "description": "JTAG test data output (default function) that can also be used as GPIO40, powered by VDD3P3_CPU."
      },
      {
        "number": "45",
        "name": "VDD3P3_CPU",
        "type": "power_in",
        "description": "Digital power domain supply pin for digital IO."
      },
      {
        "number": "46",
        "name": "MTDI",
        "type": "bidirectional",
        "description": "JTAG test data input (default function) that can also be used as GPIO41, powered by VDD3P3_CPU."
      },
      {
        "number": "47",
        "name": "MTMS",
        "type": "bidirectional",
        "description": "JTAG test mode select (default function) that can also be used as GPIO42, powered by VDD3P3_CPU."
      },
      {
        "number": "48",
        "name": "U0TXD",
        "type": "bidirectional",
        "description": "UART0 transmit data (default function) that can also be used as GPIO43; has weak pull-up enabled at reset, powered by VDD3P3_CPU."
      },
      {
        "number": "49",
        "name": "U0RXD",
        "type": "bidirectional",
        "description": "UART0 receive data (default function) that can also be used as GPIO44; has weak pull-up enabled at reset, powered by VDD3P3_CPU."
      },
      {
        "number": "50",
        "name": "GPIO45",
        "type": "bidirectional",
        "description": "Strapping pin for VDD_SPI voltage, with a weak pull-down enabled at reset, powered by VDD3P3_CPU."
      },
      {
        "number": "51",
        "name": "VDDA",
        "type": "power_in",
        "description": "Analog power domain supply pin."
      },
      {
        "number": "52",
        "name": "XTAL_N",
        "type": "passive",
        "description": "External clock input/output connected to the chip oscillator (negative side of the differential clock)."
      },
      {
        "number": "53",
        "name": "XTAL_P",
        "type": "passive",
        "description": "External clock input/output connected to the chip oscillator (positive side of the differential clock)."
      },
      {
        "number": "54",
        "name": "VDDA",
        "type": "power_in",
        "description": "Analog power domain supply pin."
      },
      {
        "number": "55",
        "name": "GPIO46",
        "type": "input",
        "description": "Input-only GPIO and strapping pin with a fixed pull-down, used for chip boot mode and ROM message printing control."
      },
      {
        "number": "56",
        "name": "CHIP_PU",
        "type": "input",
        "description": "Power-up and reset pin: High turns the chip on, Low shuts it down; it must not be left floating."
      },
      {
        "number": "57",
        "name": "GND",
        "type": "power_in",
        "description": "External ground connection (exposed pad) for the chip."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.3",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.3",
        "primary_model": "claude-haiku-5-5",
        "primary_mode": "text",
        "consensus_model": "claude-sonnet-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: The datasheet states the two QFN56 (7x7 mm) packages differ only in exposed pad (EPAD) size. The FN4",
          "3/57 pins cited to the wrong page (name found elsewhere): ['23:DAC_1@p45', '24:DAC_2@p45', '34:SPICLK@p28']"
        ],
        "pages_sent": 39,
        "cost_usd": 0.1572,
        "at": "2026-10-27T22:57:39"
      },
      "datasheet": {
        "url": "https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf",
        "pages": 65,
        "sha256": "7c0c54f11e79cc77",
        "source_tier": "mfr"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 57,
        "described": 57,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "esp32-s2fn4r2.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          7.0,
          7.0,
          0.92
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "a7e1b68d7c240016a0c468e633f7967f445758a90dea110c3eff24882158aaa8",
        "checked": "2026-10-27",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "esp32-s2fn4r2-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          7.0,
          7.0,
          0.92
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "d46de309726d81a63a825dc724f335fd99ddf338b58dc4ad8ea324e571cecdf9",
        "checked": "2026-10-27",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}