A chopper pressure regulating bottle blowing machine based on STM32

By adopting a chopping voltage regulation control system based on STM32 in the bottle blower, using fuzzy adaptive PID algorithm and precise load feedback, the problem of low accuracy and inability to adapt to power grid fluctuations in the existing bottle blower controller is solved, and the problem of low accuracy and inability to adapt to power grid fluctuations is realized. High precision and high yield.

CN112895394BActive Publication Date: 2025-02-21WUXI XINJIE ELECTRICAL
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110262001.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-10
Publication Date
2025-02-21
Estimated Expiration
2041-03-10

AI Technical Summary

Technical Problem

The existing bottle blower controller has low accuracy and cannot adapt to grid fluctuations and distortions, resulting in abnormal plastic molding and low yield.

Method used

Adopting a chopping voltage regulation control system based on STM32, including a microprocessor controller module, RS485 communication module, temperature acquisition module, DA output module, load feedback module, pulse output module and zero crossing detection phase sequence detection module, through fuzzy adaptation PID algorithm and precise load feedback realize accurate control of the output voltage.

Benefits of technology

It improves the accuracy and adaptability of the bottle blower, reduces the impact of grid fluctuations on the output voltage, realizes accurate closed-loop control of the AC voltage, and improves the yield and product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112895394B_ABST
    Figure CN112895394B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of bottle blowing machines, especially a chopper-voltage-regulating bottle blowing machine based on STM32. The following scheme is proposed, including a bottle blowing machine controller, a microprocessor controller module (CPU), an RS485 communication module, a temperature acquisition module, a DA output module, a load feedback module, a pulse output module, a zero-crossing detection and a phase sequence detection module. The microprocessor controller module uses an STM32H750XB chip as a CPU, and the function of the microprocessor controller module is data processing and calculation. The present invention has accurate load feedback. The controller rectifies the voltage at both ends of the load through an AC-AC transformer and a full-wave rectifier circuit to achieve accurate collection of the load; the control circuit of the device is simple, which solves the problem of reverse withstand voltage. The controller controls the output voltage by controlling the output angle of the bidirectional thyristor through pulse output, which is simpler and more reliable than the traditional thyristor control method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of bottle blowing machines, and in particular to a chopping pressure regulating bottle blowing machine based on STM32. Background Art

[0002] A bottle blowing machine is a machine that blows bottles. The most common explanation is that it can blow plastic particles (softened into liquid) or finished bottle embryos into bottles through certain process methods. Plastic bottles are generally blow-molded. In recent years, with the rapid development of blow molding technology, blow molding can be used to form various bottles.

[0003] The existing traditional bottle blowing machine controller only realizes the voltage regulation function, but most traditional bottle blowing machines have low precision and cannot adapt to grid fluctuations and distortions. If the voltage regulation cannot adapt to the grid during the production process, the mold will be heated unevenly or the temperature will be too high or too low, which will cause abnormal plastic molding, the surface will not be smooth enough or will melt directly, and the yield will be low. Summary of the invention

[0004] Based on the technical problems mentioned in the background technology that most traditional bottle blowing machines have low precision and cannot adapt to grid fluctuations and distortions, if the voltage regulation cannot adapt to the grid during the production process, the mold will be heated unevenly or the temperature will be too high or too low, which will lead to abnormal plastic molding, uneven surface or direct melting, and low yield, the present invention proposes a chopper pressure regulation bottle blowing machine based on STM32.

[0005] The invention provides a chopper pressure regulating bottle blowing machine based on STM32, comprising a bottle blowing machine controller, a microprocessor controller module (CPU), an RS485 communication module, a temperature acquisition module, a DA output module, a load feedback module, a pulse output module, a zero-crossing detection module and a phase sequence detection module. The microprocessor controller module uses an STM32H750XB chip as a CPU, and the functions of the microprocessor controller module are data processing and calculation.

[0006] The RS485 communication module uses the MAX485 chip, and the RS485 communication module includes a touch screen and a host computer software. The function of the RS485 communication module is to communicate with the touch screen and the host computer software through the Modbus protocol to achieve human-computer interaction;

[0007] The temperature acquisition module uses the AD7124 chip, and the temperature acquisition module includes a PT100 temperature sensor. The function of the temperature acquisition module is to convert the analog data collected by the PT100 temperature sensor into digital data and pass it to the CPU through the SPI protocol;

