数字电子秤设计文献综述.(优选)
电子秤毕业设计论文

多功能电子称作者:xxx摘要:该设计以51系列单片机AT89S52为控制核心,实现电子秤的基本控制功能。
在设计系统时,为了更好地采用模块化设计法,分步的设计各个单元功能模块,系统的硬件部分可以分为最小系统、数据采集、人机交互界面和系统电源四大部分。
最小系统部分主要包括AT89S52和扩展的外部数据存储器;数据采集部分由压力传感器、信号的前级处理和A/D 转换部分组成,包括运算放大器AD620和A/D转换器ICL7135;人机交互界面为键盘输入和点阵式液晶显示,主要使用ZLG7289键盘控制芯片和OCM4x8C显示器,可以方便的输入数据和直观的显示中文。
系统电源以LM317和LM337为核心设计电路以提供系统正常工作电源。
软件部分应用单片机C语言进行编程,实现了该设计的全部控制功能。
该电子秤可以实现基本的称重功能(称重范围为0~9.999Kg,重量误差不大于±0.005Kg),并发挥部分的显示购物清单的功能,可以设置日期和设定十种商品的单价,还具有超量程和欠量程的报警功能。
整个系统结构简单,使用方便,功能齐全,精度高,具有一定的开发价值。
关键词:单片机;采样电路;A/D转换器;液晶显示ABSTRACT:The design is based on the microcontroller AT89S52 system as the core to carry out the basic control function of the electronics steelyard. While designing the system, I adopt the mold piece method to divide the hardware of the system into four parts: the minimum system, sampling circuit, I/O interface and the system power supply. The minimum system mainly includes the AT89S52 and the expanded exterior data memory. Sampling circuit is comprised of a pressure sensor, a differential measuring amplifier AD620 and a A/D converter ICL7135. With the usage of ZLG7289 keyboard control chip and OCM4*8C display, we complete the function of the key board input and the LCD manifestation. The power supply system selects the LM317 and LM337 to design the electric circuit to provide the needed power supply. The software part applies a machine C language to carry out all control function. The electronic steelyard can weigh the scope as 0~9.999Kgs, and the weigh error margin is no bigger than ±0.005Kgs. It also has many other functions, such as displaying the shopping detailed list, setting the date and ten kinds of unit prices of merchandise and overweighing alarm. The whole system is simple, well-found, convenient to use and has high accuracy and certain development value.Key words:microcontroller; sampling circuit; A/D converter;LCD Manifestation目录第一章绪论 (1)1.1 引言 (1)1.2选题背景与意义 (2)1.3 研究现状 (2)1.3.1 影响因素 (2)1.3.2产品质量 (3)1.3.3发展方向 (3)1.3.4电子秤的智能化 (3)1.4 本文的结构 (4)第二章系统方案的设计 (5)2.1 电子秤的设计要求 (5)2.1.1 基本要求 (5)2.1.2 发挥部分 (5)2.1.3 创新部分 (5)2.2 系统工作原理及设计基本思路 (5)2.2.1 系统工作原理 (5)2.2.2 系统设计基本思路 (6)2.3 系统总体设计方案比较与论证 (6)2.4 单片机的选型 (8)2.5 数据采集部分的方案确定 (9)2.5.1 传感器 (9)2.5.2 前级放大器部分 (12)2.5.3 A/D转换器 (15)2.6 人机交互部分 (17)2.6.1 键盘输入 (17)2.6.2 输出显示 (17)2.7 系统电源 (18)2.8 具体实施方案简介 (20)第三章系统硬件设计 (22)3.1 基于AT89S52的主控电路 (22)3.1.1 芯片介绍 (22)3.1.2 主控电路 (26)3.2 基于ICL7135的前端信号处理电路 (27)3.2.1 芯片介绍 (27)3.2.2 信号处理电路 (30)3.3 人机交互界面 (33)3.3.1 键盘控制电路 (33)3.3.2 液晶显示电路 (35)3.4 系统电源 (37)3.4.1 芯片介绍 (37)3.4.2 电源电路 (38)3.5 报警电路 (40)第四章软件流程 (41)4.1 主程序流程图 (41)4.2 主要中断程序流程图 (42)第五章结论 (44)致谢 (46)参考文献 (47)附录A:英文资料 (48)附录B:英文资料翻译 (55)附录C:原理图 (62)附录D:Pcb板图 (63)附录E:元器件清单 (64)第一章绪论1.1引言质量是测量领域中的一个重要参数,称重技术自古以来就被人们所重视。
【毕业设计】毕业设计电子秤

