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.
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.
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]
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.
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.
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
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Friends in Nanjing, please look here! Here’s your chance to marry a beautiful, rich and beautiful woman and reach the pinnacle of your life!
- Please recommend a newer rf development kit
- Application of switch Hall sensor DRV5032 in TWS headset design
- FPGA_100 Days Journey_IIC Design
- I want to build an electronic circuit workshop. Please give me some suggestions on how to build it! Thank you in advance!
- Share the growth path of a real DSP master
- Operational amplifier parameter analysis and LTspice application simulation" Reading Notes 2 Kirchhoff's superposition law Dai...
- What work needs to be done on DSP for image algorithm transplantation
- Review of the good content I saw in EEWorld in 2021. Post a comment and win 88 points
- Can PWM technology be used to achieve features such as fast settling time and low energy consumption?