设计说明书
总字数:17000+
本设计项目使用STM32F103C8T6单片机作为核心控制器,实现了一套智能教室管理系统。具体功能包括:RFID卡授权:通过RFID模块对学生卡进行授权,只有授权的卡才能进入教室。系统包括两个按键,一个用于授权卡,另一个用于取消授权,同时还有两个状态灯,红灯表示未授权,绿灯表示已授权。卡号存储在AT24C02芯片中。人体热释电感应:通过人体热释电感应模块检测教室是否有人。光敏电阻检测:利用光敏电阻检测教室内的光照强度,如果光照强度低于设置的最小值,并且检测到有人存在,则自动开灯。温湿度检测:使用DHT11传感器检测教室内的温度和湿度值。内部RTC同步时间:通过内部RTC(实时时钟)同步时间,并设定上课和下课时间。根据设定的时间表,在上下课时间到达时,蜂鸣器会响起3秒。语音识别控制窗帘:通过语音识别模块,可以使用语音控制开关窗帘,窗帘使用步进电机模拟控制。远程控制和设置:通过WIFI模块将数据远程发送到手机端,手机端可以设置光照的最小值。时间校准和光照设置:系统提供按键功能,可以校准时间和设置光照的最小值。OLED显示:通过OLED屏幕显示当前的时间、温度和湿度信息。该智能教室管理系统结合了多种传感器和模块,通过单片机的控制和处理,实现了对教室进出、光照、温湿度、时间和窗帘等的智能管理和控制。未来可以进一步优化和扩展系统的功能,提升用户体验和系统的智能化程度。
关键字:智能教室;STM32F103C8T6;RFID;光敏电阻;语音识别;WIFI
This design project utilizes the STM32F103C8T6 microcontroller as the core controller to implement an intelligent classroom management system. The specific functionalities include:RFID Card Authorization: The system authorizes student cards using an RFID module, allowing only authorized cards to access the classroom. The system consists of two buttons, one for card authorization and the other for card deauthorization, along with two status LEDs. The red LED indicates unauthorized access, while the green LED indicates authorized access. The card numbers are stored in the AT24C02 chip.PIR Motion Detection: The system employs a PIR motion sensor module to detect the presence of individuals in the classroom.Light Dependent Resistor (LDR) Monitoring: An LDR is used to monitor the ambient light intensity in the classroom. If the light intensity falls below the predefined threshold and human presence is detected, the lights will automatically turn on.Temperature and Humidity Monitoring: The DHT11 sensor is used to measure the temperature and humidity values inside the classroom.Internal RTC for Time Synchronization: The system synchronizes time using an internal real-time clock (RTC) and sets the class start and end times. When the scheduled class start or end time is reached, a buzzer will sound for 3 seconds.Voice Recognition for Curtain Control: A voice recognition module allows users to control the curtains using voice commands. The curtains are simulated using a stepper motor.Remote Control and Configuration: Data can be remotely sent to a mobile device via a WiFi module. Users can configure the minimum light intensity threshold using the mobile app.Time Calibration and Light Setting: The system provides button functionality to calibrate the time and set the minimum light intensity threshold.OLED Display: An OLED screen is used to display the current time, temperature, and humidity information.This intelligent classroom management system combines various sensors and modules to achieve intelligent control and management of classroom access, lighting, temperature, humidity, time, and curtains through the control and processing capabilities of the microcontroller. Further improvements and expansions can be made to enhance user experience and the level of system intelligence.
Keywords: Intelligent classroom; STM32F103C8T6; RFID; Light dependent resistor; Voice recognition; WiFi.
目录
摘 要
Abstract
第1章 引 言
1.1 选题背景及实际意义
1.2 国内外发展历程
1.3 本论文研究目标
第2章 系统设计方案
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 人体热释电模块方案选择
2.1.3 温湿度检测模块方案选择
2.2 整体设计方案
第3章 硬件设计
3.1 主控电路模块
3.2 RFID检测电路模块
3.3 人体热释电检测模块电路
3.4 光照强度检测模块电路
3.5 温湿度检测模块电路模块
3.6 语音识别模块电路
3.7 WiFi模块电路
3.8 按键模块电路
3.9 显示模块电路
3.10 存储模块电路
3.11 步进电机模块电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 温湿度检测模块子流程
4.6 步进电机子流程
第5章 功能测试
5.1 整体实物测试图
5.2 RFID刷卡实物测试
5.3 教室照明控制实物测试
5.4 教室温湿度检测实物测试
5.5 语音测控实物测试
5.6 WiFi远程测控实物测试
结论
参考文献
致 谢
附录一: 原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!