2012年电子设计大赛 黑龙江科技大学 题目名称: 多功能电子计价秤制作 参赛队员: 张城照 黄力修 陈高禹 院 系: 电气与信息工程学院
摘要:
智能电子秤是将检测与转换技术、计算机技术、信息处理、数字技术等技术综合一体的现代新型称重仪器。它与我们日常生活紧密结合成为一种方便、快捷、称量精确的工具,广泛应用于商业、工厂生厂、集贸市场、超市、大型商场、及零售业等公共场所的信息显示和重量计算。
本作品使用STM32单片机作为中心控制单元,通过称重传感器采集质量信息,以HX711进行模数转换单元,在配以TFT液晶显示和触摸屏控制,及WT588D进行语音播报组成。该电子称不但计量准确、快速方便,更重要的自动称重、计价功能外,还可实现去皮、净/毛转,自动计算,数字显示,语音播报,显示实时温度,实时时间。
本系统是针对是电子称的自动称重、自动计价、数据处理,语音播报进行研究的。为了阐明用单片机是如何对采样数据进行处理,对数据的采集和转换、计算问题进行了研究。讨论了单片机控制系统中关键的中断、计算问题,结果表明通过软件设计实现更完善。本文在给出智能电子称硬件设计的基础上,详细分析了电子称的软件控制方法。由于单片机控制的电子称结构简单,成本低廉,深受人们的喜爱,本文将对此进行详细讨论
关键字:
电子秤;STM32; 称重传感器;HX711; TFT液晶屏幕;WT588D
Abstract:
Intelligent electronic balance values detection and the modern new-type names of technical comprehensive one body such as conversion technical, computer technology, message handling and digital technology instrument. Its and our close combination of daily life becomes a kind of convenient, shortcut, weighing accurate tool , is applied extensively in commercial, factory raw factory , gathers trade market, supermarket and large scale market , the message of the etc. public place of retail trade shows and weight calculation.
Intelligent electronic name passes through name mainly with STM32 as central control unit, value sensor to carry out modulus conversion unit , it is matching with keyboard , show by TFT
and powerful software to form. It is accurate that this electron claims to not only measure , fast convenience, more important automatic name may still realize besides heavy, valuation function to remove the peel , completely / hair turns , calculate voluntarily, figure shows , is welcomed by masses of user. Intelligent electronic name since carry convenience.
This system aims at is the automatic name of electronic name heavy, automatic valuation and data handling carry out research. To expound to use single flat machine , it is to how to carry out handling for sampling data , is for the collection of data and conversion and calculation problem has studied. Have discussed the suspension of the key in single flat machine control system , calculate problem , show as a result that through software design, realization is perfected more. This text is weighing the foundation of hardware design to intelligent electron , has analysed the software control method of electronic name in detail. Since the electron of single flat machine control weighs structure, is simple, cost is cheap, receive deeply people like , this text will carry out detailed discussion for this.
Key words:
Intelligent and electronic to scale; Single flat machine 89c52; Weigh heavy sensor; LED shows
题目要求:
1.基本部分:
(1)能用键盘设置单价,称重后能同时显示重量、单价和总额;
电子计价秤:最大称重为10.000公斤,重量误差不大于±0.1%; (2)具有TFT液晶屏显示,显示重量、单价、总额等信息。
a.重量显示为5位数码,单位为公斤,最大重量显示值为99.999公斤; b.单价金额显示为5位数码,单位为元,最大单价金额显示值值为999.99元; c.总价金额显示为6位数码,单位为元,最大总价金额显示值值为9999.99元, 总价金额误差不大于0.01元;
(3)具有去皮功能和总额累加计算功能; (4)能预存10种商品的单价;可以随意调出使用 (5)测量并显示环境温度,温度测量误差不大于1℃; (6)称量0-10kg称重; (7)语音播报测量结果 2.发挥部分:
(1)具有实时时钟显示并具有掉电保护,可显示日历时钟(年、月、日、时、分、秒); (2)扩展高精度A/D转换器,提高电子计价秤测量精度,测量误差不大于±0.01%; (3)能预存10种商品的名称(或代号)和商品的单价;
单元模块设计:
1、主控芯片模块 2、TFT液晶屏模块 3、称重模块
4、语音播报模块
5、24bitAD HX711转换模块 6、软件部分
模块介绍:
1、主控芯片模块
在该制作中,我们采用了STM32为主控芯片,主要是考虑到HX711是24bit的AD,运算量大,且我们的制作还加设了TFT彩色液晶模块,语音播报模块等的外设,普通的MCU的刷屏和运算速度是不够的,所以我选择了STM32作为主控芯片。下面是关于芯片的主要介绍:STM32F103xC 、STM32F103xD 和STM32F103xE 增强型系列使用高性能的ARM? Cortex?-M3 32位的RISC内核,工作频率为72MHz,内置高速存储器( 高达512K字节的闪存和64K 字节的SRAM),丰富的增强I/O 端口和联接到两条APB总线的外设。所有型号的器件都包含3个12位的ADC、4个通用16位定时器和2 个PWM定时器,还包含标准和先进的通信接口:多达2 个I2C 接口、3 个SPI接口、2个I2S 接口、1个SDIO接口、5个USART接口、一个USB接口和一个CAN接口
2、TFT彩色液晶模块
TFT-LCD即薄膜晶体管液晶显示器。其英文全称为:Thin Film Transistor-Liquid Crystal Display。TFT-LCD与无源TN-LCD、STN-LCD的简单矩阵不同,它在液晶显示屏的

