当前位置:文档之家› 基于单片机的数控直流电流源设计

基于单片机的数控直流电流源设计

本科毕业设计(论文) 摘要

I

摘 要

利用单片机所具有的智能测控特点,设计制作了基于单片机的“数控直流电流源”。该电流源具有设定准确、输出电流稳定、可调范围全程线性等特点。本设计由两大模块组成:① 大功率压控电流源模块;② 单片机应用系统模块。前者是电流源的核心,起着恒流调节、抑制纹波电流的关键作用;后者则起着设定电流源输出、改善电流调节精度、消除小电流输出的非线性等作用。本系统由单片机程控输出数字信号,经过D/A转换器(TLC5615)输出模拟量,再经过运算放大器隔离放大,控制输出功率管的基极,随着功率管基极电压的变化而输出不同的电流。单片机系统还兼顾对恒流源进行实时监控,输出电流经过电流/电压转变后,通过A/D转换芯片,实时把模拟量转化为数据量,再经单片机分析处理, 通过数据形式的反馈环节,使电流更加稳定,这样构成稳定的压控电流源。实际测试结果表明,本系统输出电流稳定,不随负载和环境温度变化,并具有很高的精度,输出电流误差范围±5mA,输出电流可在20mA~2000mA范围内任意设定,因而可实际应用于需要高稳定度小功率恒流源的领域。

此外,还实现了变增益测量,提高了电流的测量精度。本电流源采用LCD显示界面,使用直观方便。

关键词:单片机,数控,转换 ,PID控制

本科毕业设计(论文) 摘要

II

Abstract

By making good use of the intelligent measure and control function of the

Microprogrammed Control Unit(MCU), the numerical-controlled direct current source

is designed and made. This direct current source not only can steadily output, but also

can be accurately initialized, and adjusted linearly at a wide range. The design is

composed of two basic modules: ①The high-power voltage-controlled current source

module; ②The MCU application system module. The former one is the hard core of the

current source, while keeping the output current steadily and restraining its ripple. The

latter one controls the initialization of the output, improves the precision of the output

signal and eliminates the nonlinear effect at the low output terminal made by small

signals. In addition, the design realizes the measurement to make the gain variable. In

the system, the digital programmable signal from SCM is converted to analog value by

DAC (TCL5615),then the analog value that is isolated and amplified by operational

amplifiers, is sent to the base electrode of power transistor, so an adjustable output

current can be available with the base electrode voltage of power transistor. On the other

hand, The constant current source can be monitored by the SCM system real-timely, its

work process is that output current is converted voltage, then its analog value is

converted to digital value by ADC, finally the digital value as a feedback loop is

processed by SCM so that output current is more stable, so a stable voltage-controlled

constant current power is designed. The test results have showed that the system can

output a stable current, which has no influence with load and environment temperature,

and can output a precise current of ±5mA error with a width, which can be set liberally

in 20mA~2000mA, so it can be applied in need areas of constant current source with

high stability and low power.

so that we improve the measure precision of the current source. Besides, using

LCD makes the direct current source more convenient to use.

KEY WORDS: MCU gital-control, transition, PID control arithmetic

本科毕业设计(论文) 绪论

1

目录

摘 要 ................................................................................................................... I

Abstract ..................................................................................................................... II

目录 .......................................................................................................................... 1

第一章 绪 论 .................................................................................................... 3

1.1课题研究的重要意义 ........................................................................................ 3

1.2数控直流电流源的应用 .................................................................................... 3

1.2.1 在计量领域中的应用 ............................................................................ 3

1.2.2 在半导体器件性能测试中的应用 ........................................................ 4

1.2.3 在传感器中的应用 ................................................................................ 4

1.2.4 现代大型仪器中稳定磁场的产生 ........................................................ 5

1.2.5 在其它领域中的应用 .......................................................................... 5

1.3 数控直流电流源的发展历程 ........................................................................... 6

1.3.1 电真空器件数控直流电流源的诞生 .................................................... 6

1.3.2 晶体管数控直流电流源的产生和分类 ................................................ 6

1.3.3 集成电路数控直流电流源的出现和种类 ............................................ 6

1.4 国内外研究现状 ............................................................................................... 6

第二章 系统总体方案设计 .................................................................................... 8

第三章 系统硬件电路设计 .................................................................................. 10

3.1 电源模块 ....................................................................................................... 10

3.2 单片机主模块 ............................................................................................... 12

3.3 V/I转换电路和功率放大电路 ..................................................................... 12

3.4 输出电流采样电路 ........................................................................................ 13

3.5 D/A转换电路 ............................................................................................... 14

3.5.1 TLC5615功能简介 ............................................................................ 15

3.5.2 TLC5615工作原理 ............................................................................ 16

3.5.3 TLC5615与AT89C51单片机接口 .................................................. 17

3.6 A/D转换电路 ............................................................................................... 18

3.7 数码管显示电路 ............................................................................................. 20

相关主题