【关键字】毕业设计毕业设计电子秤篇一:毕业论文--基于单片机的电子秤设计基于单片机的电子秤设计摘要:本设计以51系列单片机STC89C52RC为控制核心,实现电子秤的基本控制功能。
在设计系统时,为了更好地采用模块化设计法,分步的设计各个单元功能模块,系统的硬件部分可以分为最小系统、数据采集、人机交互界面(键盘以及显示)和系统电源四大部分。
最小系统部分为STC89C52RC系统;数据采集部分由压力传感器、信号的前级处理和A/D转换部分组成,包括运算放大器OP07和A/D转换器ADC0809;人机交互界面为键盘输入和数码管显示,主要使用5X5键盘、CH423数码管控制芯片及13位数码管显示,可以方便的输入数据并直观的显示重量、单价和总价。
系统电源是以LM7805、LM7812为核心设计电路以提供系统正常工作电源。
软件部分应用单片机C51语言进行编程,实现了该设计的基本控制功能。
该电子秤可以实现基本的称重功能(称重范围为0~10Kg,重量误差不大于±0.02Kg),重量、单价、总价的计量可以精确到两位小数,键盘设置有数字键(‘0’~‘9’、‘.’)、储存键、单价1~单价8调用单价键、清除键、去皮键等;发挥部分有8种不同物品的单价记忆功能、99种消费商品价格累计功能、;待发挥部分为讲电子秤与打印机连接,能打印消费记录(小票),超量程和欠量程的报警功能。
本系统结构简单,使用方便,功能齐全,精度高,具有一定的开发价值。
关键词:单片机采样电路A/D转换器CH423数码管驱动芯片数码管显示工作电源the design of electronic scales based on Single-chipMicrocomputerABSTRACT :The design for the control of 51 computers STC89C52RC the core, to achieve the basic control functions of electronic scales. In designing the system, in order to better modular design, the design of each unit step function modules, the system can be divided into the minimum hardware system, data acquisition, man-machine interface (keypad and display) and the system power 4 most. Minimum system partly STC89C52RC system; data collection in part by the pressure sensor, signal processing and the first class A / D conversion components, including the operational amplifier OP07 and the A / D converter ADC0809; man-machine interface for the keyboard and digital display The main use of 5X5 keypad, CH423 digital control chip and 13 digital display, can easily enter data and visual display weight, unit price and total price. System power is based on LM7805, LM7812 as the core design of the circuit to provide normal power supply system. Software part of the application MCU C51 language programming, the design of the basic control functions. The electronic weighing scales can realize the basic functions (weighing range of 0 ~ 10Kg, the weight of the error is not greater than ± 0.02Kg), weight, unit price, total measurement is accurate to two decimal places, the keyboard settings are the number keys ( '0 '~ '9','.'), storage key, Unit 1 to Unit 8 Unit call key, clear key, peeled keys, etc.; play a part in 8different items priced memory, 99 kinds of consumer goods prices cumulative function; play a part to be about electronic scales and printers connected to print consumption records (small notes), over range and under-range alarm. The system is simple, easy to use, fully functional, high precision, has some value for development.Key words:microcontroller sampling circuit A/D converter CH423 digital tube driver chip digital display Power Supply目录第一章绪论11.1引言 (1)1.2 选题背景与意义 (1)第二章系统方案的设计 (2)2.1 电子秤的设计要求 (2)2.1.1 基本要求 (2)2.1.2 特色与创新 (2)2.2实验原理及设计基本思路 (2) (2)2.2.2 系统设计基本思路 (2)2.3 系统总体设计方案比较与论证 (3)2.4单片机的选型 (4)2.5 数据采集部分的方案确定 (4)2.5.1 传感器 (4)2.5.2 前级放大器部分 (7)2.5.3 A/D 转换器 (9)2.6人机交互部分 (11)2.6.1 键盘输入 (11)2.6.2 输出显示 (11)2.7系统电源 (12)2.8 具体实施方案简介 (13)第三章系统硬件设计 (15)3.1 基于STC89C52RC的主控电路 (15) (15)3.2 系统电源 (18)3.2.1 芯片介绍 (18)3.2.2 电源电路 (19)第四章软件流程 (20)4.1 主程序流程图 (20)4.2 键盘扫描流程图 (21)第五章结论 (22)5.1 论文总结 (22)5.2 感想 (22)致谢 (24)参考文献 (25)附录A:原理图 (26)附录B:源程序 (29)第一章绪论1.1引言在现代化的今天,电子产品变得越来越丰富,给人们带来了诸多方便,其中电子秤成了人们生活中不可或缺的一部分。
电子秤的设计毕业论文

