Indoor communication system based on wireless transmission

Indoor communication system based on wireless transmission

At present, the remote access system for smart home appliances mainly implements various alarm functions and remote control through the PSTN, and for the various control and access within the home network, the control and access to various smart home appliances are mainly achieved directly through the dual-core cable. It is troublesome to install wiring in this way, especially the renovated households must reinstall the wiring. In order to overcome the trouble of installing and wiring, the wireless transmission method is used to realize various control and access within the home network.

1 System structure

The system first uses the DTMF transceiver circuit chip MT8880 to achieve remote access through the telephone line, and then uses the serial port of the main single-chip microcomputer AT89C51 to transmit various access and control information to the wireless digital transmission MODEM chip PTR2000, and realizes the wireless transmission of data through the PTR2000; The receiving end of the smart home appliance first receives the control and access information sent by the host through the external PTR2000, and then transmits it to the slave AT89C51 to realize the control of various functions. System principle circuit, as shown in Figure 1.

System principle circuit

2 Implementation method of telephone remote access

This system remote access uses DTMF transceiver chip MT8880 to realize telephone remote access. MT8880 is a CMOS large-scale integrated circuit with low power consumption, and the sending and receiving circuits are concentrated in one chip, which is easy to interface with a microcomputer and convenient to use. Because the transmission part uses a switched capacitor D / A converter, the DTMF signal distortion is small and the frequency accuracy is high. The on-chip counter accurately times the duty time of the dual audio mode. And can detect telephone signal tone.

P1.0 to P1.3 of the main single-chip AT89C51 are connected to D0 to D3 of MT8880; P1.4 to P1.7 of the single-chip AT89C51 are respectively connected to RSO, CS, R / W, 02 of MT8880, and P3 of the single-chip AT89C51. 2 Connect IRQ / CP of MT8880, the specific circuit, as shown in Figure 2.

Specific circuit

3 Realization method of wireless transmission

This system adopts ultra-small, ultra-low power, high-rate wireless digital transmission MODEM chip PTR2000 to realize wireless transmission of data. The operating frequency of PTR2000 is 433 MHz, which is an internationally-used digital transmission frequency band. It adopts FSK modulation and DDS + PLL frequency synthesis technology. It has two channels and the operating rate can reach up to 20 kB / s. 2.7 V), low power consumption, while using low transmit power (+10 dBm), high receiving sensitivity (-105 dBm) design, use without applying for a license.

PTR2000 is simple and reliable, with only 7 external pins. The control functions of each pin are as follows:

Pin1: Vcc positive power supply, 2.7 ~ 5.25 V;
Pin2: CS channel selection, CS = 0 selects working channel 1 (433.92 MHz), CS = 1 selects working channel 2 (434.33 MHz);
Pin3: DO data output;
Pin4: DI data input;
Pin5: GND power ground;
Pin6: PWR energy-saving control, PWR = 1 is the normal working state, PWR = 0 is the standby micro power consumption state;
Pin7: TEXN working mode selection, when TEXN = 1, the module is in transmitting state, and when TEXN = 0, the module is in receiving state.

The interface circuit of the main single-chip AT89C51 and its external PTR2000, as shown in Figure 2. The CS of PTR2000 is directly grounded, using working channel 1, which is 433.92 MHz. Pin6 of PTR2000 is connected to P2.0 of the single-chip microcomputer, and Pin7 of PTR2000 is connected to P2.1 of the single-chip microcomputer. The TXD and RXD of the main single-chip AT89C51 are connected to the DI and DO terminals of PTR2000 respectively. The interface circuit from the MCU and its external PTR2000 is the same.

The master MCU AT89C51 sends the data to the PTR2000 according to the control requirements, and then the PTR2000 transmits the data after FSK modulation, and after receiving the FSK modulation signal from the external PTR2000 of the slave AT89C51, it first demodulates and outputs the control information to the slave AT89C51 The slave AT89C51 controls the work of smart home appliances.

Because the single-chip AT89C51 has multi-computer communication function, the multi-computer communication is realized by using the serial port of the single-chip AT89C51. When the SM2 bit of an AT89C51 MCU is 1, the MCU only receives the address frame and ignores the data frame, and when the SM2 bit is 0, it receives all the information sent. If the master wants to communicate with a target slave, the master sets Pin7 = 1 of its external PTR2000, sends a frame of address information of the target slave to all slaves, and then sets the Pin7 = 0 of its external PTR2000 to receive The response information sent by the machine. After receiving the address frame, each slave responds to the serial port interrupt and compares its own address with the target slave address. If the two are the same, the slave is the target slave, set Pin7 of the external PTR2000 of the slave to send a response message to the host, and then set SM2 = 0 of the slave and Pin7 of the external PTR2000 to receive subsequent control Information and data. If the two are different, the slave is not the target slave, and the SM2 = 1 of the slave is still maintained, and the Pin7 = 0 of the external PTR2000 is ignored, and the control information and data sent by the master are ignored. After the master receives the response information sent from the slave, it starts to send control information and data.

4 Software design

The flow chart of the host communication subroutine is shown in Figure 3.

Host communication subroutine flow chart

Slave communication subroutine flow chart, as shown in Figure 4.

Slave communication subroutine flow chart

5 System test

Because PTR2000 belongs to wireless high-frequency communication, the anti-interference problem of the system must be fully considered. At the same time, the uncertainty of the wireless communication environment, the transmission effect in various environments is not the same, path loss, human body influence, building influence, External interference, multipath phenomena and the absorption of the surrounding environment will have a certain impact on the transmission distance.

Therefore, when designing the PCB diagram, surround the clock circuit part with a ground wire, so that the electric field around it approaches zero; at the same time, each integrated circuit adds a decoupling capacitor to improve the anti-interference ability of the system. During the test, it was found that the data transmission was normal, only due to the obstruction of the indoor wall and the presence of various homes, the signal was attenuated, the communication distance was less than the outdoor open area, but it could meet the indoor communication requirements.

Through the test of the system's data transmission capability, the system sends and receives data correctly and reliably, and the components work normally. Experiments show that the system can work stably and reliably for a long time.

6 Conclusion

The designed indoor communication system based on wireless transmission has low power consumption and low cost. In addition to being applied to the remote control system of smart home appliances, it can also be applied to anti-theft alarm systems and other short-range wireless communication fields.

Medical Device Speaker:

 

Medical Device speaker is a kind of micro speaker unit which uses a diaphragm made of Mylar material. Mylar speakers are of ultrathin design and lightweight and clear voice. It is widely used in  medical devices (sphygmomanometerglucometerfetus-voice meter-) .

 

There are two types of Mylar speakers from the shapes:

1)       Round shapes, we have products from 10mm to 57mm in diameter.

2)       Oblong shape, we have products in sizes of 1510/1712/1813-..

 mylar speaker

mylar speaker

mylar speaker

mylar speaker

FAQ

Q1. What is the MOQ?
XDEC: 2000pcs for one model.
Q2. What is the delivery lead time?
XDEC: 15 days for normal orders, 10 days for urgent orders. 
Q3. What are the payment methods?
XDEC: T/T, PayPal, Western Union, Money Gram. 
Q4. Can you offer samples for testing?
XDEC: Yes, we offer free samples. 
Q5. How soon can you send samples?
XDEC: We can send samples in 3-5 days.

Medical Device Speaker

Sphygmomanometer Speaker,Fetus-Voice Meter Speaker,Glucometer Speaker,Blood Pressure Monitor Speaker

Shenzhen Xuanda Electronics Co., Ltd. , https://www.xdecspeaker.com