NJK-5002C Hall Effect Sensor – NPN NO 3-Wire Magnet | Arduino Compatible

  • NPN Normally Open (NO) magnetic switch
  • 3-wire connection: VCC, GND, Output
  • Wide voltage range: 4.5V–30V DC
  • Built-in LED indicator for magnetic detection
  • Fast, non-contact sensing
  • Compatible with Arduino and other microcontrollers
  • Durable and compact M12 threaded design
SKU: aA1788 Categories: , Tags: , ,

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

245,00 EGP

11 People watching this product now!

Payment Methods:

Description

Take your automation projects to the next level with the NJK-5002C Hall Effect Sensor, a reliable, non-contact magnetic switch ideal for detecting the presence of ferromagnetic objects. This NPN-type, normally open (NO) 3-wire sensor is perfect for use with Arduino, Raspberry Pi, or other microcontroller platforms, and operates in a wide voltage range of 4.5V to 30V DC, making it suitable for both low-power and industrial applications.

Whether you’re designing a smart can crusher, door sensor, or automated counter, the NJK-5002C ensures consistent and accurate triggering in the presence of a magnetic field.


✅ Features:

  • NPN Normally Open (NO) Output
    Activates output only when magnetic field is detected.

  • Wide Operating Voltage (4.5V – 30V DC)
    Flexible power compatibility for DIY and industrial applications.

  • 3-Wire Configuration (Brown: VCC, Blue: GND, Black: Output)
    Simple wiring and easy integration with most microcontrollers.

  • Non-Contact Magnetic Detection
    Detects the presence of magnets without physical contact, increasing durability and lifespan.

  • Built-in LED Indicator
    Visual feedback when magnetic field is detected.

  • Fast Response Time
    Ideal for automation systems where quick sensing is critical.

  • Rugged and Compact Design
    Suitable for harsh environments or confined spaces.