电子秤的设计毕业论文电子秤的设计摘要:本文主要介绍了电子秤的设计。
在设计中,首先进行了硬件设计,包括选取负载电阻,选择放大器运放,设计AD转换电路以及LCD显示屏等组成电子秤的关键硬件模块。
其次,进行了软件设计,使用Keil软件编写程序实现电子秤的各项功能。
对所设计的电子秤进行了测试验证,结果表明,该电子秤的测量精度达到了0.001g的标准。
关键词:电子秤,硬件设计,软件设计,测试验证一、设计思路电子秤是一种以数字量化的方式来实现物品质量测量的设备,具有精度高、测量范围广、易于读取和读数准确等优点。
电子秤一般由传感器、放大器、AD转换器、显示屏等组成,因此本次设计重点在于设计出这些硬件模块,并配以合适的软件程序来控制和实现各项功能。
二、硬件设计1.选取负载电阻电子秤的测量精度直接与所采用的负载电阻有关,如果选择的电阻太小,会导致电子秤的灵敏度降低,而过大的电阻则会使得电子秤在测量重量时不够精确。
因此,为确保电子秤的精度,应该根据秤的制造要求来选择负载电阻。
考虑到设计成本及电路的稳定性,本次设计选用的负载电阻为100欧姆。
2.选择放大器运放为了保证电子秤在测量重量时的可靠性,并获得良好的放大效果,本次设计选用了高精度的放大器运放—AD620。
AD620是一种可编程增益运放器,其增益范围从1到10,000,增益调节简单、性能稳定,广泛用于电子秤等有关测量领域。
3.设计AD转换电路AD转换电路是电子秤中重要的硬件模块,其负责将被放大后的电信号转换为数字信号,以实现数字化显示。
本设计中选用了12位的AD转换器—TLC2543,其采样频率可达50ksps,可以满足电子秤测量的速度要求。
4.LCD显示模块所设计的电子秤需要具备数据输出功能,因此本次设计选用了128*64点阵的LCD显示器模块,作为数据显示的主要载体。
这种LCD显示器具有显示清晰、占用空间小、显示效果佳等优点,适合在电子秤设计中使用。
三、软件设计在电路硬件模块设计完毕之后,为了实现电子秤的各项功能,我们需要设计一个可存在单片机中的程序。
文献综述-数字称重计量系统设计

毕业论文文献综述机械设计制造及其自动化数字称重计量系统设计一、研究现状和发展趋势电子衡器是指配有电子称重装置的衡器,主要由称重传感器、承载器、称重仪表这3部分所组成。
其主要的工作原理是将作用在称重承载器上的力传递到称重传感器上,并将其转换成与之相对应的模拟信号(电压或电流),输出的模拟量信号再经过A/D转换器转换成数字量信号,并在仪表盘上显示出来。
我国是从20世纪60年代中期开始研制并生产电子秤的,模拟指针式的电子秤是早期电子秤主要形式,20世纪80年代中后期开始发展为数字式,20世纪90年代末至21世纪初已研制开发出微机式电子秤。
而数字化传感器的推出则是在80年代末,美国SENSORTRONICS(STS)公司在88年全美衡器展览会上首次推出了一种能将A/D转换器放置于普通应变式称重传感器中的数字传感器,即整体型数字传感器,这种传感器在美国市场备受瞩目。
应变式称重传感器生产的工艺环节比较多,工艺比较复杂,尽管投入了大量物力、人力及精力,调整了像灵敏度、温度、零点、滞后、非线性、蠕变等性能的补偿及四角误差等的问题,但是要达到高质量的要求,补偿技术的设备却还难以做到,普遍存在着质量成本和生产成本一直居高不下的严重问题。
然而随着电子技术的飞速发展,以及单片机技术的普及化,数字化称重传感器也就应运而生。
它是一种将现代电子技术及计算机软件技术与传统应变式称重传感器相结合而发展起来的新型的电子称重技术。
它采用的称重技术是在传感器内部采用了高智能化、高集成化的处理单元,将模拟重量信号进行A/D转换,自动对应变式称重传感器的滞后、零点、非线性、温度、蠕变性能等进行数字化补偿,最后输出数字信号。
电子技术的飞速发展也使衡器数字化得到了大大的发展,但电子衡器却还仍处在模拟电子技术的水平。
在称重仪表与数字称重传感器产品的开发过程中,软件自动化补偿技术及其A/D转换技术的重复和混乱使用,造成了器件资源的严重浪费,增加的外围电路,系统软件的不统一和不完善,使得产品成本增加了不少,不能真正实现电子秤的微型化、低功耗、智能化和高可靠性的目的。
数字电子秤的设计与实现外文文献及翻译

