Description
Line Sensor Breakout - QRE1113 - Analogue - Sparkfun (ROB-09453)
This version of the QRE1113 breakout board features an easy-to-use analog output, which will vary depending on the amount of IR light reflected back to the sensor. This tiny board is perfect for line sensing applications and can be used in both 3.3V and 5V systems.
The board’s QRE1113 IR reflectance sensor is comprised of two parts - an IR emitting LED and an IR sensitive phototransistor. When you apply power to the VCC and GND pins the IR LED inside the sensor will illuminate. A 100O resistor is on-board and placed in series with the LED to limit current. A 10kO resistor pulls the output pin high, but when the light from the LED is reflected back onto the phototransistor the output will begin to go lower. The more IR light sensed by the phototransistor, the lower the output voltage of the breakout board.
These sensors are widely used in line following robots - white surfaces reflect much more light than black, so, when directed towards a white surface, the voltage output will be lower than that on a black surface.
The power input and analog output pins are brought out to a 3-pin, 0.1" pitch header. The board also has a single mounting hole if you want to screw the board onto something.
Board Dimensions:
- Length: 14mm (0.55")
- Width: 7.6mm (0.30")
Line Sensor Features:
- 5VDC operating voltage
- 25mA supply current
- Optimal sensing distance: 0.125" (3mm)
Line Sensor Schematic:
Getting started with the Line Sensor:
This analog board is very simple, it outputs an analog voltage on the signal pin relative to how much light is reflected. Hooking the QRE1113 to your Arduino is very simple. Connect power (5V), Ground, and an Analog pin.
Arduino Code for QRE1113 Analog Sensor:
[code lang="”arduino”"]
//Code for the QRE1113 Analog board
//Outputs via the serial terminal – Lower numbers mean more reflected
int QRE1113_Pin = 0; //connected to analog 0
void setup(){
Serial.begin(9600);
}
void loop(){
int QRE_Value = analogRead(QRE1113_Pin);
Serial.println(QRE_Value);
}
[/code]