Custom toolboard + duet wiring limitations
-
@jay_s_uk Thank you for your reply. Do I understand this correctly? As long as each fan draws less than the 2A switching load max then it doesn't matter where the +24V comes from, so I can use out1 to power the heater and the two fans.
I'm not looking to directly replicate the stealth burner setup. I like to build different toolheads for my custom built 3D printer which is why I built a tool hot swap setup. My printer is small and my duet has many available pins on it so I'd rather just use the capabilities of my mainboard then spend $45+ dollars on a Duet tool board for each new tool I build.
My idea has all of the convivences of a CAN tool board without the extra cost. My Prusa Mk4S with the Prusa Loveboard has a very similar setup to my idea for the same reasons and I wanted to implement it in the printer that I built. By making it myself it can be much more compact since it doesn't need any driver chips on it as well. Also truthfully, its a fun project for me to learn KiCAD.
-
@SamKudarauskas fair enough.
and yes, you understand that correctly -
@jay_s_uk Thank you for your help. Is the duet IO pins capable of triggering different events if it receives a pulse of being turned on/off versus a stable on or off signal?
-
@SamKudarauskas yes. have a look at M581
-
@jay_s_uk M581 appears to be used to detect going from low to high or high to low for some trigger, how can I use that to map it to different actions based off of if it goes high low high quickly or just from low to high and stays that way?
-
I'm using a Duet 3 6HC board with 3.5.4 firmware.
I have cases where I have used M581 to assign two triggers to the same input.
One for the inactive-to-active condition and the other active-to-inactive condition.
It seems to work just fine.
But I'm not sure how you would detect a steady state condition.
Frederick
-
@SamKudarauskas It might help if you explain what it is you are trying to do here. So what sensor (or other input) are you trying to monitor and what conditions do you want to detect and what do you want to do when that condition is detected.
-
@SamKudarauskas you can use M582 https://docs.duet3d.com/User_manual/Reference/Gcodes#m582-check-external-trigger to check the state of a trigger, and to trigger it if it is in a particular state.
Ian
-
@fcwilt I was curious about binding two or more macros to a single button. One to execute if the button is tapped and a different one if it is held down.
Sam
-
@SamKudarauskas said in Custom toolboard + duet wiring limitations:
@fcwilt I was curious about binding two or more macros to a single button. One to execute if the button is tapped and a different one if it is held down.
Sam
Held down how long?
You might be able to put in the trigger a G4 delay followed by a test of the appropriate input using
sensors.gpIn[#].value = 0 ; or sensors.gpIn[#].value = 1
where # is the number of the gpin used as the input for the trigger to monitor.
Frederick
-
@SamKudarauskas you will need to detect it's held down in the trigger then have a while loop that looks for the release, if it's released within a certain time then carry out action A, if after that time, Action B