数字电子秤的设计与实现外文文献及翻译数字电子秤的设计与实现毕业论文外文参考文献参考一 :Abstract: In order to solve the weight problem often encountered in measuring the low-mass objects in the trade and daily life of the modern business, the design of a new pocket-sized electronic scales. This pocket-sized electronic scales Force Sensor gravity signals into electrical signals to measure, and measuring the results of the digital display. The pocket-sized electronic scales with a small size, light weight, easy to carry, intuitive display, measurement and high precision; complex structure, the cost disadvantages. This article focuses on the load cell works, error compensation, the main parameters of selection. And the technical and economic analysis.Keywords: pocket-sized electronic scales; weighing; sensor; error compensationCLC1 A needs analysisIn modern commerce and trade and everyday life, often encounter the problem of measuring the weight of the low-mass objects. Although the traditional steelyard can solve this problem, but inconvenient to carry, the efficiency is not high, the display is not intuitive and low measurement accuracy; mechanical spring balance can solve this problem, but the inertia inherent low frequency, high sensitivity, measurement accuracy is not high. With the progress andupdate of the micro-computer technology, integrated circuit technology, sensor technology, electronic scales rapid development,it has a responsive, high accuracy, fully functional, the display is intuitive,1数字电子秤的设计与实现compact, easy to use and so on.For these reasons, in order to solve the low-mass objects weighing problem, if a small size, light weight, portable, digital display electronic scales, will be popular. Discussed below, that is, the scope of a weighing 5 kg compact electronic scales.2 DesignThe principle of the structure of the pocket-sized electronic scales shown in Figure 1. The main task is to design compact electronic scales weighing the choice of the force sensors. Dynamometer sensor types to achieve the weighing and digital display, the key is to want to force (gravity) signals into electrical signals to measure method is mainly divided into two categories: one is the direct method, namely the use of pressure magnetic sensor, piezoelectric sensor, Piezoresistive sensors directly to the force signal converted into electrical signals; the other is the indirect method, the elastic element as the sensor will pull, pressure changes in strain, displacement, or frequency, and then strain sensors, displacement sensors, or frequency sensor strain, displacement orfrequency changes for power. Comprehensive comparison of a variety of sensors, use theindirect method of strain gauge force transducer.Pocket-sized electronic scale structural principle:Sensor ? amplifier ? CPU ? display ? AD converter3 The working principle of the strain gauge force transducer strain gauge pasted into force, force-sensitive elastic element, the corresponding strain when the elastic element force deformation, the strain gauge into a resistance change, which led to the voltage measuring circuit changes by measuring the output voltage value, and then through the conversion can be obtained by the measurement of body weight. Since the pocket-sized electronic scales require small size, weighing in scope, precision and angle even consistency, sensor and display integration, it is selected parallel to the two holes cantilever beam strain gauge load-bearing sensor. Its characteristics are: high precision,2数字电子秤的设计与实现ease of processing, simple and compact structure, strong resistance to partial load, high natural frequency.Strain gauge choice of a metal palisade metal mooring paste on the insulating substrate parked strain gages, mechanical strain resistance strain gauge feelings generally 10 - 10 - 2mm, the resistance rate of change of the attendant about 10 - 6 10 - 2 orders of magnitude, such asmall change in resistance measured using the general resistance of the instrument is hard to measure out, you must use some form of measurement.Circuit into small changes in resistance rates to changes in voltage or current, in order to secondary instrument display. Bridge measurement circuit to meet this requirement. In the load cell, R1, R2, R3, R4 strain gauge resistor bridge measurement circuit shown in Figure 3. Rm is the temperature compensation resistor, e is the excitation voltage, V is the output voltage.参考二 :The load cell is a quality signal into a measurable electrical signal output device. Must consider the actual working environment of the sensor which sensor Yin, this is essential for the correct selection of the load cell, and it is related to the sensor can work as well as its safety and service life, and the whole weighing the reliability and safety sex. On the basic concepts and methods of evaluation of the major technical indicators of the load cell, the new and old GB qualitative differences.The traditional concept, the load sensor weighing sensors, force sensors, collectively referred to using a single parameter to evaluate its measurement properties. Old GB will be completely different application objects and the use of environmental conditions "weighing" and "measured force" two sensors into one to consider, not given to3数字电子秤的设计与实现distinguish between the test and evaluation methods. Old GB total of 21 indicators, were tested at room temperature; and non-linearity, hysteresis error, repeatability error, creep, the additional error of the zero temperature and themaximum error in the six indicators of the rated output additional temperature error, to determine said The level of accuracy of the weight sensor, respectively 0.02,0.03,0.05 said.Proportion to convert the output signal can be measured. Taking into account the different place of use of the acceleration due to gravity and air buoyancy on the conversion, the main performance indicators of the load cell linearity error, hysteresis error, repeatability error, creep, zero-temperature characteristics and temperature sensitivity characteristics. In a variety of weighing and measuring the quality of the system, usually the integrated error accuracy of the integrated control sensors, and integrated error band or scale error band linked so that selection corresponds to a certain accuracy weighing weighing sensors. International Organization of Legal Metrology (OIML) requirements, sensor error with total weighing instrument error 6 with A of 70% of the load cell linearity error, hysteresis error within the specified temperature range due to the effect of temperature on the sensitivity of the er ror the sum can not exceed the error band of 6 . This allows the manufacturer of the components that make up the total measurement error adjustment to obtain the desired accuracy.The load cell conversion method is divided into photoelectric, hydraulic, electromagnetic force type, capacitive, magnetic poles change the form of vibratory gyroscope ceremony, resistance strain type, to the most extensive use of resistance strain.Electromagnetic force sensorItElectromagnetic force sensorIt uses a load-bearing stage load and theprinciple of electromagnetic force Equilibrium (Figure 5). Put the loading stage, the measured object at one end of the lever upward tilt; photoelectric detect the tilt signal, amplified into the4数字电子秤的设计与实现coil, the electromagnetic force, so that the lever to return to equilibrium. Currents produce electromagnetic counterweight digital converter, you can determine the quality of the measured object. The electromagnetic force sensor accuracy, up to 1/2000 ~ 1/60000, but the weighing range is only tens of mg to 10 kg.Capacitive sensorsItCapacitor oscillator circuit of the oscillation frequency and the plate spacing d is directly proportional relationship between the work. There are two plates, one fixed and the other one can move. Bearing load measured object, the leaf spring deflection, the distance between the two plates changes, the oscillation frequency of the circuit also changes. The measured frequency change can be calculated to the quality of the load-bearing stage, the measured object. Capacitive sensor power consumption, low cost, accuracy of 1/200 to 1/500.Pole change the form of sensorFerromagneticcomponents in the measured object gravity under mechanicaldeformation, internal stress and cause changes in permeability, and also changes so that the induced voltage of the secondary coil wound on both sides of the ferromagnetic component (pole). Measure the voltage variation can be calculated added to the force on the pole, and then determine the quality of the measured object. Pole to change the form of sensor accuracy is not high, usually 1/100, applicable to the large tonnage weighing, weighing ranging from tens to tens of thousands of kilograms.Vibration sensorThe force of the elastic element, the natural vibration frequency of the force is proportional to the square root of. Measure the natural frequency changes, you can find the measured object role in the elastic component of the force, and then calculate the quality. The vibration sensor vibrating wire and tuning fork.The elastic component of the vibrating wire sensor string wire. When the loadbearing stage, plus the5数字电子秤的设计与实现measured object, the intersection of the V-shaped string wire is pulled down, and left strings of tension increases, the right string tension decreases. The natural frequency of the two strings of different changes. Calculate the frequency difference between the two strings, you can find the quality of the measured object. The higher the accuracy of the vibrating wire sensor, up to1/1000 ~ 1/10000, weighing 100 g to hundreds of kilograms, but the structure is complex and difficult process, and high cost.The elastic component of the tuning fork sensor is a tuning fork.Fixed tuning fork end of the piezoelectric element, the naturalfrequency of oscillation of a tuning fork, it can be measuredoscillation frequency. When the load-bearing stage and the measuredobject, the tuning fork direction of tensile force while the increase in natural frequency, increasing levels of applied force is proportional to the square root. Measure the changes of natural frequency can be calculated heavy loads imposed on the tuning fork on the force, and then calculate the quality of heavy objects.The tuning fork sensor power consumption, measurement accuracy up to 1/10000 to 1/200 000, weighing range of 500g ~ 10kg.外文参考文献中文翻译外乜匕_4 .参考一 :摘要 : 为解决现代商业贸易和日常生活中经常遇到的测量小质量物体的重量问题 , 介绍了一种新型的袖珍式电子秤的设计。
电子称的设计(原稿)

