Sale!

Magnetic Reed Switch Sensor 2.5*14mm NO NC

Original price was: 4,85 €.Current price is: 2,39 €. Excluding VAT

Magnetic Reed Sensor relay switch 2.5*14mm N/O N/C

6 in stock (can be backordered)

Domande su questo prodotto? Scrivi a Lana su WhatsApp

Categories: ,

🎬 The product on video

Description

What it is

The Reed magnetic switch relay switch 2.5*14mm N/O N/C is an electronic component used to detect the presence or absence of a magnetic field. This type of sensor is ideal for projects that require an automatic response to the position of doors, lids, or other mechanisms.

Features

  • Type: Reed magnetic switch relay switch
  • Dimensions: 2.5*14mm
  • Contacts: N/O (No Operation) and N/C (Common)

What it is for

This Reed sensor can be used in various DIY projects such as home alarm systems, security devices for doors or windows, and any other case where it is necessary to monitor the presence or absence of a magnetic field. It is compatible with Arduino and other microcontrollers.

Tutorial: How to use Reed Magnetic Switch Relay

The magnetic reed sensor is a useful component for makers and electronics enthusiasts who want to monitor the presence or absence of a magnetic field. This sensor can be used in DIY projects such as alarm doors, home security devices, or any other case where it is necessary to detect the position of a door or a lid.

What you need

  • Arduino Uno
  • Connectors for the reed sensor
  • Batter

Steps

  1. Connect the reed sensor pins to the Arduino digital port.
  2. Check the polarity of the connectors and make sure they are compatible with the Arduino power supply.
  3. Write the code to read the state of the sensor (open/closed).
  4. Test the reed sensor by bringing a magnet close to the device.
  5. If necessary, modify the Arduino pins in the code based on your connectors.
  6. Try connecting the reed sensor to a relay to control external devices.
  7. Verify that the sensor functions correctly before integrating it into more complex projects.
  8. Insert the battery and test the entire system without being connected to the PC.

Example code

const int reedPin = 2; // Verifica sul datasheet il pin utilizzato
int statoReed;
void setup() {
pinMode(reedPin, INPUT);
Serial.begin(9600);}
void loop() {
statoReed = digitalRead(reedPin);
if (statoReed == HIGH) { Serial.println("Porta aperta"); }
else { Serial.println("Porta chiusa"); }}

Mini project

Create a simple home alarm system. Connect the reed sensor to a door and use Arduino to send notifications when the door is opened.

Common mistakes

  • Connector misalignment
  • Incorrect pins in the code
  • Insufficient magnetic field
  • Incorrect power supply

Recommended accessories

  • Arduino Uno (SKU: ARD001234)
  • Connections for Arduino (SKU: ARD005678)
  • 5V Relay (SKU: ARD009101)

Frequently asked questions

Does the reed sensor work without a magnetic field?
No, the reed sensor requires a magnetic field to activate.

What is the maximum distance between the sensor and the magnet?
Check the product datasheet.

Reviews

There are no reviews yet.

Be the first to review “Magnetic Reed Switch Sensor 2.5*14mm NO NC”

Your email address will not be published. Required fields are marked *