Controlling a mosfet with "exp.heater3"
-
@exerqtor what does the external stepper driver datasheet say as far as enable signal levels required? They are normally the same as step and dir.
If you are using step and dir from the expansion header to control the external driver I would use the enable line for the same driver set (e.g. if you are using E3_STEP and EĀ£_DIR then use E3_EN as well. If you need to invert the enable logic see the R parameter of M569:
https://duet3d.dozuki.com/Wiki/M569 -
I tried using E2_EN earlier but i couldn't get it to work either
This is what it want:
So basicly i want it open when in use, and supply it with 3.3V when not in use
-
@exerqtor how did you have it setup, did you try inverting the logic like I mentioned? You can measure the voltage on hat pin using a voltmeter to confirm its working as expected.
-
@t3p3tony said in Controlling a mosfet with "exp.heater3":
@exerqtor how did you have it setup, did you try inverting the logic like I mentioned? You can measure the voltage on hat pin using a voltmeter to confirm its working as expected.
I tried with "M569 P5 S1 R0 T2.5:2.5:0.02:0.02" and "M569 P5 S1 R1 T2.5:2.5:0.02:0.02", and it didn't really behave like i would expect with either of them, the stepper motor still kept on/got hot.
-
@exerqtor even when you sent M18?
-
@t3p3tony
I've allways been using M84, maybe that's why I haven't got it workingI'll hook it up to E2_EN and try it with "M18 E0" soon.
-
undefined Exerqtor marked this topic as a question
-
@exerqtor M84 should also work to disable the motor if it is idle. Check to see the voltage switches you get when its running/ disabled
-
Yeah the problem is that the TMC2100 don't really have any way of getting idle since duet/rrf can't speak with it so to say. That's why i want to use the auto feature with CFG6/enable open while printing so that it at least can turn down the current by 2/3 if it's idle
But yeah i'll check out what the E2_EN puts out in the different states soon
-
@exerqtor said in Controlling a mosfet with "exp.heater3":
> Yeah the problem is that the TMC2100 don't really have any way of getting idle since duet/rrf can't speak with it so to say. That's why i want to use the auto feature with CFG6/enable open while printing so that it at least can turn down the current by 2/3 if it's idleBut yeah i'll check out what the E2_EN puts out in the different states soon
Soooo it does indeed output 3.3V and works, must have had a bad crimp or something earlier that left it open all the time. Hence why it never turned off the driver(or something).
Just out of curiosity, how does it the MCU handle it when lets say i just heat up the hotend and do do extrusions and retractions thru either DWC or PanelDue? Will it deploy a "M84 En" in the end of each extruder move, or will it just stay on until i manually send that command? Not that it's a big deal or anything, just curious/good to know how it's handeled.
-
undefined Exerqtor has marked this topic as solved
-
@exerqtor M84 stops the idle hold. i.e. turns off the current after the motor has been idle for a set amount of time (or immediately if sent without an S parameter. M906 specifies the % of full current that is used when idle. While the printer is in use if M84 or M18 are not sent, the motors will idle, not turn off.
-
@t3p3tony said in Controlling a mosfet with "exp.heater3":
M906 specifies the % of full current that is used when idle. While the printer is in use if M84 or M18 are not sent, the motors will idle, not turn off.
That's the downside of having external drivers, the FW-current reduction doesn't work for them.
@Exerqtor The modern TMC2209 has a smart-current feature. This will make it run cooler. They can be jumper-configurated, same way as the TMC2100.
-
@o_lampe said in Controlling a mosfet with "exp.heater3":
@t3p3tony said in Controlling a mosfet with "exp.heater3":
M906 specifies the % of full current that is used when idle. While the printer is in use if M84 or M18 are not sent, the motors will idle, not turn off.
That's the downside of having external drivers, the FW-current reduction doesn't work for them.
@Exerqtor The modern TMC2209 has a smart-current feature. This will make it run cooler. They can be jumper-configurated, same way as the TMC2100.
Seems bo be like that, i think i'm going to get a little mostfetboard with a IRF520 on and run it between E2_EN and the enable input on the driver so that it's open when enabled, that way i at least get the automatic idle current reduction from the TMC2100 working.
-
@exerqtor said in Controlling a mosfet with "exp.heater3":
that way i at least get the automatic idle current reduction from the TMC2100 working.
No, disabling the driver requires a new homing sequence because Duet forgets stepcount.
For an extruder you can use G92 E0 for homing, but only if you use relative extrusion
You might also loose control over FW-retraction. Make sure you know the state of G10/G11 before disabling. -
@o_lampe
Great