Design of temperature and humidity monitoring system for ammunition depot based on intelligent sensor

Publisher:脑电狂徒Latest update time:2014-11-27 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

Ammunition is mainly stored in warehouses from the time it leaves the factory to the time it is used by troops for combat or training. During long-term storage, although the ammunition is in a macroscopically static state, its quality is constantly changing. This is because ammunition is mainly composed of metal and charge. During long-term storage, due to the influence of temperature and humidity, the metal will rust, thereby reducing the strength of metal parts and deteriorating the surface mechanical properties, which seriously affects the use of ammunition and may even cause major accidents. Temperature and humidity will also change the physical and chemical properties of ammunition charges, thereby causing them to lose their due combat skills requirements. Therefore, temperature and humidity are the main contradictions in the change of ammunition quality. According to the warehouse conditions of our army, the climatic conditions of our country and the current management level of the warehouse, it is usually stipulated that the maximum temperature does not exceed 30℃ and the maximum humidity does not exceed 70%, which is commonly referred to as the "37" line.
The monitoring system of the traditional ammunition warehouse uses a monitoring system composed of dry-bulb hygrometers, hair hygrometers, hygroresistors or ordinary temperature and humidity sensors, which are usually complex in structure, large in system and poor in accuracy. The author uses the SHT15 ultra-small, self-calibration, multi-functional intelligent sensor launched by the Swiss company Sensirion to measure parameters such as relative humidity, temperature and dew point, which is suitable for the design of the temperature and humidity intelligent monitoring system of ammunition warehouses.

2 Performance and characteristics of SHTl5

The SHT15 sensor is a single-chip, multi-purpose intelligent sensor, which not only includes a micro relative humidity sensor based on a humidity-sensitive capacitor and a micro temperature sensor based on a bandgap circuit, but also has a 14-bit A/D converter and a 2-wire serial interface. It can output calibrated serial data of relative humidity and temperature, so the system no longer uses the multi-way conversion switch, A/D converter and signal conditioning circuit required by the traditional design. The system structure is relatively compact and simple. SHT15 can measure relative humidity and temperature at the same location. Its internal structure is shown in Figure 1.

                   Internal structure
 

SHT15 has relatively few pins and is easy to use. Its pin arrangement is shown in Figure 2. The pin functions are shown in Table 1. The relative humidity measurement range of SHT15 intelligent sensor is 0~100%. The resolution is 0.03%, the highest accuracy is +2%RH, the temperature measurement range is -40℃ to 123.8℃, the resolution is 0.1℃, the power supply voltage range is +2.5V to +5.5V, and the response time is less than 3s.

                     Pin Function

                                Pinout

3 System structure and principle

The design system is mainly composed of a single-chip microcomputer, sensors and actuators. The AT89C51 low-voltage and high-performance CMOS 8-bit single-chip microcomputer is used. The chip contains 4K bytes of repeatedly erasable read-only program memory (PEROM) and 128 bytes of random access memory (RAM). It is produced using ATmel's high-density, non-volatile storage technology. It is compatible with the standard MCS-51 machine instruction system, and also has a general-purpose 8-bit central processing unit and Flash storage unit. The powerful AT89C51 microcomputer provides a cost-effective solution. Its main functional features are as follows:

Compatible with MCS-51 instruction system;
4K rewritable (>1000 times) Flash ROM;
32 bidirectional I/O ports;
programmable UARL channel;
2 16-bit programmable timer/counters;
full static operation 0-24MHz;
1 serial interrupt;
128x8bit internal RAM;
2 external interrupt sources;
6 interrupt sources in total;
can directly drive LED;
3-level encryption bit;
low power idle and power-down mode;
software set sleep and wake-up function.

AT89C51 and SHT15 communicate via a serial bus. The actuators are mainly composed of motor-controlled cooling machines, heating machines, dehumidifiers, humidifiers, etc. The temperature/humidity monitoring system of the ammunition warehouse is shown in Figure 3. [page]

           Temperature/humidity monitoring system for ammunition warehouses
 

AT89C51 cyclically selects multiple SHT15 in real time to detect temperature and relative humidity. Then reads out the data value and displays the data value at that time. When the relative humidity exceeds 70%, the microcontroller controls the dehumidifier to start working. If the relative humidity is lower than 40%, the humidifier starts working; when the temperature exceeds 30℃, the cooling machine starts working, and when the temperature is lower than -12℃, the heating machine starts working. Each cycle is repeated 3 times, and a temperature and humidity value report is printed once.

4 System Programming

The system software is written in MCS-51 assembly language. It adopts modular programming method. It mainly includes initialization module, data acquisition, data processing, display, alarm, printing and other modules. The system flowchart is shown in Figure 4. Since SHT15 contains memory, the initialization program is mainly to set the initial values ​​of some data in the memory of the microcontroller and SHT15, and initialize the initial state of the microcontroller. This system is a multi-channel measurement system. After SHT15 is powered on, it enters the dormant state after 10ms. Only when the microcontroller issues a measurement command, SHT15 is "woken up" and works. Therefore, the microcontroller cyclically issues temperature and humidity measurement commands to each sensor to realize multi-channel temperature and humidity measurement. The command set of SHT15 is listed in Table 2.

                         System flowchart


                   SHTl5 command set

