Embedded System Design
Course Achievements
The “Embedded System Design” course is a core required course for the major, which is an advanced hardware course that primarily exercises students’ software programming abilities on hardware systems. Through this course, students will master the methods of software programming based on microcontrollers, and learn the basic methods of embedded system design. The course focuses on the principles of microcontrollers, introducing basic systems, C language programming syntax, general input/output ports, timers, serial ports, analog-to-digital and digital-to-analog converters, and common interface device usage methods. By studying this course, students can lay a solid foundation for advanced embedded system development in the future.
01
Basic Concepts, Methods, and Ideas of Embedded System Design Course Development
Through analyzing the service orientation and professional positioning, we determined the training objectives for the major, followed by a three-level breakdown of the training objectives, corresponding to TC capabilities, and subsequently established the necessity of offering this course. The course design starts from “knowledge, ability, and quality”, and derives various aspects of the course from the training objectives, including teaching goals, expected learning outcomes, teaching content, and implementation methods. This ensures alignment with students’ cognitive patterns and professional ability development patterns, and selects typical learning projects to gradually cultivate students’ professional work abilities and autonomous learning capabilities through theoretical learning and practical training. After students complete this course, we assess, sort, and analyze the learning outcomes as an important basis for continuous course improvement.
02
Embedded System Design Course Projects This Semester
Project One
Project Name: Smart Cooking System
Project Source: Course Project “Embedded System Design”
Instructor: Sun Lifei
Student Team: Meng Xiangyu, Wang Han, An Qi, Huang Chunjian
Project Introduction
The project is named: Smart Cooking System
Implemented functions include: OLED display, LED lights, temperature and humidity detection, buzzer reminders, servo rotation, and buttons.
Enhanced functions include: The system can set a time through button presses, perform timing, and control the start of timing. When the time reaches 20% of the set time, the green LED light turns on; when it reaches 60%, the yellow LED light turns on; when it reaches 80%, the red LED light turns on. During the timing, the servo will start to rotate, imitating the action of stir-frying. After the timing is completed, the buzzer will sound. Temperature and humidity detection are displayed on the OLED screen, simulating real-time monitoring of kitchen temperature and humidity. The ultrasonic distance measuring module is used to detect distance. When the pot lid is closed, the buzzer will not sound for safety. When the lid is open and the distance exceeds the set value, the buzzer will sound to warn that the lid is open.
Project Two
Project Name: Smart Home System
Project Source: Course Project “Embedded System Design”
Instructor: Sun Lifei
Student Team: Wang Xin, Sun Zhangpeng, Liu Jisheng, Liu Mingyu
Project Introduction
Implemented functions include: OLED display, LED lights, temperature and humidity detection, buzzer reminders, servo fan rotation, buttons, servo rotation automatic door opening, and card swipe door opening.
Enhanced functions include: The system can open the door with a room card, keychain, mobile access card, etc. When a person enters the room, the door will automatically close after a set time. It can also add and delete cards through buttons and display them on the OLED screen when entering the room.
To ensure safety, a threshold temperature for the temperature sensor will be set. When the indoor temperature exceeds the threshold due to fire or other reasons, the LED light will flash, the buzzer will sound an alarm, and the fan will rotate to cool down. When the temperature falls below the threshold, the buzzer stops sounding. The threshold temperature can be controlled via buttons to adapt to weather temperature changes.
Project Three
Project Name: Laser Distance Meter
Project Source: Course Project “Embedded System Design”
Instructor: Sun Lifei
Student Team: Chen Weitong, Hou Guohua, Liu Bailing, Wang Linhao.
Project Introduction:
This project designed a laser distance meter based on the STM32 microcontroller, integrating various modules and components such as the MPU6050 gyroscope module, HC-SR04 module, OLED screen, servo, and laser. Using the STM32 microcontroller, the entire system design is compact and has low power consumption. With the help of the MPU6050 gyroscope module, it can measure the device’s posture, acceleration, and temperature in real-time. This allows users to view the posture information and temperature on the screen. At the same time, the posture information controls the servo posture in real-time, allowing it to scan to any angle. Using the HC-SR04 ultrasonic module, this digital thermometer can measure the distance to objects, allowing users to understand the distance between objects in the environment and the device and obtain corresponding distance information from the screen. By adopting an OLED screen, users can clearly see temperature, posture, distance, and other related information on the screen. The OLED screen features high contrast, low power consumption, and fast response, providing good visibility. By integrating these modules and components, the STM32-based laser distance meter provides an accurate solution for temperature measurement, posture measurement, distance measurement, visual display, and additional functions. It can be widely used in indoor temperature monitoring, device posture detection, distance measurement, and other embedded application scenarios.
Project Four
Project Name: Digital Thermometer
Project Source: Course Project “Embedded System Design”
Instructor: Sun Lifei
Student Team: Zhang Yunfeng, Gao Ziqing, Li Ziming, Zou Xinyang
Project Introduction;
Digital enhancement functions include: 1. Improvement of display style: making the display clearer and more readable.
2. Improvement of data storage and transmission: adding data storage and transmission functions.
3. Improvement of measurement accuracy: using more accurate temperature sensors to improve measurement accuracy.
4. Function expansion: adding other functions, such as automatic alarm, to improve the practicality and safety of the digital thermometer.
5. Interface optimization: optimizing the interface design of the digital thermometer for more convenient and intuitive operation.
6. Energy saving and environmental protection: adopting more energy-saving circuit designs to extend the battery life of the digital thermometer and reduce energy consumption, achieving the goal of environmental protection and energy saving.
Project Five
Project Name: STM32-based Digital Thermometer
Project Source: Course Project “Embedded System Design”
Instructor: Sun Lifei
Student Team: 21003390103 2100339120
Project Introduction
Based on STM32 as the main control board, NTC thermistor temperature measurement: through ADC conversion and related calculations, the system can obtain and process the resistance change of the thermistor in real-time to obtain accurate temperature data.
Bluetooth transmission: using the DO4.0 Bluetooth module, the system transmits temperature data in real-time to connected mobile phones or other devices for remote monitoring and recording.
Serial display: through the serial assistant, users can view temperature data in real-time on the serial port, facilitating integration with other systems or devices.
Button operation: three buttons are used to switch temperature units (Celsius/Fahrenheit), increase temperature, and decrease temperature, making the operation simple and intuitive.
Three-color light display: based on the current temperature, the system automatically adjusts the display color of the three-color light (green indicates normal range, blue indicates high-temperature warning, red indicates low-temperature warning).
During the testing process, we found that the system’s accuracy and stability performed well. Specifically, the temperature detection error is within ±0.5℃, and it performs stably in multiple repeated tests. Bluetooth transmission is also very reliable, with data transmission speed and stability meeting expected requirements. In addition, the user interface (including buttons and three-color lights) also performed excellently in terms of operability and feedback. Furthermore, our temperature detection system has the advantage of low power consumption. To achieve this goal, we have taken a series of measures in hardware design and software optimization.
Project Six
Project Name: Smart Cabin
Project Source: Course Project “Embedded System Design”
Instructor: Sun Lifei
Student Team: Feng Yihui, Zhong Weichao, Yuan Fengkui, Wang Zhe
Project Introduction: Based on STM32 as the main control board, equipped with temperature and humidity sensors, OLED display, servo, etc., to create a smart cabin that can measure and adjust the current environment’s temperature and humidity. In the smart access control system, we innovatively break through the original situation of carrying physical cards for access by recording the physical access card into the mobile phone that users carry every day, achieving the function of “mobile phone as a pass”, avoiding practical problems such as forgetting keys or access cards, greatly improving the project’s feasibility.
03
Teacher Sun’s Class Evaluation
The Embedded System Design course is a practice-oriented course. How to help students learn to combine the basic knowledge and practical skills learned in class with application scenarios in life is a pressing issue that needs to be solved in this course. We have adopted a combination of hands-on practice and theoretical teaching in class, introduced virtual simulation teaching, introduced Jialichuang EDA teaching software as PCB design software, and introduced SolidWorks as a 3D modeling software. In students’ works, technologies such as electronic production, STM32 programming, and 3D modeling have been integrated to achieve various course project designs, demonstrating students’ strong hands-on abilities and creativity.
·END·
Copywriter: Sun Lifei
Layout: New Media Center Chen Junhua
Design: New Media Center Zhang Zihui
Review: Zhang Ye