[0008] The DA output module uses the MAX5214 chip, which converts the digital quantity calculated by the CPU into an analog quantity and outputs 0-10V DC through the SPI protocol;

[0009] The pulse output module uses a combination of optocoupler and bidirectional thyristor. The function of the pulse output module is to control the opening and closing of the bidirectional thyristor through a 100 microsecond pulse after receiving the driving signal from the CPU to achieve chopping voltage regulation.

[0010] The load feedback module uses an AC-AC transformer and a full-wave rectifier circuit to filter and rectify the voltage across the load and pass it to the CPU, and obtains the precise actual value of the output voltage through the mean square error algorithm;

[0011] The zero-crossing detection and phase sequence detection modules are both implemented through IO port interrupts. The function of zero-crossing detection is to achieve phase control, and the function of phase sequence detection is to achieve phase sequence alarm.

[0012] Preferably, the following basic process is also included:

[0013] S1. Power on;

[0014] S2. Initialization;

[0015] S3.LED program starts;

[0016] S4.Modbus program execution;

[0017] S5 mode switching, the bottle blowing machine controller has chopping voltage regulation mode and temperature control mode.

[0018] Preferably, the chopping voltage regulation mode includes a phase sequence detection program, a zero-crossing detection program, a load feedback program, a determination of the validity of a set value, a fuzzy adaptive PID algorithm, a determination of the validity of a PWM value, and a chopping program.

[0019] Preferably, the temperature control mode includes a temperature conversion program, a mode judgment program, a PID operation program and a DA output program.

[0020] Preferably, the phase sequence detection program: through the AB phase sequence detection circuit and the AC phase sequence detection circuit, the interruption trigger of the IO port is used to determine whether the current phase sequence is correct, if correct, proceed to the next step; if wrong, return;

[0021] Zero-crossing detection program: The interruption of the IO port is triggered by the zero-crossing detection circuits of phase A, phase B, and phase C to determine the zero-crossing phase. If phase A crosses zero, the load feedback program of phase A is executed; if phase B crosses zero, the load feedback program of phase B is executed; if phase C crosses zero, the load feedback program of phase C is executed;

[0022] Load feedback program: The filtered and rectified load is collected through the on-chip analog-to-digital converter, and the flag is set on the rising edge of the zero-crossing detection interrupt to periodically collect data. In the first three cycles, the square values ​​of the collected data are superimposed, and the fourth cycle is squared. The actual voltage value is obtained through the root mean square algorithm.

[0023] Preferably, the validity of the set value is judged; the user sets the target value of the output voltage through the touch screen, and if the set value exceeds the threshold, the channel is closed; if the set value is valid, the next step is entered;

[0024] Fuzzy adaptive PID algorithm: The CPU calculates the deviation between the actual output value and the set value obtained by load feedback to obtain the PWM value;

[0025] Determine the validity of the PWM value: If the PWM value is higher than the threshold, close the channel; if the PWM value is valid, proceed to the next step;

[0026] Chopping program: Substitute the PWM value into the pulse output module, and the output pulse simulates a 100 microsecond signal through a timed interrupt to achieve timed chopping.

[0027] Preferably, the temperature conversion program: uses the SPI communication protocol to convert the analog quantity collected by the 24-bit analog-to-digital conversion chip AD7124 into a digital quantity and transmits it to the CPU.

[0028] Preferably, the mode is judged as follows: if it is automatic mode, proceed to the next step; if it is manual mode, manually write the DA output target value through the touch screen; if it is automatic mode, proceed to the next step.

[0029] Preferably, the PID operation procedure: performs PID operation through the difference between the actual value and the target value to obtain the DA output value.

[0030] Preferably, the DA output procedure: the CPU transmits the DA output value to the 16-bit digital-to-analog conversion chip MAX5214 chip through the SPI communication protocol.

[0031] The beneficial effects of the present invention are:

[0032] 1. The chopper voltage regulation bottle blowing machine based on STM32 has accurate load feedback. The controller rectifies the voltage at both ends of the load through the AC-AC transformer and the full-wave rectifier circuit to achieve accurate load acquisition; the control circuit of this device is simple and solves the reverse voltage resistance problem. This controller controls the output voltage by controlling the output angle of the bidirectional thyristor through pulse output, which is simpler and more reliable than the traditional thyristor control method.

