- Reduced price
The strap is used in robots like line follower as sensors detecting the track as a black line on a white background. The module consists of seven reflective sensors that contain the transmitting IR LED and receiver in the form of phototransistor. Output are the digital signals that can be read using any microcontroller, including Arduino. QTR sensor has no lenses and features with a large consumption of current than QTRX.
Strap QTR-HD-07RC has digital outputs. Reading the measurement data is carried out by charging the capacitor (indicating the high status), and measuring the time of its discharge through phototransistor. The advantage of this option is that it does not require an analog-to-digital converter.
A typical sequence of the reading of sensor's values
- Turning on IR LEDs (optional)
- Setting the I/O pins of the microcontroller as output and the creation of the high status
- Wait at least 10 micro-seconds - increasement of the sensor's output
- Setting the I/O pins as input (high impedance status)
- Measuring the discharge time of the capacitor by waiting until the I/O lines go to low status
- Disabling the IR LEDs (optional)
With a high intensity of the reflected signal, the measured time will be oscilating within a few microseconds. A small amount of reflected light will be discharging the capacitor within a few milliseconds. The exact time depends on characteristics of the pins of the microcontroller.
The product is compatible with Arduino
The optimal distance of the sensors from the surface, is 5 mm, the maximum, at which the sensor operates, is 40 mm. To picture the situation, we present the oscilograms showing the detection of black line on a white background at different distances from the surface.
Each of phototransistors has an external pulling-up capacitor and the auxiliary circuit providing the read of data from the sensors by measuring the time of discharge.
Current of each LED was set to 30 mA, the maximum current consumption of the module is approximately 125 mA.
Diagram of the one channel of the module QTR-HD-07RC.
Controlling the emitter
Matrixes have reflective sensors that can maintain a constant current through your IR transmitters, maintaining a constant brightness of the emitter, regardless of the supply voltage. Emitters can be controlled with the CTRL pins on the board, control is depending on the size and density of the matrix:
- Modules with five or more sensors of high density (HD) have two pins controlling the emitter: ODD CTRL and EVEN CTRL. By default, they are connected with resistor of 1 kΩ, by default, turning on all transmitters and allows for their control using a signal on each of the pins. Pins ODD CTRL and EVEN CTRL can be used separately for independent control of transmitters with odd numbers and even numbers.
- Modules with three or more sensors with medium density (MD) also have two pins controlling the emitter, only CTRL ODD pin will be able to manage in this version.
- Modules with four or less sensors have a single CTRL pin that controls all the super-emitters.
- Number of sensors: 7
- Supply voltage: from 2.9 V to 5.5 V
- Current consumption: 125 mA
- Current consumption of one LED: 30 mA
- Outputs: digital
- The optimal measurement of distance: 5 mm
- The maximum distance of measurements: 40 mm
- Light wavelength: 940 nm
- Sensor's type: QTR
- Distance between sensors: 4 mm
- Dimensions 29 x 20 x 3 mm
- Weight: 1.7 g