The combination of stm32 and WeChat official account can still play like this?

Follow, star public account, direct access to exciting content

ID: Technology makes dreams greater

Author: Li Xiao Yao

Campus angel

Summary

The design is based on STM32 and WeChat's classroom crowd flow dynamic acquisition system . Realize the real-time display of the number of classrooms and the number of remaining empty seats in the lobby of the university teaching building, and send the data to the remote server via the Internet. Users can follow the WeChat official account through the palm communication device to query relevant information anytime and anywhere.

Keywords : STM32, network communication, Ethernet, WeChat

1 Introduction

1.1 The overall framework of the work

In order to realize the real-time monitoring of the number of people in each classroom, and display it in the hall of the teaching building. At the same time, students and teachers in colleges and universities can use the WeChat client in the communication device we carry to make queries conveniently and quickly. The whole work can be divided into classroom information collection module, wireless sending module, LCD display module, network communication module, WeChat module and remote server. The overall framework of the work is shown below:

Figure 1.1

1.2 Background analysis

Self-study classrooms are closely related to all aspects of the daily work and study of college students and teachers. However, in real life, students often waste a lot of time because they cannot find self-study classrooms or seats, which affects the interest of self-study, especially in the examination month of each school year. There are a large number of self-study people and lack of seats. Students must rush to each classroom in each teaching building to find self-study seats. It is cumbersome and inefficient. It not only wastes a lot of time, but also disturbs other students' study. In addition, it is difficult for college students or teachers to find empty classrooms during class meetings and other activities, which greatly reduces the students' enthusiasm for learning, and also affects the work mood of the teachers. Therefore, we want to build an intelligent monitoring system that can monitor the number of classrooms in real time and query the information of the number of classrooms in each teaching building through wearable devices in our daily lives. In order to facilitate the daily work and study of students and teachers.

  1. The continuous rapid growth of mobile Internet, China's mobile Internet market reached 2134.8 trillion yuan in 2014

  2. The widespread popularity of smartphones, China's smartphone shipments reached 390 million units in 2014

  3. The rapid development of WeChat has reached 500 million domestic WeChat users as of 2014

1.3 Functions and indicators

College students and teachers can see the real-time flow data information (classroom capacity, current number of self-study students in the classroom, and remaining seats available for self-study in the classroom) displayed on the LCD display screen in the classroom of the teaching building when they enter the lobby of the teaching building. At the same time, through WeChat public With the access to the platform, students and teachers can follow our WeChat public account through mobile phones and other electronic communication devices they carry with them, and they can check and understand the seat information of the study room anytime and anywhere without having to rush to the teaching building. When you visit each classroom, you can choose the time and classroom conveniently and quickly. It has very good interactivity, solves the problem of finding a study room, improves the time utilization and enthusiasm of college students, and facilitates the use and management of the study room.

1.4 Features and Application Market

The self-study classroom is directly related to the daily work and study of college students and teachers, but how can we provide students and teachers with relevant information about the self-study classroom in an efficient and convenient way? At present, there are no comprehensive and systematic solutions to such problems at home and abroad. This design brings great convenience to the study and work of college students and teachers, while making the use and management of the study room intelligent. A comprehensive intelligent management system for classrooms in colleges and universities across the country can be established.

  1. design feature

Connect the intelligent monitoring system to the Internet to make information more open, simple and lively. Use portable equipment, WeChat public platform, can automatically provide information for students 24 hours, with very good interaction, solve the problem of finding a study room, at the same time, it also increases the interest of learning, and facilitates the use and management of the study room .

  1. Safety and cost The overall design is small in size, light in weight and low in energy consumption. Low cost, strong design stability, smart and fast.

  2. Wide range of applications. At present, there is no such perfect classroom intelligent monitoring system at home and abroad. Therefore, the design can be widely used in major universities across the country, and the demand is large. At the same time, the core of the system is WeChat remote monitoring, which can be used not only for monitoring the number of people, but also for all aspects of intelligent monitoring, such as prairie sheepfolds, cattle pens, meeting rooms, parking lots and so on. The application prospect is very broad.

2 Implementation plan

2.1 System solution

The system is mainly composed of STM32, ARM series chips, infrared sensor, 24l01 wireless transmission, LCD display, network communication module, WeChat, remote server, etc. Each classroom node and the main control microcontroller in the hall form a local area network. The cluster classroom system uses infrared laser sensors to dynamically collect information about the number of people in each classroom, and then sends the data to the main control microcontroller through the local area network, and in real time in the teaching building hall through the LCD display Displayed, and then the main control MCU connects to the Internet to send the data to a remote server in Beijing. You can use the WeChat server to display the information about the number of people in each classroom in the teaching building in the user’s APP chat window. At the same time, the user can click on the corresponding custom menu to enter the web page. The web page uses Ajax technology to dynamically refresh to display the empty classrooms in real time. The seat situation. For users to choose according to their actual needs.