[0033] 2. This chopper pressure-regulating bottle blowing machine based on STM32 adopts fuzzy adaptive algorithm to optimize the control system. This controller optimizes the incremental PI control algorithm through fuzzy algorithm, effectively reduces the influence of power grid fluctuation on output voltage, and realizes precise closed-loop control of AC voltage. In addition, the temperature acquisition accuracy of this controller is high. This controller adopts 24-bit analog-to-digital conversion chip AD7124 to collect temperature from PT100 temperature sensor, which can be accurate to two decimal places and has high sampling accuracy.

[0034] 3. The chopper pressure-regulating bottle blowing machine based on STM32 has a high degree of integration and comprehensive functions. The controller includes a pulse output module, a load feedback module, a phase sequence detection and zero-crossing detection module, a DA output module, a temperature acquisition module and an RS485 communication module, which can meet the basic needs of the heating process of the bottle blowing machine. In addition, the device can interact with humans and has a high degree of intelligence. The controller communicates with the touch screen through the modbus protocol. The operator only needs to monitor in real time on the touch screen, which is more efficient and convenient than the traditional process. The STM32 single-chip microcomputer is used to realize the functions, which has low cost, simple equipment and easy maintenance.

[0035] The parts not involved in the device are the same as those in the prior art or can be implemented by using the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic structural diagram of a bottle blowing machine framework of a chopper pressure regulating bottle blowing machine based on STM32 proposed by the present invention;

[0037] Figure 2 This is a structural schematic diagram of a main program flow chart of a chopping pressure regulating bottle blowing machine based on STM32 proposed by the present invention;

[0038] Figure 3 A schematic structural diagram of a chopping voltage regulation mode of a chopping voltage regulation bottle blowing machine based on STM32 proposed by the present invention;

[0039] Figure 4 This is a structural schematic diagram of a temperature control mode of a chopping pressure regulating bottle blowing machine based on STM32 proposed by the present invention. DETAILED DESCRIPTION

[0040] The technical solution of this patent is further described in detail below in conjunction with specific implementation methods.

[0041] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0042] In the description of this patent, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this patent and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this patent.

[0043] In the description of this patent, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", and "set" should be understood in a broad sense, for example, it can be fixedly connected or set, or it can be detachably connected or set, or connected or set in one piece. For ordinary technicians in this field, the specific meanings of the above terms in this patent can be understood according to specific circumstances.

[0044] Reference Figure 1-4 A chopper pressure regulating bottle blowing machine based on STM32 includes a bottle blowing machine controller, a microprocessor controller module (CPU), an RS485 communication module, a temperature acquisition module, a DA output module, a load feedback module, a pulse output module, a zero-crossing detection module and a phase sequence detection module. The microprocessor controller module uses an STM32H750XB chip as a CPU, and the function of the microprocessor controller module is data processing and calculation;

[0045] The RS485 communication module uses the MAX485 chip, and the RS485 communication module includes a touch screen and a host computer software. The function of the RS485 communication module is to communicate with the touch screen and the host computer software through the Modbus protocol to achieve human-computer interaction;

[0046] The temperature acquisition module uses the AD7124 chip, and the temperature acquisition module includes a PT100 temperature sensor. The function of the temperature acquisition module is to convert the analog data collected by the PT100 temperature sensor into digital data and pass it to the CPU through the SPI protocol;

[0047] The DA output module uses the MAX5214 chip, which converts the digital quantity calculated by the CPU into an analog quantity and outputs 0-10V DC through the SPI protocol;

[0048] The pulse output module uses a combination of optocoupler and bidirectional thyristor. The function of the pulse output module is to control the opening and closing of the bidirectional thyristor through a 100 microsecond pulse after receiving the driving signal from the CPU to achieve chopping voltage regulation.

[0049] The load feedback module uses an AC-AC transformer and a full-wave rectifier circuit to filter and rectify the voltage across the load and pass it to the CPU, and obtains the precise actual value of the output voltage through the mean square error algorithm;

[0050] The zero-crossing detection and phase sequence detection modules are both implemented through IO port interrupts. The function of zero-crossing detection is to achieve phase control, and the function of phase sequence detection is to achieve phase sequence alarm.

[0051] The present invention also includes the following basic process:

[0052] S1. Power on;

[0053] S2. Initialization;

[0054] S3.LED program starts;

[0055] S4.Modbus program execution;

[0056] S5 mode switching, the bottle blowing machine controller has chopping voltage regulation mode and temperature control mode.