引言电子秤的研究现状以及发展趋势近些年,电子秤从之前单一的称重器向着智能称发展,电子称技术有了飞跃的发展,越来越集成化,模块化,测量方面速度越来越快,现实的精度越来越高,在准确度方面也是国际领先水平,作为重量测量仪器,智能电子秤已经取代之前的杆秤以及甚至后来的单一的简易电子秤。
纵观国际上的在电子称方面,无论是技术还是规模都有了较高的水平,尤其是在准确度和精度方面突破性较大,在称重传感器方面,国外很多产品在技术和结构方面有较大的发展空间。
目前在人们的生活中,电子称应用十分的广泛,尤其是自己经营商店的应用更是广泛。
正是由于应用十分的广泛,电子称的种类也在不停的改变,随着市场的不断扩大更新型的电子称也更加的浮出水面,现在的电子称更便捷,更智能,更准确。
本设计的主要工作本次的课题是基于单片机的电子称的设计,以单片机为核心展开一系列的工作:(1)掌握STC89C52单片机的工作原理以及开发过程;(2)结合所需要完成的功能,具体的给出方案并进行方案的设计;(3)正确选择开发工具,进行软件硬件的调试。
第1章系统方案设计为了实现本次的设计,采用由整体到局部的设计思想,将软、硬件结合从而完成本次的设计任务,达到所需要的目标。
1.1 设计要求(1)电源电压+5V;(2)最大称重重量5Kg ,精度0.1Kg;(3)进行计量单位的切换;(4)显示称重重量;(5)超出量程时具有蜂鸣器报警功能。
1.2工作原理当托盘上受到被测物体的重力,压力施加给传感器,传感器的弹性元件在外力的作用下会产生弹性形变,使得黏贴在表面的应变片也发生形变,应变片形变之后其电阻值也发生变化,经过后面相应的测量电路把电阻的变化转换成电压的变化,这样问完成了将机械形变转换成电信号的过程,得到一个模拟的信号,经过后期的信号放大给模数转换器一个高倍放大后的数字信号信号,将数字信号送给CPU,主控芯片STC89C52根据软件的编译代码将测量结果送到显示器,显示出被测物体的重量,其总体设计框图如图1-1所示。
电子秤设计毕业论文

