Научная статья на тему '基于 ZIGBEE 无线家居温湿度检测系统设计'

基于 ZIGBEE 无线家居温湿度检测系统设计 Текст научной статьи по специальности «Компьютерные и информационные науки»

CC BY
63
34
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
ZIGBEE 协议 / 控制系统 / 温湿度 / 无线技术

Аннотация научной статьи по компьютерным и информационным наукам, автор научной работы — 李 凯

家居控制系统是用来控制家用电器和管理家居, 管理家庭所处的环境, 并提供安全, 高率和便捷的学习和生活环境, 随着无线通讯的技术的不断发展, 智能家居也朝着一个新的发展. 本文基于 Zigbee 无线网络通讯, 设计了一种无线家居温湿度检测系统, 通过网络网络连接可实现对家具设备实时检测和控制.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

DESIGN OF WIRELESS HOME TEMPERATURE AND HUMIDITY DETECTION SYSTEM BASED ON ZIGBEE DESIGN

The function of the home control system is to control household appliances and manage the home, manage the environment in which the family is located, and provide occupants with a safe, efficient and convenient learning and living environment. As the technical requirements for wireless communication required are getting higher and higher, the requirements of the home are also getting higher and higher. Due to the advantages of wireless technology, the communication method of the smart home control system now tends to choose the wireless communication method. This paper designs a wireless home temperature and humidity detection system based on Zigbee, which can connect to the network and detect and control the equipment.

Текст научной работы на тему «基于 ZIGBEE 无线家居温湿度检测系统设计»

iii. Технологии, материаловедение,

энергоэффективность

For citation: Li Kai. Design of wireless home temperature and humidity detection system based on Zigbee Design //

URL: http://rectors.altstu.rU/ru/periodical/archiv/2021/2/articles/3_1.pdf DOI: 10.25712/ASTU.2410-485X.2021.02.007

UDK 64.06

Design of wireless home temperature

and humidity detection system based on Zigbee Design

zigbee жшвшй&шш:^

Li Kai12

ши

1 Hubei Digital Textile Equipment Key Laboratory, School of Mechanical Engineering and Automation,

Wuhan Textile University, Wuhan 430073, China 2 Hubei Tianmen Textile Machinery Co.,Ltd, Tianmen, 431700, China E-mail: 1029148497@qq.com

1 пи 430073

2 ШЬ^П^ШШШШ^, ^П 431700

0 3\т

мш^. zigbee мштп, ^ж^ет^^петшм, ш

ЖШШ^ВДМШт «ЖТ Zigbee Ш+Т-ШШ^Ж^

1 шш^жттъшшш

wiFi тттмшм,

хчыш app шшшттт, шшш^ш

, шит,

т, шшшшш.

-да IAR ш&шяшжшшшт, APP

ш, чштши. zibee шшмад 1 т^.

ffl 1 Zibee amtlM Fig. 1. Zibee communication model

2 ^mwêîm&m^Mmmmm 2.1 xmmm

(1) ^m^rnmmm^x;

(2)

(3) fârnâ^M^Mb;

(4) HWm;, fâm^^Mb;

(5) wM^MM^.

2.2 ШШШ ZigBee ШШ

Zigbee яшшж, шммшм^Й, ш, тшмтттж, rnrn^

Zigbee т^ШШ Zigbee 2.

1=1

рзщш

® 2 Zigbee МЖШ® Fig. 2. Flow chart of Zigbee coordinator

3.1 CC2530 ft^

CC2530 ШШ, 5.W ZigBee SH

^ташт шшш^, т 3 т^шжт^т

s S

8 -, -, S £ £

GND GND GND GND P1_5

• 1 IIIJIJIJUU Un

—, I40 58 3t 17 3C 19 34 XS 32 31 _

DÎ »c

HT- 3 \ _

—•4 27. _

Z's GND ! 26.™

IT1« Ground Pad I 2Sd

D.

_'<* 22__

13 14 15 16 17 18 19 202t~

ill 1 1 1

Fig. 3. Flow chart of Zigbee coordinator

3.2

3.3V-5V, щ I/O РШЛ^ЕТО,

^, 4.

т 4

Fig. 4. Buzzer

3.3 DHT11

л

(1) VCC: ШМШ (3.3V)

(2) DATA: Ш P0.7

(3) GND: Ше

т5

Fig. 5. Sensor

4 шш^жттъштттт

IAR МВД ZigBee

ФРft Flash Program ШШШШЖШ, йШШFlash

