How to Interface Reed Switch With Arduino

by vishalsoniindia in Circuits > Arduino

1926 Views, 2 Favorites, 0 Comments

How to Interface Reed Switch With Arduino

PicsArt_06-20-11.29.58.jpg
How to interface reed switch to control LED | Arduino | Arduino project #shorts #vishalsoni

Hi, I am Vishal,

By the way, subscribe to my YouTube channel for more projects like this. I also update my upcoming projects on Instagram.

buy me a coffee! ☕: Donate

In this tutorial we will learn how to interface reed switch to control our house hold devices like tv, bulb etc.

you can put magnet in ring or neckless to turn on and off devices.

This is basic tutorial, it include example sketch, which can be modified and turned in to a big project.

So in this winter this is great start to lean about reed switch.

Requirements

Screenshot_2021-06-18-22-56-10-341_com.miui.gallery.jpg

Requirement for this project are given below it include some components which you can find online or your near by electronics store.

  1. bread board
  2. 330 ohm resistor
  3. LED
  4. reed switch
  5. magnet

Bread board :- A breadboard, or protoboard, is a construction base for prototyping of electronics. Originally the word referred to a literal bread board, a polished piece of wood used when slicing bread.

330 ohm resistor :- it is used to control current delivery to the LED

LED :- it indicate the circuit is running perfectly or we can say it is load in our circuit.

Reed Switch :- it is a switch which closed with magnet otherwise it is work as a open switch.

Magnet :- we will use it to toggle reed switch.

Simple Reed Switch Test Circuit

Simple_read_switch.jpg

In the image, this is the simplest circuit to use reed switch.

a 5v supply is connected with reed switch, reed switch will be connected in series with resistor and LED the ground terminal of led is connected with negative supply.

Working of Circuit

IMG_20210620_230915.jpg
IMG_20210620_230857.jpg

After connecting the circuit put magnet near the reed switch, it turns on led,

if it not turn on rotate the magnet, because the north and south pole of magnet will affect.

Reed Switch With Relay

Circuit_with_relay.jpg

Now we come to the real application, how we can control the house hold devices,

just connect a relay as shown in the circuit diagram. connect house hold devices to the relay and you are now able to control the devices in your house with magnet.

Interface Reed Switch With Arduino

Grand Sango.png

some time in bigger application where you need to interface the reed switch with other devices,

above in the image there is a circuit to connect Arduino with reed switch,

first connect the switch and then download the code from my githhub and upload it in Arduino.

Github :- https://github.com/vishalsoniindia/Reed_swith_with...

Reed Switch Working With Arduino

IMG_20210620_231407.jpg
IMG_20210620_231425.jpg

Now when you put magnet near the reed switch the LED will turn on,

take this code as example to make your future devices , for home automation or counting anything with reed switch.

By the way, subscribe to my YouTube channel for more projects like this. I also update my upcoming projects on Instagram.

buy me a coffee! ☕: Donate