That was stated back in post #33. Output is Low when the doors are closed. Problem is the relay module requires a Low input to actuate. Using diodes in this situation will not isolate the sensors.Do we have any information available about the output of that IR sense module?
That is not nearly enough information. Is the output sinking or sourcing, what voltage? What current capability?? High and low are only a small part of the description. With a complete description both the problem and the best solution should be clear, at least to some.That was stated back in post #33. Output is Low when the doors are closed. Problem is the relay module requires a Low input to actuate. Using diodes in this situation will not isolate the sensors.
If the TS wants to use the modules listed then an inverter ( npn transistor ), 3 diodes and possibly a resistor will be required.
OK, the LM393 comparator is an open collector device, meaning it has an external resistor pull up. So it is possible,even likely, that any one output transistor is not able to pull down against three pull up resistors in parallel.The sensor module uses a LM393 comparator and does not have the current to sink or source in order to activate a relay directly hence the need for the relay module.
I will place the setup on a breadboard and take the measurements, hopefully today.It would need to have three transistors because the diode OR function can not be used directly at the outputs because it does not avoid the problem described in the #48 post. Each output needs to be buffered separately, so that there is not the problem caused by three pull-up resistors against one transistor. THAT seems too be why one works but three connected does not work..
That is why I asked for more measurements instead of just guessing that "High" and "Low" were exactly what they should have been. And the IC device that I suggested draws much less input current than the transistor circuit suggested
Your sensors are 5.11V when a door is open (HIGH). You want the light to turn on when a door is open; hence you need a HIGH active relay.I make the circuit and take measurements:
Power supply: 5.11V
With one sensor and relay:
Sensor VCC: 5.11V
Sensor out(no obstruction): 5.11V (LED off)
Sensor out(with obstruction): 0.11V (LED on)
Relay activated when IN LOW
Relay ON IN connector: 0.25V
Relay OFF IN connector: 5V
With two sensor and relay:
When Both sensor's LED off, relay is OFF, 5V
When both sensor's LED on, relay is ON, 0.12V
When any sensor's LED on, relay is ON, 0.22V
With two sensor, relay and diodes:
When Both sensor's LED off, relay is OFF, 4.70V
When both sensor's LED on, relay is ON, 0.80V
When any sensor's LED on, relay is ON, 0.88V
Relay is always OFF when reverse the diodes. When I short sensor's GND and OUT, it's LED lights up.
I can't see how a HIGH active relay solve this issue?
Okay then, i will buy an active HIGH relay from Aliexpress. My wiring is correct, right? Diode stripe at sensor side.By using the diodes shown way back in post #2.

