当前位置:网站首页>[graduation design] smart home system based on ZigBee - single chip microcomputer Internet of things stm32
[graduation design] smart home system based on ZigBee - single chip microcomputer Internet of things stm32
2022-07-28 12:55:00 【Mdc_ stdio】
List of articles
1 brief introduction
Hi, Hello everyone , This is senior Dan Cheng , Today, I'd like to introduce a single chip microcomputer project made by a senior
be based on zigbee Smart home system
You can use it for curriculum design or Graduation project
Single chip microcomputer - Embedded design topic selection and project sharing :
https://blog.csdn.net/m0_71572576/article/details/125409052
2 Preface
Used by senior students 6818 The development board is the gateway board of the system , It is the center of system data . Start serial transceiver , Can receive ZigBee The coordinator of the network sends data through the serial port ; lCD Screen programming , Realize the real-time display of sensor network data ; The establishment has MySQL Database connection , The temperature, humidity and door status information of the sensor network can be saved in the remote database server ; The establishment has TCP The server , Can realize the communication with the upper application ; Through serial port and NB-IOT Module connection , Realize the data forwarding of external network communication .
The perception layer of the Internet of things uses ZigBee The Internet , Realize sensor data acquisition of multiple terminal nodes , Device control of multiple terminal nodes , Unify data to be managed by coordinator ; The network layer uses Yue inlay 6818 Development board , Integration of multiple protocols , Realize data forwarding and processing ; There are WEB Terminal data display and mobile terminal light control .
2.1 System objectives
The perception layer of the Internet of things uses ZigBee The Internet , Realize sensor data acquisition of multiple terminal nodes , Device control of multiple terminal nodes , Unify data to be managed by coordinator ; The network layer USES 6818 Development board , Integration of multiple protocols , Realize data forwarding and processing ; There are WEB Terminal data display and mobile terminal light control .
3 System architecture

3.1 Gateway board design :
The IOT gateway development board uses 6818 Development board ,GEC6818 Development platform , The core board adopts 10 Laminate process design , Make sure it's stable , It can be used for tablet computers in batches , Car engine , Learning machine ,POS machine , console , Industry monitoring and other fields .
The platform carries Samsung Cortex-A53 Series of high performance eight core processors S5P6818, The highest dominant frequency is as high as 1.4GHz, Can be applied to embedded Linux and Android Wait for the drive of the operating system 、 application development . The development board has abundant peripherals , Support for Gigabit Ethernet 、 On board LVDS Interface 、MIPI Interface 、USB Interfaces, etc. .
GEC6818 The development platform supports three major operating systems , Have complete teaching resources and teaching content , Include :ARM Experiments driven by microprocessor system 、 Embedded real-time operating system Linux Development 、 The embedded Android System development 、 The embedded Android application development 、 Embedded system project development, etc .
GEC6818 The development board is embedded Linux System , Internal operation has TCP The server , Can wait TCP The client connects to submit data and receive control instructions ; There is a database client running inside , The sensor data reported by the sensing layer can be saved to the database server ; The board is integrated with 800*480 's display , The module status and sensor data can be displayed through the display screen ; The board is connected with the through two serial ports respectively ZigBee The coordinator of the network sensing layer 、NB-IOT Module to communicate . Achieve multi protocol Integration , Sending and receiving data 、 Handle 、 forward .
GEC6818 The development board is the data center of the system .

3.2 ZigBee Network sensing layer
The perception layer of the system uses ZigBee Network data transmission , It has a coordinator and two terminal sections . Terminal nodes realize perception and control , The sensing part includes temperature and humidity sensors 、 Hall gate sensor ; The control part is a tricolor distributed on each terminal LED The lamp .

3.3 Display control platform and data storage
The display control platform is based on the development of gateway board for users , It will need to process the data of the gateway and return it to the user for viewing and operation through simple methods such as graphics and text , Realize the rapid use of data .6818 The gateway board is connected with LCD Screen display , Realize the display of door switch status 、 Up and down line display of two terminal modules 、 Real time display of temperature and humidity .TCP Display console , It's by connecting the gateway board TCP Server implemented , You can get the data sent by the gateway , Display module status after parsing 、 Door status 、 Temperature and humidity data , The control command can also be issued through the button trigger . Data saving is to save the sensor data received by the gateway to the database in real time , The data display of the database will be displayed through the web page . The data receiving and control command sending of mobile terminal are through MQTT agreement , And the gateways realize MQTT The agreement is through NB-IOT modular .

