Posts: 1
Joined: Thu Dec 25, 2014 2:09 pm

sensor for opening door

Thu Dec 25, 2014 2:18 pm


I am making a project that when the senor detect the thing the door should get open. so I want to know that how to make it and what material i need. so please anyone help.

Posts: 118
Joined: Wed Oct 24, 2012 9:15 pm
Location: Cheltenham, UK

Re: sensor for opening door

Thu Dec 25, 2014 9:48 pm

Have a look at reed switches. The reed switch is a little set of contacts usually set in a small glass vile that get triggered by a magnet. Basically the contacts open/close (don't recall which) when adjacent to a magnet. These things are usually quite cheap and the contacts are usually impervious to grot as they a sealed in glass. The alternative is a micro switch but these can be difficult to position to get reliable switching but have the advantage of a change over type operation.

To sense a door open/close you mount the reed switch (contacts) on the door frame and the magnet on the door such that when the door is closed the magnet influences the contacts. Then simply wire the contacts into a spare PIO pin and write the code.
Share and Enjoy.

BMS Doug
Posts: 3929
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: sensor for opening door

Fri Dec 26, 2014 12:08 am

Passive infra red sensors (PIR) are normally used to detect someone approaching a door, triggering the opening circuit.

Please clarify your desired project design, your description is ambiguous.
Building Management Systems Engineer.

Return to “Automation, sensing and robotics”