1、 毕业设计(论文)毕业设计(论文) 题目题目 LEDLED 照明恒流驱动电源的设计照明恒流驱动电源的设计 系系 别别 电气工程系电气工程系 专专 业业 电气自动化电气自动化技术技术 班班 级级 电自电自 09-1 班班 姓姓 名名 学学 号号 指导教师(职称)指导教师(职称) 日日 期期 2012 年年 2 月月 27 日日 I 摘摘 要要 本次设计为 LED 的照明恒流驱动电源,系统大致分为五个模块:单片机控制模块、数 模(D/A)转换模块、恒流源模块、模数(A/D)转换模块、显示模块。单片机控制模块以 单片机 AT89S52 为核心, 通过键盘预置电流值, 单片机输出相应的数字信号给 D/
2、A 转换器, D/A 转换器输出的模拟信号送到运算放大器,通过恒流源控制主电路电流大小。实际输出 的电流再通过采样电阻采样变成电压信号,经 A/D 转换后将信号反馈到单片机中。单片机 将反馈信号与预置值比较,根据两者间的差值调整输出信号大小。显示模块采用 LED 显示 屏与 8255 连接设计成 10 进制 8 位数码动态显示电路。键盘模块采用常见 44 矩阵键盘, 用动态扫描方式读取外部按键动作,这样设计可靠,配合 AT89S52 单片机可以很轻松的实 现按键输入 。此外,本设计可实现输出电流 1001000mA 且有步进调整功能。 关键词关键词 : 单片机; 键盘控制; D/A 转换; 恒
3、流源 ; A/D 转换; 译码显示 II ABSTRACT The design for the LED lighting constant current driver, the system can be divided into five modules: a single-chip control module, D / A( D / A ) conversion module, a constant current source module, module ( A / D ) conversion module, display module. Single chip contro
4、l module on AT89S52 single-chip microcomputer as the core, through the keyboard to preset current value, the output of the single chip digital signal corresponding to the D / A converter, D / A converter output analog signal to the operational amplifier, through a constant-current source control main circuit current size. The actual output current through the sampling resistor sampling is changed into voltage signal, the A / D