0
\$\begingroup\$

I am new to Arduino, and I have a problem that I can't solve on my own. I am trying to connect multiple PIR motion sensors with a single wire, in parallel and onto one pin on my Arduino.

I am thinking of putting a different resistor on every sensor so when motion is detected and electricity goes through the sensor, the Arduino can detect how much voltage has come to Arduino. I don't know, this is the only solution I could come up with.

\$\endgroup\$
8
  • \$\begingroup\$ it would be better if you can post the type of PIR \$\endgroup\$
    – Damien
    Dec 28, 2021 at 10:09
  • \$\begingroup\$ Do you need to identify which one is set of, and if so, even when more than one is set off at the same time? Or only know that at least one of them has been set off? \$\endgroup\$
    – Klas-Kenny
    Dec 28, 2021 at 10:13
  • \$\begingroup\$ PIR sensors usually have a N/C switch. If you connect them in series, with a different resistor across each switch, you can construct a ladder network whose resistance will show which sensor has become open circuit. \$\endgroup\$
    – henros
    Dec 28, 2021 at 10:21
  • \$\begingroup\$ Hi, I am working with hc-sr501 motion sensors. I would like to know exactly which one has detected motion and also if more of them have been set on at the same time. \$\endgroup\$
    – Vid
    Dec 28, 2021 at 10:47
  • \$\begingroup\$ Why one wire only? \$\endgroup\$
    – RowanP
    Dec 28, 2021 at 12:09

1 Answer 1

0
\$\begingroup\$

Make a DAC converter with the outputs (through the 1k internal resistor).

The bit of the binary value of voltage is directly related to the PIR which has detected something.

EDIT: R1 should be 2*RR.

enter image description here

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.