Description
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 sevenreflective sensors that contain thetransmitting IR LED and receiver in the form of phototransistor. Output are thedigital signalsthat can be read using any microcontroller, including Arduino. QTR sensor has no lensesand features with a large consumption ofcurrent thanQTRX.
Service
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)
The product is compatible with Arduino For usersof Arduino modules, manufacturer has preparedalibrarythat simplifies the maintenance of the sensors. |
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.
Digital signal (yellow) after the detection of black lines on a white surface in the close distance and clock frequency of the microcontroller (blue) - from the left and then the right side.
Scheme
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 1kΩ, 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, onlyCTRL ODDpin 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.
Specification:
- 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
Useful links |