1、 1 电子秤电路的设计电子秤电路的设计 摘要摘要:现代社会的发展,对称重技术提出了更高的要求。目前,电子秤在商业贸易中的使用已相当普遍。它具 有测量准确、携带方便、价格低廉等优点。 本电子秤设计是基于 STC89C52 单片机,量程为 010 千克。其电路构成主要有称重电路,放大电路,A/D 转换,单片机控制电路,显示电路。称重电路利用电阻式应变传感器将物体重量信号转换相应大小的电信号,通 过 HX711 芯片里的放大电路和 AD 转换从而将电信号转换成对应的数字信号送给单片机处理,最终在数码管上显 示物体重量。 关键词关键词: 称重传感器 HX711 单片机 数码管 2 The Circui
2、t design of electronic scale Abstract: There are higher requirements for the weighing technology with the development of modern society. At present, the electronic scale has been quite common in the commercial trade. It has measuring accuracy,easy to carry, cheap price and so on. The electronic scal
3、es range is 0 10 kilograms.It is based on MCU STC89C52.The circuit composed by weighing circuit, amplifier circuit, A/D conversion, MCU control circuit and display circuit. Weighing circuit using resistance strain sensors will object weight signal converted into electrical signal.The electrical sign
4、al is amplified and converted into digital signal by the HX711.And the digital signal be send to the MCU .MCU processes the digital signal and sends to LED to display, Keywords: weighing transducer HX711 MCU LED display 3 目录 摘要 . 1 Abstract . 2 第一章 绪论 5 1.1 引言 5 1.2 系统设计与方案论证 . 6 第二章 主要器件介绍 7 2.1 STC89C52 单片机简介 . 7 2.2 称重传感器简介 8 2.3 HX711 芯片的简介 8 2.4 数码管的简介 10 第三章 硬件部分 . 11 3.1 设计概述 . 11 3.2 单片机最小系统 11 3.3 称重传感器电路 13 3.4 信号放大与 AD 转换电路 14 3.5 显示电路 . 15 3.6 电源电路 . 15 第四章 软件部分 . 17 4.1 程序主