Sale!

NJK-5002B Hall Effect Proximity Switch Magnetic Inductive Sensor PNP Three-Wire

Original price was: 8,40 €.Current price is: 4,20 €. Excluding VAT

PNP Hall sensor switch NJK-5002B. Suitable for Arduino and electronics projects.

3 in stock (can be backordered)

Domande su questo prodotto? Scrivi a Lana su WhatsApp

🎬 The product on video

Description

What it is

The NJK-5002B proximity switch is a three-wire PNP Hall sensor designed to detect the presence of an object through a magnetic field. This device is suitable for various electronic and automation projects, such as home or industrial alarm systems.

Features

  • PNP Hall Sensor
  • Suitable for Arduino and electronics projects
  • Power Supply: 6-36V DC
  • Three-wire connector

What it is for

The NJK-5002B proximity switch is ideal for applications requiring object detection through a magnetic field. It is suitable for home or industrial automation projects where the presence of an object or movement needs to be detected. It can be used with Arduino or ESP to create alarm or automatic control systems.

Tutorial: How to Use the NJK-5002B Proximity Switch

The NJK-5002B proximity switch is a Hall sensor suitable for detecting the presence of an object through a magnetic field. It is ideal for home or industrial automation projects where the presence of an object or movement needs to be signaled.

What you need

  • Arduino Uno
  • Magnetic field (magnet)
  • Connection cable

Steps

  1. Connect the Hall sensor NJK-5002B to the Arduino Uno using a connection cable. Check the sensor specifications for the correct pins.
  2. Connect the sensor output pin to the Arduino digital input pin.
  3. Place the magnet near the sensor to test its function.
  4. Write and upload the Arduino sketch to read the sensor state.
  5. Check if the sensor changes state when the magnet approaches.
  6. If necessary, adjust the sensitivity of the sensor or the position of the magnet.
  7. Test the system with various metallic objects to see if the sensor is sensitive only to the magnet.
  8. Implement the system in an automation or monitoring project.

Example code

const int sensorPin = 2; // collega il sensore al pin 2
digitalWrite(sensorPin, HIGH); // verifica lo stato del sensore
Serial.println(digitalRead(sensorPin));

Mini project

Create a home alarm system that activates an audio signal when an object approaches a specific point.

Common mistakes

  • Connect the sensor to the wrong pin on the Arduino.
  • Do not verify the sensor’s sensitivity to the magnet.
  • Do not test the system with various objects to check the sensor’s specificity.
  • Do not implement the system in a real-world application context.

Recommended accessories

  • Hall effect sensor magnet
  • Arduino Uno
  • Connection cable
  • Speaker or buzzer

Frequently asked questions

How can I increase the sensor’s sensitivity?
Check the sensor’s datasheet for any sensitivity adjustment options.

Can the sensor detect non-metallic objects?
No, the Hall effect sensor detects only magnetic fields, so it is specific to magnetic objects or materials.

Which Arduino pins should I use?
Connect the sensor to the Arduino’s digital input pin, check the datasheet for additional specifications.

Reviews

There are no reviews yet.

Be the first to review “NJK-5002B Hall Effect Proximity Switch Magnetic Inductive Sensor PNP Three-Wire”

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