รหัสสินค้า | AG00696 |
หมวดหมู่ | LIDAR / เซ็นเซอร์วัดระยะทาง / ความเร็ว Distance / Speed |
ราคา | 85.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
Inductive Proximity Sensor Detection Switch LJ12A3-4-Z/BY (PNP) เซ็นเซอร์ตรวจจับโลหะระยะสูงสุด 4mm
เซนเซอร์พร็อกซิมิตี้ ตรวจจับโลหะ เช่น อลูมิเนี่ยม เหล็ก โลหะ Conductor ตัวเหนี่ยวนำ ระยะตรวจจับสูงสุด 4mm ใช้ไฟเลี้ยง 6-36V กระแส 300mA สายยาวประมาณ 1.2 เมตร
In this tutorial, we will learn about the LJ12A3-4-Z/BX sensor, what is an inductive proximity sensor and we will build a simple project using the LJ12A3-4-Z/BX sensor and an Arduino.
The LJ12A3-4-Z/BX Module will be our main component for this tutorial. This module has a stainless steel threaded body with 3 wires for connection. Figure 1 shows the module as seen in fritzing.
The LJ12A3-4-Z/BX module has three wires.
Wire Colour | Description |
---|---|
Brown | +5V |
Black | Output |
Blue | GND |
An inductive proximity sensor uses current-induced magnetic fields to detect nearby metal objects.
Our project will use the LJ12A3-4-Z/BX sensor and turn on a relay when it detects a metal object nearby.
For this project, we need the following components:
Figure 2 shows the connection between the Arduino Uno and the LJ12A3-4-Z/BX Inductive Proximity NPN Sensor.
The LJ12A3-4-Z/BX module pins are connected to the Arduino Uno board as follows:
Component Pin | UNO Board Pin |
---|---|
Brown | +5V |
Black | A0 |
Blue | GND |
CODE:
Below is the Arduino sketch for our project. I have added comments to explain important parts of the code. Save the code proximity_sensor.ino and upload it to your Arduino board.
// Arduino and proximity sensor void setup () { Serial.begin(9600); // initialize serial } void loop () { Serial.print("Analog pin: "); // display analog values to serial Serial.print(analogRead(A0)); }
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,393,408 ครั้ง |
ผู้ชมทั้งหมด | 5,896,486 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 16 ก.ย. 2568 |