Stufin
Home Quick Cart Profile

Tube Type Inductive Proximity Sensor Detection Switch NPN DC5-36V 4mm Normally Open switch LJ12A3-4-Z/BX

Buy Now on Stufin

Component Name

Tube Type Inductive Proximity Sensor Detection Switch NPN DC5-36V 4mm Normally Open switch LJ12A3-4-Z/BX

Overview

The LJ12A3-4-Z/BX is a tube-type inductive proximity sensor detection switch, designed to detect the presence or absence of metal objects within a specific range. This sensor is widely used in various industrial automation, robotics, and IoT applications.

Functionality

The LJ12A3-4-Z/BX inductive proximity sensor operates on the principle of electromagnetic induction, where an oscillating circuit creates an electromagnetic field around the sensor's coil. When a metal object enters the detection zone, it disturbs the electromagnetic field, causing the sensor to trigger an output signal.

The sensor has a normally open (NO) switch configuration, meaning that the output is open (off) when no metal object is detected, and closes (on) when an object is present within the detection range.

Key Features

  • Detection Range: The LJ12A3-4-Z/BX has a detection range of 4mm, allowing it to detect metal objects within a range of 4mm from the sensor's tip.
  • Power Supply: The sensor operates on a DC power supply ranging from 5V to 36V, making it suitable for a wide range of applications.
  • Output: The sensor has an NPN (Negative-Positive-Negative) output configuration, which is commonly used in industrial applications.
  • Switching Mode: The sensor has a normally open (NO) switch configuration, making it ideal for applications where the switch needs to be closed (on) when an object is detected.
  • Tube-Type Design: The sensor's tube-type design provides a compact and rugged construction, making it suitable for use in harsh industrial environments.
  • High Reliability: The LJ12A3-4-Z/BX is designed to provide high reliability and long-term stability in demanding applications.
  • Environmental Operating Range: The sensor can operate in a wide temperature range, from -25C to 70C, and is resistant to humidity, making it suitable for use in various industrial environments.

Operating voltage

DC5-36V

Output current

100mA

Response time

10ms

Frequency

10kHz

Detection range

4mm

Operating temperature

-25C to 70C

Storage temperature

-40C to 80C

Humidity

35% to 85% RH

Dimensions

12mm x 45mm (diameter x length)

Applications

Industrial automation

Robotics

Machine tools

Conveyor systems

Material handling

IoT applications

Certifications and Compliance

The LJ12A3-4-Z/BX meets the following certifications and compliances

CE (Conformit Europene) marked

RoHS (Restriction of Hazardous Substances) compliant

REACH (Registration, Evaluation, Authorization, and Restriction of Chemicals) compliant

Note

Please consult the manufacturer's documentation and datasheet for specific usage guidelines, safety precautions, and application notes.

Pin Configuration

  • Tube Type Inductive Proximity Sensor Detection Switch NPN DC5-36V 4mm Normally Open switch LJ12A3-4-Z/BX
  • Pin Description:
  • The LJ12A3-4-Z/BX inductive proximity sensor has 3 pins, each with a specific function. Here's a detailed explanation of each pin:
  • 1. VCC (Pin 1):
  • Function: Power supply pin
  • Voltage range: DC 5-36V
  • Description: This pin is used to supply power to the sensor. Connect it to a DC power source within the specified voltage range.
  • 2. GND (Pin 2):
  • Function: Ground pin
  • Description: This pin is used to connect the sensor to the ground of the circuit. It provides a return path for the current supplied to the sensor.
  • 3. NO (Pin 3):
  • Function: Normally Open (NO) output pin
  • Description: This pin is the output of the sensor. When an object is detected within the sensor's range, the output switches from an open circuit to a closed circuit, allowing current to flow. The output is NPN (Negative-Positive-Negative) type, which means it sinks current to ground when the output is active.
  • Connection Diagram:
  • Here's a point-by-point guide to connecting the pins:
  • Step 1: Power Supply Connection
  • Connect Pin 1 (VCC) to a DC power source (5-36V) using a suitable wire or connector.
  • Step 2: Ground Connection
  • Connect Pin 2 (GND) to the ground of the circuit or the negative terminal of the power source using a suitable wire or connector.
  • Step 3: Output Connection
  • Connect Pin 3 (NO) to the input of a load or a circuit that requires the sensor's output signal. Since the output is NPN type, it's recommended to use a pull-up resistor (e.g., 1 k) to the positive supply voltage to ensure the output is properly driven.
  • Example Connection Diagram:
  • Suppose you want to connect the sensor to a microcontroller or a development board like Arduino. Here's an example connection:
  • Pin 1 (VCC) -> 5V power pin on the microcontroller/board
  • Pin 2 (GND) -> GND pin on the microcontroller/board
  • Pin 3 (NO) -> Digital input pin on the microcontroller/board (with a 1 k pull-up resistor to 5V)
  • Important Notes:
  • Make sure to use a stable power supply within the specified voltage range to ensure reliable operation of the sensor.
  • Use suitable wire gauges and connectors to prevent voltage drops and ensure reliable connections.
  • Keep the sensor away from strong magnetic fields and other sources of electromagnetic interference (EMI) to maintain its accuracy and reliability.
  • By following these guidelines, you can properly connect and integrate the LJ12A3-4-Z/BX tube type inductive proximity sensor into your IoT project or application.

