A highly reliable infrared tracking car design

In this paper, the design of a high-reliability trolley infrared tracking circuit is proposed for the two-point deficiency of the traditional optical tracking circuit. The design uses low duty-cycle strong infrared light modulation to overcome the interference of ambient light; the AC-amplified and demodulated light-receiving signal can further overcome the environmental interference; using one-cycle transmission and reception can overcome the light diffraction to the adjacent photosensitive The interference of the tube, finally gives the circuit structure block diagram and part of the circuit diagram of the design. After analysis, the design avoids the cumbersome debugging workload of the traditional design and can meet the application of various ambient light!

This article refers to the address: http://

1 Traditional light tracking trolley circuit structure

1.1 Introduction to car tracking

The so-called car tracking is to draw black lines on the white paper, called the track; when the car travels along the track as required (can do some specified tasks), it can automatically recognize the track and walk according to the track line. It is called a car track. As shown in Figure 1, the track is the map of the Hunan Division of the 2010 National Vocational College Student Vocational Skills Competition Lunar Rover Competition.

Generally, a row (or rows) of infrared light emitting and receiving arrays are installed at the bottom of the trolley to detect the track, thereby controlling the trolley to walk along the line. The light-emitting and receiving arrays are to be cross-discharged with the track, and some are also curved or inverted "V"-shaped. The more and more dense the array of infrared light emitting and receiving arrays, the more stable the control car runs, but the more complicated the algorithm is when programming. Generally, there are four or five, and more than ten, as shown in Figure 2. It is also possible to use double or even multiple rows of designs.

Car tracking diagram

1.2 Traditional tracking car infrared light emission and receiving circuit

The transmitting portion of the conventional infrared light emitting and receiving circuit is driven by a direct current, and the receiving portion is a comparator. One comparison point of the comparator uses a potentiometer to adjust the DC potential, and the other compares the output of the phototube. This simple method can often meet the requirements of simple competition. However, the anti-interference ability is poor.

A traditional simple tracking circuit diagram is shown in Figure 3.

Traditional simple tracking circuit diagram

Figure 3 A traditional simple tracking circuit diagram

The purpose of using infrared light for transmitting and receiving is to reduce the interference of ambient light. However, if no auxiliary measures are taken, when the ambient light is strong, the interference of ambient light can not be overcome well. In addition, measures must be taken to overcome the adjacent The light is transmitted and received to interfere with the light diffraction of the tube.

2 Infrared light tracking design principles

2.1 Choosing the Right Light Emission Drive Current The emission current should generally be designed over the maximum forward current allowable value IF of the LED. After the intensity of the emitted infrared light is increased, the ratio of the infrared component of the ambient light to the total light is reduced, and a part of the ambient light interference can be overcome. However, too much increase in the emitted photocurrent will generate a large amount of heat, which will aggravate the light decay of the launch tube.

To increase the emission current while allowing the transmitter to operate safely, a low duty cycle pulse modulation emission can be used.

2.2 Pulse modulation type infrared emission and infrared receiving effect analysis

The infrared component in the ambient light shows the DC component. After the modulation [4] infrared emission measure is adopted, the modulation receiving circuit receives the modulated signal, which can filter the DC component in the ambient light.

2.3 Advantages of adopting low duty cycle pulse modulation infrared light emission

The infrared phototransistor receiving sensitivity is not lowered by the duty cycle of the infrared light emitting diode transmitting signal. After reducing the duty cycle of the infrared light emitting diode emission signal, a large current can be applied to the infrared light emitting diode, and the maximum allowable forward current IF of the infrared light emitting diode can be greatly exceeded, without damaging the infrared light emitting diode. The increased part of the current is equivalent to the intensity of the infrared light-emitting diode, and the anti-interference ability is further enhanced.

2.4 Infrared light emitted by a stable 38.5 kHz frequency modulation

The infrared modulating optical signal has the highest sensitivity in infrared light receiving at a modulation frequency of 38.5 kHz.

In order to obtain a stable 38.5 kHz modulation frequency, separate components such as resistors, capacitors, and inductors should be avoided to form a oscillating circuit with a nonlinear device to modulate the signal. A crystal oscillator or an active crystal oscillator should be used with a nonlinear component. Oscillation circuit.

Using a crystal oscillator as the external crystal of the MCU, the PWM signal with a 38.5 kHz/10%~20% duty cycle is programmed to modulate the oscillating signal. It can also be oscillated and divided by a crystal oscillator with a nonlinear device. Get 38.5 kHz/10%~20% frequency and duty cycle.

2.5 Using an AC Amplifier Circuit as an Infrared Receiver Amplifier

Even if the modulated light is flooded by ambient light, the modulated light does not disappear. After receiving the signal, it is sent to the AC amplifier for amplification. The submerged modulated optical signal can still be recovered, and the ambient light of the DC component is blocked by the AC amplifier, which effectively restores the flooded effective infrared light and overcomes the interference of strong ambient light. .

