^Mini5+ External trigger dont work
-
I have a Voron V2.4 with Duet Boards. As i use the LED screen i miss the "emergency stop" button from the DWC and if something went wron, it takes too long to do it via the LED screen. So i want a physical Push button in the skirt to do the same.
I took a NO push button with some nice red LED light. Took the 24V for the LED direct from PSU.
i used the io5 port on the board
Io5.in
+3.3V
measured the 3.3V at the push botton and 3.3V if i press the button
in my config i wrote the following:
M950 J1 C"Io5.in" ; create Input Pin 1 on pin Io5.in
M581 P1 T0 ; use Pin 1 and cause Trigger 0 ( M122)but nothing happens...so wheres my mistake? is 3.3v from io5 not enough?
-
The documentation for M581 is confusing.
In one place it says the default for the S parameter (which you don't have) is S1, trigger on active-to-inactive.
In another place it says the default is -1, ignore input.
So try S0 or S1 and see if that makes a difference.
Frederick
P.S.
As pointed out by @Gixxerfast the switch should be connected from the input to ground, not to 3.3.
Also if possible you should use a NC switch and configure the trigger with S0.
-
As I wrote elsewhere, I think his problem is that he has a NO switch connected to 3.3V so when not pressed down it leaves the pin "floating" which is then pulled high. So it's already at 3.3V when the button is pressed so no signal change can be detected.
I feels like a reasonable explanation AFAIK.
The solution could then be to change to switch ground to the io pin and use the S0 parameter instead, not that I've tried it.
-
@gixxerfast said in ^Mini5+ External trigger dont work:
As I wrote elsewhere, I think his problem is that he has a NO switch connected to 3.3V so when not pressed down it leaves the pin "floating" which is then pulled high. So it's already at 3.3V when the button is pressed so no signal change can be detected.
I feels like a reasonable explanation AFAIK.
The solution could then be to change to switch ground to the io pin and use the S0 parameter instead, not that I've tried it.
You are correct. I missed the fact that it was wired between the input and 3.3.
NC are preferred because they keep the input shorted to ground (when connected correctly) reducing the chance of picking up noise.
Frederick
-
@fcwilt i can use the button as NC switch too..guess i have to invert the pin in the M950, right?
-
@barracuda72
Connect it NC gnd to pin and you shouldn't have to change anything -
@barracuda72 said in ^Mini5+ External trigger dont work:
@fcwilt i can use the button as NC switch too..guess i have to invert the pin in the M950, right?
No. But the S parameter to M581 would determine if the trigger runs when the switch is pressed or when it is released.
S0 should work fine.
Frederick
-
@fcwilt button as NC and S0 worked....great..just feel better with a "emergency stop" button that i can press without DWC
-
@barracuda72 said in ^Mini5+ External trigger dont work:
@fcwilt button as NC and S0 worked....great..just feel better with a "emergency stop" button that i can press without DWC
You are not alone - I equip all my printers with large estop buttons.
Frederick
-
-