Coming from a software background I prefer a digital interface - particularly I2C.
Pulling my hair again over the i2c connectors ! Developing on a breadboard is one thing, but trying to tidy up wiring and use shortest cables is what gives me the headache. The different manufacturers sell pre-made cables for their own standard … but there is very little which connects the standards.
Over the past couple of years I have purchased a variety of sensors and other devices with i2c … but when I connect them up comes the headache ! Adafruit, Seeed Studio, DFRobot and Sparkfun have ‘standardised’ on the i2c connectors used in their own products - which they have named STEMMA, Grove, Gravity, Qwiic, STEMMA QT … and recently Core Electronics have added picodev. Fortunately these are similar - which can be both good and bad.
I found there are come commonalities. I am just using 3v3, so for me they fall into 3 groups. Some standards incorporate 5V or 3v3, so watch out if connecting a 3v3 sensor to an 5v microcontroller.
Firstly there are 3 varieties using 2mm pin pitch connectors The Grove connector is similar and can sometimes be adjusted to fit. Watch out for Gravity with the pairs of pins swapped!, thus DFRobot’s Gravity becomes a group by itself.
| Name | Connector | pin4 | pin3 | pin2 | pin1 |
|---|---|---|---|---|---|
| STEMMA | JST PH 2.0mm | GND | 3v3/5v | SDA (white) | SCL (green) |
| Grove | A205 series 2mm | GND | 3v3/5v | SDA (white) | SCL (yellow) |
| Gravity | JST PH 2.0mm | 3v3/5v | GND | SCL (blue) | SDA (green) |
Then to make boards smaller, we got smaller connectors. Fortunately they all use the same JST PH 1mm connectors, and the same pin sequence - making them interchangeable.
| Name | Connector | pin4 | pin3 | pin2 | pin1 |
|---|---|---|---|---|---|
| Qwiic | JST SH 1.0mm | GND | 3v3 | SDA (blue) | SCL (yellow) |
| STEMMA QT | JST SH 1.0mm | GND | 3v3/5v | SDA | SCL |
| picodev | JST SH 1.0mm | GND | 3v3 | SDA (blue) | SCL (yellow) |
That’s all very well at one end … but at the other end of the cable options are:
- same connector (generally another female)
- dupont pins for breadboard
- bare wires for soldering
These are pre-made i2c cables sold by Core Electronics. Though I am finding more which the search engine missed.
STEMMA (Adafruit) uses JST PH (2mm pitch) connectors, and Grove (Seeed Studio) use very similar A205 connectors … with the same pin sequence GND / VCC / SDA / SCL … so they are effectively interchangable. Oops! I just realised I am looking only at the sequence of pins - not their numbering which is based on the orientation of the connector.
| Standard | Cable length | Other end | CE SKU |
|---|---|---|---|
| STEMMA | 150mm | same | ADA3568 |
| 600mm | same | GB-3804-0707-0600 | |
| STEMMA | 100mm | JST SH 1mm | ADA4528 |
| 150mm | JST SH 1mm | PRT-15109 | |
| STEMMA | 200mm | JST SH 1mm | ADA4424 |
| 500mm | JST SH 1mm | CAB-25596 | |
| STEMMA | 200mm | Male Dupont headers | ADA3955 |
| STEMMA | 200mm | Female Dupont headers | ADA3950 |
| Grove | not specified | Female crimp pins | SS110990028 |
| STEMMA socket | 200mm | Bare wires | ADA4045 |
| Set of plug and socket | 200mm each | Bare wires | ADA5088 |
Gravity (DFRobot) use the same JST PH 2mm pitch connectors but swap the order of power pins and signal pins around – so be sure not to get them mixed up.
| Standard | Cable length | Other end | CE SKU |
|---|---|---|---|
| Gravity | 150mm | same | ADA3568 |
| Gravity | 200mm | JST SH 1mm | CAB-28768 |
| Gravity | 300mm | Female dupont header block | FIT0513 |
| Gravity | 500mm | Female dupont header block | FIT0773 |
Pololu have their own version of JST PH-style connectors - but their pin sequence is opposite to STEMMA. Ie their connector is upside-down.
| Standard | Cable length | Other end | CE SKU |
|---|---|---|---|
| 630mm | same | POLOLU-5627 | |
| 120mm | Female crimp pins | POLOLU-5620 |
I found one other JST PH 2mm cable – but the colour scheme doesn’t match any of the others !
| Standard | Cable length | Other end | CE SKU |
|---|---|---|---|
| Plug and socket | 150mm | Bare wires | PRT-09916 |
Qwiic (Sparkfun), STEMMA QT (Adafruit) and Picodev (Core Electronics) all use the smaller JST SH connectors with only 1mm pitch. More importantly they all use the same connector and same pin sequence, so are interchangable.
| Standard | Cable length | Other end | CE SKU |
|---|---|---|---|
| Qwiic / STEMMA QT / Picodev | 50mm | same | CE07772, ADA4399 |
| 100mm | same | CE07773, ADA4210 | |
| 200mm | same | CE07774, ADA4401, PRT-17258 | |
| 300mm | same | ADA5384 | |
| 400mm | same | ADA5385 | |
| 500mm | same | CE07775 | |
| 630mm | same | POLOLU-5527 | |
| 100mm | JST PH 2mm STEMMA / Grove | ADA4528 | |
| 150mm | JST PH 2mm Grove | PRT-15109 | |
| 200mm | JST PH 2mm STEMMA / Grove | ADA4424 | |
| 200mm | JST PH 2mm Gravity | CAB-28768 | |
| 500mm | JST PH 2mm | CAB-25596 | |
| 150mm | Female Dupont headers | ADA4397 | |
| 150mm | Male Dupont headers | ADA4209 | |
| 200mm | Female Dupont headers | CE07958 | |
| 200mm | Male Dupont headers | CE07796 | |
| 150mm | Male Dupont headers | ADA4209 | |
| 100mm | Arduino MKR (5-pin) | ADA4483 | |
| 150mm | Alligator clips | ADA4398 | |
| Not stated | micro hook clips | ADA5037 | |
| 750mm | Bare wires | POLOLU-5522 |

