1、 摘 要 本设计由电源模块,STM32F103ZET6 单片机小系统模块,OPA548 构成的 5V 恒压模块, 继电器构成的换挡测电阻模块, 步进电机模块, 3.2 寸 TFT (Thin Film Transistor 薄膜场效应晶体管)真彩触摸屏显示模块组成。 该设计是通过单片机 控制一个内部集成的 12 位 DA 给 OPA548 运放芯片输入电压,从而控制运放芯片 的输出电压,再送给继电器构成的换挡测电阻模块,最后通过测试电阻上产生的 电压来判断所测电阻值。其中 STM32 单片机小系统还控制内部集成的两个 12 位 AD,一个采集当 OPA548 输出的值,构成一个闭环系统使 OP
2、A548 输出恒压 5V, 一个采集待测电阻值,从而控制继电器换挡测出待测电阻值。 关键词:STM32F103ZET6 12 位 AD/DA 继电器 3.2 寸 TFT 真彩触摸屏 Abstract The design of the power supply module, STM32F103ZET6 small single-chip system module, OPA548 constitute 5v constant pressure module, relay module consisting of the shift resistor, stepper motor module
3、, 3.2-inch TFT (Thin Film Transistor film field-effect transistor) color touch screen display module. The design is controlled by an internal integrated single-chip 12-bit DA chip to OPA548 op-amp input voltage, thereby controlling the output voltage op-amp chip, and then sent to the relay module co
4、nsisting of the shift resistor, and finally by testing the voltage on the resistor to determine the measured resistance value. STM32 microcontroller which controls a small system also integrates the two 12-bit AD, a collection when the OPA548 output value to form a closed loop system so that OPA548
5、output constant 5v, a collection test resistance value, thereby controlling the relay shift measured measured resistance values. Keywords: STM32F103ZET6; 12-bit AD / DA; relay; 3.2-inch; TFT color touch; screen 目目 录录 1 引 言. 1 2 系统方案论证与选择 2 2.1 主控芯片的选择 2 2.2 5V 恒压模块的选择 2 2.3 显示模块的选择 3 3 系统设计 4 3.1 系统
6、总框图. 4 3.2 系统设计思路 4 4 硬件电路设计 6 4.1 电源模块的设计. 6 4.2 OPA548 构成的 5V 恒压模块设计. 6 4.3 继电器构成的自动换挡测电阻模块 7 4.4 电机驱动模块 8 4.5 TFT 触屏显示模块. 9 5 软件设计. 10 6 系统测试. 11 6.1 100 档位的测试 11 6.2 1K档位的测试 . 11 6.3 10K档位的测试 12 6.4 10M档位的测试 12 7 设计总结. 13 参考文献. 14 致 谢 15 附录. 15 智能电阻测试仪的设计 第 页 1 1 引 言 目前人们广泛使用的电阻测试仪是万用表,用万用表测试电阻有两个缺陷: 其一大多数时候测试一个电阻就需要人为的换挡。其二不能自动筛选电阻,需要 人为判断。 万用表不能快速智能的完成电阻的阻值测量及筛选且使用起来过程繁 琐,使人们在设计检修电路时时间加长,而在设计检修中我们希望能够快速的测 量电阻的阻值,自动完成电阻阻值的测量筛选。基于以上运用本人设计了“简易 自动电阻测试仪” 。 智能电阻测试