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

IE18-D80NK Infrared obstacle avoidance sensor proximity switch smart car 3- 80 cm Infrared Proximity Sensor เป็นเซ็นเซอร์ตรวจจับวัตถุที่ใช้หลักการสะท้อนของคลื่นอินฟาเรด สามารถกำหนดระยะในการทำงานได้โดยปรับค่าความต้านทาน(แบบมีขั่วต่อ Connector) NO

Electrical characteristics: 

     U: 5VDC 

     I: 100mA 

     Sn: 3-80CM

      Diameter: 17MM 

     sensor length: 45MM 

     lead length: 45CM

 

Applications:

 

     1. Automatic counting equipment for production line 

     2, multi-function reminder 

     3, walking maze robot 

     4, kitchen automation system 

     5, security anti-theft system, etc.

 

Photoelectric sensor (photoelectric switch) NPN normally open 

model: E18-D80NK.

 

Technical parameters of photoelectric switch E18: 

1. Output current DC/SCR/relay Control output: 100mA/5V power supply 

2. Consumption current DC<25mA 

3. Response time <2ms 

4. Directional angle: ≤15°, effective distance 3-80CM Adjustable 

5, detection object: transparent or opaque body 

6, working environment temperature: -25 °C ~ +55 °C 

7, standard detection object: sunlight below 10000LX incandescent lamp below 3000LX 

8, shell material: plastic





Code:ใช้ร่วมกับ B027 ได้เลย

Blue = Gnd
Brown =  5v
Black = Out  to pin 2

/*  

    Arduino with Test B027 Infrared Obstacle Avoidance Sensor Modul sensor distance

    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(" Warning Detect "); 

       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("Clear OK");

        Serial.println("");

        

        state = HIGH;       // update variable state to HIGH

    }

  }

}

 

 

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

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

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