Since the data output by SHT15 is nonlinearly related to the measured value, in order to obtain accurate data, nonlinear compensation must be performed on the reading value. For nonlinear compensation of humidity, the 8-bit data is usually compensated by the following formula:

RH=(1.43N-5.127), 256(0≤IV≤107) (1)
RH=(1.11N-28.93)/256(108≤N≤255) (2)

For temperature sensor, the following formula is usually used for nonlinear compensation:

T=d+d2M (3)

In the formula, N and M are the output values ​​of the relative humidity sensor and the temperature sensor respectively, and d1 and d2 are constants determined by the power supply voltage and the number of temperature data bits.

Each measured data should be compared with the specified value. If it is within the allowed range, the program will proceed to the next step. If it does not meet the requirements, an alarm should be sounded and the data value at the moment will be displayed. After each cycle, there will be a delay of 1 hour (which can be flexibly selected). This is mainly because there are many wooden structures in the ammunition warehouse, and there is a process of volatilization and absorption of moisture. After a certain delay, the measurement can be carried out. It can avoid the long-term operation of the sensor and the repeated start and stop of the actuator, save resources, and extend the service life of the system. After every 3 cycles of measurement (which can be appropriately selected according to needs), the single-chip microcomputer controls the printer to print out the temperature/humidity data of the 3 measurements for reporting and archiving.

5 Conclusion

The temperature and humidity monitoring system for ammunition depot designed by the author is based on the SHT15 intelligent sensor. SHT15 is a new type of sensor based on the design concept of intelligent sensor, which realizes the digital output of temperature and humidity sensors, and has the characteristics of free debugging, free calibration, and no peripheral circuit, which greatly facilitates the application in the field of embedded measurement and control. It is the direction of future sensor development. The structure of the system is relatively simple, the volume is relatively small, the accuracy is high, and it overcomes the shortcomings of the traditional ammunition depot temperature/humidity measurement system.

Reference address:Design of temperature and humidity monitoring system for ammunition depot based on intelligent sensor

Previous article:Drilling tool posture acquisition based on MATLAB GUI
Next article:Heat source automatic tester based on 8051 single chip microcomputer control

Recommended ReadingLatest update time:2024-11-23 14:50

Design of RS 232 serial data interception based on AT89C51 single chip microcomputer
    introduction     At present, there is still a certain gap between my country's equipment technology level and that of developed countries. For advanced equipment introduced from abroad, how to break through its technical bottleneck without any technical information and achieve leapfrog development of equipment tec
[Microcontroller]
Design of RS 232 serial data interception based on AT89C51 single chip microcomputer
Design of Laser Password Controller Based on AT89C51
1 Design The laser password uses a single-chip microcomputer and an LCD screen. The single-chip microcomputer ensures that its programmer can use today's high-tech and optimized software to design and program, and the LCD screen ensures that it can help users operate in a very friendly interface. It combines advanc
[Microcontroller]
Design of Laser Password Controller Based on AT89C51
Analysis of the design scheme of electronic therapeutic instrument based on embedded device AT89C51SNDIC
1 Introduction Currently, electronic therapeutic devices use two electrode pads to symmetrically cover the body parts to be treated. The pulsating voltage on the electrode pads interacts with the resistance of the body part being treated to generate a pulsating current that can be sensed by the human body at the treat
[Microcontroller]
Analysis of the design scheme of electronic therapeutic instrument based on embedded device AT89C51SNDIC
Micro Programmable Controller Based on AT89C51 Single Chip Microcomputer
Abstract: This paper introduces the design ideas, system hardware configuration and software design methods of a micro programmable controller PLC using the AT89C51 single chip. Finally, an example of the application of this micro programmable controller in water tower water level control is given. Keywords:
[Industrial Control]
Micro Programmable Controller Based on AT89C51 Single Chip Microcomputer
C source program design of AT89C51 microcontroller frequency meter
This article is the C source program of the frequency meter based on the AT89C51 microcontroller. The main functions of this frequency meter are as follows: 1. Test function It indicates all the test functions possessed by the digital frequency meter, generally including frequency measurement, period, accumulated pu
[Microcontroller]
MCU AT89C51--7. Buttons (independent buttons, matrix buttons)
1. Keyboard type 1.1 Encoding keyboard Generate the key value code of the pressed key through the hardware circuit. The program is simple but the hardware circuit is complex Like a computer keyboard 1.2 Non-encoded keyboard The software is programmed to identify the non-encoded keyboard, the non-encoded keyboard har
[Microcontroller]
MCU AT89C51--7. Buttons (independent buttons, matrix buttons)
Application of commutation controller based on AT89C51 in periodic commutation power supply
O Introduction In many actual production processes, control components with automatic reversing functions are often used. For example, the reciprocating operation (displacement) in mechanical processing, the forward and reverse output of the DC power supply, the forward and reverse operation of the motor, etc
[Microcontroller]
Design of 16×16LED Chinese Character Matrix Scrolling Display Based on AT89C51 Single Chip Microcomputer
    LED display is a flat display screen composed of light-emitting diode dot matrix modules or pixel units. It has the advantages of high luminous efficiency, long service life, flexible configuration, rich colors and strong adaptability to indoor and outdoor environments. It is widely used for information release an
[Microcontroller]
Design of 16×16LED Chinese Character Matrix Scrolling Display Based on AT89C51 Single Chip Microcomputer
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号