Recently I found an IrDA transceiver on Lichuang Mall! Have enough of the common WIFI, Bluetooth, GPRS, 2.4G nRF24L01 electronic devices and modules, I still have no use of IrDA, decided to taste fresh! Therefore, the following IrDA infrared data communication design was made.
Experiment board outline drawing :
PS: This experiment board, because the circuit is relatively simple, the author uses the "STM8L051+LT8920+ME6209 evaluation board module (PCB empty board)" which can be obtained on the Lichuang Mall, and the number of the board is modified. Yes: C94731.
What is IrDA? To this end, let me briefly introduce you:
IrDA is the abbreviation of Infrared Data AssociaTIon, and the widely used IrDA infrared connection technology is proposed by the organization. So far, there are more than 50 million devices using IrDA technology worldwide. IrDA has developed physical media and protocol layer specifications, and two devices that support the IrDA standard can monitor each other and exchange data. The initial IrDA 1.0 standard developed a serial, half-duplex synchronization system with a transmission rate of 2400 bps to 115200 bps, a transmission range of 1 m, and a transmission half angle of 15 to 30 degrees. Recently, IrDA has expanded its physical layer specification to increase the data transfer rate to 4 Mbps.
The IrDA data protocol consists of three basic layer protocols: physical layer, link access layer and link management layer. In addition, the IrDA stack supports IrLAP, IrLMP, IrIAS, IrIAP, IrLPT, IrCOMM to meet the needs of applications on each layer. , IrOBEX and IrLAN, etc.
It is important to point out that this experiment is only a communication experiment of the IrDA physical layer.
2, works highlights1 The selected IrDA transceiver TFBS4711 is a small-volume infrared transceiver module measuring 6x3x1.9mm.
2 Meets the IrPHY1.2 standard, IrFM quick link requirements.
3 Communication rate: 115.2kbs (SIR), support two-way, full-duplex communication links.
4 achievable linear communication distance: ~1 meter.
5 Use the low-power microcontroller STM8L051F3P6 with built-in IrDA underlying signal encoding and decoding for mastering.
6 The IrDA module consumes very little power and has a shutdown current of only about 10nA.
7 Use the most commonly used MicroUSB socket as the power input interface.
8 The IrDA communication used in this experiment has the advantages of low power consumption, short link time, safe communication, and no electromagnetic interference!
3, hardware schematic descriptionFirst, let's first take the architectural diagram of this experimental circuit:
Among them, the schematic diagram of the driving part of the single-chip microcomputer can be divided into several parts, which are introduced one by one below:
Part 1: The main control part of the MCU
Remarks: The above figure is designed by ST's low-power single-chip microcomputer STM8L051F3P6. The PC5 and PC6 of the MCU are respectively linked to the TX and RX ports of the IrDA transceiver TFBS4711, and the PB4 of the MCU is used to control the power enable of the TFBS4711. When PB4=0, the IrDA transceiver can work normally, otherwise PB4=1, then the IrDA transceiver is turned off, and the power consumption is very small at this time! D1 and D2 are working status indicators that are connected to PC0 and PC1 respectively.
The second part: the peripheral part of the microcontroller
Remarks: As shown in the figure above, P2 is the program of SWIM interface, STM8L051F3P6, which can be downloaded or simulated by ST-LINK/V2 development tool. The S1~S4 are light touch buttons. In this experimental circuit, only the S4 button is soldered, because other buttons are not used.
Part III: Power supply part of the system
Remarks: As shown in the figure above, F1 is a recoverable fuse (0.2A) and U3 is a 3.3V LDO. D3 is the power indicator.
Part IV: Introduction to IrDA Module TFBS4711
The TFBS4711 is a small-volume infrared transceiver module that supports half-duplex IrDA infrared communication at a transmission rate of 15.2 kbit/s (SIR). The module contains a PIN type photodiode, an infrared emitter (IRED) and a low power CMOS control chip. It is designed for low power IRDA standards with straight line communication up to 1 meter. Support low-power mode, when the SD pin is valid, the current digestion of this module is only about 10nA. Compared with general radio transmission (Bluetooth, WIFI, 2.4G nRF24 series, etc.), infrared transmission has the characteristics of no electromagnetic interference, short communication distance, high security and simple use. For example, STM8 or STM32 generally integrate IrDA hardware. The support unit, combined with the TFBS4711, can quickly establish a "wireless" data communication system based on optical technology.
The following is a list of BOMs produced by this electronic device. The device was purchased in Lichuang Mall (http://), and the PCB board manufacturing was completed in Shenzhen Jiali Chuang.
The main control single-chip microcomputer stm8L051F3P6 of this experiment uses IAR company's compiler for software development, combined with ST's official website downloadable stm8L function driver library for coding. The main function of the software implementation is that after the button S4 is triggered, the data information is exchanged between the two PCBA boards of the same configuration and firmware, and the LEDs are driven. Here are the key pieces of the experiment code:
5-1, IrDA initialization fragment of single-chip stm8L051F3P6
5-2, the main control program fragment
PS: The space is limited. For the complete software and engineering source code of this experiment, please refer to the Lichuang Community.
6, the scene experiment mapCompared with general radio transmission (Bluetooth, WIFI, 2.4G nRF24 series, etc.), infrared transmission has the characteristics of no electromagnetic interference, short communication distance, high security and simple use. STM8 or STM32 generally integrates IrDA hardware support. Unit, operating IrDA is as simple as operating a serial port! A combination of the IrDA device TFBS4711 can quickly establish a "wireless" data communication system based on optical technology. In the following, we will introduce the advanced applications of TFBS4711 through the introduction of optical fiber, such as long-distance data communication that can isolate tens of thousands of volts and high voltage or complete IrDA protocol stack function applications.
Pharmaceuticals,2-Methyl- Propanoic Acid Monohydrate Price,2-Methyl- Propanoic Acid Monohydrate Free Sample,Pure 2-Methyl- Propanoic Acid Monohydrate
Zhejiang Wild Wind Pharmaceutical Co., Ltd. , https://www.wild-windchem.com