APP下载

基于STM32F103的通风系统设计

2018-11-01杨行徐登

电脑知识与技术 2018年19期

杨行 徐登

摘要:设计一套家用通风系统,以STM32F103ZET6为主控芯片,通风电机采用直流电机,利用按键控制STM32的通用定时器TIMx输出可调PWM(Pulse Width Modulation)信号,通过电机驱动芯片L298N改变直流电机的转速,实现通风系统转速调节。系统软硬件设计简洁合理,效率高,在智能通风领域具备一定的应用价值。

关键词:通风系统;STM32F103;PWM;电机调速

中图分类号:TP368.1 文献标志码:A 文章编号:1009-3044(2018)19-0278-02

Abstract: A set of household ventilation system is designed, with STM32F103ZET6 as the main control chip, the ventilation motor uses DC motor, the key control STM32's universal timer TIMx output adjustable PWM (Pulse Width Modulation) signal is used to change the speed of the DC motor through the motor drive chip L298N to realize the adjustment of the speed of the ventilation system. The software and hardware design of the system is simple and reasonable, and its efficiency is high. It has certain application value in the field of intelligent ventilation.

Key words:Ventilation system; STM32F103; PWM; motor speed regulation

隨着人民生活水平的提高和家庭装修的持续普及,大家对室内环境安全特别是空气质量安全越来越重视,成为大家家居入住首选考虑因素。其中通风成为提升室内空气质量的重要手段,通风是借助换气稀释或通风排除等手段,控制空气污染物的传播与危害,实现室内外空气环境质量保障的一种建筑环境控制技术。通风系统就是实现通风这一功能,包括进风口、排风口、送风管道、风机、降温及采暖、过滤器、控制系统以及其他附属设备在内的一整套装置。在整个通风系统中控制系统是核心,其关键技术是电机速度的调节。

本文设计了一套家用通风系统,以STM32F103ZET6为主控芯片,通风电机采用直流电机,利用按键控制STM32的通用定时器TIMx输出可调PWM(Pulse Width Modulation)信号,通过电机驱动芯片L298N改变直流电机的转速,实现通风系统转速调节。系统软硬件设计简洁合理,效率高,在智能通风领域具备一定的应用价值。

1 系统整体方案设计

图1所示为系统整体框图,处理器采用STM32F103ZET6,按键采用独立按键,直流风扇采用24V直流电机,电机采用L298N驱动调速。……

登录APP查看全文