E1 as 12v pwm
-
I am wanting to add some 12v leds for lighting and 3 extra fans for stepper cooling and was wondering if I could use my unused E1 heater terminals to control these? I would like to inject g code with my slicer to turn them on and off with a print.
I thought of using one of my pwm fan pins but they are all already in use. -
Yes you can, using the M42 command. See https://duet3d.com/wiki/Using_servos_and_controlling_unused_I/O_pins.
-
would I use M42 P? S1
-
Yes, S1 to turn them on, S0 to turn them off, or something in between to turn them on at reduced brightness.
-
what would the P parameter be for the E1 heater pin?
-
E1 heater is heater 2, so it would be P2 as described in the wiki page I linked to.
-
Just wanted to double check. Thanks You are a big part of what makes duet so great.
-
Just tried it sent M305 H2 A-1 C-1 D- and then when I send M42 P2 S1 I get the error message M42 P2 S1
Error: Logical pin 2 is not available for writing. -
It's M307 you need not M305.