0% found this document useful (0 votes)
90 views

Elint Labz - Magnetic Door Sensor Plug Manual

This product manual summarizes the magnetic door sensor plug from Elint Labz. The plug contains a magnetic door sensor with a pull-down resistor circuit to provide digital logic levels. It operates at 5V and connects to microcontrollers using various supported cables. The manual provides details on the sensor's operation and an example Arduino code to interface with the sensor and light an LED when a door is opened based on the sensor signal.

Uploaded by

Kartikey Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Elint Labz - Magnetic Door Sensor Plug Manual

This product manual summarizes the magnetic door sensor plug from Elint Labz. The plug contains a magnetic door sensor with a pull-down resistor circuit to provide digital logic levels. It operates at 5V and connects to microcontrollers using various supported cables. The manual provides details on the sensor's operation and an example Arduino code to interface with the sensor and light an LED when a door is opened based on the sensor signal.

Uploaded by

Kartikey Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

 

Product Manual 
Magnetic Door 
Sensor Plug 
  

 
 

 
 
Updated on: ​27th November 2017 

 
Product Manual: Magnetic Door Sensor Plug 

 
Index 
About Elint Labz 2 

Introduction 2 

Specification 3 

Operating voltage: 5V 3 

Variants 3 

Supported cables: 3 

Details 4 

How to interface? 5 

Example Codes 8 
Code 1 : Arduino 8 

Contributors 9 

 
 

Elint Labz (​www.elintlabz.in​)  Page 1 of 8 


Product Manual: Magnetic Door Sensor Plug 

About Elint Labz 


Elint  Labz  (usually  abbreviated  as  EL)  is  an  electronics  design  &  development  tools 
designer  &  manufacturer  with  headquarters  in  Bengaluru,  India.  We  design,  develop  & 
manufacture  development  boards  based  on  micro-controller  &  microprocessors, 
breakout  boards  for  various  sensors  &  actuators. Our domain & expertise is in the area of 
Electronics & Embedded Systems. 
 
Elint  Labz  was  founded  in  2014  however  the  actual operations started from 2015 when it 
became  a  full  time  subsidiary  of  Hogst Innovative Solutions Pvt. Ltd. & is presently a part 
of  Ajaramara  Group  a  conglomerate  of  various  domains  of  industries,  registered  in  India 
as Ajaramara Dynamics Pvt. Ltd. under Companies Act of 2013. 
 
As  in  the  name  company  (Elint  Labz)  –  Electronic  intelligence  (​ELINT​)  is  intelligence 
gathered  by  the  use  of  electronic  sensors,  Laboratories  (LABZ)  are  facilities  that 
provides  controlled  conditions  in  which scientific or technological research, experiments 
and  measurement  may  be  performed.  EL  is  an  enterprise  built  to  develop  smart  & 
intelligent  electronics  &  EL  is  committed  to  help  achieve  electronics  literacy in India. No 
matter  the  vision  or  skill  level,  our  products  and  resources  are  designed  to  make 
electronics & programmable development hardware more accessible. 
 
Elint  Labz  as  a  platform  helps  developers  &  young  engineers  from  prototyping  to 
product  development.  We  provide  open  source  hardware  solutions  and  small  quantity 
manufacturing  services  using  a  design  from  manufacturing  framework.  We  are  a strong 
promoter  of  the  maker  movement  in  India,  most  of  the  manufacturing  happens  with 
support  of  our  various  Indian  partners  &  couple  of  our  collaboration  partners  who  have 
manufacturing & sourcing facilities in Germany, Korea & Shenzhen.  
 
To know more visit the about us section on our website: ​http://elintlabz.in/about-us/ 
 
 
Elint Labz (HQ) 
˗ #​200 1​st main Arekere MICO layout ​2​nd stage  
Bengaluru ​560076​ KA ​[Marked on Google Maps] 
✆ ​+91 855 377 2525 
ː ​[email protected]  
 
 
 
 
Introduction 
Magnetic  Door  Sensor  plug  has  a  door  sensor  with  pull  down  resistor  circuit  in 
order  to  provide  digital  logic  levels.This  PCB  design  enables  you  to  mount 

Elint Labz (​www.elintlabz.in​)  Page 2 of 8 


Product Manual: Magnetic Door Sensor Plug 

anywhere  using  screws.The  magnetic  door  sensor  cable  is  available  in  different 
lengths. 
 
 

 
Specification 
● Operating voltage: 5V 
● Size: 15mm x 20mm 

● Sensor cable length: 15’ 

Variants 
None 

Supported cables: 
1. 3-3 A 
2. 4-3 A 

Elint Labz (​www.elintlabz.in​)  Page 3 of 8 


