DeskPi-Team / deskpi

DeskPi Pro is the Ultimate Case Kit for Raspberry Pi 4 with Full Size HDMI/2.5 Hard Disk Support and Safe Power Button, It has QC 3.0 Power Supply inside and New ICE Tower Cooler inside.
GNU General Public License v3.0
140 stars 46 forks source link

DeskPi Lite case hardware requires separate GPIO PWM fan control coding not the use of /dev/ttyUSB0 coding as the PWM fan is directly connected to the Pi4 GPIO header and not to the MCU power control daughter board in the 'Lite' case. #102

Closed CaptainMidnight closed 2 years ago

CaptainMidnight commented 2 years ago

With DeskPi Lite, the inbuilt PiOS pwm fan control appears to work i.e. off until temp reaches 60c.

Installing deskpi-config, manually changing the fan speed doesn't appear to work.

Using deskpi-config to turn fan on/off doesn't appear to work.

If this script is compatible with DeskPi Lite what combination of settings are required to enable a working deskpi-config utility - does the PiOS pwm fan control need to be enabled/disabled for it to function properly?

What diagnostics can I run to debug and find out what's going wrong - ideally I'd like to use option 6 and have set fan speeds like the default between 40°c to 60°c (i.e. no fan, 25, 50, 75 then 100%).

Any help with this would be greatly appreciated.

Hardware: Pi4B8, DeskPi Lite Software: PiOS 64-bit, deskpi-config

CaptainMidnight commented 2 years ago

To partly answer my own question, it appears at least the DeskPi Lite I have doesn't work with the deskpi-config script or functionality, it works perfectly with the inbuilt PiOS automatic fan control through raspi-config / config.txt.

Configuring the fan turn on temp to 55°c appears to be a good compromise and the fan will remain on until the temp drops by the 10°c delta back to 45°c - in normal use, it's rarely on.

CaptainMidnight commented 2 years ago

The PWM element of the fan is fully controllable, you just need the right coding method: -

Link to 52PI PWM fan ZP-0110 configuration example

CaptainMidnight commented 2 years ago

@yoyojacky after some testing and review of the DeskPi Lite daughter board circuitry, the fan control scripts provided by this github need to be rewritten with respect to the DeskPi Lite case as it has the following issues: -

The DeskPi Lite is a great case with known limitations i.e. the power button, but if the PWM fan control script was rewriiten to 'Lite' specific i.e. to use GPIO PWN control, this would help to make this case truely way better than it currently is as received by customers trying to use the supplied INCOMPATIBLE PWM fan control service.

@yoyojacky can you confirm if the MCU PWM fan control functionality is really for the 'empty' daughter board fan socket - this would make sense why in the 'Lite' implemented hardware it doesn't do anything?

CaptainMidnight commented 2 years ago

@yoyojacky PWM fan control scripts need to be rewritten and offered via a separate dedicated 'DeskPi Lite' install script to reflect that the 'Lite' case hardware requires use of GPIO PWM fan control commands and not '/dev/ttyUSB0' fan control commands.

CaptainMidnight commented 2 years ago

Linking to DeskPi_v1 comment https://github.com/DeskPi-Team/deskpi_v1/issues/2#issue-1160561578

yoyojacky commented 2 years ago

@CaptainMidnight yes, it has been fixed. thanks for your tips..