1、 - I - 摘要摘要 设计一个基于单片机的电子秤。 这个系统的核心部件是 STC89C52 单片机。 这 个电子秤的主要分硬件和软件部分,硬件电路构成有测量电路模块,差放电路模 块,A/D 转换模块,单片机模块、显示模块。测量电路利用传感器将物体的重量 信号转换成相应大小的电信号,之后这个电信号会经过差动放大电路使这个电信 号的电压值放大到可以被 AD 转换模块正确而且快速的识别处理,放大之后经过 AD 转换变成数字信号每个信号对应一个物体的重量, 最后这个信号流经单片机进 行信息处理再从显示屏显示输出。系统通过读取矩阵键盘输入的数字显示总价和 单价,并可以储存 5 次称重的数据。这些硬件电
2、路配合软件部分经过调试外加测 试,这系统各个性能目标已达到设计要求,可以投放使用。 关键词:单片机;传感器;液晶显示屏 - II - ABSTRACT Design a microcontroller based electronic weigher.Core components of this system is STC89C52 microcontroller.The main points of this electronics hardware and software components,measuring circuit has a circuit configuration
3、of hardware modules,differential amplifier circuit module, A / D converter module, microcontroller module, display module.Measured by a sensor circuit to convert the weight signal into an electrical signal corresponding to the object size,after this the electrical signal through the differential amp
4、lifier circuit so that the voltage value of the electrical signal is amplified to the AD converter module can be correctly and fast recognition process,then amplification through the AD converter into a digital signal for each signal corresponds to the weight of an object,this signal flow through the microcontroller for information processing and then output from the display.System by reading the digital display matrix keyboard input price and the price,and can store five times the weighing da