ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า
TCRT5000 infrared reflection sensor

TCRT5000 Reflective Infrared Photoelectric Switches Module เป็นโมดูลอินฟราเรดแต่เหมาะสำหรับนำไปใช้ตรวจจับสีขาวดำโดยใช้แสงอินฟราเรด รองรับไฟ 3.3-5V ระยะการตรวจจับ 1mm-8mm ปรับความไวของการตรวจจับโดยการปรับ Potentiometer บนบอร์ด สามารถนำไปประดิษฐ์ให้รถวิ่งตามเส้นได้สีดำได้
 
ข้อมูล TCRT5000 Module
 
Supply Voltage: 3.3V~5V
Detect distance: 1mm-8mm
Digital Outputs HIGH when objects detected
On-board indicator LED to show the results
On-board potentiometer to adjust the sensitivity
On-board LM393 chip
 
This IR reflective sensor utilizes a TCRT5000 to detect color and distance. It emits IR and then detects if it receives the echo. This sensor is often used in line following robots, auto data logging on utility meters, because this module can sense if a surface is white or black.
 
The measuring distance range from 1mm to 8mm, and the central point is about 2.5mm. There is also an on-board potentiometer to adjust the sensitivity.
 
The infrared diode will emmitting the infrared continutelly when the module connect to the power, when the emitted infrared light has not been reflected or the strength is not big enough,the triode will in the off state, at this time, D0 output logic LOW and the signal indicate LED off.
 
 TCRT5000 Module Use:



Code:
/*  
    Arduino with Test B021 TCRT5000 infrared reflection sensor
    For complete project details, visit:Arduinoshop99
*/
 
int led = 13;                // the pin that the LED is atteched to
int sensor = 2;              // the pin that the sensor is atteched to
int state = HIGH;             // by default, no motion detected
int val = 0;                 // variable to store the sensor status (value)
 
void setup() {
  pinMode(led, OUTPUT);      // initalize LED as an output
  pinMode(sensor, INPUT);    // initialize sensor as an input
  Serial.begin(115200);        // initialize serial
}
 
void loop(){
  val = digitalRead(sensor);   // read sensor value
  if (val == LOW) {           // check if the sensor is LOW 
    digitalWrite(led, LOW);   // turn LED OFF
    delay(100);                // delay 100 milliseconds 
    
    if (state == HIGH) {
      Serial.println(" White "); // turn LED OFF
       Serial.println(""); 
      state = LOW;       // update variable state to C
    }
  } 
  else {
      digitalWrite(led, HIGH); // turn LED ON
      delay(200);             // delay 200 milliseconds 
      
      if (state == LOW){
        Serial.println(" Black");  // turn LED ON
        Serial.println("");
        
        state = HIGH;       // update variable state to HIGH
    }
  }
}
 


 

เงื่อนไขอื่นๆ
Tags

วิธีการชำระเงิน

บมจ. ธนาคารกรุงไทย สาขาโรงไฟฟ้าบางปะกง ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
บมจ. ธนาคารกรุงไทย สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
พร้อมเพย์ สาขา- -
Scan this!
สนธยา ใจผ่อง
063-xxxxxx-8
Accept All Banks | รับเงินได้จากทุกธนาคาร
พูดคุย-สอบถาม