Digital electronic weigher(数字电子秤的中英文资料)
- 格式:doc
- 大小:72.00 KB
- 文档页数:9
Digital electronic weigherAbstractwith the rapid development of Microelectronics technology in the new century,the using traditional tools in the market have been completely unable to meet the needs of people。
People have been expecting cheap portable electronic scales which can measure accurately、smaller and easily reading for many years.Electronic scales have come into being。
the electronic scale posses the function which traditional scale can not replace , such as weighing convenience, high accuracy, automatic control, simple operation, widely used in people's lives, industrial production, scientific research。
voltage outputted by the he resistance strain sensor bridge make use of ADC0832 Built-in amplifier,8-bit speed A / D converter, Convert Corresponding Digital signal。
The digital signal will be dealt by the program in the MCU, then displayed the weight of the object on the LM4229LCD. User can input the price of the object through keyboard, then the value of the object will be calculated and displayed。
Price setting by buttons,it can store the price commonly used to fast opreration with Shortcuts when next weighing, and cancle the commonly price to re-enter.Through the above description, this design of electronic weighing scales to ensure accuracy at the same time, but also to small, low prices, because of these advantages, I believe the public will get its favor.Keyword:Electronic Scale senser ATC89C51 MCUA 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 nothigh, 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 and update 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, 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 or frequency changes for power. Comprehensive comparison of a variety of sensors, use the indirect method of strain gauge force transducer.Pocket-sized electronic scale structural principle:Sensor → A mplifier →A|D converter →CPU→ Displaysensor device design: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 displayintegration, it is selected parallel to the two holes cantilever beam strain gauge load-bearing sensor. Its characteristics are: high precision, 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 a small 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, R 1, R 2, R 3, R 44 strain gauge resistor bridge measurement circuit shown in Figure 3. R m 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 to 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 the maximum error in the six indicators of the rated output additional temperature error, to determine said The level of accuracy of the weightsensor, 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 (Figure 1) 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 δ with Δ 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 error the sum can not exceed the error band of δ. 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.So I decide to use MPX4115 to realise results.ST89C51:The ST89C51 is a low-power, high-performance CMOS 8-bit microcomputer with 4K bytes of Flash Programmable and Erasable Read Only Memory (PEROM) and 128 bytes RAM. The device is manufactured using Atmel’s high density nonvolatile memory technology and is compatible with the industry standard MCS-51™ instruction set and pinout. The chip combines a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C51 is a powerful microcomputer which provides a highly flexible and cost effective solution to many embedded control applications.Features:• Compatible with MCS-51™ Products• 4K Bytes of In-System Reprogrammable Flash Memory• Endurance: 1,000 Write/Erase Cycles• Fully Static Operation: 0 Hz to 24 MHz• Three-Level Program Memory Lock• 128 x 8-Bit Internal RAM• 32 Programmable I/O Lines• Two 16-Bit Timer/Counters• Six Interrupt Sources• Programmable Serial Channel• Low Power Idle and Power Down ModesThe AT89C51 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16-bit timer/counters, a five vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator and clock circuitry. In addition, the ST89C51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt system to continue functioning. The Power Down Mode saves the RAM contents but freezes the oscillator disabling all other chip functions until the next hardware reset.Oscillator CharacteristicsXTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier which can be configured for use as an on-chip oscillator, as shown in Figure 1. Either a quartz crystal or ceramic resonator may be used. To drive the device from an external clock source, XTAL2 should be left unconnected while XTAL1 is driven as shown in Figure 2. There are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is through adivide-by-two flip-flop, but minimum and maximum voltage high and low time specifications must be observed.Idle ModeIn idle mode, the CPU puts itself to sleep while all the onchip peripherals remain active. The mode is invoked by software. The content of the on-chip RAM and all thespecial functions registers remain unchanged during this mode. The idle mode can be terminated by any enabled interrupt or by a hardware reset.It should be noted that when idle is terminated by a hard ware reset, the device normally resumes program execution, from where it left off, up to two machine cycles before the internal reset algorithm takes control. On-chip hardware inhibits access to internal RAM in this event, but access to the port pins is not inhibited. To eliminate the possibility of an unexpected write to a port pin when Idle is terminated by reset, the instruction following the one that invokes Idle should not be one that writes to a port pin or to external memory.Status of External Pins During Idle and Power Down ModesPower Down ModeIn the power down mode the oscillator is stopped, and the instruction that invokes power down is the last instruction executed. The on-chip RAM and Special Function Registers retain their values until the power down mode is terminated. The only exit from power down is a hardware reset. Reset redefines the SFRs but does not change the on-chip RAM. The reset should not be activated before VCC is restored to its normal operating level and must be held active long enough to allow the oscillator to restart and stabilize.Program Memory Lock BitsOn the chip are three lock bits which can be left unprogrammed (U) or can be programmed (P) to obtain the additional features listed in the table below:Lock Bit Protection ModesWhen lock bit 1 is programmed, the logic level at the EA pin is sampled and latched during reset. If the device is powered up without a reset, the latch initializes to a random value, and holds that value until reset is activated. It is necessary that the latched value of EA be in agreement with the current logic level at that pin in order for the device to function properly.Programming the FlashThe AT89C51 is normally shipped with the on-chip Flash memory array in the erased state (that is, contents = FFH) and ready to be programmed.The programming interface accepts either a high-voltage (12-volt) or a low-voltage (VCC) program enable signal.The low voltage programming mode provides a convenient way to program the AT89C51 inside the user’s system, while the high-voltage programming mode is compatible with conventional third party Flash or EPROM programmers.The AT89C51 is shipped with either the high-voltage or low-voltage programming mode enabled. The respective top-side marking and device signature codes are listed in the following table.The AT89C51 code memory array is programmed byte-bybyte in either programming mode. To program any nonblank byte in the on-chip Flash Programmable and Erasable Read Only Memory, the entire memory must be erased using the Chip Erase Mode.Programming Algorithm:Before programming the AT89C51, the address, data and control signals should be set up according to the Flash programming mode table and Figures 3 and 4. To program the AT89C51, take the following steps.1. Input the desired memory location on the address lines.2. Input the appropriate data byte on the data lines.3. Activate the correct combination of control signals.4. Raise EA/VPP to 12V for the high-voltage programming mode.5. Pulse ALE/PROG once to program a byte in the Flash array or the lock bits. The byte-write cycle is self-timed and typically takes no more than 1.5 ms. Repeat steps 1 through 5, changing the address and data for the entire array or until the end of the object file is reached.Data PollingThe AT89C51 features Data Polling to indicate the end of a write cycle. During a write cycle, an attempted read of the last byte written will result in the complement of the written datum on PO.7. Once the write cycle has been completed, true data are valid on all outputs, and the next cycle may begin. Data Polling may begin any time after a write cycle has been initiated.Ready/BusyThe progress of byte programming can also be monitored by the RDY/BSY output signal. P3.4 is pulled low after ALE goes high during programming to indicate BUSY. P3.4 is pulled high again when programming is done to indicate READY. Program VerifyIf lock bits LB1 and LB2 have not been programmed, the programmed code data can be read back via the address and data lines for verification. The lock bits cannot be verified directly. Verification of the lock bits is achieved by observing that their features are enabled.Chip EraseThe entire Flash Programmable and Erasable Read Only Memory array is erased electrically by using the proper combination of control signals and by holding ALE/PROG low for 10 ms. The code array is written with all “1”s. The chip erase operation must be executed before the code memory can be re-programmed. Reading the Signature BytesThe signature bytes are read by the same procedure as a normal verification of locations 030H, 031H, and 032H, except that P3.6 and P3.7 must be pulled to a logic low. The values returned are as follows.(030H) = 1EH indicates manufactured by Atmel(031H) = 51H indicates 89C51(032H) = FFH indicates 12V programming(032H) = 05H indicates 5V programmingProgramming InterfaceEvery code byte in the Flash array can be written and the entire array can be erased by using the appropriate combination of control signals. The write operation cycle is selftimed and once initiated, will automatically time itself to completion.。