Pages: [1]   Go Down
Author Topic: Safest option for home alarm  (Read 364 times)
0 Members and 1 Guest are viewing this topic.
South Africa
Offline Offline
Sr. Member
****
Karma: 0
Posts: 356
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think I have 2 options here, but not sure which would be the safest choice on 2 counts :

1. having wiring running through the roof of the house to the door contacts carrying 12v, or
2. protecting the Arduino board from interferance on the cables.

One option is to connect Ground to the contacts, and the feed back from the contact direct to the input pin.

Second option is to use an optocoupler (see attachment), but this would mean running a current through the wiring to / from the door contact.

Advice appreciated please.


* DRAWING11_final_door contacts.jpg (34.16 KB, 383x293 - viewed 10 times.)
Logged

Chile
Offline Offline
Sr. Member
****
Karma: 0
Posts: 260
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Most of the alarm systems I worked with drive their sensors with 12V, so running that voltage is the same as in commercial solutions. yo might add some short circuit protection to prevent accidents or tampering.

In the circuit you are showing, you are sharing a common ground. There is no need to do that if you are using an Optocoupler.

You will allways be running a current to the door contact. how much depends on different factors.

Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can quite easily protect the Arduino pin against interference and transients, see diagram.


* Scan 12.JPG (66.58 KB, 1653x1165 - viewed 15 times.)
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pages: [1]   Go Up
Jump to: