Arduino Reed Switch

Photo of hIOTron

Made by hIOTron / Security / IoT

About the project

Reed switch is radically an electrical switch which is determined when a magnetic field is conducted near to it

Project info

Difficulty: Moderate

Platforms: Arduino

Estimated time: 1 hour

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

Arduino Uno - R3 Arduino Uno - R3 x 1
Reed Switch Reed Switch x 1
Resistors Resistors x 2
LED LED x 1
Connecting Wires Connecting Wires x 1
Magnet Magnet x 1

Software apps and online services

Arduino IDE Arduino IDE

Story

Reed Switch

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.

IoT Course is the way to learn all about IoT Applications.

There are two types of the reed switch:

Normally open 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

Code

Run a Program

Credits

Leave your feedback...