Circuit Design of Near Field Communication System Based on AT89C52 Microcontroller

Single chip microcomputer STM32L151CCU6
1206RGB (single)
Wireless Crystal 3.2*2.5mm 3225 25M (25.000MHZ) 12PF 10PPM 20PPM 30PPM
0201 package SLP0603 ESD electrostatic diode 5V one-way ESD

Short-range wireless transmission has the advantages of strong anti-interference performance, high reliability, good security, limited geographical conditions, flexible installation, etc., and has broad application prospects in many fields. Low power consumption and miniaturization are actual needs of users for current wireless communication products, especially portable products, and short-range wireless communication has gradually attracted widespread attention. Common short-range wireless communication has 802.11-based wireless LAN WLAN, Bluetooth (BlueTooth), HomeRF and European HiperLAN (high-performance wireless LAN), but its hardware design, interface, communication protocol and software stack are complex, need special The development system has high development cost, long cycle and high final product cost. Therefore, these technologies are not widely used in embedded systems. Ordinary RF products do not have these problems, and short-range wireless data transmission technology is mature, simple in function and convenient to carry, making it widely used in embedded short-range wireless products.

Design of clock circuit and reset circuit of single chip microcomputer

In the design of the single-chip clock circuit, the crystal frequency is selected to be 11.059 2 MHz, and the communication speed between the PC and the single-chip microcomputer is 9600 b/s, and the corresponding capacitor is connected with the clock pin of the single-chip microcomputer to form a clock loop. In the reset circuit design, the reset circuit is formed by using a reset pin and a corresponding capacitor and resistor. The principle circuit of the MCU and PTR2000 interface is shown in Figure 2.

Circuit Design of Near Field Communication System Based on AT89C52 Microcontroller

In Figure 2, the AT89C52 MCU mainly completes the data acquisition and processing, sends data to the PTR2000 module, and receives the data transmitted by the PC through the PTR2000. The PTR2000 module connected to the MCU mainly modulates the data to be transmitted of the MCU into a RF signal, and then sends it to the PTR2000 module of the PC, and simultaneously receives the RF signal transmitted by the PTR2000 module of the PC, and modulates the TTL signal that can be recognized by the MCU to the TTL signal. Single chip microcomputer. The RXD and TXD pins of the MCU are connected to the DO and DI pins of the PTR2000 respectively to realize serial data transmission. The TXEN, CS, and PWR pins of the PTR2000 module work mode and the P2 of the MCU I/O control port are determined respectively. 0~P2.2 are connected. When PTR2000 is working, its working mode is controlled in real time by the running control program in the single chip microcomputer.

Design of PC and PTR2000 Interface Circuit

The interface circuit design first requires level shifting. The serial port of the PC supports the RS-232 standard, while the PTR2000 module supports the TTL level. The MAX232 device is selected for level conversion between the two. The interface circuit is shown in Figure 3. The PTR2000 module performs serial input and output, and the pins DI and DO are connected to the serial port of the PC through the level shifting device; the low power control pin of the PTR2000. PWR is connected to high level VCC, that is, PTR2000 is fixed in normal working state; channel selection pin CS is connected to GND low level, that is, fixed communication channel 1 is used, fixed operation is at 433.92 MHz; RTS signal of PC serial port is controlled by TXEN Pin to determine when the PTR2000 module is in receive and transmit state. The transmission rate of the PC and serial port is set to 9 600 b/s, which is consistent with the microcontroller.

Circuit Design of Near Field Communication System Based on AT89C52 Microcontroller

The design of the single-chip wireless communication system is based on the PTR2000 wireless data transmission solution, which can realize short-distance communication of less than 300 m. It is verified by experiments that the wireless data transmission system works well and the single-chip microcomputer is controlled quite accurately. In the application, the system can be easily transplanted as a module to build a more complex wireless communication network, which can be applied to small wireless networks, wireless meter reading, cell paging, industrial data acquisition systems, security fire protection systems, etc. Practical value.

600 Puffs

600puffs Disposable


ZGAR electronic cigarette uses high-tech R&D, food grade disposable pod device and high-quality raw material. All package designs are Original IP. Our designer team is from Hong Kong. We have very high requirements for product quality, flavors taste and packaging design. The E-liquid is imported, materials are food grade, and assembly plant is medical-grade dust-free workshops.


Our products include disposable e-cigarettes, rechargeable e-cigarettes, rechargreable disposable vape pen, and various of flavors of cigarette cartridges. From 600puffs to 5000puffs, ZGAR bar Disposable offer high-tech R&D, E-cigarette improves battery capacity, We offer various of flavors and support customization. And printing designs can be customized. We have our own professional team and competitive quotations for any OEM or ODM works.


We supply OEM rechargeable disposable vape pen,OEM disposable electronic cigarette,ODM disposable vape pen,ODM disposable electronic cigarette,OEM/ODM vape pen e-cigarette,OEM/ODM atomizer device.

Disposable Vape, bar 600puffs, ZGAR bar disposable, Disposable E-cigarette, OEM/ODM disposable vape pen atomizer Device E-cig

Shenzhen WeiKa Technology Co.,Ltd. , https://www.szvape-pen.com

Posted on