Galactic Unicorn pinout on QW/ST

I love my Unicorn! I want to teach it to see me. I have a proximity detector and want to hook it to the QW/ST connector. I see the schematic online, but it isn’t clear to me which pin is on the left edge of the connector… like, is the schematic left to right or right to left when I’m looking at the back of the board?

Thanks!

Those connectors are keyed, the cables will only plug in one way, the correct way. If that helps.
JST-SH Cable (Qwiic / STEMMA QT / Qw/ST compatible) - Pimoroni

Yeah, if I had the cable… but I’m hacking together from what I have on hand because the cable won’t be here until Saturday earliest.

It’s a neat project, but I want a proximity sensor instead of having to push a button. Here’s a video:

I have a Galactic Unicorn and the cables. I’ll plug one in and get back to you with what pin is what.

OK, looking at it from the back side it goes like this, left to right.
Plug 1 - Yellow, Blue, Red, Black
Plug 2 - Yellow, Blue, Red, Black
Pinout
Black - GND
Red - V+ (3.3V for Qwiic, 3-5V for STEMMA QT)
Blue - SDA
Yellow - SCL

1 Like

If you are interested in some background: there is a nice article here: What is STEMMA? | Adafruit STEMMA & STEMMA QT | Adafruit Learning System. I’m using and mixing all kind of these plugs and cables.

1 Like

That’s a great link, thanks! I was in fact using an Adafruit proximity sensor with my Unicorn, so some friendly mixing and matching was in play. I found using the Adafruit drivers with Pimoroni’s python was giving me some trouble (like, it wanted to import Adafruit “board” which I think would have been redundant or conflicting with the Pimoroni python libraries) but there were other Python libraries available for my sensor on GitHub that worked fine.

Does anyone have a link for a tutorial about combining Adafruit and Pimoroni stuff?

@MistaE-Dogg
Keep in mind that Adafruit is Circuit Python orientated,
and Pimoroni is Micro Python orientated.

That can have issues when trying to use one’s library with the others uf2 file.

1 Like

To use an Adafriut Breakout / sensor with the Pimoroni uf2, you have to hunt up a Micro Python Library for it. It’s what I had to do for a UV sensor i wanted to use. There wasn’t any Pimoroni Library for it.

Well, there is a compatibility-library called Blinka. I use it regularly on a Pi to run CircuitPython on top of standard python. But according to the docs, Blinka also helps running the API of CP on top of MicroPython. Here is the link: Overview | CircuitPython Libraries on MicroPython using the Raspberry Pi Pico | Adafruit Learning System.

I never came around to test this, but I plan to do so one day ;-)

2 Likes

Forgot all about Blinka, ops.

Just in case someone (or future me ;) ) needs to know, the python driver at

works just fine for the Adafruit APDS9960 Proximity, Light, RGB, and Gesture sensor. You just set up the connection and it’ll go. That’s what was provoking this whole thread in the first place. But I’m definitely going to go look at Blinka. Thanks for the tip!