Any foreseeable problem with attaching two PIR outputs onto the same I/O pin? Will the activation of one feed voltage back into the other? For long term use, can this be bad?
If you connect two PIR sensors to the same I/O pin, you will destroy one or both of the PIR sensors. This is true for any logic output. Logic output circuitry essentially connects the output pin to either ground (logic low) or Vdd (logic high) through a small transistor. If that output pin is connected to another output pin that's in the opposite state, you have a short circuit from Vdd to ground via one small transistor on each output pin. That will destroy either the transistor or its wiring on the chip ... and very quickly. Some chips are built more robustly than others. For example, the Propeller's output circuitry is built to be tolerant of this sort of abuse, but the Stamps and things like the PIR sensor are less tolerant.
That depends on what you do with the diodes. The best thing to do would be to use an OR gate or some combination of gates that ends up as an OR gate so that if either PIR sensor output goes to logic high, the result (to the I/O pin) will go to logic high.
If you use two diodes as an OR gate, make sure to have a pulldown resistor on the I/O pin.
Just a word to the wise on the PIR sensors from Parallax.· They are not all created equal.· I bought 3 of them, and all 3 had different responses to heat.· One of them would never settle down, and would trigger· inside a tupperware in a 50 degree garage with no heat source around.· The other 2 would detect a human, but at different distances, and one of those 2 took about 20 minutes to settle down and detect properly.
I have bought many and have tested about 20. They have all seemed to react about the same. My application is more close quarters, but it seems to take 15-30 seconds for most of them to "settle" and then it works great! They did recently come out with PIR V1.2 ... maybe you had bad experiences with an older version.
Comments
If you use two diodes as an OR gate, make sure to have a pulldown resistor on the I/O pin.
Deno
Deno