ilan Expert Licensed User Longtime User Mar 24, 2021 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2021 #2 You can control the pins with jPi4J: https://www.b4x.com/android/forum/threads/raspberry-pi-4b-gpio-not-working.118488/post-741684 Upvote 0
You can control the pins with jPi4J: https://www.b4x.com/android/forum/threads/raspberry-pi-4b-gpio-not-working.118488/post-741684
ilan Expert Licensed User Longtime User Mar 24, 2021 #3 Erel said: You can control the pins with jPi4J: https://www.b4x.com/android/forum/threads/raspberry-pi-4b-gpio-not-working.118488/post-741684 Click to expand... awesome, thank you erel. will try it out Upvote 0
Erel said: You can control the pins with jPi4J: https://www.b4x.com/android/forum/threads/raspberry-pi-4b-gpio-not-working.118488/post-741684 Click to expand... awesome, thank you erel. will try it out
Cableguy Expert Licensed User Longtime User Mar 24, 2021 #4 For the fan control you should look into a pwm capable pin... Upvote 0