Code Examples

Tube Type Inductive Proximity Sensor Detection Switch NPN DC5-36V 4mm Normally Open switch LJ12A3-4-Z/BX
Overview
The LJ12A3-4-Z/BX is a tube type inductive proximity sensor detection switch that operates on a DC power supply of 5-36V. It has a normally open (NO) switch output and provides a 4mm sensing distance. This sensor is widely used in industrial automation, robotics, and IoT applications for detecting metal objects.
Pinout
The sensor has three pins:
VCC (Red): Power supply (DC 5-36V)
 GND (Black): Ground
 OUT (White): Normally Open (NO) switch output
Working Principle
The LJ12A3-4-Z/BX works on the principle of inductive sensing. When a metal object is brought within the sensing distance of the sensor, the electromagnetic field generated by the sensor coil is disturbed, causing the output to switch ON. The output remains ON as long as the object is within the sensing range.
Code Examples
### Example 1: Basic On/Off Detection with Arduino
In this example, we will connect the LJ12A3-4-Z/BX to an Arduino board to detect the presence of a metal object.
Connections:
VCC (Red) to Arduino 5V
 GND (Black) to Arduino GND
 OUT (White) to Arduino Digital Pin 2
Code:
```c++
const int sensorPin = 2;  // Output pin of the sensor
void setup() {
  pinMode(sensorPin, INPUT);
  Serial.begin(9600);
}
void loop() {
  int sensorState = digitalRead(sensorPin);
  if (sensorState == HIGH) {
    Serial.println("Metal object detected!");
  } else {
    Serial.println("No metal object detected.");
  }
  delay(100);
}
```
### Example 2: Object Counter with Raspberry Pi (Python)
In this example, we will connect the LJ12A3-4-Z/BX to a Raspberry Pi to count the number of metal objects detected.
Connections:
VCC (Red) to Raspberry Pi 5V
 GND (Black) to Raspberry Pi GND
 OUT (White) to Raspberry Pi GPIO 17
Code:
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Set up sensor pin as input
sensor_pin = 17
GPIO.setup(sensor_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
# Initialize counter
count = 0
while True:
    if GPIO.input(sensor_pin) == GPIO.HIGH:
        print("Metal object detected!")
        count += 1
        print("Count:", count)
        time.sleep(0.5)  # Debounce time
```
### Example 3: Automation Control with ESP32 (MicroPython)
In this example, we will connect the LJ12A3-4-Z/BX to an ESP32 board to control a relay module based on the sensor output.
Connections:
VCC (Red) to ESP32 5V
 GND (Black) to ESP32 GND
 OUT (White) to ESP32 GPIO 32
 Relay module: Connect the relay control pin to ESP32 GPIO 15
Code:
```python
import machine
import time
# Set up sensor pin as input
sensor_pin = machine.Pin(32, machine.Pin.IN)
# Set up relay control pin as output
relay_pin = machine.Pin(15, machine.Pin.OUT)
while True:
    if sensor_pin.value() == 1:
        print("Metal object detected!")
        relay_pin.value(1)  # Turn on the relay
    else:
        relay_pin.value(0)  # Turn off the relay
    time.sleep(0.5)
```
Note: In all examples, ensure that the sensor is properly connected and configured according to the datasheet and application requirements.