电子秤设计毕业论文智能电子秤设计摘要目前,电子计价秤的使用非常普及,逐渐会取代传统的杆秤。
由压力传感器制作的电子秤已广泛地应用到各行各业,特别是微处理机的出现,工业生产过程自动化程度的不断提高,压力传感器已成为过程控制中的一种必需的装置。
本文介绍了一种以MSP43单片机微处理器最小系统,并配以几个主要的集成电路器件设计成的智能电子秤。
本系统是利用压力传感器采集当前压力,根据输入单价,准确计算出物品的金额,同时把重量、金额显示到LED数码管上。
关键词:压力传感器放大器单片机AbstractNowadays, electronic scale is very popular and it will replace the traditional steelyard gradually. The electr onics steelyard made by the pressure tran sducer has bee n applied to all professions, especially the emergence of the microprocessor. And with the increasing of the automati on of in dustry product ion, the pressure tran sducer becomes a kind of esse ntial device in the process con trol.This paper introduces a MSP430 smallest single-chip microprocessor system, and with several major integrated circuit devices designed as a smart electronic scales. The system is to use pressure sen sors collect the curre nt pressure, accord ing to in put price, and accurately calculate the amount of goods At the same time, the weight of the amount of shows on the LED digital tube.Keywords:Pressure Transducer amplifier Single chip microcomputer目录第一章绪论 (1)1.1电子秤设计背景.......................................................... 1.1.2称重技术和衡器的发展.................................................... 1.1.3电子秤的发展现状......................................................... 1.1.4电子秤的发展趋势.........................................................2.1.5现有电子秤的不足......................................................... 4. 第二章芯片介绍 (5)2.1单片机的发展............................................................ 5.2.2 MSP430F149 芯片..................................................... 6.2.2.1 MSP430F149 的引脚 ............................................... 6.2.2.2 MSP430F149的模数转换器ADC12 (9)2.3压力传感器.............................................................. 1.02.3.1压力传感器的选择 (10)2.3.2放大电路.......................................................... 1.12.4 LED数码管 (12)2.4.1数码管的分类 (12)2.4.2数码管的驱动方式 (12)2.5 键盘................................................................... .132.6相关软件 (13)2.6.1 Protel 99 SE ............................................................................................ 1.32.6.2 C 语言............................................................ 1.52.7 小结.................................................................... .16 第三章系统硬件设计. (17)3.1电子秤系统的构成及工作原理............................................. 1.73.2电子秤系统压力传感器电路................................................ 1.73.3电子秤系统的键盘电路 (18)3.4电子秤系统的显示电路 (19)3.5电子秤系统的电源电路 (20)3.6小结 (20)第四章电子秤系统的软件设计 (21)4.1电子秤系统的程序总流程图 (21)4.2初始化程序流程图 (21)4.3压力传感器程序流程图 (22)4.4 预处理程序流程图 (22)4.5称重计价程序流程图 (23)4.6 键盘程序流程图 (24)4.6.1键盘分析程序 (25)4.7数码管显示流程图 (27)4.8小结 (27)结论 (28)致谢 (29)参考文献 (30)附录一 (31)附录二 (33)第一章绪论1.1电子秤设计背景目前,台式电子秤在商业贸易中的使用已相当普遍,但存在较大的局限性:体积大、成本高、需要工频交流电源供应、携带不便、应用场所受到制约。
数字电子秤设计

