PowerBlock Status and Shutdown don’t work
-
Hi there,
I want to use the PowerBlock with an Rpi4 CM module on a Waveshare board. The PowerBlock does not sit on the Rapid. Directly, instead I use a Solid State Relais to switch the power to the RPi. This works great, I use the switch and the PowerBlock switches the SSR, the RPi boots.
But then the problem starts, the LED flashes forever and the shutdown will be done immediately (but I modified the shutdown script and just put out some message).
To investigate I disabled the service and use gpioget/gpioset directly. The first thing I see is that the shutdown pin seems to jump between 0 and 1.., and the other, if I use gpioset to enable the status pin I would assume the led stops flashing, but this does not happens.
I double checked my soldering and cables, both seems to be ok.
As information, I use gpio6 and gpio12, but this should not have an influence, I hope.
Do you have any recommendations for me?
Thank you!
Nino -
I solved my problem partly.
I use 2 Power supplies, one for the standby part (power block) and another one for the rpi+dac which gets powered on by the power block. Both have 5v but I did not connect the 2 grounds of the 2 powersupplies, which leads to the problem above. With connected grounds the power block and rpi can communicate, BUT:
The shutdown command is now executed if I press the button, but the power block does not cut off the power.. that's because the status pin is always HIGH... its even high short time after poweron ... I guess this is because I use different pins than default and the rpi just drives that one always high. Do I need some changed to the rpi's boot cfg like pulldowns?
@petrockblog FYI
-
Ok... made some progress and want to share my insights.
If you want to use different than the default pins to connect the powerblock to the rpi you should NOT use the range of GPIO1 to GPIO8 for the status pin. These are per default driven HIGH. The others (including the defaults used by power block) are driven LOW. I tried to change that behaviour using the gpio=... and gpio_poweroff=... commands in config.txt without full success. After switching now to GPIO9 and GPIO25 the power block works (I disables SPI just to be sure because GPIO25 belongs to SPI per default).
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.