[0057] In the present invention, the chopping voltage regulation mode includes a phase sequence detection program, a zero-crossing detection program, a load feedback program, a setting value validity judgment, a fuzzy adaptive PID algorithm, a PWM value validity judgment, and a chopping program.

[0058] In the present invention, the temperature control mode includes a temperature conversion program, a mode judgment, a PID operation program and a DA output program.

[0059] In the present invention, the phase sequence detection program: through the AB phase sequence detection circuit and the AC phase sequence detection circuit, the interrupt trigger of the IO port is used to determine whether the current phase sequence is correct. If it is correct, it goes to the next step; if it is wrong, it returns;

[0060] Zero-crossing detection program: The interruption of the IO port is triggered by the zero-crossing detection circuits of phase A, phase B, and phase C to determine the zero-crossing phase. If phase A crosses zero, the load feedback program of phase A is executed; if phase B crosses zero, the load feedback program of phase B is executed; if phase C crosses zero, the load feedback program of phase C is executed;

[0061] Load feedback program: The filtered and rectified load is collected through the on-chip analog-to-digital converter, and the flag is set on the rising edge of the zero-crossing detection interrupt to periodically collect data. In the first three cycles, the square values ​​of the collected data are superimposed, and the fourth cycle is squared. The actual voltage value is obtained through the root mean square algorithm.

[0062] In the present invention, the validity of the set value is judged; the user sets the target value of the output voltage through the touch screen, and if the set value exceeds the threshold, the channel is closed; if the set value is valid, the next step is entered;

[0063] Fuzzy adaptive PID algorithm: The CPU calculates the deviation between the actual output value and the set value obtained by load feedback to obtain the PWM value;

[0064] Determine the validity of the PWM value: If the PWM value is higher than the threshold, close the channel; if the PWM value is valid, proceed to the next step;

[0065] Chopping program: Substitute the PWM value into the pulse output module, and the output pulse simulates a 100 microsecond signal through a timed interrupt to achieve timed chopping.

[0066] In the present invention, the temperature conversion program: uses the SPI communication protocol to convert the analog quantity collected by the 24-bit analog-to-digital conversion chip AD7124 into a digital quantity and transmits it to the CPU.

[0067] In the present invention, the mode is judged as follows: if it is the automatic mode, then the next step is entered; if it is the manual mode, then the DA output target value is manually written through the touch screen; if it is the automatic mode, then the next step is entered.

[0068] In the present invention, the PID operation procedure is: PID operation is performed through the difference between the actual value and the target value to obtain the DA output value.

[0069] In the present invention, the DA output procedure: the CPU transmits the DA output value to the 16-bit digital-to-analog conversion chip MAX5214 chip through the SPI communication protocol.

[0070] This device has accurate load feedback. This controller rectifies the voltage at both ends of the load through an AC-AC transformer and a full-wave rectifier circuit to achieve accurate acquisition of the load; the control circuit of this device is simple and solves the problem of reverse voltage resistance. This controller controls the output voltage by controlling the output angle of the bidirectional thyristor through pulse output. Compared with the traditional thyristor control method, it is simpler and more reliable. The fuzzy adaptive algorithm is used to optimize the control system. This controller optimizes the incremental PI control algorithm through the fuzzy algorithm, effectively reducing the impact of power grid fluctuations on the output voltage and realizing accurate closed-loop control of the AC voltage; in addition, the temperature acquisition accuracy of this controller is high. This controller uses a 24-bit analog-to-digital conversion chip AD7124 to collect the temperature of the PT100 temperature sensor, which can be accurate to two decimal places and has high sampling accuracy.

[0071] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A chopper pressure regulating bottle blowing machine based on STM32, including a bottle blowing machine controller, characterized in that: It also includes a microprocessor controller module, an RS485 communication module, a temperature acquisition module, a DA output module, a load feedback module, a pulse output module, a zero-crossing detection module and a phase sequence detection module. The microprocessor controller module uses an STM32H750XB chip as a CPU, and the function of the microprocessor controller module is data processing and calculation; The RS485 communication module uses a MAX485 chip, and the RS485 communication module includes a touch screen and a host computer software. The function of the RS485 communication module is to communicate with the touch screen and the host computer software through the Modbus protocol to achieve human-computer interaction; The temperature acquisition module uses an AD7124 chip, and the temperature acquisition module includes a PT100 temperature sensor. The function of the temperature acquisition module is to convert the analog data collected by the PT100 temperature sensor into digital data and transmit it to the CPU through the SPI protocol; The DA output module uses the MAX5214 chip, which converts the digital quantity calculated by the CPU into an analog quantity and outputs 0-10V direct current through the SPI protocol; The pulse output module adopts a combination of an optocoupler and a bidirectional thyristor, and the function of the pulse output module is to control the opening and closing of the bidirectional thyristor through a 100 microsecond pulse after receiving the driving signal from the CPU to achieve chopping voltage regulation; The load feedback module uses an AC-AC transformer and a full-wave rectifier circuit to filter and rectify the voltage across the load and transmit it to the CPU, and obtains the accurate actual value of the output voltage through a mean square error algorithm; The zero-crossing detection and phase sequence detection modules are both implemented through IO port interruption. The function of the zero-crossing detection is to realize phase control, and the function of the phase sequence detection is to realize phase sequence alarm.