Program ТШМ^ШМ^ШЖ

(1) esp8266wifi mm, етзд app -^щшшт, да 7.

(2) ESP8266 cp2102, 8.

(3) m iO gnd mm^, ^

esp-WiFi, tUM 9-10.

I^j IAR Embedded Workbench IDE

File Edit View Project Texas Instruments Emulator Tools Window Help

□ & a s a

Workspace

CoordinatorEB-Pro

Files

□ 0 GenericApp - Coordinator..

H^lQApp —El |?| delay.c

— 0 delay.h —El |?| GenericApp.c

— 0 GenericApp.h —El |?| oled.c

— 0 oled.h

— 0 oledjmg.h -El |?| OSAL_GenericApp.c —El |?| ringbuffer.c

— 0 ringbuffer.h -El □ HAL

-El D MAC -El DMT -E1LDNWK -0 D OSAL -El D Profile -El D Security —El CJ Services —El LH Tools -ElQZDO

1 r^l 7K Jar_

GenericApp

ds!8b20.c | fèwConfig.cfg |fëwCoord.cfg | QSAL_GenericApp.c |ZMain.c oled.c | fiSwRouter.cfg | fSwEndev.cfg |

OLED_SCL = high; OLED_Tick_delay(); OLED_SDA = high; OLED_Tick_de1ay{);

void Write_IIC'_Byte iunsiqned char IIC_Byte)

unsigned char i ;

for (i = 0; i < 8; i++)

t

if |IIC_Byte i IixSO) <

C'LED_5CA = high;

}

else

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

I

0LED_SDA = low;

)

OLEU_Tick_delay(); OLED_SCL = high;

Fig. 7.

j f„ ■ ■ ■■........

Schematic diagram of the coordinator program

^ IAR Embedded Workbench IDE

File Edit View Project Texas Instruments Emulator Tools Window Help

5 m

» ®s I'i • > Ji-

Workspace EndDeviceEB-Pro

Files

El |3 GenericApp - EndDevi..

-^□App —El ß delay.c

— ß delay.h —El |l| GenericApp.c

— ß GenericApp.h —El 0 oled.c

— ß oled.h —El |?l protocol.c

— ß protocol.h —El |?l pulse_sensor.c

— |j?| pulse_sensor.h

— EÜ rc522.h —El |l| ringbuffer.c —El |?l sensor_misc.c

— ß sensor_misc.h —El 0 sensor_port.c

— El sensor_port.h GenericApp

hal_dma.c | hal_dma.h | haljed.c | GenericApp.c | DUTll.c | pulse_sensor.c | ZDQbject.h | OSAL.c | protocol.c | delay.c

* LOCAL FUNCTIONS

'/

static void zmain_dev_info( void ); static void zmain_ext_addr ( void ); static void zmain_vdd_check( void );

#ifdef LCD_SUPPORTED

static void zmain_lcd_init ( void );

#endif

/*

1 @fn main

1 Sbrief First function called after startup. * @re turn don't care

V

int ntain( void ) {

// Turn off interrupts osal_int_disable( INTS_ALL );

// Initialization for .board related stuff such as LEDs

llï^in <

m8

Fig. 8. Terminal schematic diagram

m 9 ^sff^s

Fig. 9. Programming hardware connection

В

Operation Config Advanced About Log COM Port COM20 Flash©

AP MAC DE-4F-22-36-AF-C0 STA MAC DC-4F-22-36-AF-C0

^NODEMCUTEAM Ready

ffl 10 ^ffl Fig. 10. Programming diagram

5

ttftfimm zigbee m-^wmfM^Memm, ^«M^m m^&mttmm^, i^m ^M^mm st zigbee ^^

References

[1] Overview of smart home security [J]. Wang Jice, Li Yilian, Jia Yan, Zhou Wei, Wang Yucheng, Wang He, Zhang Yuqing. Computer Research and Development. 2018(10)

[2] Research on the design and application of smart home system based on Zigbee technology [J]. Yang Puju. Computer knowledge and technology. 2019(09)

[3] Research and design of smart home system based on Zigbee and WiFi [D]. Liu Shouchang. University of Jinan, 2016.

[4] Research on the development of China's Internet of Things industry based on technology, application and market [D]. Conglin. Liaoning University, 2016.

[5] Design and implementation of smart home security monitoring system [D]. Sun Tingting. Dalian University of Technology, 2019.

i Надоели баннеры? Вы всегда можете отключить рекламу.