# How expandable is the GPIO pin set for CM4? What good accesories and connectors are out there?

**URL:** <https://forum.clockworkpi.com/t/how-expandable-is-the-gpio-pin-set-for-cm4-what-good-accesories-and-connectors-are-out-there/10509>\
**Category:** uConsole\
**Tags:** feedback, tinkering, community, help, hardware\
**Created:** [July 21, 2023, 1:50am UTC](https://forum.clockworkpi.com/t/how-expandable-is-the-gpio-pin-set-for-cm4-what-good-accesories-and-connectors-are-out-there/10509 "2023-07-21T01:50:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbzhsthf](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dbzhsthf/32/7687_2.png) [@dbzhsthf](https://forum.clockworkpi.com/u/dbzhsthf)\
**Post date:** [July 21, 2023, 1:50am UTC](https://forum.clockworkpi.com/t/how-expandable-is-the-gpio-pin-set-for-cm4-what-good-accesories-and-connectors-are-out-there/10509/1 "2023-07-21T01:50:10Z")

</div>

Was wondering this for the CM4 as there are 40 pins, but I couldnt find any accesories thst go from flat serial to rpi type bigger pins. Also, while reading DevTerms forums, there was a lot of disappointing talk of how most of the pins are already taken by the custom clockwork board.

---

<div class="post-metadata">

**Author:** ![NanoCodeBug](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/nanocodebug/32/7501_2.png) [@NanoCodeBug](https://forum.clockworkpi.com/u/NanoCodeBug)\
**Post date:** [July 21, 2023, 3:04am UTC](https://forum.clockworkpi.com/t/how-expandable-is-the-gpio-pin-set-for-cm4-what-good-accesories-and-connectors-are-out-there/10509/2 "2023-07-21T03:04:51Z")

</div>

### J3 - 40 pin FPC header

GPIO 0 - 27  
all clockwork cards us pins 0-5, and 8-11 to control the power, headphones, backlight, etc.  
the remainder of these pins, 6-7 and 12-27 are not connected on the CM4 module.

### MINI\_PCIE - Ext Module

GPIO 28 - 45, Camera Pins, 2x USB, Speaker L/R  
all of these pins are connected to the CM4 and A06, but using them requires a custom ext module board that will expose them.

Note these pin numbers are the common clockworkpi notation, they don’t map 1:1 with the CM4 pins.  
I made a table yesterday, but haven’t double checked it yet, the numbers i mention above are the SODIMM GPIO numbers.

| Pin/GPIO # | | | |
| --- | --- | --- | --- |
| CM4 | SODIMM | Connection | Purpose |
| 2 | 2 | PMU\_IRQ | Power |
| 3 | 3 | WL\_REG\_ON | Unused, to keep Wifi module off |
| 4 | 4 | WL\_HOST\_WAKE | Unused, to keep Wifi module off |
| 5 | 5 | BT\_REG\_ON | Unused, to keep BT module off |
| 6 | 38 | EXT MOD | |
| 7 | 39 | EXT MOD | |
| 8 | 8 | LCD\_RESET | Display |
| 9 | 9 | BL\_CTRL | Display |
| 10 | 10 | HP\_DET | Audio |
| 11 | 11 | PA\_EN | Audio |
| 12 | 12 | AUD\_PWM0 | Audio |
| 13 | 13 | AUD\_PWM1 | Audio |
| 14 | 32 | EXT MOD | |
| 15 | 33 | EXT MOD | 4g Module, RESET\_MCU |
| 16 | 40 | EXT MOD | |
| 17 | 41 | EXT MOD | |
| 18 | 28 | EXT MOD | |
| 19 | 29 | EXT MOD | |
| 20 | 30 | EXT MOD | |
| 21 | 31 | EXT MOD | |
| 22 | IGPIO0 | PWR\_ON | Power |
| 24 | 34 | EXT MOD | 4G Module, POWER\_MCU |
| 25 | 35 | EXT MOD | |
| 26 | 36 | EXT MOD | |
| 27 | 37 | EXT MOD | |
| 28 | 43 | EXT MOD | |
| CAM\_GPIO | 42 | EXT MOD | |
| ID\_SC | 1 | PMU\_SCK | Power |
| ID\_SD | 0 | PMU\_SDA | Power |
| SCL0 | 45 | EXT MOD | |
| SDA0 | 44 | EXT MOD | |

---

<div class="post-metadata">

**Author:** ![MHam68HC11](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mham68hc11/32/5046_2.png) [@MHam68HC11](https://forum.clockworkpi.com/u/MHam68HC11)\
**Post date:** [August 5, 2023, 4:33am UTC](https://forum.clockworkpi.com/t/how-expandable-is-the-gpio-pin-set-for-cm4-what-good-accesories-and-connectors-are-out-there/10509/3 "2023-08-05T04:33:17Z")

</div>

nice work! amazing detective work - I’m still leaning toward linking by wifi to external devices via esp32… although some in the group are designing an Ext module that will have more USB ports similar to the DevTerm.

---

<div class="post-metadata">

**Author:** ![poetaster](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/poetaster/32/8558_2.png) [@poetaster](https://forum.clockworkpi.com/u/poetaster)\
**Post date:** [January 14, 2024, 1:51pm UTC](https://forum.clockworkpi.com/t/how-expandable-is-the-gpio-pin-set-for-cm4-what-good-accesories-and-connectors-are-out-there/10509/4 "2024-01-14T13:51:58Z")

</div>

I wonder if you know whether any of the pads on the default expansion board are actually routed to pcie? I noted from the uPico schematics that SCL/SDA (I2C) seem to be on pins 50/52 of the mini pcie connector. I’m hoping those 52 pins are available on the pads (middle in the picture). Any ideas?

 ![20240114_144321](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/b/b4937aae034bd46889651d0efa7277b2e73661c0.jpeg)

---

<div class="post-metadata">

**Author:** ![NekoRouter](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@NekoRouter](https://forum.clockworkpi.com/u/NekoRouter)\
**Post date:** [January 15, 2024, 5:37am UTC](https://forum.clockworkpi.com/t/how-expandable-is-the-gpio-pin-set-for-cm4-what-good-accesories-and-connectors-are-out-there/10509/5 "2024-01-15T05:37:21Z")

</div>

> <https://github.com/clockworkpi/uConsole/blob/master/clockwork_UC_4G_Schematic.pdf>

Also, that’s not PCIe, just a board-to-board connector using the same connector with mini PCIe…

---

<div class="post-metadata">

**Author:** ![poetaster](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/poetaster/32/8558_2.png) [@poetaster](https://forum.clockworkpi.com/u/poetaster)\
**Post date:** [January 15, 2024, 11:26am UTC](https://forum.clockworkpi.com/t/how-expandable-is-the-gpio-pin-set-for-cm4-what-good-accesories-and-connectors-are-out-there/10509/6 "2024-01-15T11:26:51Z")

</div>

Ok, so the ‘default’ expansion board I have is an unpopulated 4G card. The schematic then assumes a SIM7600G-H in the middle? UART, speakers, SIM USB that’s all clear. From [https://www.waveshare.com/w/upload/a/a0/SIM7600G-H\_SPEC\_EN\_20190731.pdf](https://www.waveshare.com/w/upload/a/a0/SIM7600G-H_SPEC_EN_20190731.pdf) it does look like it’s that layout. So, it could be ‘abused’.

Ah, found a layout: [https://www.waveshare.com/w/upload/e/e6/SIM7600G\_SIM7600G-H\_Hardware\_Design\_V1.00.pdf](https://www.waveshare.com/w/upload/e/e6/SIM7600G_SIM7600G-H_Hardware_Design_V1.00.pdf) page 11