Tips for Arduino Users:

  • Sensor Output is Active LOW when a magnet is nearby — even though it’s labeled “NPN NO”, the output pin pulls LOW when active.

  • If you’re using INPUT_PULLUP on the Arduino, the digitalRead() will return LOW when the sensor detects the magnet.

  • Connect the Black wire to Arduino pin, Blue to GND, Brown to 5V (or 12V with appropriate voltage divider or optocoupler).

  • Always test the output using a multimeter or LED before connecting to the Arduino to verify behavior.

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
NJK-5002CBrown/Blue/Black5-12V / GND / board digital pin (use INPUT_PULLUP)
📟
NJK-5002C Hall Effect Sensor - NPN NO 3-Wire Magnet | Arduino Compatible
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
NJK-5002C Hall Effect Sensor - NPN NO 3-Wire Magnet | Arduino Compatible - Arduino Uno
NJK-5002C Hall Effect Sensor - NPN NO 3-Wire Magnet | Arduino Compatible - Arduino Nano
NJK-5002C Hall Effect Sensor - NPN NO 3-Wire Magnet | Arduino Compatible - Arduino Mega
NJK-5002C Hall Effect Sensor - NPN NO 3-Wire Magnet | Arduino Compatible - ESP32
NJK-5002C Hall Effect Sensor - NPN NO 3-Wire Magnet | Arduino Compatible - ESP8266
NJK-5002C Hall Effect Sensor - NPN NO 3-Wire Magnet | Arduino Compatible - STM32
NJK-5002C Hall Effect Sensor - NPN NO 3-Wire Magnet | Arduino Compatible - Raspberry Pi Pico
📄 File: njk-5002c_hall_effect_sensor_-_npn_no_3-wire_magnet_|_arduino_compatible_-_arduino_uno.inoArduino Uno
332 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital pin 2 on Arduino Uno
6#define SWITCH_PIN 2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SWITCH_PIN, INPUT_PULLUP);
11}
12
13void loop() {
14 int state = digitalRead(SWITCH_PIN);
15 Serial.println(state == LOW ? "Magnet: TRIGGERED" : "Magnet: idle");
16 delay(200);
17}
📄 File: njk-5002c_hall_effect_sensor_-_npn_no_3-wire_magnet_|_arduino_compatible_-_arduino_nano.inoArduino Nano
333 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital pin 2 on Arduino Nano
6#define SWITCH_PIN 2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SWITCH_PIN, INPUT_PULLUP);
11}
12
13void loop() {
14 int state = digitalRead(SWITCH_PIN);
15 Serial.println(state == LOW ? "Magnet: TRIGGERED" : "Magnet: idle");
16 delay(200);
17}
📄 File: njk-5002c_hall_effect_sensor_-_npn_no_3-wire_magnet_|_arduino_compatible_-_arduino_mega.inoArduino Mega
333 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital pin 2 on Arduino Mega
6#define SWITCH_PIN 2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SWITCH_PIN, INPUT_PULLUP);
11}
12
13void loop() {
14 int state = digitalRead(SWITCH_PIN);
15 Serial.println(state == LOW ? "Magnet: TRIGGERED" : "Magnet: idle");
16 delay(200);
17}
📄 File: njk-5002c_hall_effect_sensor_-_npn_no_3-wire_magnet_|_arduino_compatible_-_esp32.inoESP32
326 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital pin 4 on ESP32
6#define SWITCH_PIN 4
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SWITCH_PIN, INPUT_PULLUP);
11}
12
13void loop() {
14 int state = digitalRead(SWITCH_PIN);
15 Serial.println(state == LOW ? "Magnet: TRIGGERED" : "Magnet: idle");
16 delay(200);
17}
📄 File: njk-5002c_hall_effect_sensor_-_npn_no_3-wire_magnet_|_arduino_compatible_-_esp8266.inoESP8266
330 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital pin D4 on ESP8266
6#define SWITCH_PIN D4
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SWITCH_PIN, INPUT_PULLUP);
11}
12
13void loop() {
14 int state = digitalRead(SWITCH_PIN);
15 Serial.println(state == LOW ? "Magnet: TRIGGERED" : "Magnet: idle");
16 delay(200);
17}
📄 File: njk-5002c_hall_effect_sensor_-_npn_no_3-wire_magnet_|_arduino_compatible_-_stm32.inoSTM32
330 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital pin PB4 on STM32
6#define SWITCH_PIN PB4
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SWITCH_PIN, INPUT_PULLUP);
11}
12
13void loop() {
14 int state = digitalRead(SWITCH_PIN);
15 Serial.println(state == LOW ? "Magnet: TRIGGERED" : "Magnet: idle");
16 delay(200);
17}
📄 File: njk-5002c_hall_effect_sensor_-_npn_no_3-wire_magnet_|_arduino_compatible_-_raspberry_pi_pico.inoRaspberry Pi Pico
338 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital pin 2 on Raspberry Pi Pico
6#define SWITCH_PIN 2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SWITCH_PIN, INPUT_PULLUP);
11}
12
13void loop() {
14 int state = digitalRead(SWITCH_PIN);
15 Serial.println(state == LOW ? "Magnet: TRIGGERED" : "Magnet: idle");
16 delay(200);
17}
NPN normally-open hall-effect proximity sensor.

Specification

Specification

WeightWeight6 g
Dimensions3 × 2 × 1 cm
modelNJK-5002C
sensor-typeHall Effect (Magnetic Proximity)
output-typeNPN, Normally Open (NO)
voltage-range4.5V to 30V DC
current-consumption≤ 10mA
detection-distance~10mm (depends on magnet size)
output-current-max150mA
cable-length~1 meter
output-indicatorBuilt-in LED
wire-color-codeBrown: VCC, Blue: GND, Black: Output
mountingM12 threaded body (optional nut included)
operating-temp-20°C to +60°C

Customer Reviews