Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm interested in building a monitoring system for my 4-zone HVAC system, which will require monitoring between 8 and 12 separate 24VAC circuits. Following a suggestion in this question, I plan to use MID400 optocouplers to convert the 24VAC signals to digital, but I'm not sure how to get the 12 separate inputs into the PI.

share|improve this question
up vote 2 down vote accepted

You could look at the MCP23017 i2c 16 input/output port expander.

It gives you 16 i/o ports and communicates to the Raspberry Pi via I2C so it only takes 2 pins.

share|improve this answer
Looks like a good solution; ordering one (and a batch of MID400s) soon., – TomG Feb 20 '13 at 3:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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