bigtreetech / Manta-M8P

215 stars 50 forks source link

Controlling Pi Fan with CB2 and M8P V2 #119

Open cin3m opened 4 months ago

cin3m commented 4 months ago

Is anyone running the configuration with an CB2 and the M8P V2? Currently I'm trying to control the speed of the Pi Fan through Klipper.

Sadly according to the documentation of both boards the required Pin should be gpiochip0/gpio19.

The mcu is installed as required for the access of the GPIO pins.

Klipper is also listed in the output of gpioinfo

Regardless of the configuration the fan runs at 100% speed.

Life0fBrian commented 3 months ago

I have a M8P v2 and CB2 running and after your post here it get it working. My CB2 is defined as

[mcu CB2]
serial: /tmp/klipper_host_mcu

and the PI-fan:

[fan_generic pi_fan]
pin: CB2: gpiochip0/gpio19
max_power: 1.0
kick_start_time: 0.5
cycle_time: 0.02

This works fine and lets me control the fan if needed.