2 Endstops per Input? April 16, 2017 01:12PM |
Registered: 9 years ago Posts: 288 |
Re: 2 Endstops per Input? April 16, 2017 04:36PM |
Registered: 10 years ago Posts: 14,682 |
Re: 2 Endstops per Input? April 17, 2017 03:07AM |
Registered: 9 years ago Posts: 288 |
Re: 2 Endstops per Input? April 17, 2017 05:02AM |
Registered: 10 years ago Posts: 14,682 |
Re: 2 Endstops per Input? April 17, 2017 06:05AM |
Registered: 9 years ago Posts: 288 |
Quote
dc42
I presume those work by interrupting the slotted opto switch when the carriage is at the limit, so the LED is normally on and goes off when the switch is triggered. Here are two ways of connecting two of those:
1. Connect the two outputs to the inputs of a 74HC02 nor-gate, then the output of the gate will go low if either switch is interrupted. For extra safety, connect a pullup resistor between each input of the gate and +5V, so that if you disconnect the opto switch then that input will register as triggered.
2. Hack the endstops to connect the two phototransistors in series.
Connecting the sig of the 2nd endstop assembly to the ground of the first won't work for two reasons. You need the IR emitters in both switches to be permanently powered, and the phototransistor on the first switch might not be able to sink the current needed to drive both indicator LEDs.
Re: 2 Endstops per Input? April 17, 2017 11:37AM |
Registered: 10 years ago Posts: 14,682 |
Quote
GRAYWOLF
"NOR" or "OR"?
Re: 2 Endstops per Input? April 18, 2017 01:48AM |
Registered: 9 years ago Posts: 288 |
Re: 2 Endstops per Input? April 18, 2017 02:02AM |
Registered: 10 years ago Posts: 14,682 |