รู้จักสินค้านี้
Infrared Obstacle Avoidance Sensor Module
คำอธิบายสินค้า Infrared Obstacle Avoidance Sensor Module
ป็นโมดูลตรวจจับวัตถุระยะใกล้ มีราคาถูก ขนาดเล็ก สะดวกในการนำไปใช้ติดตั้งกับงานจำพวก หุ่นยนต์, Smart car, หุ่นยนต์หลบสิ่งกีดขวาง เป็นต้น โดยการทำงานของตัวโมดูลนี้ เริ่มต้นโดยให้ หลอด Infrared LED ทำการส่งสัญญาณ เป็นแสงอินฟราเรดออกไปตกกระทบกับวัตถุที่ตรวจพบในระยะ และทำการสะท้อนกลับมายังตัวหลอดโฟโต้ไดโอดที่ทำหน้าที่รับแสงอินฟราเรด
โดยส่วนมาก ตัวโมดูลจะให้ค่า output ออกมาเป็น Digital signal แต่สำหรับบางโมดูลอาจจะรองรับ output แบบ Analog signal ด้วย ส่วนตัว R ปรับค่านั้นใช้ในการปรับความไวต่อการตรวจจับแสงอินฟราเรด ซึ่งจะส่งผลต่อระยะในการตรวจพบวัตถุของตัวเซนเซอร์
คุณสมบัติเพิ่มเติม โมดูลอินฟราเรด
- When the module detects obstacles in front of the signal, the circuit board green indicator light level, while the OUT port continuous output low-level signals, the module detects a distance of 2 ~ 80cm, detection angle 35 , the detection distance can be potential adjustment with adjustment potentiometer clockwise, the increase in detection distance; counterclockwise adjustment potentiometer, the detection distance decreased.
- the sensor active infrared reflection detection, target reflectivity and shape of the detection distance of the key. The black minimum detection range, white maximum; small area object distance is small, a large area from the large.
- The sensor module output port OUT can be directly connected with the microcontroller IO port can also be driven directly to a 5V relay; Connection: VCC-VCC; GND-GND; OUT-IO
- The comparator using LM393, stable;
- 3-5V DC power supply module can be used. When the power is turned on, the red power LED is lit;
- With the screw holes of 3mm, easy to install;
- Board size: 3.1CM * 1.5CM
- Each module in the delivery has threshold comparator voltage adjustable via potentiometer, special circumstances, please do not adjust the potentiometer.
การเชื่อมต่อสาย Interface (3-wire)
- VCC external 3.3V-5V voltage (can be directly connected with the a 5v microcontroller and 3.3v microcontroller)
- GND external GND
- OUT board digital output interface (0 and 1)
ตัวอย่างโค้ต Infrared Obstacle Avoidance Sensor Module
/ IR Obstacle Collision Detection Module // Henry's Bench int LED = 13; // Use the onboard Uno LED int isObstaclePin = 7; // This is our input pin int isObstacle = HIGH; // HIGH MEANS NO OBSTACLE void setup() { pinMode(LED, OUTPUT); pinMode(isObstaclePin, INPUT); Serial.begin(9600); } void loop() { isObstacle = digitalRead(isObstaclePin); if (isObstacle == LOW) { Serial.println("OBSTACLE!!, OBSTACLE!!"); digitalWrite(LED, HIGH); } else { Serial.println("clear"); digitalWrite(LED, LOW); } delay(200); }