A(nother) RPi GPIO header as a Framework Expansion card (open hardware, early)

A lot of my projects involve GPIO modules and devices that talk over their pins, most of them still in the works. Testing them is a mess right now. Either I flash and set up a Raspberry Pi, find a keyboard and mouse, and connect to it, or I use a Raspberry Pi Pico as a USB-to-GPIO adapter, which works but is pretty janky. I also end up with several Pis lying around, so trying something new means either tearing down whatever’s on the breadboard or leaving a project shelved, Pi and all, until the next one comes along.

For a while I’ve wanted to test and program those little boards straight from my everyday laptop, with nothing extra to set up or pack when I travel. Ever since I saw how plug-and-play Framework’s expansion cards are, I’ve been toying with the idea of a “built-in dongle”.

u/geerlingguy’s reviewoftheArgon40ONEUP pushed me further. It’s nice to have the Pi header on a laptop, but there it comes through USB-C ports that only work with Argon’s own breakout. There’s also rp2350-gpio-card, a nice open design that breaks some RP2350 pins out to pads on the card itself. I wanted the opposite of the ONE UP and a step past the pads: a card that’s plain USB to the laptop, with a normal Pi header I can plug jumper wires into and the software to run existing Python sensor code against it. So I finally spent some tinkering time (and quite a few AI tokens) on it.

What it is:

• ⁠A regular expansion card with a small T-shaped head sticking out of the laptop. The head has a standard 2×20, 2.54 mm header with the Raspberry Pi pinout.
• ⁠An RP2354B drives the pins and talks to the laptop over plain USB, so there’s no driver to install on Windows or Linux.
• ⁠Python drives the pins through Adafruit Blinka, so the existing CircuitPython drivers for sensors, displays and other parts work unchanged. A small bgpio CLI finds the card, shows its info and updates its firmware.
• ⁠Everything is open (MIT for software, CERN-OHL-P for hardware, CC BY for docs), so ideas, issues, PRs and forks are all welcome.

It’s early. The card doesn’t exist yet; I’m building the firmware and host tools on a Pico 2 W. It shows up on Windows without a driver, and GPIO works from Python through Blinka; I2C, SPI, PWM, the ADC and the UART are implemented and pass their tests on the bare board, but I haven’t wired real modules to them yet. That’s next: an I2C EEPROM and a few sensors on the Pico to test the protocol end to end, while I route the card’s board in KiCad. After that comes ordering boards.

The picture is a concept render of where I’d like this to go: a card on each side, each wired to its own experiment, and the next experiments waiting on the desk with their cards already wired up, so switching means swapping a card instead of rewiring or digging out another Pi. Today a Blinka program talks to one card at a time, so driving two at once is a long-term goal, not something that works yet.

Also, I don’t own a Framework. They aren’t sold in Argentina, and a new one is out of my budget. I’m working from Framework’s published CAD and testing the electronics through a USB-C extension cable on my current laptop, which tells me nothing about fit. At some point I’ll pick up a used one, but until then I’m guessing at clearances and tolerances, and that’s where I could use some help:

• ⁠Framework 16 and 12 owners: could you measure the gap between two neighboring expansion cards? On the 13 the head covers about 2 mm of each neighbor (based on the 10.3 mm community measurement), but I have no numbers for the 16 or the 12.
• ⁠Anyone: would a head sticking out like that bother you, say by blocking the neighboring ports or catching on your bag?
• ⁠Hardware folks: I’m not an electronics engineer and AI is doing a lot of the heavy lifting on that side. The schematic is in the repo (hardware/card/blusa-gpio-card.pdf), and I’d love a review before I order any boards.

Repo: GitHub - blusa/blusa-gpio-for-framework: Framework Laptop Expansion Card with a Raspberry Pi-compatible 40-pin GPIO header (RP2354B, plain USB, Windows and Linux) · GitHub

5 Likes

First off, this is great, and thanks for sharing it early in the process.

I’m not much of a hardware tinkerer. I’d like to be, but I’m old and my life commitments keep me from doing every project I’d like to do. So I’m unlikely to build or buy one of these any time soon, and I’ll be up here in the cheap seats, watching.

Anyway, I only have a 13" model so I can’t speak to the spacing on the 12 and 16, but I’m sure I remember that it’s not the same spacing.

Personally I would be at least a bit annoyed at having the module overlap the next port, but it wouldn’t be a deal breaker. Have you considered making left-handed and a right-handed asymmetric variants, so there would be no overlap?

1 Like

Hey! Thanks for taking the time to read the post, and for the feedback. I’m sharing a quick render of the best result I got using the tolerances from the post I cited. I did consider making both a left-handed and a right-handed version, but I don’t see a way to do it without ending up with two separate PCBs

2 Likes