姜玉泉 江冠显 王杰


【摘 要】本文介绍了一种基于STC89C52单片机的电子称重系统,该系统主要由压力传感器电路、信号采集调理电路、人机接口电路和LCD显示电路等部分组成,能够实现对物体质量的精确测量。经过测试表明,该系统采集信息准确,使用方便快捷,性能稳定,价格低廉,具有很强的推广价值。
【关键词】STC89C52单片机;电子称重系统;应变式压力传感器
The Design and Implementation of Electronic Weighing System based on Single Chip of STC89C52
JIANG Yu-quan JIANG Guan-xian WANG Jie
(Xian University of Technology,Xian Shanxi 710048,China)
【Abstract】This paper introduces the electronic weighing system based on Single Chip of STC89C52,it primarily consists of pressure sensor circuit,signal gather and adjustment circuit,man-machine interface circuit and LCD display circuit.This system can precisely measure mass of body. The test shows that this system gathers information accurately,and is very convenient and efficient in using.At the same time,this system has stable performance and low price,so it is very suitable to expanding.
【Key words】Single Chip of STC89C52;Electronic Weighing System;Straining Pressure Sensor
0 引言
電子称重系统主要用来测量商品的质量,是市场交易中必不可少的称量仪器。目前市场上使用的电子秤重系统体积大、价格高、携带不方便,关键是测量精度较低。在总结众多相同研究的基础上,本文提出了一种基于STC89C52单片机的电子称重系统,该系统能够很好地解决上述问题。
1 设计方案
本系统以STC89C52单片机为控制核心,由应变片压力传感器模块、信号放大模块、A/D转换模块、矩阵键盘模块和LCD12864液晶显示模块等部分组成,系统结构如图1所示。
2 电路实现
本系统主要由电源模块、应变桥式电路、信号放大电路、A/D转换电路、矩阵键盘电路、单片机最小系统等部分组成,电路框图如图2所示。
2.1 电源模块
电源模块为整个系统提供两类电压,其中±15V DC用于信号放大电路;±5V DC作为应变桥式电路的输入电压;+5V DC也用于单片机最小系统、显示电路、矩阵键盘电路和A/D转换电路的供电。
2.2 应变桥式电路
由于应变片输出的信号很小,为了产生较高的灵敏度,我们采用全桥电路。±5V DC给电桥提供稳定的输入电压,从而有效地避免了电源波动造成的影响。……