2.2 Implementation principle

2.2.1 Information collection module for the number of people in the classroom

figure 2

The infrared sensor senses the human signal, and realizes the purpose of counting the number of people and judging the entry and exit of the classroom through the change of high and low level and the sequence of the level change of the two sensors, so as to achieve the effect of dynamic collection of classroom flow information.

2.2.2 Wireless transmission module

image 3

24l01, real-time wireless transmission of information about the current number of people in each classroom to the host in the teaching building lobby Realize the communication between each node classroom and the host in the hall of the teaching building. Simple and efficient.

2.2.3 LCD display module

Figure 4

LCD screens are installed in the halls of teaching buildings in universities to display the current number of seats in each classroom in the teaching building in real time, so that college students and teachers can intuitively understand the current number of people in each classroom when entering the lobby of the teaching building.

2.2.4 Network communication module

Figure 5

The host receives the data sent by each classroom system, and then transmits the data to the Ethernet module. The Ethernet module uses the UDP protocol to send the data from the host to the designated Internet host. 2.2.5 WeChat Module

Figure 6

A UDP process runs on the WeChat server to receive information from the Ethernet module. After the UDP process receives the data, it triggers another PHP on the server to save the received data. The user clicks on the custom menu under the WeChat public platform, the WeChat APP will send this event to the WeChat server in the form of a specific datagram. After the WeChat server receives this data, it forwards it to another user-defined server for the data. Processing: After the user server completes the data processing, it sends a response datagram to the WeChat server. After receiving it, the WeChat server sends it to the user client. The user's APP chat window displays the required information. At the same time, users can also click on the corresponding custom menu to enter the web page, which uses Ajax technology to dynamically refresh to show the situation of empty seats in the classroom in real time.

3 performance test

3.1 Test plan

In the system model of the teaching building, 101 and 102 respectively represent two node classrooms. We use the transparent long stick to represent the student's in and out, so as to obtain the changes in the classroom traffic data information.

3.2 Test data

When a student enters the classroom, the number of people on the screen of the slave computer in the classroom is automatically increased by one, and the number of people on the main screen of the teaching building lobby is also increased by one. At the same time, the change of the corresponding number of people can also be accurately checked in real time on WeChat. In the same way, when a person comes out of the classroom, the dynamic changes of the crowd data information will also be displayed on each display screen and WeChat in real time.

3.3 Analysis of test results

The dynamic changes of the data from the classroom slave, the lobby host, WeChat server and client, and the flow of people everywhere are the same, with strong real-time performance, realizing real-time dynamic intelligent monitoring of the number of classrooms.

4 Innovation

  1. This design allows users to easily and quickly understand the seat information of the study room classroom through the WeChat device in the palm, which solves the problem of difficulty in finding seats for college students and teachers, and also facilitates the use and management of the study room. Compared with students looking for seats in each classroom of each teaching building, its unique advantage is that it greatly facilitates the daily work and study of college teachers and students, and improves work efficiency.

  2. At present, there is no such perfect classroom intelligent monitoring system at home and abroad, so this design can be widely used in major universities across the country, and the demand is large. A comprehensive intelligent management system for classrooms in colleges and universities across the country can be established. The application prospect is very broad, and at the same time it has strong scalability. It can be applied to other related fields, such as intelligent monitoring of breeding systems, prairie sheepfolds, conference rooms, parking lots and so on.

5 Summary

The work is very interactive. It not only solves the problem of finding a study room, improves the time utilization and enthusiasm of college students, and facilitates the use and management of the study room. The overall design is small in size and light in weight. Low energy consumption. Low cost, strong design stability, smart and fast. At present, there is no such comprehensive classroom intelligent monitoring system at home and abroad. The design can be widely used in major colleges and universities across the country, and a comprehensive intelligent management system for college classrooms can be established. At the same time, the core of the system is WeChat remote monitoring, which can be used not only to monitor information about the number of people, but also to all aspects of intelligent monitoring, such as prairie sheepfolds, cattle pens, meeting rooms, parking lots and so on. The application prospect is very broad.

6 Demo

Teaching building function display

WeChat function introduction

WeChat interface


7 Summary

This article is a previous project, all things are intelligent, all things are connected. I hope it will have some inspiration for college students. See you in the next issue!

Recommended reading:

嵌入式编程专辑Linux 学习专辑C/C++编程专辑
Qt进阶学习专辑关注微信公众号『技术让梦想更伟大』,后台回复“m”查看更多内容,回复“加群”加入技术交流群。
长按前往图中包含的公众号关注

Guess you like

Origin blog.csdn.net/u012846795/article/details/108289507