In communication systems, non-electrical signals are often used to transmit control signals and data to achieve remote control or telemetry functions. Infrared communication is a commonly used communication method with the characteristics of simple control, convenient implementation, and high transmission reliability. Infrared communication uses infrared rays in the 950 nm near-infrared band as the medium for transmitting information. The transmitter uses pulse-time modulation to modulate the binary digital signal into a pulse sequence of a certain frequency, and drives the infrared transmitting tube to send it in the form of light pulses. The receiving end converts the received light pulses into electrical signals. After amplification and filtering, it is sent to the demodulation circuit, restored to a binary digital signal and output.
1 Overall structure of the system
The infrared communication system adopts infrared light transmission and infinite working mechanism. Its structure mainly includes three parts: infrared transmitter, communication channel and infrared receiver.
(1) Complete the electro-optical conversion of the signal and emit infrared pulses into space
The key to the infrared transmitter is the infrared light-emitting diode and the corresponding driving circuit. The infrared light-emitting earphone light must first meet the requirement that its modulation bandwidth is greater than the spectrum width of the signal to ensure smooth communication lines. In addition, the emission wavelength of the light-emitting diode should match the peak response of the photodetector (silicon photodiode) at the receiving end to minimize the background stray light interference. At present, the infrared band of 780nm to 950nm is generally used for digital signal transmission. Since the signal-to-noise ratio of the infrared wireless communication system is proportional to the square of the transmission power, the transmission power of the infrared transmitter is appropriately increased, and measures such as spatial diversity and holographic diffusers can be used to evenly distribute the optical power of the transmitting end in space to reduce the bit error rate and improve the communication quality. Its schematic diagram is shown in Figure 1.
(2) Infrared Receiver
The infrared receiver includes the infrared receiving part and the subsequent signal sampling, filtering, judgment, quantization, equalization and decoding. Its principle block diagram is shown in Figure 2.
The working process of the infrared receiving end is to first perform photoelectric conversion to convert the infrared pulse signal into an electrical signal, and then perform symbol judgment after appropriate frequency domain equalization. The symbol judgment circuit is the core part of the receiver design. Since the signal is transmitted through infrared wireless, its level variation range is large, so the symbol judgment circuit must be adaptive. The received signal becomes a digital signal after adaptive symbol judgment, and then undergoes appropriate decoding to convert it into a differential signal and enter the signal input end of the computer network card.
(3) Communication Channel
The channel of infrared wireless digital communication generally refers to the space between the transmitter and the receiver. Due to the intervention of background light signals such as natural light and artificial light sources, the influence of electrical or optical noise in the signal source and the transmitting and receiving equipment, the communication quality of infrared wireless digital communication is poor in some occasions, and channel coding technology is needed to improve the anti-interference ability.
In the infrared communication system, since the transmission power of the infrared transmitter is small and the signal is transmitted by infrared, it is easily affected by the external environment. These factors lead to the signal of the infrared receiver being very weak and the level variation range being large. Therefore, low-noise preamplifier design and adaptive symbol decision circuit are necessary. Low-noise preamplifiers generally use field effect tube amplifiers with high input impedance, and require large bandwidth, high gain, low noise, low interference, and frequency response matching the channel impulse response. The adaptive symbol decision circuit can automatically track the change of the input signal level, obtain the best threshold level, and judge the signal according to this threshold level, convert it into a digital level, and then decode it to restore the original signal. At the same time, in order to filter out low-frequency noise and artificial interference, a bandpass filter is used, in order to match the modulation characteristics and eliminate inter-symbol interference, equalization technology is often used, and in order to obtain a larger working range of the optical receiver and instantaneous field of view, a spherical optical lens is used. These measures will be conducive to improving the quality of infrared wireless communication.
2 Infrared serial communication interface circuit design
The infrared communication system controlled by the single-chip microcomputer mainly consists of three parts: infrared transmitter, infrared receiver, and single-chip microcomputer 89C51. The single-chip microcomputer itself does not have an infrared communication interface. The serial interface of the single-chip microcomputer can be used with the infrared transmitting and receiving circuits to form an infrared serial communication interface of the single-chip microcomputer control system.
2.1 Design of the launch part
The infrared transmission circuit includes pulse oscillator, transistor and infrared transmitting tube. The pulse oscillator is composed of NE555 timer, resistor and capacitor, which is used to generate 38 kHz pulse sequence as carrier signal. The infrared transmitting tube HG uses TSAL6238 produced by Vishay Company to emit 950 nm infrared beam. The transmission process is as follows: the serial data is sent out by the serial output terminal TXD of the microcontroller and drives the transistor. The digital "0" turns on the transistor. It is modulated into a 38 kHz carrier signal through the multivibrator circuit composed of NE555, and is sent out in the form of light pulses by the infrared transmitting tube. The digital "1" turns off the transistor, and the infrared transmitting tube does not emit infrared light. The oscillation period formula of the multivibrator circuit composed of NE555 is T=0. 693(R1+R2)C, where R1 is the charging resistor, R2 is the discharge resistor, and C is the charging capacitor.
2.2 Design of infrared receiver
The infrared receiving circuit uses the dedicated infrared receiving module TSOP1738 produced by Vishay. This module is a three-terminal component, powered by a single power supply +5V, with the characteristics of low power consumption, strong anti-interference ability, high input sensitivity, and insensitivity to infrared light of other wavelengths (except 950 nm). Its internal structure block diagram is shown in Figure 3.
The working process of TSOPl738 is as follows: First, the received pulse infrared light signal with a carrier frequency of 38 kHz is converted into an electrical signal through an infrared photosensitive element, and then amplified by a preamplifier and an automatic gain control circuit. Then, it is filtered through a bandpass filter, and the filtered signal is demodulated by a demodulation circuit. Finally, the output stage circuit performs reverse amplification and output.
2.3 Digital display part
In the system, a dual seven-segment digital tube is used to display the sent and received data. The digital tube adopts a DPY dual-digit seven-segment common anode digital tube. The common anode of the high position is pin 10, and the common anode of the low position is pin 5. The cathode of the digital tube is controlled by the PO port of the single-chip microcomputer, and the P2.6 and P2.7 ports control the high and low positions of the digital tube respectively. When the P2 port outputs the digit "0", the corresponding transistor is turned on. According to the different digits output by the PO port, the digital tube displays different numbers. When the P2 port outputs the digit "1", the transistor is cut off and the digital tube does not display.
2.4 Design of LED display part
There are 8 light-emitting diodes connected to the P1 port of the microcontroller. The positive pole of the diode is connected to the positive pole of the power supply, and the negative pole is connected in series with a resistor and connected to the Pl port. Sending a low level to the Pl port will get different display states.
2.5 Button design
There are four buttons connected to the P3 port of the microcontroller, one side of the button is grounded, and the other side is connected to the P3.2, P3.4, and P3.5 ports of the microcontroller. The overall diagram of the infrared communication interface circuit controlled by the microcontroller is shown in Figure 4.
Its working process: the single-chip microcomputer sends serial data through TXD, and the multi-harmonic oscillation circuit composed of NE555 generates a 38 kHz pulse sequence as a carrier signal. The signal is sent out through the infrared transmitting tube as a 950 nm infrared beam. The infrared receiving module TOSP1738 converts the received light pulse into an electrical signal, which is then sent to the demodulation circuit for demodulation after amplification, filtering and other processing. After being restored to a binary digital signal, it is output to the RXD port of the single-chip microcomputer. The single-chip microcomputer processes the received data and displays the corresponding data on the digital tube. In this way, an infrared communication system controlled by a single-chip microcomputer realizes communication.
In order to ensure the accuracy of the infrared receiving module TSOPl738, the frequency of the carrier signal at the transmitting end should be as close to 38 kHz as possible. Therefore, when designing the pulse oscillator, it is necessary to select precision components and ensure the stability of the power supply voltage. In addition, the transmitted digit "0" must correspond to at least 14 carrier pulses, which requires that the transmission baud rate cannot exceed 2400 bps.
3 Main program of infrared communication controlled by single chip microcomputer
; P3.2 is the start key. It is also the function selection key, and P3.5 is the function confirmation key.
4 Conclusion
The infrared communication system controlled by the single-chip microcomputer has the advantages of simple hardware circuit, low cost, convenient programming, and high communication reliability. It realizes non-contact data between the communicating parties and is widely used in remote control, telemetry and other applications.
Previous article:Design of Remote Online Upgrade Program for C8051F130
Next article:Design of multi-point temperature control system based on 51 single chip microcomputer
Recommended ReadingLatest update time:2024-11-16 21:53
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- [Voice Recognition Positioning] Material Unboxing-ESP32-S2-KALUGA-1
- EEWORLD University ---- The latest version of RTOS training - 15 days to get started with RT-Thread kernel
- [Engineer's Notes] Use 4 "attentions" in PCB wiring to avoid surges!
- EEWORLD University ----3
- What development environment is used for bare metal programming of imax6ull
- SparkRoad serial port to localbus to achieve command control
- EEWORLD University Hall----Live Replay: STMicroelectronics SiC Products and Industrial Application Guide
- Pre-registration for the prize-winning live broadcast | Explore the high-tech of network cameras with Infineon
- msp430f149 baud rate setting
- Topmicro Smart Screen: Remote update tools download