Electronics

Switch Reed Magnetic Mini Sensor Module

AED 6.30

1

Description

The Reed Switch Sensor Module is a compact and versatile electronic module designed to detect the presence or absence of a magnetic field. The module comprises several components including a Reed Switch, resistors, capacitor, potentiometer, comparator LM393 IC, power, and status LED, all integrated on a single circuit board.

Package Includes:

  • 1 x Reed Switch Sensor Module

Features:

  1. Reed Switch: The module is based on a Reed switch, which is a magnetic switch that is activated by a magnetic field. The switch consists of two ferromagnetic blades that are separated by a small gap. When a magnetic field is applied, the blades are attracted to each other, closing the switch.
  2. Comparator LM393 IC: The module contains a comparator LM393 IC, which is used to amplify and compare the output of the Reed switch. The output of the comparator is used to drive the LED and can also be connected to a microcontroller for further processing.
  3. Resistors and Capacitor: The module contains resistors and a capacitor that are used to set the threshold voltage of the comparator and to filter out any noise that may be present in the signal.
  4. Potentiometer: The module also contains a potentiometer, which is used to adjust the sensitivity of the Reed switch.
  5. Power and Status LED: The module contains a power LED that indicates when the module is powered on, and a status LED that indicates when the Reed switch is activated.
  6. Wide Range of Applications: The Reed Switch Sensor Module can be used in a wide range of applications, such as photocopiers, washing machines, refrigerators, cameras, disinfection cabinets, doors, window magnetics, electromagnetic relays, electronic weighing, level meters, gas meters, water meters, and more.
  7. Easy to Use: The module is easy to use and can be easily connected to a microcontroller or other circuit.

 

Description:

The Reed Switch Sensor Module is a versatile and easy-to-use electronic component that is based on a Reed switch. The module's Reed switch is a magnetic switch that is activated by a magnetic field. It consists of two ferromagnetic blades that are separated by a small gap. When a magnetic field is applied, the blades are attracted to each other, closing the switch. The module contains a comparator LM393 IC that amplifies and compares the output of the Reed switch. The output of the comparator can be used to drive the LED and can also be connected to a microcontroller for further processing. The module also contains a potentiometer that is used to adjust the sensitivity of the Reed switch. it contains a power LED that indicates when the module is powered on and a status LED that indicates when the Reed switch is activated.

 

Principle of Work:

The Reed Switch Sensor Module works by detecting a magnetic field and using a comparator to amplify and compare the output of the Reed switch. When a magnetic field is applied to the Reed switch, the blades of the switch are attracted to each other, closing the switch. The output of the Reed switch is then amplified by the comparator LM393 IC, which compares the output to a threshold voltage set by the resistors and capacitor. If the output of the Reed switch is higher than the threshold voltage, the comparator output goes high, indicating that the switch has been activated. This signal can be used to drive the status LED and can also be connected to a microcontroller or other circuit for further processing. The sensitivity of the Reed switch can be adjusted using the potentiometer, allowing the module to be customized for different applications.

 

Pinout of the Module:

  • VCC: This pin is used to connect the power supply, which is usually 5V DC.
  • GND: This pin is used to connect the ground of the power supply.
  • DO: This is the digital output pin of the module, which is connected to a microcontroller or other circuit to detect the status of the Reed switch.
  • Additional pins for connecting an external LED or other components.

 

Applications: 

  1. Security Systems: The Reed Switch Sensor Module can be used as a security sensor for doors and windows. When a door or window is opened, the Reed Switch is triggered, and it sends a signal to the security system, which can then trigger an alarm or alert the owner.
  2. Proximity Detection: Reed Switch Sensor Modules can be used for proximity detection in a wide range of applications, such as conveyor systems, robotics, and manufacturing. When a metal object passes near the Reed Switch, it triggers the switch and sends a signal to the system.
  3. Liquid Level Sensing: The Reed Switch Sensor Module can be used for liquid level sensing in tanks and containers. When the float containing a magnet rises or falls with the liquid level, it triggers the Reed Switch, which can be used to control pumps or other devices.
  4. Flow Monitoring: Reed Switch Sensor Modules can be used for flow monitoring in pipes and ducts. When a magnetic float passes near the Reed Switch, it triggers the switch and sends a signal to the system, which can be used to control pumps or other devices.
  5. Motor Control: Reed Switch Sensor Modules can be used for motor control in a range of applications, such as fan speed control, machine tool speed control, and robotics. When the motor reaches a certain speed or position, the Reed Switch is triggered, and it sends a signal to the system to adjust the motor speed or position.
  6. Counting: Reed Switch Sensor Modules can be used for counting applications, such as counting the number of parts on a conveyor belt. When a part passes by the Reed Switch, it triggers the switch and sends a signal to the system to increment the count.
  7. Lighting Control: The Reed Switch Sensor Module can be used for lighting control applications, such as turning on lights when a door is opened. When the door is opened, the Reed Switch is triggered, and it sends a signal to the lighting control system to turn on the lights.

 

