The tube expander is a special equipment designed and developed for the expansion of various types of tubes and tube sheets in condensers, oil coolers, heaters, and heat exchangers. The basic principle of its controller is to use the working current of the drive motor (also known as the drive motor, tube expander head) to calibrate the applied load, that is, the drive motor provides a considerable amount of torque under a certain working current value, and the corresponding amount of torque can produce a certain amount of expansion (expansion force) by rotating the tube expander, which can be measured. Therefore, by accurately measuring and controlling the working current value of the drive motor, the required expansion (expansion force) can be obtained and controlled.
At present, most of the tube expanders on the market use 51 single-chip microcomputers, but their shortcomings are prominent. For example, there is no internal memory, and external Flash or EPROM must be connected to store setting information, which makes the circuit more complicated and not conducive to expansion, and the operating voltage range is narrow and the anti-interference ability is poor. The tube expander using the MSP430F149 single-chip microcomputer can effectively overcome these shortcomings.
1 Working Principle
Figure 1 is the overall block diagram of the system. The working process of the tube expander is analyzed through the block diagram: after power-on, the manual switch is pressed, and the manual detection circuit will detect the start signal and send it to the single-chip microcomputer through photoelectric isolation (separating strong current); at this time, the AC is added to the load through the current transformer, and the AC is converted into DC through the rectifier filter circuit. After a delay circuit delays for a period of time to avoid the starting current of the motor, and then after amplification, the current signal is input into the single-chip microcomputer for A/D conversion and processing; at the same time, the relay controls the main switch M-SW to open, the motor starts, and the set current value and the real-time value of the motor rotation current are displayed on the panel: when the actual current changes based on the detection current, the single-chip microcomputer controls the reversing switch D-SW through the relay to perform expansion or de-expansion operations. At the same time, the indicator light can display the working status of the tube expander. The button can set the expansion force and select 3 different power gears of the motor. When the motor is unloaded, after the manual switch is pressed, the main switch is turned on, the rotor rotates, and the collected current signal is sent to the single-chip microcomputer. After about 6 seconds, the microcontroller displays the average value of the idling current it measured. At this time, the main switch is disconnected and the rotor stops rotating. When setting the expansion force, the expansion force setting value must be greater than the current value when the motor is idling, otherwise the motor cannot expand the tube.
2 Circuit Design
After 220 V AC input, the voltage regulator module continuously outputs stable +5 V and +12 V voltages to ensure the power supply of the circuit board. At the same time, TPS76301 is used to convert the +5 V voltage into +3 V voltage to power the microcontroller. The 220 V AC power is isolated through optoelectronics to provide +12V power for the relay 555 delay circuit that controls A/D acquisition and the D-SW commutation circuit.
When the manual switch is pressed, the power is turned on, and the single-chip microcomputer collects the current signal and performs A/D conversion. Figure 2 shows the A/D signal acquisition circuit. The AC input passes through the current transformer T1, and the AC is added to the load, and is converted into DC through the rectifier and filter circuit. The output current signal AA/D is controlled by the relay K5 and sent to the front panel. The current signal AA/D1 obtained after amplification by the LM358 is handed over to the single-chip microcomputer MSP430 for collection and processing. The 0 end of the relay K5 is connected to the output end of the 555 delay circuit, and the output signal of the 555 delay circuit controls its working state.
When the tube expander is turned on, there is a very large instantaneous current, which will cause the machine to shut down immediately after it is turned on and cannot start normally. Therefore, a peak avoidance circuit composed of a 555 delay circuit is needed to avoid the instantaneous large current and delay the startup time. Figure 3 is a delay peak avoidance circuit. When the tube expander is turned on, there will be a pulse on pin 2 (TRIG) of NE555, which makes the level of pin 3 (Q) become low. The relay K5 coil in Figure 2 is energized and disconnected, causing the microcontroller to be unable to collect signals. At the same time, the capacitor begins to charge, and pin 7 (DIS) of NE555 is internally turned on. After the pulse, the capacitor begins to discharge through pin 7, and the voltage of TRIG and THR begins to decrease. When the voltage drops to a certain level, Q becomes a high level, pin 7 is internally cut off, K5 stops working, and signal collection is normal, avoiding the phenomenon of immediate shutdown after startup.
In the tube expander, an interlocking circuit needs to be designed to control the running state of the motor and perform tube expansion and de-expansion operations. The interlocking circuit is shown in Figure 4. The levels of points A0 and A1 are controlled by the single-chip microcomputer to control the potential of M-SW and D-SW respectively. When point A1 is set to a low level, the photoelectric isolation works, making D-SW a high level, so that Q2 is turned on, L-SW is low, and the D10 (RET-URN) light is on, that is, the de-expansion state; if point A1 is set to a high level, D-SW is set low, and the coil of K3 relay works, making L-SW high, so the de-expansion light goes out, which is the tube expansion state. When point A0 is set to a low level, the photoelectric isolation is triggered, making M-SW a high level, so that the collector of Q1 is connected to the ground, and the coil of relay K1 is energized to start working, thereby disconnecting the connection state between the input and the motor. Therefore, the circuit interlocking is realized through the relay, and the running state of the motor is controlled.
In addition, in the design of the double-head tube expander, in order to ensure that the two tube expanders work at the same time and are not affected by each other, a combination circuit consisting of a 555 timer and a 16-bit bistable JK trigger 74LS76 is added, as shown in Figure 5. It can be seen from the figure that each time the MODE switch is pressed and released, a pulse signal is provided to the HAl7555, and at the same time, it is output to the HD74LS76 so that the negative terminal level of the CHA and CHB two indicator lights changes according to the rule of the JK trigger, thus satisfying that each time the MODE switch changes, the two sides of the double-head tube expander can work independently without being affected.
3 Software Design
The core CPU structure of MSP430 is designed according to the purpose of reduced instruction set and high transparency. The instructions used are hardware-executed cores and high-efficiency simulation instructions based on existing hardware structures. It has rich addressing modes, concise instructions, a large number of registers and data storage on the chip, which can participate in various operations. It has efficient table lookup processing methods and high processing speed. The computing power reaches 1 million instructions per second under 8 MHz crystal. These characteristics make this series of single-chip microcomputers still highly efficient when developed in C language, thereby improving the development cycle and realizing the portability of the program. The system software development adopts IAR Embedded Workbench, an integrated development environment dedicated to the MSP430 series of single-chip microcomputers, and adopts C language programming.
In the program design of the instrument, since a large current impact will be generated at the moment of motor commutation, the delay time of commutation must be properly set, otherwise it will cause great damage to the instrument, motor and even the operator. The software design process of the instrument is shown in Figure 6.
4 Current calibration and fitting
After experimental measurement, the delay time T of the delay peak avoidance circuit is about 1.32 s. Table 1 is the A/D value and current I value measured in the experiment.
According to the data in Table 1, the fitting software 1stOpt is used to fit the curve. And the fitting formula is obtained. Figure 7 is the curve obtained by using 1stOpt to fit the data. One is the actual curve and the other is the fitting curve obtained by calculation. Its root mean square error RMSE = 0.040 73, square sum error SSE = 0.119 45, determination coefficient DC = 0.999 61, average correlation coefficient R = 0.999 881; it can be seen that the curve fits quite well and the fitting degree is high.
The fitting formula obtained by 1stOpt is:
Wherein: y is current I, x is A/D value, p1 = -10.630 343 410 453 1, p2 = 1.745 270 764 713 4, p3 = -0.104 720 964 439 341, p4 = 0.003 091 662 786 520 87. p5 = -4.382 000 357 851 88x10-5, p6 = 2.419321 657 545 33x10-7.
This fitting formula calibrates the relationship between the current I value and the A/D value; and the corresponding I value can be obtained according to the corresponding A/D value.
5 Conclusion
The tube expander developed with MSP430 single-chip microcomputer has low cost, wide working voltage range, strong expansion capability and strong anti-interference ability. At the same time, the analog-to-digital conversion module inside the single-chip microcomputer greatly reduces the circuit board area and other peripheral expansion devices, making the whole set of tools small and easy to use. The tube expander can be connected to three different power drive motors of 300, 400 and 600 W; the set value and real-time value are fully digitally displayed; the expansion force is digitally set and adjusted by key operation; for drive motors of different powers, the minimum and maximum values allowed to be set are automatically prompted; the drive motor is automatically detected to see if it is working properly; there are sound and light prompts during operation, which is simple, intuitive and flexible to operate; the LED indicates the working status; it can automatically record and display the number of tube expansions; and it has leakage protection function. The tube expander has outstanding advantages and has been widely used in many domestic enterprises and has received unanimous praise.
Previous article:Design of SD card file system based on MCF51QE128
Next article:Design of infrared liquid pump based on Lingyang single chip microcomputer SPCE061A
Recommended ReadingLatest update time:2024-11-16 21:26
- Popular Resources
- Popular amplifiers
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
- [DWIN Serial Port Screen] Nucleic Acid Sampling Registration System VI Adding Sampling Workstation
- ADI chip silk screen model
- Why should buck_boost be designed from the lowest input voltage?
- Is UWB the first choice for real-time positioning technology during the COVID-19 pandemic?
- Spring for Beijing mobile users: mobile rates have finally been reduced!
- How to use the ASC16 standard font
- AD20 Installation Issues
- [Vote] What interesting and fun programming comments have you seen?
- ST's latest 3D time-of-flight sensor, 672*804 resolution.
- Are there any commonly used solutions recommended for converting 0-10V to PWM?