Circuit design of short range wireless communication system based on AT89C52 microcontroller
Source: InternetPublisher:supremeOne Updated: 2020/04/06
Short-distance wireless transmission has the advantages of strong anti-interference performance, high reliability, good security, few restrictions on geographical conditions, and flexible installation. It has broad application prospects in many fields. Low power consumption and miniaturization are the actual needs of users for current wireless communication products, especially portable products. Short-distance wireless communication has gradually attracted widespread attention. Common short-distance wireless communications include 802.11-based wireless LAN WLAN, Bluetooth (blueTooth), HomeRF and Europe's HiperLAN (high-performance wireless LAN). However, their hardware design, interface methods, communication protocols and software stacks are complex and require specialized The development system has high development costs and long cycle, and the final product cost is also high. Therefore these technologies are not widely used in embedded systems. Ordinary RF products do not have these problems, and the short-range wireless data transmission technology is mature, simple in function, and easy to carry, making it widely used in embedded short-range wireless products.
Design of clock circuit and reset circuit of microcontroller
In the design of the microcontroller clock circuit, the crystal oscillator frequency is selected to be 11.059 2 MHz, the communication rate between the PC and the microcontroller is agreed to be 9600 b/s, and the corresponding capacitor is selected to be connected to the clock pin of the microcontroller to form a clock loop. In the reset circuit design, the reset pin and the corresponding capacitor and resistor are used to form the reset circuit. The principle circuit of the interface between the microcontroller and PTR2000 is shown in Figure 2.
In Figure 2, the AT89C52 microcontroller mainly completes data collection and processing, sends data to the PTR2000 module, and receives data transmitted by the PC through the PTR2000. The PTR2000 module connected to the microcontroller mainly modulates the data to be transmitted by the microcontroller into a radio frequency signal, and then sends it to the PTR2000 module on the PC side. At the same time, it receives the radio frequency signal transmitted by the PTR2000 module on the PC side, and modulates it into a TTL signal that the microcontroller can recognize and sends it to Microcontroller. The RXD and TXD pins of the microcontroller are connected to the DO and DI pins of the PTR2000 respectively to realize serial data transmission; the three pins TXEN, CS, and PWR, which determine the working mode of the PTR2000 module, are respectively connected to the P2 of the I/O control port of the microcontroller. 0~P2.2 are connected. When PTR2000 is working, its working mode is controlled in real time by the operation control program in the microcontroller.
Design of interface circuit between PC and PTR2000
The interface circuit design first requires level conversion. 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 PC serial port through level conversion devices; the PTR2000's low-power control pins. PWR is connected to high level VCC, that is, PTR2000 is fixed to work in the normal working state; channel selection pin CS is connected to GND low level, that is, fixed communication channel 1 is used, fixed to work at 433.92 MHz; the RTS signal of the PC serial port controls TXEN pin to determine when the PTR2000 module is receiving and transmitting. The transmission rate of PC and serial port is set to 9600 b/s, which is consistent with the microcontroller.
The design of the microcontroller wireless communication system is based on the PTR2000 wireless data transmission solution, which can achieve short-distance communication of less than 300 m. It has been verified through experiments that the wireless data transmission system operates well and the microcontroller control is quite accurate. When applying, the system can be easily transplanted as a module to build a more complex wireless communication network. It can be used in small wireless networks, wireless meter reading, community paging, industrial data collection systems, safety and fire prevention systems and other fields. It has certain Practical value.
- How to Use the Radio to Record Phone Calls Automatically
- Automatic recovery electronic fuse with soft start function
- How to use RFID to create an automatic roll call attendance system
- How to use ultrasonic sensors to make a simple nucleic acid sampling machine
- Design of TinyML Image Classification Camera Based on ESP32
- Common typical sawtooth wave generator circuit
- Fully automatic power-saving control circuit installed on wool loom
- CF1 (CF2) DC power supply circuit
- M1332C/M1332CX15 cylindrical grinder electrical schematic circuit
- Humidity detection control circuit
- How does an optocoupler work? Introduction to the working principle and function of optocoupler
- 8050 transistor pin diagram and functions
- What is the circuit diagram of a TV power supply and how to repair it?
- Analyze common refrigerator control circuit diagrams and easily understand the working principle of refrigerators
- Hemisphere induction cooker circuit diagram, what you want is here
- Circuit design of mobile phone anti-theft alarm system using C8051F330 - alarm circuit diagram | alarm circuit diagram
- Humidity controller circuit design using NAND gate CD4011-humidity sensitive circuit
- Electronic sound-imitating mouse repellent circuit design - consumer electronics circuit diagram
- Three-digit display capacitance test meter circuit module design - photoelectric display circuit
- Advertising lantern production circuit design - signal processing electronic circuit diagram