摘要
基于单片机与最优化理论,设计并制作出一种数控直流电流源。在传统电路设计的基础上,利用控制系统中反馈与控制原理,引入电流负反馈,使硬件电路工作在闭环状态;综合利用主控制器AT-mega128单片机高速处理优势及其内部资源,设计基于遗传算法和直接搜索策略的混合优化算法,并结合PID算法,形成软件闭环控制。实现对输出电流的精确控制,提高电流源输出电流的稳定度及电流源负载能力。本数控直流电流源恒流输出电流范围为10mA~4000mA可调,输出恒流调整步长1mA、10mA、100mA可选,实测电流与预置电流误差不大于1mA。本装置人机交互界面友好,工作状态和各种参数显示清晰,并可实现负载过流报警和记录故障持续时间等功能。
Based on the MCU and the optimization theory, design and produce a digital DC current source. In the traditional circuit design on the basis of the use of feedback control systems and control theory, the introduction of current negative feedback to work in a closed-loop circuit hardware status. Make full use of the main controller ATmega128 microcontroller high-speed processing advantages and internal resources, design based on genetic algorithms and direct search strategy hybrid optimization algorithm, combined with PID algorithm, a closed-loop control software. Achieve precise control of the output current, improving current source output current stability and load capacity with current source. The digital DC current source output current of 10mA to 4000mA adjustable constant current output adjustment Step mA, 10mA and 100mA optional, the measured current and preferences current error is not more than lmA. This device friendly man-machine interface, the state and various parameters clear, and load flow alarm and fault duration record functions.
出处
《中国集成电路》
2008年第5期83-88,共6页
China lntegrated Circuit
关键词
单片机
电流负反馈
混合优化算法
PID算法
MCU
Current negative feedback
Combined optimal algorithm
PID algorithm
作者简介
陈伟杰,华南农业大学电子工程系,本科,主要研究方向为嵌入式系统与智能控制。