optical endstop in parallel to 1 endstop input
-
@tekstyle if the sensors use simple slotted opto switches without a separate comparator chip, then you can connect the outputs of the two switches in parallel. The output will be low when either or both are not blocked, high when both are blocked.
-
@dc42
h**ps://www.amazon.com/DAOKI-Measuring-Optocoupler-Interrupter-Detection/dp/B081W4KMHC/ref=sr_1_3?dchild=1&keywords=arduino+speed+sensor&qid=1626515939&sr=8-3these are the sensors I have. I believe what I need is it to be high when either one are unblocked and low when both are blocked. basically the reverse. is this even possible?
-
i tried placing the diode with anode end towards input. the input pin shows 3V all the time.
i tried placing the diode with cathode end towards the input. It has the same behavior as if there was no diode. all sensors blocked vs just 1 sensor blocked yields the same e1endstop status. -
@tekstyle said in optical endstop in parallel to 1 endstop input:
@dc42
h**ps://www.amazon.com/DAOKI-Measuring-Optocoupler-Interrupter-Detection/dp/B081W4KMHC/ref=sr_1_3?dchild=1&keywords=arduino+speed+sensor&qid=1626515939&sr=8-3these are the sensors I have. I believe what I need is it to be high when either one are unblocked and low when both are blocked. basically the reverse. is this even possible?
To achieve that I suggest you use one of the four gates in a 74HC02 to OR the two outputs together. It will also invert the output.
-
-
thats is a great solution. would it be possible to use this IC if i use 3 opto sensors? according to my searches, the 74hC02 is a NOR gate IC.
looking at the truth table, if both input are LOW, the output is HIGH. i am not sure if i can connect the outputs of multiple gates together if i use more than one.
thankd in advance! i think we are getting a little closer
update:
i found a truth table for a OR gate
A | B | X
0 | 0 | 0
1| 0 | 1
0| 1 | 1
1| 1 | 1this type of IC might work i think but i dont know the model number to search for.
update:
M74HC4075. this uses triple input OR gate. low output when all inputs are low and high on any other condition. would this be a solution? -
@fcwilt when no sensors are blocked, the e1 status will change. i need the change to happen when any 1 of 3 sensors becomes unblocked.
this is for a delta arm parallel sensor setup. hence the reason for 3 sensors. i need it to pause print when any one of the sensors trip (block to unblocked)
-
@tekstyle 74HC27 is a triple 3-input NOR gate.
-
@dc42 perfect. thanks david. will get back with updates once it has arrived!
-
I got the IC hooked up, and everything is working GREAT! thank you! This is actually a triple 3input OR gate. I just inverted the 1 and 0 in duet firmware.