which contact sensor and where to buy?

General support questions and discussions.

which contact sensor and where to buy?

Postby jaslyman » Fri May 30, 2014 8:56 am

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....
jaslyman
 
Posts: 1
Joined: Fri May 30, 2014 8:50 am

Re: which contact sensor and where to buy?

Postby support » Fri May 30, 2014 6:44 pm

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,
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm


Return to Support



cron