1、 1 简易自动电阻测试仪简易自动电阻测试仪 摘要摘要 随着电子工业的发展, 电子元器件急剧增加, 电子元器件的适 用范围也逐渐广泛起来, 在应用中我们常常要测定电阻的大小。 因 此,设计可靠,安全,便捷的电阻测试仪具有极大的现实必要性。 在系统硬件设计中, 以 AT89S52 单片机为核心的电阻测试仪, 使用电桥电路的原理测出被测电阻。 在系统的软件设计是以 Keil51 为仿真平台,使用 C 语言写了 系统应用软件;包括主程序模块、显示模块、电阻测试模块。 最后,实际制作了一台样机,在实验室里进行了测试,结果表 明该样机的功能和指标基本达到了了设计要求。 关键关键词词:单片机;电桥电路;LC
2、D 动态显示模块;AD 采样。 Abstract With the development of electronic industry, electronic components electronic components increased dramatically, the scope also gradually extended, we often need to measure the size of resistance. Therefore, the design of reliable, safe, convenient resistance testing instrum
3、ent of great practical necessity. The system hardware is designed, using AT89S52 MCU as the core of the resistance test instrument, the use of the bridge circuit principle measured resistance. 2 In the software design of the system is Keil51 simulation platform, the use of C language to write the sy
4、stem application software; including the main program module, display module, resistance test module. Finally, the actual production of a prototype, the tested in the laboratory, the results show that the prototype of the functions and indexes reached the design requirements. Key words: single chip
5、microcomputer; bridge circuit; LCD dynamic display module; the AD sampling. 3 目目 录录 摘要1 一、前言. 5 二、方案比较与论证 . 5 2.1 电阻测量方案论证与选择. 5 2.2 电机模块方案论证与选择 . 错误错误! !未定义书签。未定义书签。 2.3 显示模块论证与选择 . 6 2.4 电机驱动模块论证与选择 . 错误错误! !未定义书签。未定义书签。 2.5 微控制器模块论证与选择. 错误错误! !未定义书签。未定义书签。 2.6 . 错误错误! !未定义书签。未定义书签。 三、系统硬件电路设计 . 错
6、误错误! !未定义书签。未定义书签。 3.1 系统总体设计 错误错误! !未定义书签。未定义书签。 3.2 电阻测量硬件电路设计 错误错误! !未定义书签。未定义书签。 3.3 步进电机驱动模块硬件设计. 错误错误! !未定义书签。未定义书签。 3.4 液晶显示、按键模块硬件设计 . 错误错误! !未定义书签。未定义书签。 3.5 电源电路模块 . 错误错误! !未定义书签。未定义书签。 四、系统软件设计 . 错误错误! !未定义书签。未定义书签。 4.1 主程序设计 错误错误! !未定义书签。未定义书签。 4.2 子程序设计 错误错误! !未定义书签。未定义书签。 五、系统调试及系统功能、指标参数 . 错误错误! !未定义书签。未定义书签。 5.1 主要测试仪器 错误错误! !未定义书签。未定义书签。 4 5.2 基本功能测试 错误错误! !未定义书签。未定义书签。 5.3 发挥部分功能测试 错误错误! !未定义书签。未定义书签。 5.4 其他功能测试 错误错误! !未定义书签。未定义书签。 六、设计总结 . 错误错误! !未