Qre1113 Line Sensor Breakout Analog
Rs. 32.00 Rs. 39.00
- Brand: https://www.onsemi.com/products/optoelectronics/infrared/reflect
- Product Code: SEN-LINE
- SKU -
- Availability: In Stock
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS:
-Phototransistor output
-No contact surface sensing
-Miniature package
OVERVIEW:
-5VDC operating voltage
-25mA supply current
-Optimal sensing distance: 0.125" (3mm)
PACKAGE INCLUDES:
1 PCS x Qre1113 Line Sensor Breakout Analog
> https://www.onsemi.com/products/optoelectronics/infrared/reflective-sensor/qre1113
//Code for the QRE1113 Digital board
//Outputs via the serial terminal - Lower numbers mean more reflected
//3000 or more means nothing was reflected.
int QRE1113_Pin = 2; //connected to digital 2
void setup(){
Serial.begin(9600);
}
//SOURCE CODE TAKEN FROM BELOW LINK
//https://forum.arduino.cc/index.php?topic=431248.0
void loop(){
int QRE_Value = readQD();
Serial.println(QRE_Value);
}
int readQD(){
//Returns value from the QRE1113
//Lower numbers mean more refleacive
//More than 3000 means nothing was reflected.
pinMode( QRE1113_Pin, OUTPUT );
digitalWrite( QRE1113_Pin, HIGH );
delayMicroseconds(10);
pinMode( QRE1113_Pin, INPUT );
long time = micros();
//time how long the input is HIGH, but quit after 3ms as nothing happens after that
while (digitalRead(QRE1113_Pin) == HIGH && micros() - time < 3000);
int diff = micros() - time;
return diff;
}
15 days