Anda di halaman 1dari 4

Design of multi-channel wireless remote switch

control system for smarthome control system


Zhang Min
College of Information and Communication Engineering. Hunan Institute of Science and Technology
Yueyang, China
Email: hnyyzm@126.com
AbstractThe system designed in this paper is a multichannel wireless remote switch control system, which uses the
single chip microcomputer(SCM) AT89S52 as the core of control
and uses the wireless encoding and decoding chip PT2262/2272 as
the core of wireless communication. Furthermore, this system
includes an expanding design of an infrared human body
induction circuit in order to improve the intelligent control to
household furnish. System tests show that: The system reliably
realizes the wireless remote intelligent control to a variety of
household electrical appliances and the display of the status of
different household electrical appliances.

II.

This multi-channel wireless remote switch control system is


mainly composed of a transmitting module and a receiving
module and an infrared human body induction module . The
transmitting circuit is mainly composed of PT2262.Four
channel control signals are generated by keys that each one
controls a electric relay through receiving circuit to realize the
intelligent control to a variety of household electrical
appliances. In addition, the data information is send to nixie
tubes for display. The receiving circuit mainly consists of
PT2272, AT89S52 and electric relays. The infrared human
body induction module is mainly composed of pyroelectric
infrared sensor HC-SR501 and the chip BIS0001 for the
detection of human activity. The transmitting circuit uses 12V
DC power supply and the receiving circuit and the human body
infrared induction circuit use 5V DC power supply. The
system composition block diagram is showed as Fig.1.

Keywordsmulti-channel switch; infrared detection;wireless


communication; smarthome control

I.

INTRODUCTION

Smarthome control system(SCS) is a management and


control system to improve the intelligence, convenience,
security and comfort of modern families and realize by
environmental protection and energy saving using
communication technology, security technology, automatic
control technology, audio and video technology etc. The
control to household electrical appliances of residential is the
main object in SCS. A multi-channel wireless remote switch
control system is designed in this paper for the intelligent
control to a variety of household electrical appliances.

Transmitting module
(PT2262key-press)

Infrared human
body induction
module

Receiving module
(super regenerative
receiver circuit)

Decode and control module


PT2272SCMelectric relays

Fig. 1. The system composition block diagram

Smarthome control systems(SCS)is a management and


control system to improve the intelligence, convenience,
security and comfort of modern families and realize energy
saving and environmental protection by using communication
technology, security technology, automatic control technology,
audio and video technology etc. The control to household
electrical appliances of residential is the main object in SCS.[1]
Because of transmitting signals through the digital signal,
wireless remote control is not affected basically by the space
environment and obstacles. And the transmission distance of
wireless remote control can be near or be far according to the
demand of system design. So wireless remote control become
the main way of remote control. In this paper a multi-channel
wireless remote switch control system is designed using
integration chips based on previous studies for the intelligent
control to a variety of household electrical appliances. This
remote switch control system is easy to operate, and it is safe,
effective,cheap and low carbon energy saving .

978-1-4799-2860-6/13/$31.00 2013 IEEE

OVERALL DESIGN SCHEME

III.

SYSTEM HARDWARE DESIGN

A. The design of wireless transmitting module


The function of the wireless transmitting module is realized
mainly by coding chip PT2262 in which the signals of keys are
encoded. The composition block diagram and the circuit
diagram of the wireless transmitting module are showed as
Fig.2 and Fig.3.
Key signal

PT2262 encode

Code output

315MHZ modulator

Power amplify

Fig. 2. The composition block diagram of the wireless transmitting module

274

10~13 pin of PT2272[3].Then the SCM will take the


corresponding control after data analysis. If the address code is
error by checking, the output ports of PT2272 will have no
operation.

4.5H

antenna

buzzer

Fig. 3. The circuit diagram of the wireless transmitting module

