Design of Temperature Measurement and Control System Based on Wireless Transceiver Data Transmission Module PTR2030

Abstract: PTR2030 is an ultra-small, ultra-low power, high-speed wireless data transmission MODEM module. It has excellent performance and is an ideal device for low-power wireless data transmission applications. The article introduces the main features, pin functions, software design, hardware connection methods and specific application circuits of PTR2030.

1 Overview

Because there are many types of wireless transceiver modules at present, how to select the required modules in the design is very critical. The correct choice can avoid detours, reduce costs, and bring products to market faster. The new wireless transceiver module PTR2030 introduced in this article is an ultra-small, ultra-low-power, high-rate wireless data transmission MODEM. It adopts serial port transmission, application and programming is very simple, the transmission efficiency is very high, and the required peripheral components are few, the product development cost is low, the power consumption is low, the pins are small, the package is small, so it is conducive to reducing the PCB board area and lower the cost.

PTR2030 is composed of a single IC, it uses FSK modulation, and the receiving and transmitting are integrated, so the anti-interference ability is very strong; because of the standard DIP pin spacing, it is more suitable for embedded devices. In addition, it adopts a low transmission power and high sensitivity design, which can meet the requirements of wireless control and does not require a license. It is currently an ideal choice for low-power wireless data transmission. The main features of PTR2030 are as follows:

● Receiving and transmitting in one;

● The working frequency is 315MHz digital transmission frequency band;

● Adopt FSK modulation mode, strong anti-interference ability, especially suitable for industrial control occasions;

● Using frequency synthesis technology, excellent frequency stability;

● Sensitivity up to -105dB;

● The maximum transmit power is + 10dB;

● Low working voltage (2.7V ~ 3.3V), low power consumption, and standby current is only 8μA;

● Working speed up to 20kbit / s (can also work at a lower speed? Such as 9600bps);

● Ultra small volume;

● Can be directly connected to the serial port of the single chip microcomputer, programming is very convenient;

● Because of the design of low transmission power and high reception sensitivity, no license is required for use;

● Standard DIP pin spacing is more suitable for embedded devices.

2 Pin function of PTR2030

The pin diagram of the PTR2030 module is shown in Figure 1. The functions of each pin are as follows:

VCC: positive power supply, the range is 2.7 ~ 3.3V;

CS: channel selection end, must be set to high (ie CS = 1), that is, select the working channel is 315MHz;

DO: Data output terminal;

DI: data input terminal;

GND: power ground;

PWR: Energy-saving control terminal, when PWR is 1, it is in normal working state; when PWR is 0, it is in standby micro power consumption state;

TXEN: Transmitting and receiving control terminal. When TXEN is 1, the module is in the transmitting state; when TXEN is 0, the module is in the receiving state.

3 Software programming of PTR2030

In the process of software programming, it is particularly important to select the working mode and working channel of PTR2030. Table 1 shows the working mode control of the module and the selection method of working channel.

Table 1 Module working mode control and working channel selection table

Module pin input level Module status
TXEM CS PWR
0 1 1 receive
0 1 1 receive
1 1 1 emission
1 1 1 emission
X X 0 Standby

The communication rate of PTR2030 is up to 20kbit / s, and it can also work under other speeds such as 4800bps and 9600bps. In fact, there is no need to set the working rate of PTR2030.

Before sending data, generally put the module into transmit mode, that is, set TXEN to 1, and then wait for at least 5ms (requires the conversion time required to transmit) before sending any length of data. After sending, the module should be placed in the receiving state? That is, TXEN is set to 0. The conversion time from transmission to reception is 5 ms.

When receiving, the PTR2030 should be placed in the receiving state? That is, the TX-EN is set to 0, and the received data can be directly sent to the serial port of the single-chip microcomputer or sent to the computer after level conversion.

When PWR is 0? PTR2030 will enter the power-saving standby mode, the standby power consumption current at this time is about 8μA. In standby mode, it is generally not possible to receive and transmit data.

4. Application of PTR2030 in temperature measurement and control system

PTR2030 can realize the point-to-point transmission of data collection, and can also form a point-to-multipoint bidirectional data transmission channel. Figure 2 shows the circuit diagram of PTR2030 used in temperature measurement and control system.

In this system, PTR2030 can transmit the temperature data collected by the temperature sensor to the computer, and at the same time transmit the control signal sent by the computer to the single-chip computer, so as to realize the wireless data communication between the single-chip computer and the computer. PTR2030 can be directly connected to the serial port or I / O port of the microcontroller. When connected, the DI end of the PTR2030 wireless MODEM should be connected to the sending end of the serial port of the microcontroller. The DO end should be connected to the receiving end of the serial port of the microcontroller. Using the I / O of the single chip microcomputer can control the module's launch, channel switching and low power consumption mode. When PTR2030 is connected to a computer, it must undergo level conversion to convert TTL level to RS232 level. Level conversion can be completed with a piece of MAX232.

figure 2

Based on the characteristics of the wireless transceiver module? When designing the system software, special attention should be paid to the formulation of communication protocols and the handling of error correction and detection. When there is no signal, the serial output of PTR2030 is random data, so the first thing of the protocol is to be able to identify noise and valid data. Through testing and experiments, it is found that 0xFF followed by 0x00 is not easy to occur in the noise, therefore, the microcontroller can start sending data with any content byte (because the first byte of data is easily lost when sending), then 0xFF followed by a 0x00 , The receiving protocol stipulates that only receiving starts with 0xFF. And followed by a 0x00 data packet.

In addition, attention should be paid to data correction and error detection. This system adopts checksum method for error detection? Error correction adopts the method of continuous transmission three times. The same data is sent three times in succession, and then each bit of the three data is compared at the receiving end. If at least two data have the same bit, the bit is correct. In short, a complete wireless transmission protocol is:

[Start 1] [Start 1] [Start 2] [Data 1] [Data 2] [Data 3] [Checksum].

Among them, start 1 is 0xFF, start 2 is 0x00, if the checksum is correct, it means that the data transmission is complete. Then compare data 1, data 2, and data 3, and take the same two to give a response signal. If the data itself is not completely transmitted, it will not respond, and the system will resend the data.

The system composed of PTR2030 can complete point-to-point data collection and transmission and point-to-multipoint two-way data transmission. Therefore, PTR2030 can be widely used in remote control, telemetry, wireless meter reading, access control systems, cell paging, industrial data collection systems, wireless tags, Identification, non-contact RF smart card, small wireless data terminal, security fire protection system, wireless remote control system, biological signal acquisition, hydrological and meteorological monitoring, robot control, information appliances, wireless 232, 422/485 data communication and other systems.

Washing machines are very common in every family. Banshen washing machines, with high quality, good design and best service. Many products have been sold to over 30 countries. After many years of developing, banshen washing machines are getting better and better.

Our well-equipped facilities and excellent quality control throughout all stages of production enable us to guarantee total customer satisfaction. Besides, we have received CE, CB, RoHS and CCC certifications.

As a result of our high quality products and outstanding customer service, we have gained a global sales network reaching America, Asia, Europe, Africa, the Middle East and other countries and regions.

If you are interested in any of our products or would like to discuss a custom order, please feel free to contact us. We are looking forward to forming successful business relationships with new clients around the world in the near future.

7.2~8.5kg Twin Tub Washing Machine

Plastic Cover Washing Machine,Home Portable Washing Machine,Semi Automatic Washing Machine,Twin Tub Washing Machine With Dryer

Ningbo Banshen Electric Appliance Co., Ltd , https://www.banshendq.com