Solved RRF3: How to use the E1 HEAT output to control a relay?
-
I am upgrading my printer/DuetWifi from RRF2 to RRF3. My printer uses the second extruder heater output to control a relay that time-lapses a camera. This works on RRF but doesn't work on RRF3.
config.g (a work in progress) is here https://github.com/zapta/misc/blob/master/hevo/duet3/sys/config.g and it contains this command:
; Disable Heater 2 (E1). Used for camera click M307 H2 A-1 C-1 D-1
The camera click macro is here https://github.com/zapta/misc/blob/master/hevo/duet3/macros/camera_click and it contains this to trigger the relay.
M42 P2 S1 ; Relay on (E1 heater on) G4 P10 ; Delay in ms M42 P2 S0 ; Relay off (E1 heater off)
However, the M42 P2 S1 command doesn't' turn the output on (measuring 0VDC across the E1 HEAT outputs).
Any suggestion? Do I need to define that heater output somehow?
Thanks,
Z. -
not sure you need to disable the heater, but you do need to define the pin ref https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_M42
-
Thanks @bearer. That did the trick. I replaced the M307 with
M950 P2 C"e1Heat"