潍坊科技学院本科毕业设计(论文)题 目: 智能养殖场可燃气体 学 院: 专 业: 班 级: 学 生: 学 号: 指导教师: 职称: 指导教师: 职称: 检测装置的设计 摘 要论文采用 STM32F103C8T6 作为主控芯片,5.0V 电源供电。系统上电后,根据所需要求设定好可燃气体传感器的阈值,当浓度值达到所设定的阈值时候,向主控芯片 MCU 发送中断信号,而 MCU 在接收到中断信号后开启相应的处理机制,如打开排气风扇等,气体传感器持续监测气体的浓度,如果气体浓度低于阈值,则关闭排气扇。可燃气体传感器有 AO(模拟)和 DO(数字),模拟输出接口,单片机 ADC 接口根据一定的采样频率读取可燃气体传感器数据,并将数据与气体阈值进行比较,如果气体采样值高于阈值,则开启排气风扇进行通风排气,如果采样值低于所设置的阈值,则关闭排气扇。如果是采用 DO 模式的话,则点单片采用中断模式。在程序设计方面,我们才用了 freeRTOS 操作系统,采用了多任务方式,增强了单片机处理的实时性。本设计可以自动控制养殖场的气体浓度值,节省了人力的去开启关闭排气扇,同时可以节省了人力的巡检,使得养殖场更加智能化。- I - 关键词: 养殖场;STM32F103C8T6 主控芯片;freeRTOS 操作系统;风扇Abstract In this paper, stm32f103c8t6 is used as the main control chip, which is powered by 5.0V power supply. After the system is powered on, set the threshold value of combustible gas sensor according to the required requirements. When the concentration value reaches the set threshold value, send the interrupt signal to the main control chip MCU, and the MCU will turn on the corresponding processing mechanism after receiving the interrupt signal, such as turning on the exhaust fan, etc., and the gas sensor will continuously monitor the gas concentration. If the gas concentration is lower than the threshold value, turn off the exhaust fan 。 The combustible gas sensor has Ao (Analog) and do (digital), analog output interface. The SCM ADC interface reads the combustible gas sensor data according to a certain sampling ...