Wish List 0

4 Channel Infrared Tracing Module

Rs. 93.00 Rs. 107.00

  • Product Code: SEN-IR
  • SKU -
  • Availability: In Stock
  • Price in reward points: 1
  • For Bulk Order 9962060070
    Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
Features:
-Detection variety
 1mm to 60 CM adjustable, the nearer the overall performance extra strong, white reflects the farthest distance.
-Size
 in the manage panel forty two x 38 x 12mm (duration x width x height).
-Small forward
 25 x 12 x 12mm (period x width x height).
-Output interface
 6 cord interface (1234 to 4 sign output ends, + tremendous electricity, – for the bad electricity is ground)
-The output signal
 TTL degree (may be immediately linked to I/0 microcontroller, infrared mild reflected lower back to the sensor induction, the red indicator light, output low degree; no infrared light, the indicator light does not shine, the output excessive.)"
SPECIFICATIONS:
Working voltage (V)        3.3 ~ 5
Working current (A)        Above 1A
Operating Temperature (℃)  -10 ~ +50
Mounting hole              M3
Detection range            1mm ~ 60 cm adjustable.
OVERVIEW
Working voltage (V)         3.3 ~ 5
Working current (A)         Above 1A
Operating Temperature (℃)   -10 ~ +50
Mounting hole               M3
Detection range             1mm ~ 60 cm adjustable.

PACKAGE INCLUDES:

1 PCS x 4 Channel Ir Infrared Module


//SOURCE CODE TAKEN FROM BELOW LINK

//https://robojax.com/learn/arduino/?vid=robojax-4-channel-infrared-obstacle

  

/*

 * This is the Arduino code 4 channel Infrared Obstacle Sendors  for smart car.

* watch YouTube video: https://youtu.be/6Qs4iFYm_lg

 * 

 *Written by Ahmad Nejrabi for Robojax.com

 *on Jan 15, 2018 at 21:04 in Ajax, Ontario, Canada

 * Permission granted to share this code given that this

 * note is kept with the code.

 * Disclaimer: this code is "AS IS" and for educational purpose only.


 */

/*

4 Channel Infrared Obstacle Avoidance kit

Written by Ahmad Nejrabi for Robojax.com

on Jan 15, 2018 at 21:04 in Ajax, Ontario, Canada


What it does?

this module has 4 IR (infrared) sensors that sense obastacle and based on the position of

obstacle, you can program your arduino to take action. If you are using it for smart car, you 

change the direction of car, apply break or stop it.

 */

  // 4 Infrared Obstacle code for Robojax.com

#define FRONT_LEFT 2 // pin 2 for front-left sensor

#define FRONT_RIGHT 3 // pin 3 for front-right sensor

#define REAR_LEFT 4 // pin 4 for rear-left sensor

#define REAR_RIGHT 5 // pin 5 for rear-right sensor

#define BREAK 8 // pin 8 to apply break or turn LED ON

#define FRONT_OB 9 // pin 9 when obstacle is at front

#define REAR_OB 10 // pin 10 when obstacle is at rear


void setup() {

  Serial.begin(9600);

  pinMode(FRONT_LEFT, INPUT);//define front-left input pin

  pinMode(FRONT_RIGHT, INPUT);//define front-right input pin

  // 4 Infrared Obstacle code for Robojax.com

  pinMode(REAR_LEFT, INPUT);//define rear-left input pin

  pinMode(REAR_RIGHT, INPUT);//define rear-right input pin 

  pinMode(BREAK, OUTPUT);// define pin for break

  pinMode(FRONT_OB,OUTPUT);// define front obstacle detection  pin

  pinMode(REAR_OB,OUTPUT);// define rear obstacle detection  pin

}


void loop() {

    // 4 Infrared Obstacle code for Robojax.com

  int FR = digitalRead(FRONT_RIGHT);// read FRONT_LEFT sensor

  int FL = digitalRead(FRONT_LEFT);// read FRONT_RIGHT sensor

  int RR = digitalRead(REAR_RIGHT);// read REAR_RIGHT sensor

  int RL = digitalRead(REAR_LEFT);// read REAR_LEFT sensor   


  if( FR == LOW || FL == LOW)

  {

    digitalWrite(FRONT_OB,HIGH);

    Serial.println("Front obstacle");

  }else{

    digitalWrite(FRONT_OB,LOW); 

    

  }



  if( RR == LOW || RL == LOW )

  {

    digitalWrite(REAR_OB,HIGH);

    Serial.println("Rear obstacle");

  }else{

    digitalWrite(REAR_OB,LOW); 

   

  } 


  delay(200);

}


15 DAYS

Write a review

Please login or register to review