本数字电子秤设计是由电源模块、A/D转换模块、放大模块、数字显示模块、自动切换模块五大模块组成。
采用压敏4片电阻构成的电桥测量电路来采集极其微小的电压信号,然后送入放大电路放大后送入A/D转换芯片CC7107,使得输入电压信号转换成数字量来输出;再有译码电路转换模块直接连接数码显示管构成,显示实际测量值。
同时根据输出,自动判断出所加压力的大小来改变量程,实现自动换挡。
该设计比较简单,方便制作生产。
关键词:电子秤转换器重量传感器放大器AbstractThis digital electronic scale by the power module is designed, A / D conversion module, amplifier module, a digital display module, the module automatically switches five modules. Bridge measurement circuit using four resistors sensitive to collect tiny voltage signal is then fed into the amplifier circuit A / D converter chip CC7107, so that the input signal is converted into digital voltage outputs; Further translation code conversion module circuits directly connected digital display tubes, shows the actual measured values. Meanwhile according to the output, automatically determine the size of the applied pressure to change the range, automatic shift. The design is simple, easy to produce and production. KEYWORDS :digital electronic scale weighing sensor amplifier中文摘要..................................................................... 英文摘要..................................................................... 前言..................................................... 错误!未定义书签。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
50年代电子技术的出现推动了衡器制造业的发展。60年代出现机电结合式电子衡器以来,经过了30多年的不断改进与完善,我国电子衡器发展迅速,电子衡器整体水平基本上达到了国际90年代中期的水平。计量方法从模拟测试向数字测试发展;电子称重技术从静态称重向动态称重发展;测量特点从单参数测量向多参数测量发展,特别是对快速称重和动态称重的方向的研究与应用。但总体上来说,我国电子衡器产品的数量和质量与发达国家相比较还是有较大差距的,其主要差距体现在技术与工艺上还不够先进、开发能力不足、功能不完全、稳定性和可靠性较差等[7]。
5、电子秤的计量性能
电子秤的计量性能涉及的主要技术指标有:量程、分度值、精确度等级等。
(1)量程:电子秤在正常工作情况下,所能称量的最大值。
(2)分度值:电子秤的测量范围被分成若干等份,每份值即为分度值。
(3)准确的等级:
国际法制计量组织把电子秤按不同的分度数分成Ⅰ、Ⅱ、Ⅲ、Ⅳ四类等级,分别对应不同准确度的电子秤和分度数n的范围,如表1-1所示:
(6)组合性
在工业称重计量过程或工艺流程中,不少称重计量系统还要求具有可组合性,即测量范围等可以任意设定;硬件能够依据一定的工作条件和环境作某些调整,硬件功能向软件方向发展;软件能按一定的程序进行修改和扩展;输入输出数据与指令可以使用不同的语言和条形码,并能与外部的控制和数据处理设备进行通信。
我国电子秤的研究主要集中在专业研究所和大学,始于20世纪70年代,与国外先进技术相比。我们有比较大的差距。
[5]徐惠民,安德宁,单片微型计算机原理接口与应用[M],北京邮电大学出版社,1996
[6]陈志强,胡辉,单片机应用系统设计实践指南[J],2003
[7]阳鸿钧,电子秤与电子天平技术问答[J],中国电力出版社,2009
[8]孟立凡,蓝金辉,传感器原理与应用[M],电子工业出版社,2007
[大学出版社,2007
[10]赵晓安,MCS-51单片机原理及应用[M],天津大学出版社,2001
[11]杨欣,51单片机应用实例详解[M],清华大学出版社,2010
[12]肖洪兵,跟我学用单片机[M],北京航空航天大学出版社,2002
论文题目
数字电子秤设计
一.前言部分
数显电子秤是现今生活中常用的电子称重衡量器,在各大超市、大中型商场、物流配送中心都可以见到。数显电子秤在结构和原理上取代了传统的机械称量衡器。与传统的机械式称量器相比较,数显电子秤具有精度高,应用范围广,易于操作使用等优点,在工作原理、结构和材料上都是全新的衡量器[1]。数显电子秤的设计是通过压力传感器采集到被测物体的确切重量并将其转换成相应的电压信号。输出的电压信号通常会很小,需要相应的放大电路进行准确的线性放大。放大后的模拟电压信号经A/D转换电路转换成相应的数字信号量被送入到主控电路的单片机中,再经过单片机控制译码显示器,就可以显示出被测物体的确切重量。
按照称重传感器的结构型式不同,可以分直接位移传感器和应变传感器。
对称重传感器的基本要求是:输出电量与输入重量保持单值对应,并有良好的线性关系,对被称物体的状态的影响要小,有较高的灵敏度,能在较差的工作条件下工作,稳定可靠。
(3)测量显示和数据输出地载荷测量装置部分
即处理称重传感器信号的电子线路(包括放大器、模数转换、调节器、补偿元件、保护线路等)和指示部件(如显示、打印和存贮器件等)。这部分习惯上称载荷测量装置。
二、主题部分
电子衡器一般是指装有电子装置的计量衡器。因为种类繁多,而且会涉及到交易结算和广大消费者的利益,所以被世界各国政府普遍关注和重视,并被确定为国家强制管理的法制计量器具[5]。电子衡器是自动化称重控制和贸易计量的重要工具,对贸易结算、交通运输、港口计量和科学研究等都起到了重要作用。电子衡器具有测量范围广、反应速度快、使用操作方便、便于计算机控制等一些特点。被广泛应用于石油、化工、电力、冶金、交通运输、建筑、机械制造和国防等各个领域[6]。
现在市场上使用的称量工具,有些是结构复杂,有些是运行不可靠,成本高,精度稳定性也不好,调正的时间长,易损件多,维修困难,能量消耗大。现在市场上电子秤产品整体水平不高,部分小型企业的产品质量差且技术力量薄弱,缺乏产品的开发能力,电子秤产品质量处于低水平层次[2]。所以,有针对性的开发出一套有实用价值的电子秤系统,从技术上克服上述诸多缺点,改善电子秤系统在应用中的不足之处,具有现实意义。
4、电子秤的工作原理
当被称物体放置在秤体的秤台上时,其重量通过秤体传递到称重传感器,传感器随之产生力-电效应,将物体的重量转换成与被称物体重量成一定函数关系的电信号。此信号由放大电路进行放大、经滤波后,再由模/数转换器进行转换,数字信号再送到CPU处理,CPU不断扫描键盘和各种功能开关,根据键盘输入内容和各种功能开关的状态进行必要的判断、分析、由仪表的软件来控制各种运算。运算结果送到内存贮器,需要显示时,CPU发出指令,从内存贮器中读取送到显示器显示。一般信号的放大、滤波、A/D转换以及信号各种运算处理都在仪表中完成。[10]
从20世纪70年代开始,在世界范围内掀起了一股“电子秤热”,各先进工业国都很重视传感技术和电子秤的研究、开发和生产[3]。传感技术已经成为重要的现代科技领域,电子秤及其系统生产已经成为了重要的新兴行业。我国生产的电子秤产品主要是属于静态衡器电子秤,在计量要求、功能和外形上已经达到了国外同类产品的先进水平,而且在价格上又低于国外的同类产品,具有较好的出口潜力;但动态衡器电子秤,与国外的同类产品还有一定的差距,尤其是在动态稳定性上存在较大的距离,我国进口的电子秤大多数就是这类产品。我国的电子衡量器要想打入国际市场,参与国际竞争。这就要求企业必须以技术为先导、以质量为中心、以管理为基础,努力提高制造技术与制造工艺水平,稳定产品的质量,增强国际市场竞争力[4]。目前,台式电子秤在商业贸易中的使用已相当普遍,似存在较大的局限性:体积大、成本高、需要工领交流电源供应、携带不便、应用场所受到制约。现有的便携秤为杆秤或以弹簧、拉伸变形来实现计量的弹簧秆,居民用户使用的基本是本杆秤。弹簧盘杆制造工艺要求较高,弹簧的疲劳问题无法彻底解决,一旦超过弹簧弹性限度,弹簧秤就会产生很大误差,以至损坏、影响到称重的准确性和可靠性,只是一种暂时的代用品.也被列入逐渐取消的行列。
因此,必须加强技术研究和引进先进设备,以提高整体水平。
3、电子秤的基本结构
电子秤是利用物体的重力作用来确定物体质量的测量仪器,也可以来确定与质量相关的其它量的大小。电子秤一般由以下三个部分组成:
(1)秤体部分
这部分含有承载器、减振机构和秤桥结构等。
(2)称重传感器部分
传感器就是把采集到的非电量转换成电量的转换元件。
四、参考文献
[1]王君,凌振宝,传感器原理及检测技术[M],吉林大学出版社,2001
[2]黄继昌,徐巧鱼,传感器原理及应用实例[M],人民邮电出版社,2002
[3]吕俊芳,传感器接口与检测仪器电路[M],北京航空航天大学出版社,1998
[4]万隆,巴奉丽,单片机原理及应用技术[M],清华大学出版社,2003
三、总结部分
电子秤是能感受规定的被测量并按一定的规律转换成可用输出信号的器件,主要用于检测机电一体化系统自身与操作对象、作业环境状态,为有效控制机电一体化系统的运作提供必要的相关信息[11]。随着人类探知领域和空间的拓展,电子信息种类日益繁多,信息传递速度加快,信息处理能力日益增强,相应的信息采集——传感技术也将日益发展,电子秤也将无所不在[12]。
(2)集成化
对于某些品种和结构的电子衡器,例如小型电子平台秤、专用秤、便携式静动态电子轮轴秤、静动态电的子轨道衡等,都可以实现秤体与称重传感器,钢轨与称重传感器,轨道衡秤体与铁路线路一体化。
(3)模块化
对于大型或超大型的承载器结构,如大型静动态电子汽车衡等,已开始采用几种长度的标准结构的模块,经过分体组合,而产生新的品种和规格。这种模块化分体式秤体结构,不仅提高了产品的通用性、可靠性和互换性,而且也提高了生产效率和产品的质量。同时还降低了成本,增强了企业的市场竞争能力。
表1-1电子秤等级分类
标志及等级
电子秤种类
分度数范围
特种准确度
基准衡器
n>100000
高准确度
精密衡器
10000<n<100000
中准确度
商业衡器
1000<n<10000
普通准确度
粗衡器
100<n<1000
6、控制单片机的选型
选择单片机型号的出发点有以下几个方面:
1、市场货源
系统设计者只能在市场上能够提供的单片机中选择,特别是作为产品大批量生产的应用系统,所选的单片机型号必须有稳定、充足的货源。
2.国内外发展趋势
通过分析近年来电子衡器产品的发展状况以及国内外市场的需求,电子衡器总的发展趋势是小型化、集成化、模块化、智能化;其技术性能趋势是准确度高、可靠性高、稳定性高;其应用性能趋向于综合性和组合性[8]。
(1)小型化
装载体积小、重量轻、高度低。近几年新研制的电子秤结构充分体现了小型化发展方向。对于低量程的电子平台秤,可采用将薄型的圆形传感器,直接嵌入钢板底面与称重传感器外径相同的盲孔内,形成低外形的秤体结构,钢板就是秤体的台面,称重传感器既是传感原件,又是承力的支点,这就极大地减化了秤体结构,减少了活动连接等环节,不但降低了成本,而且提高了稳定性和可靠性。对于中等量程的电子平台秤,已经出现了采用方形闭合截面的薄壁型钢板,并焊接成一个整体的竹排式结构秤体,4个称重传感器分别安装在最外边两根薄壁型钢板两端的切口内,这样既减化了承力传力机构,又节省了秤体高度,这是一种很有发展前途的秤体结构。对于大型电子平台秤,可利用有限单元进行等强度和刚度计算,采用抗弯度大的型材和轻型波纹夹心钢板等[9]。
3、研制周期
在研制任务重、时间紧的情况下,还要考虑所选的单片机型号是否熟悉,是否能马上着手进行系统的设计。与研制周期有关的另一个重要因素是开发工具,性能优良的开发工具能加快系统地研制进程。