2.6 Adopting a patrol to open a certain way to transmit and receive to overcome light diffraction

The way of the crimping line should not have received the signal, and the road that is not adjacent to the pressure line continues to shine. Due to the light diffraction, the infrared light emitted from the adjacent uncompressed line is easily diffracted to the infrared receiving tube of the pressing line, resulting in a judgment error, thereby causing interference.

When the tour opens a certain way, only one way is illuminated at any time, and the detection circuit only receives the signal of this way. Even if the way of illumination is diffracted to the receiving circuit of the pressure line, the MCU does not read the diffracted way. . This overcomes the diffraction interference of adjacent channels. At this time, it is necessary to pay attention to the cycle time of collecting a tour during software design.

3 Highly reliable infrared light tracking circuit design

3.1 Low duty cycle pulse wave 38.5 kHz/10%~20% pulse wave formation

Following the design principle of Section 2.4, the first method uses a single-chip microcomputer with a PWM peripheral to start the PWM module to generate a pulse wave. It is not recommended to generate the pulse wave with pure software. The resulting waveform should meet the time parameter requirements shown in Figure 4.

MCU generates 38.5kHz 10% PWM pulse waveform

Figure 4 MCU generates 38.5kHz 10% PWM pulse waveform

The second method uses an active crystal (which eliminates the oscillating circuit and simplifies the circuit design) to produce 386 kHz or 345.6 kHz, respectively, at 1.544 MHz (class 2 divided by 2) or 11.059 2 MHz (by 5 levels 2). Square wave, followed by decimal counter/divider or nine-digit counter/divider, can generate 38.6 kHz/10% or 38.4 kHz/11% duty cycle pulse wave from any pin Q0~Q7 (pulse frequency The error is 0.1 kHz, the duty cycle is 10% and the other is 11%). The circuit diagram is shown in Figure 5.

Pulse generating circuit

3.2 Infrared light emission control circuit design

The car's infrared tracking circuit uses 8 channels to meet the requirements of more complex competitions. According to design principle 2.6, it is better not to drive the light-emitting circuit at the same time for the rectangular pulse. It needs to be sent all the way and kept for a while.

Two 74HC4081 four-AND control pulse signals are transmitted to the ULN2803 eight reverse OC driver to drive the infrared LEDs, each of which can output 500 mA.74HC4081 and the other input of the gate is connected to the MCU control strobe. As shown in Figure 6.

Control pulse driven LED

Figure 6 Control pulse drive LED

The infrared emission receiving adopts the integrated package TCRT5000 pair tube, the current transmission coefficient is 20%, the maximum continuous allowable current IF of the transmitting tube is 60 mA, and the pulse current allows 3 A. pulse signal to pass through the infrared at 1 μs/1% duty ratio. After the light-emitting tube is emitted, it is reflected by the ground and sent to the phototransistor for output from the emitter. If the ground is white, most of the signal (pulse) can be transmitted to the phototransistor; if the ground is black, the light is absorbed, and almost no signal can be transmitted to the phototransistor.

Control the time of continuous operation of each channel to ensure that the infrared light emitting diode emits 10~20 pulses, so that the subsequent demodulator can be reliably demodulated. You can calculate the total time required to cycle 8 times a week:

T=([ 1 38.5 kHz)×(10~20)]×8=2.08~4.16 ms.

3.3 Amplifier Circuit Design

Since there are 8 optical transmitting and receiving pairs, only one way is shown in Fig. 6. If only one amplifier and one subsequent pulse frequency demodulator are used, an analog switch is required to strobe one by one. In order to share the strobe signal with Figure 6, two 74HC4066 are used (you can also use a 74HC4051, but this time you can't share the 74HC4081 strobe signal, which wastes the MCU's IO port and is more complicated to program).

According to the principle of AC amplifier as described in Section 2.5, the AD8552 with zero-drift dual operational amplifier is used here. One unit is connected to the reverse proportional operation circuit, and the other unit realizes the output midpoint potential to refer to the “ground” for the amplification circuit. The circuit is shown in Figure 7. The magnification can be adjusted by a feedback resistor.

Gating AC amplifier circuit

3.4 Signal Demodulation

The signal demodulation uses the standard 38.5 kHz demodulator CXA20106. The capacitors used for gain control and center frequency control in the device use precision low loss non-polar capacitors, preferably CBB capacitors. The circuit structure diagram is shown in Figure 8.

Frequency demodulation circuit structure

HP Chromebook 11 G9 EE

HP Chromebook 11 G9 EE,HP Chromebook 11 G9,HP Chromebook 11 G9 EE replacement parts

S-yuan Electronic Technology Limited , https://www.syuanelectronic.com