@clearlynotstef said in Pwm 5v pin duet wifi 2 gcode:
Alternatively, if I can't get a 5v pin with or without pwm, I'll see what happens if I just give it a 3.3v pwm signal. Presumably it'll just run between 0-60% or so? Is there a preferred pin to use for this with pwm? What's the gcode look like to create a pwm pin and assign it to be the part cooling fan?
PWM means Pulse Width Modulation. It is not controlling the actual voltage output, just how long the pin is on for. 50% PWM means that the pin is on, at 3.3V, for half the time. By 'time', I mean the frequency set by the M950 Q parameter. So no, it won't be on at 60%. It's just whether 3.3V is a sufficient voltage to trigger the fan controller to turn on.
Ian