In this design, the 1~8 pin of PT2262 are the address setting
pins, and there are three kinds of state can be selected:
suspended, connected with the positive power supply,
grounded. In order to make the design convenient and simple,
the 1 ~ 8 pin of PT2262 are all suspended. [2]The 10~13 pin of
PT2262 are the data port controlled by four keys(S1,S2,S3,S4).
LED indicator will light while press the key each time to show
the transmitting circuit works normally.PT2262 will encode
according to the preset address of the keys and the latest input
data. When there is an anyone key be pressed, PT2262 is in
working state and the code output port(17 pin) will output
pulse 1 to motivate the oscillator composed of dynatron
V1and crystal oscillator GDX315 to work normally to generate
315MHz high frequency carrier wave on which the encoded
data is modulated to send out. When there is no key be pressed,
PT2262 is in loss of power accident and the code output
port(17 pin) will output pulse 0. And then the oscillator will
stop work, so the wireless transmitting module will not set out
data.

Fig. 4. The circuit diagram of the decode and control circuit

household electrical
appliance 1

household electrical
appliance 3

household electrical
appliance 2

household electrical
appliance 4

Fig. 5. The circuit diagram of the load circuit

B. The design of wireless receiving circuit


The wireless receiving circuit is composed of a super
regenerative receiver circuit, the decode and control circuit and
the load circuit. The super regenerative receiver circuit is
designed in this system to demodulate the mixed signals into
the original data signals through frequency selecting, filtering,
amplifying, filtering more, capacitance coupling and detecting
circuit. Then the data signals are sent to the 14 pin of the
decoding chip PT2272 to decode.

The keys S1~S4 of the transmitting module realize


separately the control to four different household electrical
appliances in this design. When press the key S2, LED
indicator of the transmitting module will light and the
transmitting module transmit 315MHz wireless signal. If the
signals transferred through the super regenerative receiver
circuit and the decode circuit are received successfully ,the
buzzer of the receiving module will send out "di" sound. And
the SCM will control the digital tubes to display 21 to show
the household electrical appliance 2 works normally. Moreover,
the SCM will send high electrical level to the corresponding
electric relay, and the electric relay will close to make the
household electrical appliance 2 start to work. When press the
key S2 again, ,the buzzer of the receiving module will send out
"di" sound once more and the SCM will control the digital
tubes to display 20 to show that the household electrical
appliance 2 stops working if the signals are received
successfully. Moreover, the SCM will send low electrical level
to the corresponding electric relay, and the electric relay will
disconnect to make the household electrical appliance 2 stop
working. So, if the household appliance dont work, to press
the corresponding key can control it to start the normal work.
And to press this corresponding key again can control the
appliance to stop working when it works normally. If the first

The circuit diagram of the decode and control circuit and


the load circuit are showed as Fig.4 and Fig.5.
As with PT2262 , the 1~8 pin of PT2272 are the address
setting pins.Only when the transmitter PT2262 and the receiver
PT2272 have the same address code and the corresponding
data ports, they can be paired in using to encode correctly. So
the 1 ~ 8 pin of PT2272 are all suspended too.PT2272
compares the address code twice to decode after the signals
transmitted from the transmitting module are received through
the super regenerative receiver circuit. The signal transmitted
from the TE port of PT2262 will send to the 14 pin of PT2272
through the super regenerative receiver circuit if the encoding
is successful. At the same time ,the data(D0~D4) received by
PT2272 will send to the SCM AT89S52 directly through

275

time to press the key S1,and the second time to press the key
S2, then the household electrical appliance 1 and the household
electrical appliance 2 would maintain their respective working
states, and would not influence each other.

Start

C. The design of infrared human body induction module


The infrared human body induction module is designed in
this system for the detection of human activities and the
intelligent control to household. This is one innovation of this
design. If there is no human activity for a period of time in the
room, the relative household electrical appliance would stop
working automatically for the equipment safety and the energy
saving . Pyroelectric infrared sensor can be used to detect
targeted the infrared rays emitted by human body with constant
temperature. Because the signal from the sensor is weak, this
design uses the infrared processing chip BIS0001 for signal
processing, and then sends the signal to the P3.3 pin of SCM
to realize control function[4].

Household electrical appliance is working?

N
P3.3 is 0?

N
The time without human body arrive
the arranged value?
Y

Buzzer alarm

The body induction signal that is outputted from PIR


