The high-rise building emergency non-powered circulating chain ladder escape device is very necessary for people living in high-rise buildings to escape from fire. The non-powered fire chain ladder is a typical variable load nonlinear system. As the load increases, the current in the generator winding increases, the magnetic field is enhanced, the speed is accelerated, and the chain ladder's descent speed also increases. The system requires that no matter how the load changes, the stable descent speed of the chain ladder must be maintained at 0.4 m/s~0.5 m/s. For this reason, this paper designs a parameter adaptive fuzzy PID controller based on a single-chip microcomputer. According to the actual response of the chain ladder, it automatically adjusts, modifies and improves the control rules and parameters during the control process, so that the control performance of the system is continuously improved to achieve the best control effect.
1 Main hardware circuit design of the system
The hardware of the control system mainly consists of three parts: sensors, controllers and actuators. The sensor is used as the input part to measure the speed of the generator and convert it into an electrical signal; the controller is used to receive the input signal of the sensor, calculate and process it according to the set program, and output the result; the actuator drives the actuator according to the signal output by the control unit to change it as required. The structural block diagram of the control system is shown in Figure 1.
The speed sensor continuously collects the generator speed and enters the MCU for fuzzy-PID algorithm processing. The MCU processes the collected speed deviation e and deviation change value ec through fuzzy algorithm (lookup table), adjusts KP, KI, KD online, and finally calculates the control output u through PID formula. The output u controls the on and off of the thyristor to control the size of the load resistance.
This control system is based on the ATMEL89C52 MCU. AT89C52 is an improved version of the MCS-51 MCU and is a high-performance CMOS 8-bit microcontroller. Because it has a built-in 8 KB Flash memory, the structure of the MCU system is greatly simplified [1].
1.1 Speed detection circuit
The sensor outputs a relatively weak pulse signal, which needs to be converted into a standard input signal of the MCU with an amplitude of +5 V, which is implemented using the LM311 comparator. The actual circuit is shown in Figure 2. R2 and R3 are used to adjust the reference voltage of the comparator, which is set to 0.25 V. When the output voltage of the sensor is higher than the reference voltage, the comparator outputs a high level of +5 V, otherwise it outputs a low level of 0 V. The size of the comparator pull-up resistor will affect the output amplitude. After changing from 500 Ω to 15 kΩ, the output amplitude increases. This circuit outputs a stable and regular waveform.
1.2 Drive execution circuit
In the single-chip microcomputer system, each resistor corresponds to an interface. When the personnel changes, as long as the corresponding port outputs a high level according to the control amount, the thyristor is turned on, and the load resistance can be changed to adjust the speed of the generator.
Since the signal output by the single-chip microcomputer is not enough to trigger the thyristor, the trigger power must be amplified. The trigger pulse is output from the port of the single-chip microcomputer, and the trigger pulse must pass through the optoelectronic isolator and the transistor. The optoelectronic isolator is used to improve the system's anti-interference ability, and the transistor is used to increase the drive current. This circuit consists of a buffer, an optoelectronic isolator, a transformer and other components, as shown in Figure 3.
When there is no pulse signal at the MCU AT89C52 port, the opto-isolator TIL117 is turned off and the transformer has no pulse output. When there is a pulse signal at the MCU port, the opto-isolator
TIL117
is turned on, thereby turning on the corresponding transistor BG. In this way, the trigger pulse is output through the pulse transformer T, prompting the thyristor to trigger and turn on.
1.3 Watchdog hardware
circuit In order to ensure the reliable and stable operation of the MCU in the chain ladder system, a "watchdog" monitor is required [2]. Since the AT89C52 used in this control system does not have a watchdog function, once the system is disturbed on site and the program runs away, the MCU has no self-protection ability and cannot make the system work again. For this reason, this system uses a "watchdog" hardware circuit composed of MAX706 and AT89C52, as shown in Figure 4. MAX706 is a low-power CMOS monitoring circuit chip with excellent performance. Its internal circuit consists of power-on reset, a repeatable triggerable "watchdog" timer and a voltage comparator [3].
When the CPU is working normally, the circuit does not interfere with it. When the CPU malfunctions for a period of time, the watchdog circuit will be activated to reset the system and restart it. [page]
2 System software design
The software design of the entire speed control system includes the main program design and the subprogram design of various functions. The main program is mainly responsible for the power-on initialization of the entire system, as well as the status setting of functional registers and port registers. The flow charts of the main program and several main processing subprograms are given below.
2.1 Main program
The main program is the management-level program, which mainly completes the initialization of the system and waits for interrupt signals. Its flow chart is shown in Figure 5.
2.2 Speed measurement subroutine
The speed measurement of the generator in this system is implemented using the M/T method [4]. Timer T0 counts external pulses and records the number of pulses m1 output by the sensor. Timer T1 counts internal pulses and records the number of clock pulses m2. Timer T2 determines the sampling period T. The start time of the timer is always consistent with the first pulse leading edge of the sensor. The number of pulses m1 is obtained within the time T. At the same time, another counter counts the standard clock pulses. When the timing T ends, only the external pulse counting stops. After the timing ends, when the sensor outputs the first pulse leading edge, the standard clock counting stops and m2 is obtained. Its duration Td=T+ΔT, the speed
2.3 Fuzzy PID control program
In order to reduce the complexity of online calculation and improve the implementation speed of the algorithm as much as possible, this system uses a table lookup method to realize the fuzzy real-time adjustment of PID parameters. The control program flow chart is shown in Figure 7.
This system controls the speed of the generator by adjusting the load current of the generator, that is, changing the load resistance, so as to control the descending speed of the chain ladder, which is a major innovation of this paper. The system takes the AT89C52 single-chip microcomputer as the core, and designs the hardware and software of the chain ladder speed reduction control system. The hardware part mainly designs the speed detection circuit and the drive execution circuit. In addition, in order to ensure the normal operation of the system, a watchdog circuit is designed. The software part mainly designs the main program and some subroutines. In addition, the fuzzy PID control algorithm is adopted. On the basis of retaining the advantages of the conventional PID control algorithm, it also has strong adaptability and good anti-interference performance when the parameters change, so that the stable descending speed of the chain ladder is always maintained at 0.4 m/s 0.5 m/s.
References
[1] Yu Yongquan. Application technology of ATMEL89 series single-chip microcomputer [M]. Beijing: Beijing University of Aeronautics and Astronautics Press, 2002.
[2] Li Weiguo, Yu Xiaohong. A new software design method for single-chip microcomputer "watchdog" circuit [J]. Foreign Electronic Components, 2000 (10).
[3] MAXIM. Product Selector Guide. 2000.
[4] Li Yongdong. AC motor digital control system [M]. Beijing: Machinery Industry Press, 2002.
Previous article:Design of electronic password lock based on STC89C52 single chip microcomputer
Next article:Design and implementation of a multi-computer peripheral sharing controller based on single chip microcomputer
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Direct Memory Access (DMA) Controller - TMS320VC5509A
- A must-read for beginners! Experts explain the PCB return path for high-speed circuits
- Two major power outages in five days! The Taiwan authorities have asked TSMC to relocate or suspend some production lines
- PADS PCB 3D component library
- Frequency division of analog signals
- C2000-GNAG Operation and Use
- What role does artificial intelligence play in chip development?
- [ESK32-360 Review] 6. Hello! Hello! Hello! Hello!
- [NXP Rapid IoT Review] NXP Rapid IOT Experience
- Is there any teacher who can help me write a program for Mitsubishi FX3U to output pulses?