Circuit:

  • Connect the positive leg of an LED to pin 13 on the Arduino board
  • Connect the negative leg of the LED to a current-limiting resistor and then to ground
  • Connect the DO pin of a reed switch to pin 6 on the Arduino board
  • Connect the GND of the reed switch to ground
  • Connect the VCC of the reed switch to 5v

 

Library:

 No Library Needed

 

Code:  

This code is an Arduino sketch that uses a Reed switch sensor to control an LED.

int LED = 13 ;
int ReedSwitch = 6;

void setup()
{
  Serial.begin(9600);
  pinMode(LED, OUTPUT);
  pinMode(ReedSwitch, INPUT);
}

void loop()
{
  int nilai = digitalRead(ReedSwitch);
  if(nilai == HIGH)
  {
    digitalWrite(LED, HIGH);
    Serial.println("Open");
  }
  else
  {
    digitalWrite(LED, LOW);
    Serial.println("Close");
  }
}



  • First, the code defines the pins used for the LED and Reed switch as variables "LED" and "ReedSwitch", respectively.
  • In the "setup()" function, the serial communication is initialized with a baud rate of 9600, and the LED pin is set as an output, while the Reed switch pin is set as an input.
  • In the "loop()" function, the program reads the value of the Reed switch using the "digitalRead()" function and stores it in the variable "nilai". If the Reed switch is activated (magnetic field is present), the value of "nilai" will be "HIGH", and the LED is turned on by setting the LED pin to "HIGH". The program also prints "terbuka" (open) to the serial monitor. If the Reed switch is not activated, the value of "nilai" will be "LOW", and the LED is turned off by setting the LED pin to "LOW". The program also prints "tertutup" (closed) to the serial monitor.
  • This code can be used as a basis for various applications that involve controlling a circuit based on the status of a Reed switch sensor.

 

Technical Details:

  1. Operating Voltage: 3.3V to 5V DC
  2. Output format: Digital switching output (0 and 1)
  3. LED indicators for output and power
  4. PCB Size: 32mm x 14mm
  5. LM393 based design
  6. Operating Temperature: -40°C to 85°C
  7. Operating Current: <15mA
  8. Response Time: <20ms
  9. PCB Material: FR-4
  10. PCB Thickness: 1.6mm
  11. Mounting Holes: 3mm
  12. Weight: 2g

 

Resources:

Tutorial

 

Comparisons:

The Reed Switch Sensor Module and Vibration/Tilt Sensor Module have some similarities, but also some key differences:

Reed Switch Sensor Module:

  • Based on a Reed switch activated by a magnetic field
  • Operating voltage of 3.3V to 5V DC
  • Digital switching output (0 and 1)
  • Uses LM393 IC for amplification and comparison
  • Contains resistors, a capacitor, and a potentiometer for setting threshold voltage and sensitivity
  • Small, cheap, and easily available
  • Can be used in a wide range of applications

Vibration/Tilt Sensor Module:

  • Based on a metal ball bearing that moves within a metal tube when tilted or vibrated
  • Operating voltage of 3.3V to 5V DC
  • Digital switching output (0 and 1)
  • Uses SW-200D switch for detection
  • Contains an LM393 IC for amplification and comparison
  • Can detect both vibration and tilt
  • Small, cheap, and easily available
  • Can be used in a wide range of applications, such as burglar alarms, smart cars, and toy cars.

Both modules are easy to use and have similar operating voltages, output formats, and sizes. However, the Reed Switch Sensor Module is based on a magnetic field and has a potentiometer for adjusting sensitivity, while the Vibration/Tilt Sensor Module is based on a metal ball bearing and can detect both vibration and tilt. The choice between the two modules will depend on the specific application and requirements.