1、 I 基于数控直流电流源系统的设计基于数控直流电流源系统的设计 摘要:摘要:随着电子技术的发展、数字电路应用领域的扩展,人们对数控恒定电流器件的需求越来越高。 应社会发展的需求,对基于单片机控制的“数控直流电流源的设计”进行研究论证,并运用 Proteus 软件进行仿真。以直流稳压电源和稳流电源为核心,结合单片机最小系统实现对输出电流的控制。 首先采用了单片集成稳压芯片实现直流稳压,然后采用了分立元件实现稳流。为实现对输出电流的 精确控制:一方面,通过输出实现电流的预置,再通过运算放大器控制晶体管的输出电流; 另一方面,运用转换器件将输出电流的采样值送入单片机,与预置值进行比较,将误差值通 过
2、转换芯片添加到调整电路,从而进一步降低了输出电流的纹波。 AbstractAbstract:The requiements of numerical controlling constant current devices is increasing as development of electronic technology and expanding of digital circuit applicational field. As to satisfy society development, do a study based on “ Numerical control dc cu
3、rrent source design “ of SCM controlling and apply Proteus to simulating software.DC(digital current )V oltage regulator and DC current regulator is the key part of the design,its output current is controlled by single chip microprocessor,Firstly,single chip IC(integrated circuit)V oltage regulator
4、LM338K is used to generate stable voltage, and then desperate devices is used to generate stabilize current . Tocontrol the output current ,on one hand ,system sets output current by D/A(digitalanalogue converter and controls current of transistor by operational amplifier ; on the other hand , with
5、the help of A/D (analoguedigital) converter, system samples the output current and convert it into digital data ,compares it with preset value ,converts the error value into analogy and puts it on adjusting circuit ,and decreases the ripple of the system output current II 目录目录 1 引言 1 1.1 数控直流电流源的发展现
6、状 1 1.2 数控直流电流源的研究意义 1 1.3 该研究解决的主要内容. 1 2 设计任务及要求 . 1 2.1 任务 . 1 2.2 设计思路 . 2 2.3 方案论证 . 2 2.4 总体方案设计 2 3 硬件系统的设计 . 3 3.1 硬件系统的模块 . 3 3.1.1 单片机最小系统 3 3.1.2 自制电源模块 . 5 3.1.3 显示模块 5 3.1.4 键盘模块 7 3.1.5 电流源模块. 8 3.1.6 负载模块 8 3.1.4 D/A、A/D 转换模块 8 3.2 系统的原理图. 9 4 软件系统的设计 . 10 4.1 单片机资源使用情况 10 4.2 软件系统的模块 . 10 4.3 程序流程图 11 4.4 程序清单 15 5 仿真测试及结果 . 15 5.1 设计结论及使用方法 15 5.2 仿真结果 15 5.2.1 输出电流范围仿真 15 5.2.2 步进调整仿真 . 17 5.2.3 输出电流仿真 . 17 5.3 误差分析 18 6 总结 20 参考文献. 21 谢辞 22 附