1、 I 数字电子秤设计 摘 要 本文主要介绍了数字电子秤的硬件电路结构及其中的原理, 所设计的电子秤具有基 本称重、键盘输入、计算价格、显示、超重报警功能。电子秤的测量范围为 0-10Kg,测 量精度达到 1g,有高精度,低成本的特征。首先用传感器把重量转换成电压信号,再将 电压信号放大输入 A/D 转换,利用 A/D 转换工具将模拟信号转化为数字信号,得到的数 字信号传送至单片机,通过程序对信号进行处理,实现称重功能,然后将重量与键盘输 入单价相乘计算出总价,并将重量和价格用 LED 显示出来。 关键词 电子秤;称重传感器;单片机 II ELECTRON IC SCALE DESIGN ABS
2、TRACT This paper mainly introduces the structure of a digital electronic scales the hardware circuit and its principle. The functions of a digital electronic scale are weighing, keyboard input, price calculation, display, overweight alarm. Electronic Scale is of the 0-10 Kg measurement range, 1 g me
3、asurement accuracy ,a high-precision, low-cost, portable features. Firstly, it uses weighing sensors to convert the weight signal to voltage signal, then amplifys voltage signal, input it to A / D converter; secondly A / D converter converts analog signals to digital signals, the digital signal will
4、 be sent to the microcontroller, through the process of Signal processing, the weight and price will be displayed on LED. KEY WORDS digital ;electronic scale; weighing sensor; MCU 目目 录录 中文摘要 I 英文摘要 . II 前 言 1 1. 绪论 . 2 1.1 研究本文的意义 . 2 1.2 数字电子秤的工作原理 2 1.3 数字电子秤性能及技术要求 3 2. 硬件设计 . 3 2.1 传感器模块 3 2.2 A/D 转换模块 4 2.2.1 AD7705 的结构 4 2.2.3 AD7705 各引脚功能 . 5 2.3 单片机模块 6 2.4 键盘显示模块 7 2.4.1 键盘键的功能 7 2.4.2 键盘和显示电路 8 2.5 过量程报警模块 9 3. 数字电子秤软件设计 10 3.1 系统软件设计 . 10 3.2 键盘软件设计 . 10 3.2.1 键盘扫描 . 11 3.2.2 数字显