Wireless Transceiver Digital Transmission Modem Module PTR2030 and Its Application

Pick    To:        This article introduces the main features, pin functions, software design, hardware connection and specific application circuit of PTR2030 . PTR2030 is an ultra-compact, ultra-low-power, high-rate wireless data transmission MODEM . It has excellent performance and is currently the ideal choice for low-power wireless data transmission.

introduction

Because there are many types of wireless transceiver modules, 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. This article will introduce a new type of wireless transceiver Module PTR2030 .

PTR2030 is an ultra-compact, ultra-low-power, high-speed wireless data transmission MODEM . It adopts serial port transmission, application and programming is very simple, and the transmission efficiency is very high; fewer peripheral components are required, the cost of product development is low; power consumption is small; fewer pins, small packaging, is conducive to reducing the PCB area and reducing costs .

PTR2030 is composed of a single IC , receiving and transmitting in one; adopts FSK modulation, strong anti-interference ability; standard DIP pin spacing, more suitable for embedded devices. In addition, because it adopts a low transmission power and high sensitivity design, it 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.

Main features of PTR2030

The pin diagram of the PTR2030 module is shown in Figure 1. The description of each pin is shown in Figure 1 .

PIN1 : VCC , positive power supply, connect 2.7 ~ 3.3V

PIN2 : CS , the channel selection end, must be set to high, that is CS = 1 , that is, the selected working channel is 315MHz

PIN3 : DO , data output terminal

PIN4 : DI , data input terminal

PIN5 : GND , power ground

PIN6 : PWR , energy-saving control terminal, when PWR = 1 , normal working state; when PWR = 0 , standby micro power consumption state

PIN7 : TXEN , transmit and receive control, when TXEN = 1 , the module is in the transmitting state; when TXEN = 0 , the module is in the receiving state

PTR2030 software programming

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

Send part

PTR2030 communication rate of up to 20Kbit / s, also operate in other rates such as 4800bps, at 9600bps, no need to set the operating speed of PTR2030.

Before sending data, you need to put the module into the transmission mode, that is, TXEN = 1 , and then wait for at least 5ms (requires the conversion time of the transmission) before sending any length of data. After sending, you should put the module into the receiving state , i.e. TXEN = 0, transmitted to the receiver conversion time of 5ms.

Receiving part

When receiving, PTR2030 should be placed in the receiving state , that is, TXEN = 0 , the received data can be sent directly to the serial port of the single-chip microcomputer or sent to the computer after level conversion.

Standby mode

When PWR = 0, PTR2030 enters the power saving standby mode, power consumption is about 8uA, but can not receive and transmit data in the standby mode.

Application of PTR2030 in temperature measurement and control system

The system composed of PTR2030 can complete the point-to-point transmission of data collection, and can 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 transmits the temperature data collected by the temperature sensor to the computer, and at the same time transmits the control signal sent by the computer to the single-chip computer, thereby achieving 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 single-chip microcomputer . When connected, the DI end of the PTR2030 wireless MODEM should be connected to the sender of the single-chip microcomputer serial port , and the DO end should be connected to the receiver of the single-chip microcomputer serial port. Using the I / O of the single chip microcomputer can control the module's launch control, 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. A piece of MAX232 can achieve the purpose of level conversion.

Due to the characteristics of the wireless transceiver module , special attention should be paid to the formulation of communication protocols and the processing of error detection and correction when designing the system software. When there is no signal, the PTR2030 serial port outputs random data, so the first thing of the protocol is to be able to identify noise and valid data. Through tests and experiments, it is found that 0xFF followed by 0x00 is not easy to occur in noise, so the data sent by the microcontroller should start with a byte of arbitrary content (this is because the data of the first byte is easily lost when sending), and then It is 0xFF followed by a 0x00 . The receiving protocol stipulates that only packets starting with 0xFF followed by a 0x00 are accepted . Another point that needs attention is the correction and detection of data. In this system, the checksum method is used for error detection. Error correction uses the method of continuous transmission three times. The same data is sent three times in succession. At the receiving end, each bit of the three data is compared. If at least two data have the same bit, the bit is correct. In summary, a complete wireless transmission protocol is: [ Start 1] [ Start 1] [ Start 2] [ Data 1] [ Data 2] [ Data 3] [ Checksum ] , Start 1 is 0xFF , Start 2 It is 0x00 . If the checksum is correct, it means that the data transmission is complete. Then compare data 1 , data 2 , and data 3 , take the two of them that are the same, and give the response signal. The data will be resent.

Conclusion

The system composed of PTR2030 can complete point-to-point transmission data collection, point-to-multipoint two-way data transmission, so PTR2030 can be widely used in remote control, telemetry, wireless meter reading, access control system, cell pager, industrial data collection system, wireless tag, identity Identification, non-contact RF smart card, small wireless data terminal, security fire prevention system, wireless remote control system, biological signal collection, hydrometeorological monitoring, robot control, information appliances, wireless 232 , wireless 422/485 data communication and other systems. â– 

references:

1.         Yu Yongquan, ' ATMEL 89 Series Microcontroller Application Technology', Beijing University of Aeronautics and Astronautics Press, 2002

Picture 1    Pin diagram of PTR2030 module

Picture 2   Circuit diagram of PTR2030 used in temperature measurement and control system

3D printer stepper motors are important parts of 3D printers. They are used in a variety of applications depending on the type of printer. For example, 3D printer stepper motors are used to move the extruder or the build platform alone the x, y, and z axis. The extruder assembly also has a Stepper motor used to pull the filament into the extruder.

3d printer stepper motor

3d printer stepper motor,Best stepper motor for 3d printer,Extruder stepper motor,3d printer extruder motor,Best motors for 3d printer,Stepper motor in 3d printer

Shenzhen Maintex Intelligent Control Co., Ltd. , https://www.maintexmotor.com