摘要
在常规的机床风扇散热系统中,普遍的做法是直接给风扇通入220V电源,不管控制柜温度的高低,只要风扇通电就直接全速运行。这种情况下存在两个问题:一是风扇是一种机械运转装置,随时都以最高转速运行会加速磨损,缩短风扇寿命;二是绝大多数的实际应用中,在温度不高的情况下没有必要让风机运转,既浪费电能也增加了不必要的浪费。针对以上问题,决定对公司所有机床的控制柜采用基于Arduino控制器编写温度PID算法程序,并通过PWM调制技术实现控制柜的温控调速。控制器根据环境反馈的温度与设定的温度值进行PID算法的计算,结果再通过PWM的调制输出对应的风扇旋转控制的占空比可调的直流电压,达到对机床控制柜温度的控制。
In the conventional cooling system of machine tool fan,the common practice is to directly connect 220V power supply to the fan.No matter the temperature of the control cabinet is high or low,as long as the fan is powered on,it will directly run at full speed.Among them,there are two problems.One is that the fan is a kind of mechanical operation device,which can run at the highest speed at any time,accelerate wear and shorten the life of the fan.Second,in most practical applications,in the case of low temperature,there is no need to let the fan run,which not only wastes electric energy but also increases unnecessary waste.In view of the above problems,it is decided to use Arduino controller to write temperature PID algorithm program for all machine tool control cabinets of the company,and realize temperature control and speed regulation of the control cabinet through PWM modulation technology.The controller calculates the PID algorithm according to the temperature of the environment feedback and the set temperature value,and then outputs the duty cycle adjustable DC voltage of the corresponding fan rotation control through the PWM modulation to achieve the temperature control of the machine tool control cabinet.