1

I require additional digital input pins for 5 PIR sensors. Can I use the shift register (74HC165) to read these input? And will I be able obtain real time values from all the 5 sensors?

asked Dec 15, 2017 at 6:31
4
  • Did you know you can use the Ax (A0, A1, A2, etc.) pins as digital inputs also? Or have you already used all of them? Commented Dec 15, 2017 at 6:49
  • Yes I have used all if them Commented Dec 15, 2017 at 6:49
  • 1
    Yes, a shift register will work fine if "real time" is on the milli-seconds level. Calculate the time to access the shift register input. Commented Dec 15, 2017 at 9:02
  • 1
    If you don't care about which sensor triggered, you could use an OR-gate. Commented Dec 15, 2017 at 14:57

1 Answer 1

2

You could use a GPIO expander (MCP23017 or similar) which could give you 14 extra pins (16-2 for I2C bus), but this is putting extra load on the microprocessor. (you haven't said which one by the way).

Or another option might be to revisit you design and see if you can split it out to multiple processors. This is effectively the same as a GPIO Expander, just using an Uno or ESP8266 as the expander.

answered Dec 15, 2017 at 8:32
2
  • I will look into the GPIO expander. Commented Dec 15, 2017 at 8:35
  • I am using an arduino uno by the way. Sorry didn't mention it. Thank you:) Commented Dec 15, 2017 at 8:35

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.