您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 市场营销 > 基于单片机的超市电子秤设计
XX大学学士学位论文I摘要随着科学技术的不断发展,单片机在多个领域均有应用,其中电子秤作为其中之一在日常生活中已经非常普遍。本论文主要论述的内容为基于单片机的小型超市电子秤的设计。本文主要论述基于单片机的小型超市电子秤的设计与实现。本系统的控制核心为单片机,此外还包括A/D转换模块、矩阵键盘、显示模块等电路。主要实现重量显示,手动输入单价并自动显示总价的功能,实用性高。硬件部分的核心是AT89C52单片机,对整个系统进行控制,输入端用压力传感器进行数据采集并转变为电压信号,再将模拟量传递给24位的A/D转换芯片HX711转换为数字量后送入单片机,手动输入物品单价,经单片机处理后由液晶显示屏显示物品重量,单价和总价。本文内容主要为:绪论、系统元器件选型、硬件电路设计、软件编程以及实物调试。系统软件部分采用c语言编程,其中包括转换程序、数字处理程序、显示程序、报警程序等。本系统基本实现了预期的实验结果,实现的功能功能有物品称重、单价输入、总价计算以及超重报警。关键词:单片机;电子秤;c语言XX大学学士学位论文IIAbstractWiththedevelopmentofscienceandtechnology,singlechiphasbeenusedinmanyfields,includingelectronicscalesasoneofwhichhasbeenverycommonineverydaylife.Thispapermainlydiscussesthedesignofsmallsupermarketelectronicscalebasedonsinglechipmicrocomputer.ThispapermainlydiscussesthedesignandimplementationoftheelectronicscaleofsmallsupermarketbasedonMCU.Thewholesystemisthecoreofthemicrocontroller,andcontainsthematrixkeyboard,conversionchip,displaycircuit,resetcircuit,etc.Themainrealizationoftheweightdisplay,manuallyentertheunitpriceandautomaticallydisplaythetotalvalueofthefunction,highpracticality.HardwarepartistoSTC89S52SCMasthecorecontrol,dataacquisitionbyapressuresensor,againby24bitADconversionchiphx711convertanalogtodigitalquantityintothemicrocontroller,manuallyentertheitemprice,SCMtreatedbyLCDdisplaygoodsweight,unitpriceandtotalprice.Themaincontentsofthispaperareasfollows:introduction,hardwarecircuitdesign,softwareprogrammingandhardwaredebugging.Thesystembasicallyachievedtheexpectedresultsoftheexperiment,therealizationofthemeter'spowerdownstorage,adjusttheunitprice,displaytheamountofmileageandotherbasicfunctions.Keywords:MCU-technology;electronicscale;ClanguageXX大学学士学位论文III目录1绪论.............................................................................................................................................................11.1设计背景.......................................................................................................................................11.2国内外研究现状..........................................................................................................................31.3系统需求分析与总体设计.......................................................................................................42.系统元器件选型.....................................................................................................................................52.1单片机选型...................................................................................................................................52.2压力传感器选型..........................................................................................................................62.3显示器选型...................................................................................................................................82.4A/D转换芯片选型.....................................................................................................................93.系统硬件电路设计..............................................................................................................................123.1系统电源电路............................................................................................................................123.2单片机控制电路设计..............................................................................................................123.3系统显示电路设计...................................................................................................................143.4键盘电路的设计........................................................................................................................153.5系统报警电路设计...................................................................................................................163.6系统原理图的绘制...................................................................................................................174.系统软件设计.......................................................................................................................................184.1编程软件介绍............................................................................................................................194.2主程序的设计............................................................................................................................194.3子程序的设计............................................................................................................................204.3.1A/D转换子程序...........................................................................................................214.3.2显示子程序....................................................................................................................214.3.3按键程序设计................................................................................................................224.3.4报警程序设计................................................................................................................235.系统调试..........................................................................................................................................
本文标题:基于单片机的超市电子秤设计
链接地址:https://www.777doc.com/doc-1405429 .html