Page 1 of 1

which contact sensor and where to buy?

PostPosted: Fri May 30, 2014 8:56 am
by jaslyman
I'm having a hard time finding a local place to buy contact sensors, so I guess that's the first question. I struck out at Lowe's, my local hardware store, and a local Overhead door place. Any suggestions?

Online, I found this option: http://www.smarthome.com/7040/SECO-LARM ... pen/p.aspx, but they also have a "normally closed" version, and I'm not sure which is the right one for this particular application.

Thanks! Hoping to work on this project this weekend....

Re: which contact sensor and where to buy?

PostPosted: Fri May 30, 2014 6:44 pm
by support
Hi,

You can use either a normally closed or normally opened sensor. It's simply a matter of configuring the .INO file
code accordingly. There's a constant that you'll need to change near line #88 :

// #define STATUS_STRATEGY_NORMALLY_CLOSED // classic door sensor - uses digitalRead to interpret door/device status (opened == high-impedance, closed == GND)
// #define STATUS_STRATEGY_NORMALLY_OPENED // alternate approach - uses digitalRead to interpret door/device status (opened == GND, closed == high-impedance)

You would uncomment one of the above to have it match your setup.

That's it. Best regards,