IR Infrared Obstacle Avoidance Sensor 2-180cm (DIY) [S246]



https://www.youtube.com/watch?v=iIR1fbxM9uo


*GitHub https://github.com/rdiot/rdiot-s246.git

* Specs

Features:

1.Many kinds of welding methods,vertical and horizontal,expand the scope of application.

2.With precision potentiometer to adjust the range of infrared 38KHz detection.

3.The sensor detects the band enable port,which is convenient for the signal line as the bus line.

4.On power enable the port of the high level of the sensor,the sensor can detect the output signal.

5.Detection range can be up to 1.2 meters.

6.The software is enhanced,and the infrared ray interference of the infrared remote control equipment can be avoided.

7.Using EEPROM to record the work of each module, the probability of interference with each other is down to 1%.

8.Signal low level output.

9.Pin SIP head,application of bread board or through hole project.

10.Board set the jumper JP,short circuit when the output signal has a latch function,or dynamic output.

 

Specifications:

1.Power requirements:5 VDC

2.Communication:digital high/low output

3.Working temperature:32 to 158 degrees F (0 to +70 degrees)

4.Size:2.4cm * 2.8cm

 

Applications:

1.Warehouse door switch (latch set)

2.Security alarm system

3.Automatic production line transportation belt object count

4.Robot control

 

Package Included:

1 * 38KHz IR Infrared Obstacle Avoidance Sensor Switch


* Contents

- Connect

EN ----- X

SIG ----- D2

VCC ----- 5V

GND ----- GND


- Key Code

int T = 2; // INPUT PIN

 

void setup()

{

 Serial.begin(115200); 

 Serial.println("Arduino Examples - IR Sensor");

 Serial.println(" http://docs.whiteat.com/?p=1142");

 pinMode(T, INPUT);

}

 

void loop()

{

 if (LOW == digitalRead(T))

 {

 Serial.println("IR Detected"); //detected

 }

 else

 {

 Serial.print("."); 

 }

 delay(100);

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

IR Infrared Obstacle Avoidance Sensor (IR-08H) [S017]



https://www.youtube.com/watch?v=21SB3fJBSLg


*GitHubhttps://github.com/rdiot/rdiot-s017.git


* Specs

Working voltage: DC 3.3V-5V

Working current: ≥ 20mA

Operating temperature: -10 ℃ - +50 ℃

detection distance :2-40cm

IO Interface: 4-wire interfaces (- / + / S / EN)

Output signal: TTL level (low level there is an obstacle, no obstacle high)

Adjustment: adjust multi-turn resistance

Effective angle: 35 °

Size: 28mm × 23mm

Weight Size: 9g


* Contents

- Connect

GND ----- GND

VCC ----- 5V

S ----- 2

EN ----- X


- Key Code

int T = 2; // INPUT PIN

 

void setup()

{

 Serial.begin(115200); 

 Serial.println("Arduino Examples - IR Sensor");

 Serial.println(" http://docs.whiteat.com/?p=1142");

 pinMode(T, INPUT);

}

 

void loop()

{

 if (LOW == digitalRead(T))

 {

 Serial.println("IR Detected"); //detected

 }

 else

 {

 Serial.print("."); 

 }

 delay(100);

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

Tracking Sensor Module Obstacle Avoidance (KY-033) [S026]



https://www.youtube.com/watch?v=11V1Tuf-Sc8


*GitHub https://github.com/rdiot/rdiot-s026.git


* Specs

Operating voltage: 2.5V - 12V(cannot over 12V)

Working current: 18mA - 20mA at 5V

Output electrical level signal: low level when detecting objects / high level when no objects / 0 or 1 decides if objects exist.


* Contents

- Connect

GND ----- GND

OUT ----- D2

VCC ----- 5V


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004


int T = 2; // INPUT PIN

int count = 0;

String dot = ".";


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  pinMode(T, INPUT);

  delay(1000);


  lcd.clear();

}


void loop()

{


  if(count >= 20)

  {

    dot = "";

    lcd.clear();

    count = 0;

  }

 

  lcd.setCursor(0,0);

  lcd.print("S026:KY-033 Tracking");


  if (LOW == digitalRead(T))

  {

    dot += "Detected";


    lcd.setCursor(0,1);

    lcd.print(dot);

    count = count+8;

  }

  else

  {

    dot += ".";

    lcd.setCursor(0,1);

    lcd.print(dot);

    count++;

  }

  delay(100);


}

Posted by RD IoT RDIoT

댓글을 달아 주세요