Product Manual: Magnetic Door Sensor Plug 

 
Details 
Magnetic  Door  Sensor  is  essentially  a  reed  switch,  encased  in  an  ABS  plastic 
shell.  Normally  the  reed  is  'open'  (no  connection  between  the  two  wires)  when 
there  is  no  magnetic  field.  The  other  half  of  the  sensor  (without  wires)  is  a 
magnet.  When  the  magnet  is  less  than  13mm  (0.5")  away, the reed switch closes. 
They're  often  used  to  detect  when  a  door  or  drawer  is  open,  which  is  why  they 
have  mounting  tabs  and  screws.  The  user  can  also  use  double-sided  foam  tape 
to mount these, that works well without needing screws. 
 
Magnetic  Door  Sensor  plug  is  a  digital  input  device  to  the  interfacing  system.  It 
has  an  interfacing  port  with  three  pins  named  as  G,  V  &  D.  Here  G  represents 
Ground  ,  V  represents  VCC  and  D  represents  Data  pin  through  which  digital 
signal from the magnetic door sensor can be obtained. 
 
When  the  two  parts  of  the  magnetic  door  sensor are close to each other, a HIGH 
signal  is  available  at  the  Data pin (D) and when the two parts are far away, a LOW 
signal is available at the Data pin. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

State of Magnetic Door Sensor  Signal at D pin 

Elint Labz (​www.elintlabz.in​)  Page 4 of 8 


Product Manual: Magnetic Door Sensor Plug 

LOW

HIGH

 
 

 
 
How to interface? 
Use  either  of  the  supported  interfacing  cables  to  connect  this  magnetic  door 
sensor  plug  to  the  controller  board.  If  4-3A  cable  is  to  be  used  then  3  pin  end of 
the  cable  is  connected  the  magnetic  door  sensor  and  4  pin  end  of  the  cable  is 
connected  to  controller  board.  If  3-3A  cable  is  to  be  used  then  any  end  of  the 
cable  can  be  connected  to  the  magnetic  door  sensor  plug.  Always  ensure  that 
black wire of the cable is connected to the G pin on both sides. 
 
In  the  below  given  pictures  you  can  that  see  4-3A  cable  is  used  to  connect 
Magnetic  Door  Sensor  plug  to  the  Pluguino  Board.  The  data  pin  of  the  magnetic 
door  sensor  plug  is  connected  to  the  12th  GPIO  pin  on  the  controller  board.  By 
monitoring  the  voltage  at  the  12th  GPIO  pin  of  the  controller  you  can  decide 
whether  the  magnetic  door  sensor  is  closed  or  not.  Here  in  this  example  code 
LED turns on when the door is opened and it turns off when the door is closed. 

Elint Labz (​www.elintlabz.in​)  Page 5 of 8 


Product Manual: Magnetic Door Sensor Plug 

Elint Labz (​www.elintlabz.in​)  Page 6 of 8 


Product Manual: Magnetic Door Sensor Plug 

Elint Labz (​www.elintlabz.in​)  Page 7 of 8 


Product Manual: Magnetic Door Sensor Plug 

In  order  to  demonstrate  the  working  of  magnetic  door  sensor  plug  we  have 
associated  LED  plug  with  the  magnetic  sensor  input  signal.  Here  in  this example 
code  LED  turns  on  when  the  door  sensor  parts  move  apart  (door  opened)  and 
LED  turns  off  when  the  magnetic  door  sensor parts are close to each other (door 
closed). 
 

Example Codes 
Code 1 : Arduino 

boolean Door_state = LOW; ​// variable to store magnetic door


sensor state
#define Led_pin 13 ​ / LED is connected to 13th pin
/
#define Door_pin 12 ​// magnetic door sensor is
connected to 12th pin

void​ ​setup​()
{
pinMode(Led_pin , OUTPUT); ​// initialize the LED pin as an output
pin
pinMode(Door_pin , INPUT); ​// initialize door sensor pin as an input
pin

void​ ​loop​()
{
Door_state = digitalRead(Door_pin); ​// read the state of the door
sensor and store it
​if​(Door_state == HIGH) ​// check whether door is
closed
{
digitalWrite(Led_pin,LOW); ​//turn the LED OFF when door
is closed
}
​else
{
digitalWrite(Led_pin,HIGH); ​// if door is open then turn
ON the LED
}
}

Output video : ​https://youtu.be/s_HCVS5qQWU 

Elint Labz (​www.elintlabz.in​)  Page 8 of 8 


Product Manual: Magnetic Door Sensor Plug 

 
 
Contributors 
List of interns & other contributors who have worked for developing this manual 

Leela O V 
http://www.elintlabz.in/profile-1807 

 
 
 

Elint Labz (​www.elintlabz.in​)  Page 9 of 8 

You might also like