(human pyroelectric infrared sensor) would input to BISOOO1
from 14 pin. When people enter the sensing range of PIR , PIR
will output high electrical level which will be sent into the
SCM to read. SCM will not make corresponding control
operation at this time. When people leave the sensing range of
PIR,PIR will close the high electrical level automatically timedelay and will output low electrical level as standby time.
When the SCM has read the low electrical level over a period
of time, SCM would control the corresponding household
electrical appliance to stop working and the buzzer would send
out "di,di,di" sounds to alarm.
IV.

Household electrical appliance stop working

Fig. 7. The program flow diagram of infrared human body detection and
control

PT2262 requires at least 4 group of codes to transmit each


time, while PT2272 would drive the corresponding data outputport and synchronous output-port VT to be high electrical
level 1 according the data code received only when it has
detected the same address code and data code twice
continuously.
V.

EXPERIMENTAL RESULT

Write programs by using Keil C51 and burn them to the


SCM AT89S52. Assign different values to the signal input of
the SCM by using serial port debugging assistant. The test
results are 100% accuracy and meet the expectations fully.
During the process of hardware test, this design uses stepper
motor to replace the household electrical appliance 1 and uses
DC motor to replace the household electrical appliance 2. The
final transmitting- receiving distance of the system can reach
50m.The results of the hardware test are represented in the
Tab.1 after several debugging.Fig.8 shows the pictures of test
result when we press the key 2.

SYSTEM SOFTWARE DESIGN

This system design writes the software by using language


C.The main program flow diagrams of this system are showed
as Fig.6 and Fig.7.
Start

System initialization

N
Receive signal?
Y
SCM accept and
process data

Digital tubes display

Electric relay action

Fig. 8. The pictures of test result

buzzer sound

Household electrical appliance control

Fig. 6. The program flow diagram of wireless transmit-receive and


household appliance control

276

TABLE I.
Key

S1
S2
S3
S4

THE TABLE OF WIRELESS REMOTE TEST RESULTS


The
number of
times of
pressing
key

Buzzer

Digital
tube
display

Status of
household
appliances

1
2
1
2
1
2
1
2

sound
sound
sound
sound

11
10
21
20
31
30
41
40

work
stop
work
stop
work
stop
work
stop

sound
sound
sound
sound

VI.

good. The most transmitting- receiving and control distance of


this system adequately meets the requirement of wireless
remote household control. The system also obligate many I/O
ports for extensive extended application.This system has a
good application prospect.

ACKNOWLEDGMENT
The author wishes to thank for the support of the science
and technology project of Hunan Province (project number:
2011GK3168) .

CONCLUSION

REFERENCES

This design mainly completes the hardware and the


software design of the signal acquisition, data transmitting,
data receiving , load controlling and status displaying for the
multi-channel intelligent household furnish wireless remote
control system. Furthermore, this system expands an infrared
human body induction circuit in order to improve the
intelligence.
The tests proved: This system can not only realize the
wireless remote control to different household electrical
appliances by pressing corresponding key and the feedback
control of the infrared induction circuit to the work of the
relative household electrical appliances, but also can display
the status of household electrical appliances accurately. The
system runs stably and the real-time performance of system is

[1]

Zhang xian, Composition and application of intelligent household


controller, Digital Technology and Application,2009(8), pp. 13-14,
August 2009.
[2] WuWenjia, Application of PT2262/PT2272 in wireless intelligent
alarming system, Global ElectronicsChina, 2004(1), pp:44-46,
January 2004.
[3] Fang mingming, Design of four-channel wireless remote controlling
switch, Electronic Test, Electronic Test, 2009(5), pp.85-89, May 2009.
[4] Zhu Gaozhong, Design of Pyroelectric Infrared Sensor Alarm System,
Electronic Engineering & Product World,vol 19, pp.56-59,June 2012.
[5] Zhang peizhi,Lu wei,Qiu zhi,Cheng yulin, Household illuminating
system of wireless remote-controlled based on SCM, Instrumentation
Customer, vol 15, pp.35-36, March 2008.

277

Anda mungkin juga menyukai