2. The chopper pressure regulating bottle blowing machine based on STM32 according to claim 1, characterized in that: The following processes are also included: S1. Power on; S2. Initialization; S3.LED program starts; S4.Modbus program execution; S5 mode switching, the bottle blowing machine controller has a chopping voltage regulation mode and a temperature control mode.

3. The chopper pressure regulating bottle blowing machine based on STM32 according to claim 2, characterized in that: The chopping voltage regulation mode includes a phase sequence detection program, a zero-crossing detection program, a load feedback program, a setting value validity judgment, a fuzzy adaptive PID algorithm, a PWM value validity judgment, and a chopping program.

4. The chopper pressure regulating bottle blowing machine based on STM32 according to claim 3, characterized in that: The temperature control mode includes a temperature conversion program, a mode judgment, a PID operation program and a DA output program.

5. The chopper pressure regulating bottle blowing machine based on STM32 according to claim 3, characterized in that: The phase sequence detection program: through the AB phase sequence detection circuit and the AC phase sequence detection circuit, the interrupt trigger of the IO port is used to determine whether the current phase sequence is correct. If correct, proceed to the next step; if wrong, return; The zero-crossing detection program: through the A-phase, B-phase, and C-phase zero-crossing detection circuits, the interruption trigger of the IO port is used to determine the zero-crossing phase. If the A-phase crosses zero, the A-phase load feedback program is executed; if the B-phase crosses zero, the B-phase load feedback program is executed; if the C-phase crosses zero, the C-phase load feedback program is executed; The load feedback program: collects the filtered and rectified load through the on-chip analog-to-digital converter, sets the flag bit on the rising edge of the zero-crossing detection interrupt, and periodically collects data; in the first three cycles, the square values ​​of the collected data are superimposed, and the fourth cycle is squared; the actual voltage value is obtained through the root mean square algorithm.

6. The chopper pressure regulating bottle blowing machine based on STM32 according to claim 5, characterized in that: Determine the validity of the set value; the user sets the target value of the output voltage through the touch screen, if the set value exceeds the threshold, the channel is closed; if the set value is valid, proceed to the next step; The fuzzy adaptive PID algorithm: the CPU calculates the deviation between the actual output value obtained by load feedback and the set value to obtain the PWM value; Determining the validity of the PWM value: if the PWM value is higher than the threshold, the channel is closed; if the PWM value is valid, proceed to the next step; The chopping program: substitutes the PWM value into the pulse output module, and the output pulse simulates a 100 microsecond signal through a timing interrupt to achieve timing chopping.

7. The chopper pressure regulating bottle blowing machine based on STM32 according to claim 4, characterized in that: The temperature conversion program: uses the SPI communication protocol to convert the analog quantity collected by the 24-bit analog-to-digital conversion chip AD7124 into a digital quantity and transmits it to the CPU.

8. The chopper pressure regulating bottle blowing machine based on STM32 according to claim 7, characterized in that: The mode judgment: if it is automatic mode, proceed to the next step; if it is manual mode, manually write the DA output target value through the touch screen; if it is automatic mode, proceed to the next step.

9. The STM32-based chopper pressure-regulating bottle blowing machine according to claim 8, characterized in that: The PID operation procedure: performs PID operation through the difference between the actual value and the target value to obtain the DA output value.

10. The STM32-based chopper pressure-regulating bottle blowing machine according to claim 9, characterized in that: The DA output procedure: The CPU transmits the DA output value to the 16-bit digital-to-analog conversion chip MAX5214 through the SPI communication protocol.

Citation Information

Patent Citations

  • STM32-based chopping pressure-regulating bottle blowing machine

    CN216001403U