Introduction: Arduino Reed Switch
Reed switch is radically an electrical switch which is determined when a magnetic field is conducted near to it.
Step 1: About the Project
Reed switch is primarily an electrical switch that is managed when a magnetic field is conducted near to it. It is made up of two small metal pieces managed inside a glass tube under a vacuum. The switch will be initiated when there is a presence of the magnetic field around the switch.
There are two types of the reed switch:
Normally open reed switch Normally open reed switch normally closed reed switch Normally closed reed switched a normally open reed switch, the switch is open in the absence of a magnetic field and it is closed in the presence of the magnetic field.
In a normally closed reed switch, the switch is closed in the absence of a magnetic field and it is open in the presence of the magnetic field.
Applications of Reed switch
1. Utilized in the telephone exchange
2. In laptops to set the screen on sleep if the lid is closed
3. Utilized in window and door sensors in the burglar alarm system.
Working of Reed Switch Using Arduino
To interface reed switch with Arduino, we require to develop a voltage divider circuit. Vo is +5V when the switch is open and 0V when the switch is closed. We are using a usually open reed switch in this project.
The switch is closed in the presence of a magnetic field and it is open in the lack of a magnetic field.
Reed Switch Interfacing With Arduino
Step 2: Run a Program
int LED = 7;
int reed_switch = 4;
reed_status = digitalRead(reed_switch);
if (reed_status == 1)