Utilizing Compute Module 4 IO Board pins as an ATX case entrance panel header

Lately I constructed the Seaberry, a Raspberry Pi Compute Module 4 mini ITX motherboard right into a PC case (video coming quickly...), and bought the case energy button, energy LED, and exercise LED all wired as much as the Pi:

Utilizing Compute Module 4 IO Board pins as an ATX case entrance panel header

I used the GPIO and 14-pin header current on the Seaberry (which conveniently are similar to the headers on the official CM4 IO Board), and wound up with a completely performance energy button, energy LED, and exercise LED!

This is how I did it:

Power activity LEDs and button connections on Raspberry Pi GPIO for CM4 IO Board

Energy button

To get the ability button working, you might want to join the case's entrance panel 'energy swap' connector to pins 12 and 14 (GLOBAL_EN and GND), as seen within the prime center of the above image.

This requires the 14-pin header be uncovered in your Compute Module 4 board—some boards do not expose it, so that you'd should do some digging to search out the place GLOBAL_EN is uncovered (if in any respect!).

Observe: Should you wire up the ability button this manner, it is really extra of a 'reset/energy' button. Principally, the way in which GLOBAL_EN works, for those who brief it to floor, it's going to hard-reboot the Pi. For a safer energy button that does not additionally reset the Pi, join it to pins 13-14 as a substitute. This manner the ability button will solely boot the Pi when it has been shut down usually.

Energy LED

For the remainder of the connections, I can be referring to pins on the Raspberry Pi GPIO header.

It is a little little bit of a hack... mainly I am leaping pin 1 (3.3V +) and pin 6 (GND -) on to the entrance cowl energy LED. Technically you would possibly think about a resistor in sequence to guard the LED additional, however it appears many ATX/ITX case LEDs have already got a resistor on their little breakout board.

The draw back to this strategy is that at the very least with the Seaberry board, the three.3V rail on the IO board's GPIO is at all times powered if there's energy plugged in in any respect. So this LED does not actually present the Pi's 'powered on' state. To do this, I would think about wiring up a GPIO pin and having software program flip it on at boot (although it nonetheless would not completely mirror when the Pi's powered on, as a result of there can be a delay between energy on and when the LED comes on).

Exercise LED (or 'HDD' lol)

This one is not too arduous both, since you may add an overlay within the Pi's configuration to direct the exercise LED to any GPIO pin.

To make issues simple, since my case's 'HDD LED' plug is bundled collectively (+/- in a 2-pin connector), I added the next to my /boot/config.txt:

dtparam=act_led_gpio=26

Then I plugged within the HDD ACT + to pin 37 (GPIO 26), and HDD ACT - to pin 39 (GND).



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *