This adapter makes a Raspberry Pi the host for Gadgeteer extension boards. It routes the Pi’s 40-pin header to five keyed 10-contact sockets: general GPIO, SPI, UART, I²C and PWM. A Qwiic connector shares the I²C bus. Typical applications are a Pi-controlled indicator or buzzer, a 3.3 V I²C sensor, or a Pi application communicating with a compatible SPI or UART module. Compatibility must be established from the module’s actual contacts and electrical requirements, not its socket letter alone.
This guide selects the v03 CAD candidate, not a released or qualified product. No fabricated sample, physical fit, powered test or measured current capacity is established. The retained v03 check record reports zero ERC errors, zero DRC errors, zero unconnected items and zero schematic-parity differences, with two text-thickness warnings. Those checks do not establish manufacturing readiness. The qualification record has one failing and 37 unverified checklist items; do not order or energize a board on the strength of this guide.
Smoothieboard V2 Prime wiring and Smoothieware configuration are inapplicable: the Pi is the host. This is not a Prime peripheral. Connecting two host sockets can join supplies and opposing outputs. The adapter contains no processor, GPIO expander, firmware or automatic module discovery. Its passive signal paths need a Pi application and, for a protocol device, that device’s driver. No tested Pi application or matching Smoothieware driver is supplied. For missing firmware support or integration help, email wolf.arthur@gamil.com.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
The selected peripheral is the Buzzer module v14, with its local buzzer and switching circuit. Use the HAT’s J1 Type Y socket and the module’s J1 input. The Pi’s BCM GPIO5 is physical header pin 29, HAT J8.29 and, after R4 (100 Ω), HAT J1.3. The module takes command on J1.3. Its local circuit, rather than the Pi GPIO, drives the buzzer load.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
| Duty | Complete selected path | Direction and qualification |
|---|---|---|
| Command | Pi physical 29 / GPIO5 → HAT J8.29 GPIO5_H → R4.1–2, 100 Ω → HAT J1.3 J1_P3 → cable C1.3 → Buzzer J1.3 /Y_P3 → its local control circuit |
Pi output to module input. The module’s diode drop, 3.3 V command margin, boot state and sounding have not been measured with this host. |
| Supply | Pi physical 2 and 4 → HAT J8.2/4 H5V → U1.1 VIN → U1.6 VOUT P5V → HAT J1.2 → C1.2 → Buzzer J1.2 → Buzzer JP1.1–2 → local buzzer supply |
One Pi supply; actual voltage and available load current remain unmeasured. |
| Return | Buzzer J1.10 → C1.10 → HAT J1.10 GND → HAT J8 ground contacts → Pi ground |
Common circuit return, not protective earth. |
| Unused rail | HAT J1.1 P3V3 → C1.1 → Buzzer J1.1 |
The cable carries the rail; the selected Buzzer circuit does not load it. |
The other seven cores remain present in the 10-contact ribbon. They are not extra Buzzer commands: contacts 4–9 carry the HAT’s other GPIO allocations but have no local load in this Buzzer example; contact 1 carries 3.3 V. Leave other devices and the Buzzer chain output J2 disconnected. Leave Buzzer external input J3 disconnected. On the module, bridge JP1 contacts 1–2 only to select Gadgeteer 5 V; do not also bridge 2–3.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
GPIO Zero’s documented output API uses BCM numbering, so 5 means GPIO5 / physical 29, not physical pin 5. Its Buzzer class produces on/off control; it does not generate musical tones. Use a Pi-supported GPIO backend; current GPIO Zero documentation identifies lgpio as the supported backend on Pi 5. GPIO device access permissions must be correct for the account running the script. See the GPIO Zero Buzzer API and backend documentation.
This is an unexecuted application example, not shipped firmware or a passed hardware test. It assumes the module’s active-high command operates correctly at the qualified Pi-side voltage. Save as hat_buzzer.py on the Pi:
from time import sleep
from gpiozero import Buzzer
# BCM GPIO5 = Pi physical 29 = HAT J1 contact 3.
with Buzzer(5, active_high=True, initial_value=False) as buzzer:
try:
buzzer.on()
sleep(0.2)
finally:
buzzer.off()
Run with the supported backend installed and configured:
GPIOZERO_PIN_FACTORY=lgpio python3 hat_buzzer.py
No Smoothieware setting, G-code command, device overlay or I²C/SPI enable step is required for this GPIO-only example. Other protocols require the corresponding Pi interface configuration and a driver for the chosen module. This guide does not claim deterministic motion timing from Linux GPIO or compatibility with every Gadgeteer board.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
The native board is 65 × 56 mm with 3 mm corner radii, 1.6 mm nominal thickness and four 2.75 mm drilled HAT mounting holes on a 58 × 49 mm pattern. Two additional 2.5 mm cable-tie holes and six fiducials are mechanical/manufacturing features, not electrical contacts. These dimensions are CAD facts; manufactured dimensions, connector fit and PoE-stack clearance have not been checked. The electrical interface is intended for the standard 40-pin Pi header, including Pi models with a fitted header; that does not establish that this HAT physically fits every Pi, Zero, Pi 400, cooler, case or stacked accessory. The source’s approximate PoE keep-out is not a qualified fit test.
All GPIO signals are 3.3 V only and not 5 V tolerant. The board has no level shifters, analog inputs or galvanic isolation. A 100 Ω resistor and ESD diode do not convert a 5 V signal into a suitable Pi input. This agrees with the Raspberry Pi GPIO electrical guidance. Signal directions below describe the selected protocol; a general GPIO’s direction comes from software.
Each J1–J5 socket has ten contacts at 1.27 mm pitch. On every socket, 1 = filtered 3.3 V P3V3, 2 = forwarded 5 V P5V, and 10 = common GND. Power goes from the Pi to the module. GPIO numbers in this table are BCM numbers; Pi is the physical 40-pin header contact.
| Socket | Contact | Signal / direction in protocol use | Pi physical contact |
|---|---|---|---|
| J1 Y · GPIO | 3 / 4 / 5 / 6 / 7 / 8 / 9 | GPIO5 / 27 / 7 / 22 / 25 / 23 / 24; software-selected input or output | 29 / 13 / 26 / 15 / 22 / 16 / 18 |
| J2 S · SPI | 3 / 4 / 5 | GPIO26 / 6 / 16; software-selected | 37 / 31 / 36 |
| J2 S · SPI | 6 | GPIO8 CE0; Pi → peripheral | 24 |
| J2 S · SPI | 7 | GPIO10 MOSI; Pi → peripheral | 19 |
| J2 S · SPI | 8 | GPIO9 MISO; peripheral → Pi | 21 |
| J2 S · SPI | 9 | GPIO11 SCLK; Pi → peripheral | 23 |
| J3 U · UART | 3 | GPIO18; software-selected | 12 |
| J3 U · UART | 4 / 5 | GPIO14 TX, Pi → peripheral / GPIO15 RX, peripheral → Pi | 8 / 10 |
| J3 U · UART | 6 / 7 / 8 / 9 | Not connected | — |
| J4 I · I²C | 3 / 6 | GPIO17 / GPIO4; software-selected | 11 / 7 |
| J4 I · I²C | 8 / 9 | GPIO2 SDA, bidirectional / GPIO3 SCL, Pi clock role | 3 / 5 |
| J4 I · I²C | 4 / 5 / 7 | Not connected | — |
| J5 P · PWM | 3 / 6 | GPIO21 / GPIO20; software-selected | 40 / 38 |
| J5 P · PWM | 7 / 8 / 9 | GPIO12 PWM0 / GPIO13 PWM1 / GPIO19 PWM1, Pi → peripheral | 32 / 33 / 35 |
| J5 P · PWM | 4 / 5 | Not connected | — |
GPIO2–27 are each assigned once among these five sockets. The Qwiic/header ports deliberately share the J4 I²C signals. GPIO13 and GPIO19 expose the same classic Pi hardware PWM channel; do not treat them as independent hardware waveforms. Alternate-function availability and operating-system setup still depend on the Pi model and its software. SPI settings, UART console allocation and any competing overlays must be checked before use; arbitrary GPIO access does not by itself enable these protocols.
The retained design warns that older Pi firmware can briefly drive GPIO6, GPIO14 and GPIO16 during boot: HAT J2.4, J3.4 and J2.5. The 100 Ω series resistors do not suppress that state. Keep startup-sensitive loads disconnected until their boot behavior is qualified.
Each enlarged key below carries all ten contacts, including supplies, returns and NCs. Their row order is an electrical inventory, not a mating-face view. Use the native board contact marker and the actual connector drawing to resolve orientation.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
| Contact | J6 and J7 function | Origin |
|---|---|---|
| 1 | Ground | Common GND |
| 2 | 3.3 V only | Filtered P3V3 |
| 3 | SDA | GPIO2, Pi physical 3, shared with J4.8 |
| 4 | SCL | GPIO3, Pi physical 5, shared with J4.9 |
J6 is a JST SM04B-SRSS-TB Qwiic connector; its mounting pads are grounded mechanical pads, not additional signal contacts. J7 is the alternative 1×4 2.54 mm header in the same connector area. The selected population fits J6 and leaves J7 unpopulated; fit one or the other, not both. Neither port provides 5 V. J6 has D27/D28 on SDA/SCL; J7 has no separate local TVS pair and shares the common protected net. All attached I²C devices must tolerate the same 3.3 V bus and avoid duplicate addresses. Additional module pull-ups appear in parallel with the Pi’s fixed 1.8 kΩ SDA/SCL pull-ups; the HAT adds none. Check the combined pull-up load and bus capacitance for the chosen devices and wiring.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
J8 is the underside 2×20 receptacle. Pi physical 1/17 supply H3V3, 2/4 supply H5V, and 6/9/14/20/25/30/34/39 are common ground. Physical 27/28 are GPIO0/1 HAT-ID (ID_SD/ID_SC) and are not connected. There is no identification EEPROM or automatic overlay loading. The retained name “HAT” describes the intended form/interface; it is not HAT certification.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
The source contains two power paths. Pi H3V3 passes through FB1, a ferrite bead, to the sockets’ P3V3, with C3/C4 decoupling. Pi H5V passes through U1 LM66100 to P5V, with C1 on its input and C2/C5 on its output. U1 contact 3 CE is tied to its output P5V; the TI LM66100 Rev. A datasheet, pin-functions table permits CE-to-VOUT for reverse-current protection. Its unused ST contact 5 is left unconnected in this CAD; TI recommends grounding ST when unused, so that implementation detail remains a design-review item. The device’s standalone ratings do not establish a board, header or cable rating.
The source intends the 5 V stage to reduce back-feeding into the Pi. Its real reverse leakage, startup, voltage drop, fault behavior and full assembly remain untested. There is no output fuse or current limiter on either forwarded rail. The old design targets of 40 mA total at 3.3 V and 500 mA total at 5 V are unmeasured assumptions, not guaranteed allowable currents or a Raspberry Pi specification. The guide therefore gives no qualified usable current limit. Do not use the Pi 4’s 6 V absolute-maximum stress rating as an operating supply target. Power the Pi using its model-appropriate regulated supply and account for its own loads and every module.
Every routed GPIO channel has a 100 Ω series resistor and TPD1E10B06 ESD diode; D1–D26 cover the 26 GPIO paths, and D27/D28 add local I²C protection. The v03 change adds a ground-return via beside each of the 28 TVS diodes; ESD performance has not been measured. There is no signal-level conversion or sustained-overvoltage protection claim. Motors, relays and other power loads require their own appropriate driver/interface rather than a direct GPIO load.
| Item | Exact source role | Reader action |
|---|---|---|
| JP1 | Bridged solder jumper feeding R27/LED1 from P3V3 |
Cutting it disables only the 3.3 V indicator branch. It does not disconnect socket power. |
| JP2 | Bridged solder jumper feeding R28/LED2 from P5V |
Cutting it disables only the 5 V indicator branch. It does not disconnect socket power. |
| LED1 | Green 3.3 V indicator through R27 1 kΩ | Shows its local branch state, not a voltage or current measurement. |
| LED2 | Green 5 V indicator through R28 2.2 kΩ | An unlit LED does not prove absence of power. |
| TP1 / TP2 | H3V3 / H5V, before FB1/U1 |
Pi-side rail measurement points. |
| TP3 / TP4 | P3V3 / P5V, after FB1/U1 |
Module-side rail measurement points. |
| TP5 / TP6 | GND / GND |
Common circuit-ground references. |
There are no user switches, adjustment controls, programming connectors or module-power selection jumpers on the HAT. Do not confuse the HAT’s LED jumpers with the Buzzer’s separate supply-selection jumper.
Scroll across and down within this view. You can also open the PNG separately and use your browser’s zoom controls.
Fit shows the whole drawing. Zoom to read labels; scroll within the drawing. Escape closes the viewer.
| Version | What the retained record establishes | Status |
|---|---|---|
| v01 | Baseline source; eleven power-track width DRC errors | Historical, not CAD-clean |
| v02 | Corrected power widths and source labels; zero reported DRC errors, two text warnings | CAD-clean in the retained check, unqualified |
| v03, selected here | Adds 28 TVS ground-return vias; same reported check counts as v02 | Unreleased CAD candidate, unqualified |
Download the selected native v03 source and notices. It contains the native PCB, hierarchical KiCad schematics, project settings, custom footprints, BOM, retained netlist, contract and qualification notes. Three-dimensional models and standard KiCad libraries are not bundled. The hardware source declares CERN-OHL-S-2.0; retain original notices and consult the source’s license terms. The package is reference CAD, not a manufacturing recommendation.
There is a provenance mismatch to understand: the selected files live in the v03 package, but its retained schematic netlist still names a v01 source path, and the schematic title retains WIP. The project-level contract identifies v01-v03-2026-10-22; it is not a separately regenerated v03-only document. The diagram generator checks every declared contact net against the actual v03 PCB and the retained netlist, including all 26 resistor/protection paths. That correspondence does not turn the retained netlist into a fresh v03 export or close independent design review. Earlier README/contract claims should not override the selected PCB or its qualification record.
Diagram source manifest records the exact PCB, schematic, contract, module and artwork hashes, native contact identities, cable membership and remaining gates. Shared-router input and result distinguish the mechanical cable jacket from the separately spaced electrical explanation. The generator is smoothie-diagrams/src/host-adapter-guides/raspberry_pi_hat.py; generated SVGs are not edited by hand.
Remaining qualification items include independent schematic/layout review, ST handling, rail current limiting and ratings, a fresh revision-matched source export, exact Pi and cable mating, native fanout/component clearance, actual desktop/phone viewer readability, manufacturer checks, physical assembly, continuity, boot behavior and powered module operation. The diagrams are instructional candidates and are not claimed to satisfy those unperformed checks.
Primary references: Raspberry Pi header and GPIO documentation, Raspberry Pi HAT source/design guide, HAT mechanical drawing, TI LM66100 datasheet, and the revision-specific native source download above.