B4J Question Raspberry Pi 4 - 5V pin

ilan

Expert
Licensed User
Longtime User
hi

can we control the 5v pin to enable/disable power?

i read here that it should be possible:
https://forum.libreelec.tv/thread/9...n-off-on-5v-gpio4-raspberry-pi-from-software/

what i would like to do is to control the fan so if a specific CPU/GPU temp is reached then turn the fan on otherwise turn it off.

i can get the temperature like this: https://www.cyberciti.biz/faq/linux-find-out-raspberry-pi-gpu-and-arm-cpu-temperature-command/

so i was thinking of an b4j NON-UI app to run in the background and check every x second for the temp and control the 5v output to on/off.

would that be possible?

thanx
 

Cableguy

Expert
Licensed User
Longtime User
For the fan control you should look into a pwm capable pin...
 
Upvote 0
Top