Configure external trigger - using Momentary Switch for LED
-
Hi guys,
I have a question for the brains' trust.
Can I use M581 to turn on an LED strip light via the Duet3?
The PSU voltage and the LED are both 24V, I have a momentary switch spare which I can change to a latching setup however if I can direct the power through the board and use the mom-switch acting as a an end stop trigger of sorts, that would be my preference.
Is M581 able to be used without a print being active? Or is it only called from inside a processing G-Code file?
Would my code look something like:
M581 P"e0stop" T2 C1 ; invoke trigger 2 when a rising edge is detected on the E1 endstop input
but need to define a trigger too?
Thanks everyone
-
Using Duet3 board makes me assume you are using latest firmware on it. So:
https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_RepRapFirmware_3_01RC2_and_later
-
Send M115 to verify what firmware version you are actually using. should be 3.1.1
-
@Phaedrux FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC FIRMWARE_VERSION: 3.01-RC9 ELECTRONICS: Duet 3 MB6HC v1.01 or later FIRMWARE_DATE: 2020-04-21b1
-
From what I can see there, M581 can be triggered when the SD card has an active GCode being printed.
Is there a function I can use to trigger all the time? ie: when the Duet has power?
-
@callielli said in Configure external trigger - using Momentary Switch for LED:
Is there a function I can use to trigger all the time? ie: when the Duet has power?
That is the default of the R parameter as far as I read it.
@callielli said in Configure external trigger - using Momentary Switch for LED:
FIRMWARE_VERSION: 3.01-RC9
Please update to 3.1.1
-
I have just tried to upload the firmware downloaded via the RRF Config tool and get an error:
M997 S0
Error: M997: In-application programming binary "Duet3_SDiap_MB6HC.bin" not found
-
@callielli said in Configure external trigger - using Momentary Switch for LED:
I have just tried to upload the firmware downloaded via the RRF Config tool and get an error:
M997 S0
Error: M997: In-application programming binary "Duet3_SDiap_MB6HC.bin" not foundI will try to start from scratch on a formatted card as I am not confident the issue hasn't been introduced by something silly I might have missed.
-
https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet3_SDiap_MB6HC.bin
You're just missing the IAP file from the 3.0 release.
-
-
M115
FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC FIRMWARE_VERSION: 3.1.1 ELECTRONICS: Duet 3 MB6HC v1.01 or later FIRMWARE_DATE: 2020-05-19b2Sorted - thanks mate!