← Commit history

Initial commit: component/stk8321

Ray ·a18534a4d2 ·1mo ago
2 files changed +81
README.mdadded+47
@@ -0,0 +1,47 @@+# STK8321++**SENSORTEK** · Attitude Sensor/Gyroscope · LGA-12(2x2)++STK8321 from SENSORTEK, in a LGA-12(2x2). Pinout and pin descriptions extracted from the manufacturer datasheet by ds2sf; symbol, footprint, and 3D from KiCad-official CAD.++## Pinout++| Pin | Name | Type | Function |+|---|---|---|---|+| 1 | SA0/SDO | bidirectional | In I2C mode, selects the 7-bit slave address (SA0=1 → 0x1F, SA0=0 → 0x0F). In 4-wire SPI mode, serves as the Serial Data Output (SDO); not connected in 3-wire SPI mode (recommended to pull SDO up to VDDIO or down to GND via 10 kΩ). |+| 2 | SDA/SDI/SDIO | bidirectional | Serial data. Open-drain SDA in I2C mode, SDI (data input) in 4-wire SPI, bidirectional SDIO in 3-wire SPI. Requires external pull-up to VDDIO when used as I2C SDA. |+| 3 | VDDIO | power_in | Digital interface supply voltage. Operating range 1.62 V to 3.6 V (typ 2.6 V). Decouple with 0.1 µF to GNDIO. |+| 4 | RES | input | Reserved. Recommended to tie to GND. |+| 5 | INT1 | output | Programmable interrupt output 1. Can be configured push-pull or open-drain, active-high or active-low (via INTCFG1 0x20). Any interrupt source (new data, any-motion/slope, significant motion, FIFO watermark/full) can be routed here through INTMAP2 (0x1A). |+| 6 | INT2 | output | Programmable interrupt output 2. Same configurability as INT1 (push-pull/open-drain, active polarity); independent interrupt-source routing via INTMAP2. |+| 7 | VS | power_in | Analog/core supply voltage. Operating range 1.7 V to 3.6 V (typ 2.6 V). Decouple with 10 µF (Cs) to GND close to the device. |+| 8 | GNDIO | power_in | Digital interface ground. Must be connected to ground; return path for VDDIO. |+| 9 | GND | power_in | Analog/core ground. Must be connected to ground; return path for VS. |+| 10 | /CS | input | Interface-select and SPI chip-select. Tie high (to VDDIO) to enable I2C mode; drive low to enable SPI mode and select the device for a SPI transaction. |+| 11 | NC | unconnected | Not internally connected. Leave floating or tie to ground. |+| 12 | SCL/SCK | input | Serial clock. Open-drain SCL in I2C mode (external pull-up to VDDIO required, up to 400 kHz Fast Mode). SCK in SPI mode (up to 8 MHz, CPOL/CPHA 00 or 11 auto-detected on /CS falling edge). |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | SENSORTEK |+| Package | LGA-12(2x2) |+| Category | Sensor |+| Pins | 12 |++## CAD (KiCad official)++- Symbol: `STK8321`+- Footprint: `Package_LGA:LGA-12_2x2mm_P0.5mm`+- 3D model: LGA-12(2x2) (KiCad packages3D, STEP)++## Provenance++Data extracted from the manufacturer datasheet, not a distributor listing:++- **Datasheet:** [SENSORTEK datasheet](docs/stk8321-datasheet.pdf) (38 pp, sha256 `34fa58754c0eb800`, retrieved 2026-08-17, tier: lcsc)+- **Extractor:** `ds2sf` (Claude). Every pin and dimension is cited to a datasheet page; it refuses to fabricate.+- **CAD:** KiCad official libraries (CC-BY-SA 4.0).++[Datasheet PDF](docs/stk8321-datasheet.pdf)
page.jsonadded+34
@@ -0,0 +1,34 @@+{+  "slug": "stk8321",+  "version": "0.1.0",+  "type": "component",+  "description": "SENSORTEK Attitude Sensor/Gyroscope, LGA-12(2x2). Datasheet-verified pinout, KiCad symbol/footprint/3D.",+  "tags": [+    "component",+    "sensor",+    "stk8321"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stk8321.kicad_sym",+    "stk8321.kicad_mod",+    "stk8321.glb",+    "stk8321.step",+    "stk8321.lbr",+    "docs/hero.png",+    "docs/stk8321-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html"+  ],+  "visibility": "public",+  "author": {+    "name": "Ray",+    "email": "[email protected]"+  }+}\ No newline at end of file