BTT Pi - GPIO Numbering

SOLVED !

Message form facebook BTT group

PG19 is definitely a GPIO pin. It may not be on the 40 pin GPIO header but any input / output pin on the BTT Pi and CB1 is GPIO.

The formula to convert from PG19 to GPIO is:

[(PG - PA)*32] + {Pin Number}

Where PA = 1, PB =2….so PG = 7

So [(7-1)*32] + 19 = 211

Try using GPIO211

The BTT documentation on this is rubbish and lacking.

result :

image

Thanks again and happy FAST printing

2 Likes

Push on GitHub with more explanation.

Is there any way to make that GPIO211 pin a PWM one rather than just voltage?

Each pin can work as software PWM pin which usually is the better choice anyway.
If you aim for hardware PWM then the answer is no.

@Jfml :

Could you please put your code snippet between code braces.

Format

The way you did it, information like spaces get lost.

1 Like

Any idea what the error could be?

Put inside printer.cfg

[mcu host]
serial: /tmp/klipper_host_mcu

Remove from fan…cfg

1 Like

thanks I will try

I have gotten it to work, I needed to create the MCU but I see that it spins slowly. I have measured voltage and it is approximately 3 v

If I set the value in klipperscreen to 0, the rest of the values ​​stop spinning very slowly with only 3 v and the fan It is 5v

4 posts were split to a new topic: Error “Unknown pin chip name host’.”

2 posts were split to a new topic: Printer object already created