Welcome! Log In Create A New Profile

Advanced

M42 controlled by temperature

Posted by ElmoC 
M42 controlled by temperature
November 13, 2016 03:43PM
I don't think this is currently possible, but is there a way to control an output pin (M42) by temperature? What I was thinking of doing was to setup a fan to blow on the bed after the print has finished. It would turn on the pin as long as the temperature of the bed is over a set point.
Re: M42 controlled by temperature
November 13, 2016 04:23PM
If you have a spare controlled fan connector on your Duet, you can set up a thermostatically-controlled fan to do that.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: M42 controlled by temperature
November 13, 2016 04:28PM
Quote
dc42
If you have a spare controlled fan connector on your Duet, you can set up a thermostatically-controlled fan to do that.

I was planning on an A/C fan through a relay, thus the reason for the M42 pin. If the fan would only run at 100% PWM, I guess that wouldn't hurt the relay control circuit. I am only using one of the two fan outputs right now.
VDX
Re: M42 controlled by temperature
November 13, 2016 04:32PM
... I've add some new "M" codes/routines in Marlin4Due for my needs - wouldn't be a problem to add a new one with a "wait until lower than [nnn] value" for an ADC port.

E.g. "M47 A7 S127" for reading the A7 pin and repeat until the read value will be lower than 127 ...


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: M42 controlled by temperature
November 13, 2016 04:35PM
Quote
VDX
... I've add some new "M" codes/routines in Marlin4Due for my needs - wouldn't be a problem to add a new one with a "wait until lower than [nnn] value" for an ADC port.

E.g. "M47 A7 S127" for reading the A7 pin and repeat until the read value will be lower than 127 ...

Does the Marlin4Due work with the Duet Firmware or are you saying you could add your functionality to the Duet firmware?

What I am looking for is a way to say "While thermistor X is greater than temperature Y, set pin Z high." Thermistor X is the same one used by the bed.
VDX
Re: M42 controlled by temperature
November 13, 2016 06:06PM
... I'm changing/reprogramming parts of the Marlin4Due firmware, if it needs some new or different functionality - this should be possible too with RepRap Firmware for the Duett ...


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Sorry, only registered users may post in this forum.

Click here to login