Using Endstop Pins for GPIO
-
I was reading this:
https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pinsLooks like pins 45-49 can be I/O pins. I used M42 P49 S0 and S1 to try to turn the pin high or low, but I don't get any change.
Does "pin 49" correspond to the leftmost endstop pin (when looking at the Duex5 board layout)? That one is labeled E1 STOP.
If thats correct, then how do I set it to be an output?
-
Maybe its a problem with my board. Can someone else try M42 P49 S0/S1 and see if the E1 Stop pin changes?
Usually if I write to a pin that I'm not supposed to, I get this message:
"Logical pin %d is not available for writing"But I don't get that message with M42 P49 S0 or M42 P49 S1
-
Did anybody try it?
-
-
If you have a DueX5 or DueX2 connected, then the additional pins you can control are not endstop pins, they are CS5-CS8 on the temperature daughter board connector.
-
Thanks, I'll give that a try. Looks like those pins correspond to E3_STOP, E5_STOP, and E6_STOP. Any way to control E2_STOP or E7_STOP?
-
@jml I guess I'm confused by this wording in the link:
"45-49 are input/output. On the Duet WiFi and Duet Ethernet, 45-49 are the endstop connectors on the DueX5 expansion board." It makes it seem like 45-49 can be outputs, and they are on the Duex5 - if thats right, then how to control 45-49?
-
In theory, 45-49 could be controlled as GPIO, however the firmware doesn't currently support that. I'll correct the documentation.
EDIT: I'm sorry, I made a mistake in my earlier reply. 44-49 are always the endstop connectors. Logical pins 60-63 are the CS pins on the daughter board connector.
-
@dc42 Thanks for the clarification.