3.4 NB-IOT Module implementation
The gateway connects with the NB Module to communicate ,NB Module through MQTT Application protocol and application layer communication , The implementation of the application layer is that the mobile phone receives the relevant sensor data and sends the light control instruction .MQTT The server is built on Tencent virtual machine .
BC26 Characteristics of :
a phone fit all kinds of networks
Support AT Instructions
Support OpenCPU, You can save the periphery MCU
Support high-speed mobile (80km/h~120km/h)
Using the MT2625 chip
OpenCPU
OpenCPU It is a secondary development scheme based on the remote module , Users can develop integrated applications directly in modules , So as to eliminate the external master MCU.OpenCPU It has been widely used in M2M field , For example, smart home 、 Intelligent City 、 Asset tracking , Automotive energy and other fields .
OpenCPU The comparison with the traditional scheme is as follows . In the traditional scheme , Need one MCU As the main controller , Control hardware peripherals , For example, to control the lights on or off , And then use MCU Of UART Interface and standard module AT Command communication , Report the status of current street lights , Or receive the on / off command from the remote server . and OpenCPU programme , Can be directly programmed in the module to control the street lamp , Save hardware costs , Accelerate application development .
OpenCPU The core system is NB-IoT The combination of hardware and software of the module . It's built in ARM Cortex-M4 processor , Builds on the FreeRTOS On the operating system , With microkernel 、 The real time 、 Features such as multitasking .

Realization effect



Single chip microcomputer - Embedded design topic selection and project sharing :
https://blog.csdn.net/m0_71572576/article/details/125409052
4 Last
边栏推荐
- Merge table rows - three levels of for loop traversal data
- 连通块&&食物链——(并查集小结)
- Monotonic stack
- Initialization examples of several modes of mma8452q
- Review the IO stream again, and have an in-depth understanding of serialization and deserialization
- Summary: idea problem record
- Uncover why devaxpress WinForms, an interface control, discards the popular maskbox property
- 04 pyechars geographic chart (example code + effect diagram)
- MMA8452Q几种模式的初始化实例
- Unity加载Glb模型
猜你喜欢

01 pyechars 特性、版本、安装介绍

Leetcode:704 binary search

01 introduction to pyechars features, version and installation

VS1003 debugging routine

05 pyechars 基本图表(示例代码+效果图)

Science 重磅:AI设计蛋白质再获突破,可设计特定功能性蛋白质

SuperMap iclient3d for webgl to realize floating thermal map

Zurich Federal Institute of technology | reference based image super resolution with deformable attention transformer (eccv2022))

机器学习实战-集成学习-23

Leetcode94. Middle order traversal of binary trees
随机推荐
The largest rectangle in leetcode84 histogram
快速读入
STM32 loopback structure receives and processes serial port data
04 pyechars 地理图表(示例代码+效果图)
MySQL is always installed unsuccessfully. Just do it like this
机器学习实战-集成学习-23
输入字符串,内有数字和非字符数组,例如A123x456将其中连续的数字作为一个整数,依次存放到一个数组中,如123放到a[0],456放到a[1],并输出a这些数
MySQL limit paging optimization
Library automatic reservation script
苏黎世联邦理工学院 | 具有可变形注意Transformer 的基于参考的图像超分辨率(ECCV2022))
C structure use
机器学习基础-贝叶斯分析-14
Which big model is better? Openbmb releases bmlist to give you the answer!
Connected Block & food chain - (summary of parallel search set)
机器学习基础-主成分分析PCA-16
[pictures and texts] detailed tutorial of one click reinstallation of win11 system
线性分类器(CCF20200901)
LeetCode94. 二叉树的中序遍历
非标自动化设备企业如何借助ERP系统,做好产品质量管理?
Jinshanyun rushes to the dual main listing of Hong Kong stocks: the annual revenue of 9billion is a project supported by Lei Jun