| Nowadays,due to urbanization and population aging,the incidence rate of chronic respiratory diseases is increasing.As a reliable respiratory auxiliary equipment supporting non-invasive ventilation,household ventilator can effectively relieve the symptoms of patients with chronic respiratory diseases,and has been widely used in the treatment of related diseases.This article researches and develops a household ventilator based on embedded system,mainly does the following work:Firstly,the basic theory of household ventilator is briefly described in this dissertation.First,the basic ventilation modes of household ventilator are introduced,and the characteristics and applications of each mode are described in detail.Second,it introduces the theory related to oxygen therapy of household ventilator.Third,the main functional requirements of the household ventilator researched and developed in this topic is put forward based on the basic theory of the household ventilator.Secondly,the automatic oxygen mixing control algorithm of household ventilator is designed and studied in this dissertation.First,the flow of the automatic oxygen mixing algorithm is introduced as a whole,and the overall control scheme is determined to adopt feedforward control in the rising phase of oxygen concentration and PID feedback control in the stable phase of oxygen concentration.Second,the feedforward controller is designed,and the design process is introduced in detail.Third,the basic theory of PID algorithm is introduced,the PID feedback controller for automatic oxygen mixing is designed,and a simulation model is built in MATLAB/Simulink.The simulation results show that the designed feedback controller can achieve good control effect.Thirdly,the hardware and gas circuit of the household ventilator are designed and studied.First,the hardware design framework of household ventilator is introduced as a whole.Second,the selection and design of hardware modules including power supply,motor drive and microcontroller are completed,and the design process is introduced in detail.Third,the whole gas circuit design from oxygen cylinder to household ventilator to mask is introduced in detail.Then,the software and GUI of household ventilator are designed and developed.First,it introduces the configuration of software environment used in software development and related theories of embedded real-time operating system,and describes the migration process of HAL library and FreeRTOS used in this dissertation.Second,the multi task software design of the household ventilator is introduced in detail,and the software development of the five tasks of master control,key detection,data storage,display touch and automatic oxygen mixing is completed,and the software program flow of each task is described in detail.Third,the TouchGFX graphic library is introduced,and the interface design of the household ventilator is completed based on this library,and the design ideas of interface flow and interface switching are explained in detail.Finally,some related test platforms are built in this dissertation to test the developed household ventilator.First,the hardware part of the household ventilator is tested through the hardware circuit test experimental platform and fan performance test experimental platform.Second,the software and GUI of the household ventilator are tested through the software test experimental platform.Third,the performance of the household ventilator is tested by the automatic oxygen mixing test platform,static control test platform and dynamic control test platform,and the results show that the household ventilator developed in this dissertation has excellent performance. |