Method and device for controlling electromagnetic valve, electronic device, and storage medium
By detecting the motor position and controlling the opening and closing of the bridge circuit of the drive chip, the motor's rotational energy is consumed, thus solving the impact noise problem when the solenoid valve closes and improving the vehicle's sound quality.
Patent Information
- Application Number
- CN202210119752.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-08
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-02-08
AI Technical Summary
In the prior art, the acoustic solenoid valves on vehicles generate a high-frequency valve impact sound when closed, which reduces the overall sound quality of the vehicle.
By detecting whether the motor's position information matches the target position information, the upper and lower half-bridges of the control chip are disconnected. After disconnection, one half-bridge is turned on after a preset time so that the electrical energy generated by the motor rotation is introduced into the preset circuit. The electrical energy is consumed through electronic components, thereby reducing the closing speed of the solenoid valve.
It effectively reduces the noise when the valve impacts the electroacoustic valve body, improving the overall sound quality of the vehicle.
Smart Images

Figure CN116610046B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the automobile technical field, and in particular to a control method and device of an electromagnetic valve, an electronic device and a computer readable storage medium. BACKGROUND
[0002] With the gradual improvement of people's living standards, people's requirements for the whole vehicle have changed from the initial means of transportation to comfortable family necessities, so in addition to the more stringent requirements for the power of the vehicle model, there is also a higher pursuit of the sound quality of the whole vehicle. At present, the vehicle is equipped with an acoustic electromagnetic valve, and when the acoustic electromagnetic valve is closed, there will be a higher frequency of valve impact on the valve body, which reduces the sound quality of the whole vehicle. SUMMARY
[0003] To solve the above technical problems, the embodiments of the present application provide a control method and device of an electromagnetic valve, an electronic device and a computer readable storage medium, aiming to solve the technical problem of the sound caused by the valve impact on the valve body in the prior art.
[0004] Other characteristics and advantages of the present application will become apparent from the following detailed description, or will be learned by practice of the present application.
[0005] According to one aspect of the embodiments of the present application, a control method of an electromagnetic valve is provided, the method comprising:
[0006] receiving an electromagnetic valve closing instruction, and detecting whether the position information of the motor matches the target position information according to the electromagnetic valve closing instruction;
[0007] If the position information of the motor matches the target position information, the upper half bridge and the lower half bridge of the drive chip are controlled to be disconnected to stop providing driving voltage for the motor;
[0008] After disconnecting for a preset time, the upper half bridge or the lower half bridge of the drive chip is controlled to be turned on so that the electric energy generated by the rotation of the motor is introduced into a preset circuit, and the electric energy is consumed by electronic components, thereby reducing the closing speed of the electromagnetic valve.
[0009] Further, the detection of whether the position information of the motor matches the target position information according to the electromagnetic valve closing instruction comprises:
[0010] generating a first driving signal according to the electromagnetic valve closing instruction, and sending the first driving signal to the drive chip so that the drive chip drives the motor to rotate according to the first driving signal;
[0011] The position information of the motor is continuously acquired during the rotation of the driving motor, and whether the position information of the motor matches target position information is detected according to the position information of the motor.
[0012] Further, the continuously acquiring the position information of the motor during the rotation of the driving motor comprises:
[0013] The magnetic field variation amount generated by the rotation of the magnetic ring driven by the rotation of the motor is continuously acquired during the rotation of the driving motor.
[0014] The position information of the motor is determined according to the magnetic field variation amount, so as to obtain the position information of the motor.
[0015] Further, the determining the position information of the motor according to the magnetic field variation amount comprises:
[0016] The rotation speed of the motor is calculated according to the magnetic field variation amount through a Hall sensor.
[0017] The position information of the motor is determined according to the rotation speed.
[0018] Further, before the continuously acquiring the position information of the motor during the rotation of the driving motor, the method further comprises:
[0019] The direction information of the motor is acquired during the rotation of the driving motor.
[0020] The direction information is matched with preset direction information.
[0021] If the direction information matches the preset direction information, a second driving signal is generated and sent to the driving chip, so that the driving chip drives the motor to rotate according to the second driving signal.
[0022] Further, before the controlling the upper half bridge or the lower half bridge of the driving chip to be turned on after the preset time length is disconnected, the method further comprises:
[0023] The control time length of the upper half bridge and the lower half bridge of the driving chip being disconnected is acquired.
[0024] The control time length is compared with a preset time length threshold.
[0025] If the control time length is less than the preset time length threshold, a dead zone control signal is continuously generated to control the upper half bridge and the lower half bridge of the driving chip to be disconnected.
[0026] Further, the acquiring the control time length of the upper half bridge and the lower half bridge of the driving chip being disconnected comprises:
[0027] record a starting time when the upper half bridge and the lower half bridge of the driving chip are disconnected, and record an ending time when the upper half bridge or the lower half bridge of the driving chip is disconnected;
[0028] calculate the control duration according to the starting time and the ending time.
[0029] According to an aspect of an embodiment of the present application, a control device of an electromagnetic valve is provided, comprising:
[0030] a receiving module configured to receive an electromagnetic valve closing instruction, and detect whether position information of a motor matches target position information according to the electromagnetic valve closing instruction;
[0031] a first control module configured to control the upper half bridge and the lower half bridge of a driving chip to be disconnected to stop providing driving voltage for the motor if the position information of the motor matches the target position information;
[0032] a second control module configured to control the upper half bridge or the lower half bridge of the driving chip to be turned on to make the electric energy generated by the rotation of the motor be introduced into a preset circuit to be consumed by electronic components, thereby reducing the closing speed of the electromagnetic valve after being disconnected for a preset duration.
[0033] According to an aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the electromagnetic valve control method as described above.
[0034] According to an aspect of an embodiment of the present application, a computer readable storage medium is provided, and computer readable instructions are stored on the computer readable storage medium, when the computer readable instructions are executed by a processor of a computer, the computer executes the method as described above.
[0035] According to an aspect of an embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the various optional embodiments described above.
[0036] In the technical scheme provided in the embodiment of the application, after receiving the electromagnetic valve closing instruction, the motor is controlled to drive the valve to rotate, the position information of the motor is detected during the rotation process to determine whether the position information of the motor matches the target position information, after the match, the upper half bridge and the lower half bridge on the driving chip are controlled to be disconnected, so as to avoid the upper half bridge and the lower half bridge from being burned out due to simultaneous conduction, when the preset time length is disconnected, the upper half bridge or the lower half bridge of the driving chip is controlled to be conducted, so that the back electromotive force generated by the motor is introduced into the internal resistance of the controller, the resistance consumes heat, and the rotation speed of the motor is reduced, thereby reducing the sound generated when the valve impacts the electronic acoustic valve body, and improving the sound quality of the whole vehicle.
[0037] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application. BRIEF DESCRIPTION OF DRAWINGS
[0038] The drawings incorporated into the specification and forming part of the specification, show embodiments consistent with the application, and together with the specification, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and those skilled in the art can obtain other drawings from these drawings without creative labor. In the drawings:
[0039] Figure 1 is a block diagram of a control system of an electromagnetic valve involved in the application;
[0040] Figure 2 is a flowchart of a control method of an electromagnetic valve involved in the application;
[0041] Figure 3 is a flowchart of step S210 in the control method of an electromagnetic valve involved in the application;
[0042] Figure 4 is a flowchart of step S320 in the control method of an electromagnetic valve involved in the application;
[0043] Figure 5 is a flowchart of a control method of an electromagnetic valve involved in the application;
[0044] Figure 6 is a flowchart of a control method of an electromagnetic valve involved in the application;
[0045] Figure 7 is a block diagram of a control device of an electromagnetic valve involved in the application;
[0046] Figure 8 is a structural schematic diagram of a computer system of an electronic device suitable for realizing the embodiments of the application. DETAILED DESCRIPTION
[0047] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is made with reference to the accompanying drawings in which like reference numerals refer to like elements, and the description which will be made is intended to comprise diverse embodiments and are not intended to limit the present application to a single embodiment. Rather, the following description is intended to explain the exemplary embodiments of the present application, and is not intended to limit the scope of the present application as disclosed in the appended claims.
[0048] The block diagrams in the drawings show only the functional blocks and not necessarily the physical arrangement of the devices. That is, the functional blocks can be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0049] The flow diagrams in the drawings show only the functional blocks and not necessarily the physical arrangement of the devices. That is, the functional blocks can be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0050] It should also be noted that the term "a plurality" means two or more in the present application. The term "and / or" describes the associated objects in the associated relationship, which means that there can be three relationships, for example, A and / or B can represent three cases: A alone, A and B together, and B alone. The character " / " generally represents the relationship between the front and rear associated objects as "or".
[0051] Please refer to Figure 1 , Figure 1The control system of the electromagnetic valve comprises an ECU 110, an acoustic electromagnetic valve controller 120, a driving chip 130, a motor 140 and a Hall sensor 150. The control method of the electromagnetic valve provided by the application can be applied to the electromagnetic valve, and the electromagnetic valve can be applied to the automobile field. The ECU 110 (Electronic Control Unit) is composed of a microprocessor (MCU), a memory (ROM, RAM), an input / output interface (I / O), an analog-to-digital converter (A / D) and large-scale integrated circuits such as shaping and driving. In the ECU 110, the CPU is the core part, which has the functions of operation and control. When the engine is running, it collects the signals of various sensors, performs operation, and converts the operation results into control signals to control the work of the controlled object. It also implements the control of the memory (ROM / FLASH / EEPROM, RAM), the input / output interface (I / O) and other external circuits; the program stored in the memory ROM is written on the basis of the data obtained through accurate calculation and a large number of experiments. This inherent program is compared and calculated with the signals collected by various sensors during the operation of the engine. The comparison and calculation results are used to control the ignition, air-fuel ratio, idle speed, exhaust gas recirculation and other parameters of the engine.
[0052] Please refer to Figure 1 The work of the electromagnetic valve includes opening or closing of the electromagnetic valve, and the application controls the closing of the electromagnetic valve. When the electromagnetic valve is controlled to be closed, the ECU 110 generates an electromagnetic valve closing instruction and sends the electromagnetic valve closing instruction to the acoustic electromagnetic valve controller 120 through LIN (Local Interconnect Network) communication. LIN communication is a low-cost serial communication network used to realize distributed electronic system control in automobiles. The goal of LIN is to provide auxiliary functions for existing automobile networks (such as CAN bus), so the LIN bus is an auxiliary bus network. In situations where the bandwidth and multifunctionality of the CAN (Controller Area Network) bus are not required, such as communication between intelligent sensors and braking devices, using the LIN bus can greatly save costs.
[0053] After the acoustic solenoid valve controller 120 receives the solenoid valve closing instruction, a first driving signal is generated and sent to the driving chip 130. The driving chip 130 adjusts the driving voltage input to the motor 140 according to the first driving signal, and drives the motor 140 to rotate according to the driving voltage. When the motor 140 rotates, the corresponding magnetic field changes, and the change amount of the magnetic field is obtained. The Hall sensor 150 calculates the speed and direction information of the motor 140 according to the change of the magnetic field. The acoustic solenoid valve controller 120 matches the direction information with the preset direction information. If the two match, the position information of the motor 140 is calculated according to the speed obtained by the Hall sensor 150. The acoustic solenoid valve controller 120 compares the calculated position information with the target position. If the two do not match, a second driving signal is generated. The second driving signal is the same as the first driving signal. The second driving signal is sent to the driving chip 130. The driving chip 130 adjusts the driving voltage input to the motor 140 according to the second driving signal, and drives the motor 140 to rotate according to the driving voltage. The direction information and the position information are matched again. When the motor 140 reaches the target position, the acoustic solenoid valve controller 120 sends a dead zone control signal to avoid the upper half bridge and the lower half bridge on the driving chip 130 from being burned out at the same time. When the control time length of the upper half bridge and the lower half bridge of the driving chip 130 is disconnected reaches a preset time threshold, the acoustic solenoid valve controller 120 generates a third driving signal to control the upper half bridge or the lower half bridge on the driving chip 130 to be turned on. The motor 140 rotates to generate a back electromotive force, which is added to a preset circuit. The energy is consumed by electronic components (such as resistors) in the preset circuit, so that when the valve reaches the closed position, the speed of the valve is small. Because the speed of the valve is small, when the valve reaches the closed position, the valve can impact the electronic acoustic valve body at a small speed, thereby reducing the sound generated when the valve impacts the electronic acoustic valve body, which can greatly improve the exhaust NVH (Noise, Vibration, Harshness, noise, vibration and harshness) performance. Further, by accurately setting the first driving signal, the second driving signal, the dead zone control information, the third driving signal, and the target position information, the speed of the motor can be 0 when the valve reaches the closed position, and the valve stops moving, thereby not impacting the electronic acoustic valve body, thereby reducing the sound generated when the valve impacts the electronic acoustic valve body, which can greatly improve the exhaust NVH performance.
[0054] Figure 2 is a flow chart of a control method of an electromagnetic valve according to an exemplary embodiment. The method can be applied to Figure 1 the implementation environment shown, and is executed by Figure 1The acoustic solenoid valve controller in the embodiment environment is specifically implemented.
[0055] As shown in the embodiment, the control method of the solenoid valve can include steps S210 to S230 in an exemplary embodiment, which are described in detail as follows: Figure 2
[0056] In step S210, the position information of the motor is detected according to the solenoid valve closing instruction whether it matches the target position information.
[0057] In the embodiment, the MCU generates the solenoid valve closing instruction and sends it to the acoustic solenoid valve controller. The acoustic solenoid valve controller receives the solenoid valve closing instruction and makes the motor rotate according to the solenoid valve closing instruction. During the rotation of the motor, the valve will move in the direction of closing the solenoid valve. The position information of the motor is obtained in real time during the rotation of the motor, so as to determine whether the position information of the motor matches the target position information. The target position information is a preset position point determined in advance. The motor and the valve have a transmission relationship. When the motor reaches a position point, the valve will also reach a position point. The preset position point set by the motor maps the position point reached by the valve, which is a certain distance from the closing position of the valve. For example, when the motor drives the valve to completely close, it needs to move a distance of X from the beginning to the end. The preset position point can be set to a position of 90% X, that is, the motor needs to move a distance of 90% X from the beginning to the target position information. In an embodiment, the preset position point can also be set to a position of other proportional length.
[0058] In an embodiment, the position information of the motor can be directly mapped to the position information of the valve to directly detect whether the position information of the valve matches the target position information of the valve.
[0059] In an embodiment of the present application, please refer to Figure 3 In step S210, the position information of the motor is detected according to the solenoid valve closing instruction whether it matches the target position information, including steps S310-S320:
[0060] In step S310, a first driving signal is generated according to the solenoid valve closing instruction, and the first driving signal is sent to the driving chip to make the driving chip drive the motor to rotate according to the first driving signal.
[0061] In the embodiment of the present application, the acoustic solenoid valve controller generates a first driving signal according to the received solenoid valve closing instruction. The first driving signal can be a pulse width modulation (PWM) signal. The PWM signal can control the on-off of the switching device of the inverter circuit, so that the output end obtains a series of pulses with equal amplitude, and the pulses are used to replace the sine wave or the required waveform. That is, a plurality of pulses are generated in half a cycle of the output waveform, so that the equivalent voltage of each pulse is a sine waveform, and the obtained output is smooth and has few harmonics. The width of each pulse is modulated according to a certain rule, so that the size of the output voltage of the inverter circuit can be changed, and the output frequency can also be changed.
[0062] The generated first driving signal is sent to the driving chip, and the driving chip adjusts the driving voltage input into the motor according to the first driving signal, so as to provide power for the motor to rotate and drive the valve to close.
[0063] In step S320, the position information of the motor is continuously acquired during the driving of the motor, and whether the position information of the motor matches the target position information is detected according to the position information of the motor.
[0064] During the rotation of the motor, the position information of the motor needs to be continuously acquired. Specifically, the position information of the motor can be acquired in real time, or the position information of the motor can be acquired after a preset time interval. The position information of the motor acquired each time is matched with the target position information, and whether the motor reaches the target position information is determined according to the matching result.
[0065] In an embodiment of the present application, the position information of the motor is continuously acquired during the driving of the motor in step S320, including:
[0066] The magnetic field change amount generated by the rotation of the magnetic ring during the continuous rotation of the motor during the driving of the motor is acquired.
[0067] The magnetic ring is arranged in the solenoid valve. When the motor rotates, the magnetic ring also rotates correspondingly. When the magnetic ring rotates, the electromagnetic field generated by the magnetic ring also changes. The magnetic field change amount is acquired. Specifically, the magnetic field change amount is the change amount of magnetic induction intensity, that is, the magnetic flux per unit area.
[0068] The position information of the motor is determined according to the magnetic field change amount, so as to obtain the position information of the motor.
[0069] The rotation of the motor drives the rotation of the magnetic field, and the rotation of the magnetic field brings the magnetic field change amount. Therefore, the position information of the motor can be determined according to the magnetic field change amount, and whether the position information of the motor matches the target position information is determined.
[0070] In one embodiment of the present application, in the process of determining the position information of the motor according to the magnetic field variation, comprising:
[0071] The rotating speed of the motor is calculated according to the magnetic field variation through the Hall sensor;
[0072] The position information of the motor is determined according to the rotating speed.
[0073] In the embodiment of the present application, after the acoustic solenoid valve controller receives the valve closing instruction, the first driving signal is generated to control the driving chip to generate the driving voltage, and then drive the motor to rotate. In the process of the motor rotating, the varying magnetic field is generated. The Hall sensor is arranged in the solenoid valve, and the Hall sensor can detect the variation of the magnetic field. The rotating speed of the motor is calculated according to the variation of the magnetic field. The position information of the motor can be calculated according to the rotating speed of the motor. The Hall sensor is a magnetic field sensor made according to the Hall effect. The Hall sensor can output the Hall voltage. The Hall voltage changes with the change of the magnetic field intensity. The stronger the magnetic field is, the higher the voltage is. The weaker the magnetic field is, the lower the voltage is. The Hall voltage value is very small, usually only a few millivolts, but after being amplified by the amplifier in the integrated circuit, the voltage can be amplified to be strong enough to output a strong signal. In one embodiment of the present application, please refer to Figure 4 Before the process of continuously acquiring the position information of the motor in the process of driving the motor to rotate in step S320, the method can further comprise:
[0074] Step S410, acquiring the direction information of the motor in the process of driving the motor to rotate.
[0075] In the embodiment of the present application, the motor is rotated by the generated first driving signal. When the first driving signal is input to the driving chip, the driving chip provides the driving voltage for the motor, and then the motor rotates according to the driving voltage. However, the rotation of the motor needs to be in the direction of closing the valve to ensure that the preset direction is consistent with the actual motor movement direction. In order to avoid the motor from rotating away from the direction of closing the valve, the acoustic solenoid valve controller needs to monitor the direction information of the motor returned by the Hall sensor in real time. In one embodiment, the direction information acquired by the Hall sensor can be sent to the acoustic solenoid valve controller together with the acquired rotating speed of the motor.
[0076] Step S420, matching the direction information with the preset direction information;
[0077] Step S430, if the direction information matches the preset direction information, generating the second driving signal and sending the second driving signal to the driving chip, so that the driving chip drives the motor to rotate according to the second driving signal.
[0078] The acquired direction information is matched with preset direction information, when the two are matched, a second driving signal is generated, the second driving signal is the same as the first driving signal, similarly, the second driving signal is sent to the driving chip, the driving chip generates a driving voltage, and the motor rotates according to the driving voltage. The motor rotation is a continuous process, when the first driving signal promotes the motor to rotate, the direction information generated by the motor is matched with the preset direction information, when the two can be matched, the second driving signal is generated again to promote the motor to rotate, the direction information of the motor is acquired again, and is matched with the preset direction information, when the two are matched, the second driving signal is generated again, and the process is repeated, so that the direction information of the motor is always accurate.
[0079] In step S220, if the position information of the motor matches the target position information, the upper half bridge and the lower half bridge of the driving chip are controlled to be disconnected, so as to stop providing the driving voltage for the motor.
[0080] In the embodiment of the application, when the position information of the motor matches the target position information, the upper half bridge and the lower half bridge of the driving chip are controlled to be disconnected, when the upper half bridge and the lower half bridge are disconnected, the driving chip cannot provide the driving voltage for the motor, but at this time, the motor still has a certain rotating speed, and the motor still rotates, but because the motor has no driving voltage to provide energy, the rotating speed of the motor will gradually decrease.
[0081] In step S230, after the preset time length is disconnected, the upper half bridge or the lower half bridge of the driving chip is controlled to be turned on, so as to guide the electric energy generated by the rotation of the motor into the preset circuit, and the electric energy is consumed by the electronic components, so as to reduce the closing speed of the electromagnetic valve.
[0082] The transmission between signals has a certain delay, the upper half bridge and the lower half bridge of the driving chip need to be disconnected for a preset time length, so as to ensure that the upper half bridge and the lower half bridge of the driving chip cannot be turned on at the same time, and ensure that the MOS tube inside the driving chip will not be burned out due to short circuit. After the preset time length is disconnected, the acoustic electromagnetic valve controller can generate a third driving signal, and the upper half bridge or the lower half bridge of the driving chip is controlled to be turned on according to the third driving signal. Specifically, a full-bridge circuit is arranged on the driving chip, the full-bridge circuit is composed of four triodes, the four triodes surround the motor to form an H-shaped circuit, and the motor is located in the horizontal rod of the H. In order to make the motor operate, a pair of triodes on the diagonal line must be turned on. According to the turning-on state of different triode pairs, the current will flow through the motor from left to right or from right to left, so as to control the rotating direction of the motor. When the motor is driven, the two triodes on the same side of the H cannot be turned on at the same time, that is, the two triodes on the left side or the right side of the H cannot be turned on at the same time.
[0083] When the preset time length is disconnected, the upper half bridge or the lower half bridge of the control driving chip is turned on, that is, the two triodes on the upper side of H are turned on, or the two triodes on the lower side of H are turned on, when the upper half bridge or the lower half bridge of the driving chip is turned on, the motor generates back electromotive force, and the back electromotive force of the motor is introduced into the preset circuit, and the electronic components (such as resistors) in the preset circuit are heated to consume energy, so that the motor can reduce the speed faster, thereby realizing braking and reducing the sound generated when the valve hits the electronic acoustic valve body.
[0084] In an embodiment of the present application, please refer to Figure 5 Before the process of controlling the upper half bridge or the lower half bridge of the driving chip to be turned on to make the electric energy generated by the motor rotation into the preset circuit and consume the electric energy by the electronic components to reduce the closing speed of the electromagnetic valve in step S230 after the preset time length is disconnected, the method can further include:
[0085] In step S510, the control time length of the upper half bridge and the lower half bridge of the driving chip being disconnected is obtained;
[0086] In step S520, the control time length is compared with the preset time length threshold value;
[0087] In step S530, if the control time length is less than the preset time length threshold value, the dead zone control signal is continuously generated to control the upper half bridge and the lower half bridge of the driving chip to be disconnected.
[0088] In the embodiment of the present application, the upper half bridge and the lower half bridge of the driving chip need to be controlled to be disconnected for a preset time length threshold value, and in the process of not being disconnected for the preset time length threshold value, the upper half bridge or the lower half bridge of the driving chip is controlled to be disconnected by the dead zone control signal. Generally, the end of a large power motor, a frequency converter and the like is composed of an H bridge or a 3-phase bridge of large power tubes, IGBT (Insulated Gate Bipolar Transistor, Insulated Gate Bipolar Transistor) and the like. The upper half bridge and the lower half bridge of each bridge cannot be turned on at the same time, but the high-speed PWM signal often causes delay due to various reasons when reaching the control electrode of the power component, causing the half bridge component not to be turned off at the time of turning off, and causing the power component to be burned.
[0089] The dead-time control signal can delay a period of time to turn on the lower half bridge after the upper half bridge is turned off, or delay a period of time to turn on the upper half bridge after the lower half bridge is turned off, so as to avoid burning of the power components. The delay time is the preset time threshold. The dead-time control is not provided in the PWM of the low-end single chip microcomputer. The dead-time control signal is a protection period when the PWM signal is output, so that the upper and lower tubes of the H-bridge or half H-bridge are not simultaneously turned on due to the switching speed problem, so that the upper and lower tubes have no output in this period, and the waveform output is interrupted, and the preset time threshold generally accounts for only a few percent of the period.
[0090] In an embodiment of the present application, the process of obtaining the control time of the disconnection of the upper half bridge and the lower half bridge of the driving chip in step S510 can include:
[0091] The starting time of the disconnection of the upper half bridge and the lower half bridge of the driving chip is recorded, and the termination time of the disconnection of the upper half bridge or the lower half bridge of the driving chip is recorded;
[0092] The control time is calculated according to the starting time and the termination time.
[0093] In the embodiment of the present application, the starting time of the disconnection of the upper half bridge and the lower half bridge of the driving chip is recorded, and the current time is obtained in real time as the termination time, the control time is calculated in real time, and the control time calculated in real time is compared with the preset time threshold. For example, the time of sending the dead-time control signal for the first time can be recorded as the starting time of the disconnection of the upper half bridge and the lower half bridge of the driving chip, the current time is obtained in real time as the termination time, and the control time can be calculated by subtracting the starting time from the termination time.
[0094] In the embodiment of the present application, after receiving the electromagnetic valve closing instruction, the motor drives the valve to rotate, the position information of the motor is detected to determine whether the position information of the motor matches the target position information, after reaching, the upper half bridge and the lower half bridge of the driving chip are disconnected to avoid simultaneous conduction of the upper half bridge and the lower half bridge and burn the driving chip, and after the preset time, the upper half bridge or the lower half bridge of the driving chip is turned on to allow the back electromotive force generated by the motor to be introduced into the resistance of the acoustic electromagnetic valve controller, the resistance consumes heat, and the speed of the motor is reduced, so that the valve can reach the final closing position at a small speed, and the sound generated when the valve hits the electronic acoustic valve body is reduced, and the sound quality of the vehicle is improved. Further, by setting the target position and the driving signal, the speed of the valve can be set to 0 when reaching the closing position, so that the valve will not hit the electronic acoustic valve body.
[0095] Please refer to Figure 6 , Figure 6A flow chart of a control method of an electromagnetic valve provided for an exemplary embodiment of the present application can include steps S610 to S670, which are described in detail as follows:
[0096] Step S610, receiving an electromagnetic valve closing instruction, and generating a first driving signal according to the electromagnetic valve closing instruction;
[0097] Step S620, sending the first driving signal to a driving chip, so that the driving chip adjusts a driving voltage according to the first driving signal;
[0098] Step S630, controlling the motor to rotate according to the driving voltage, and obtaining a magnetic field variation amount generated by the rotation of the magnetic ring driven by the motor during the rotation of the motor;
[0099] Step S640, determining position information of the motor according to the magnetic field variation amount, and detecting whether the position information of the motor matches target position information, if the position information of the motor matches the target position information, executing step S650, if the position information of the motor does not match the target position information, executing step S610 to generate the first driving signal according to the electromagnetic valve closing instruction;
[0100] Step S650, generating a dead zone control signal, and sending the dead zone control signal to the driving chip, so that the upper half bridge and the lower half bridge of the driving chip are disconnected, and obtaining a control duration of the disconnection of the upper half bridge and the lower half bridge of the driving chip;
[0101] Step S660, comparing the control duration with a preset duration threshold, if the control duration is less than the preset duration threshold, executing step S650, if the control duration is greater than or equal to the preset duration threshold, executing step S670;
[0102] Step S670, controlling the upper half bridge or the lower half bridge of the driving chip to be conductive.
[0103] In the embodiment of the present application, after receiving the electromagnetic valve closing instruction, a first driving signal is generated and sent to the driving chip. The driving chip adjusts the driving voltage input to the motor according to the first driving signal, and drives the motor to rotate according to the driving voltage. After the motor rotates, the position information of the motor is obtained and compared with the target position. When the position information of the motor matches the target position information, a dead zone control signal is sent to avoid the upper half bridge and the lower half bridge of the driving chip from being turned on at the same time and burning the MOS tube. When the control duration of the upper half bridge and the lower half bridge of the driving chip is disconnected reaches a preset duration threshold, the upper half bridge or the lower half bridge of the driving chip is turned on to make the motor generate a back electromotive force, and the back electromotive force is added to the acoustic electromagnetic valve controller resistance to make the resistance consume energy and reduce the rotation speed of the motor, thereby reducing the sound generated when the valve hits the electronic acoustic valve body, and greatly improving the exhaust NVH performance.
[0104] Figure 7 is a block diagram of a control device of an electromagnetic valve according to an exemplary embodiment. As shown in Figure 7 the control device of the electromagnetic valve includes:
[0105] The receiving module 710 is configured to receive an electromagnetic valve closing instruction and detect whether the position information of the motor matches the target position information according to the electromagnetic valve closing instruction.
[0106] The first control module 720 is configured to control the upper half bridge and the lower half bridge of the driving chip to be disconnected to stop providing driving voltage to the motor if the position information of the motor matches the target position information.
[0107] The second control module 730 is configured to control the upper half bridge or the lower half bridge of the driving chip to be turned on to guide the electric energy generated by the rotation of the motor into a preset circuit after being disconnected for a preset duration, so that the electric energy is consumed by electronic components, thereby reducing the closing speed of the electromagnetic valve.
[0108] In an exemplary embodiment, the receiving module 710 includes:
[0109] The first generation sub-module is configured to generate a first driving signal according to the electromagnetic valve closing instruction and send the first driving signal to the driving chip, so that the driving chip drives the motor to rotate according to the first driving signal.
[0110] The first acquisition sub-module is configured to continuously acquire the position information of the motor during the driving of the motor, and detect whether the position information of the motor matches the target position information according to the position information of the motor.
[0111] In an exemplary embodiment, the first acquisition sub-module includes:
[0112] The acquisition unit is configured to continuously acquire the magnetic field variation amount generated by the rotation of the magnetic ring driven by the motor during the rotation of the motor.
[0113] The determination unit is configured to determine the position information of the motor according to the magnetic field variation amount, so as to obtain the position information of the motor.
[0114] In an exemplary embodiment, the determination unit comprises:
[0115] The calculation sub-unit is configured to calculate the rotation speed of the motor according to the magnetic field variation amount through the Hall sensor.
[0116] The determination sub-unit is configured to determine the position information of the motor according to the rotation speed.
[0117] In an exemplary embodiment, the receiving module 710 further comprises:
[0118] The second acquisition sub-module is configured to acquire the direction information of the motor during the rotation of the motor.
[0119] The matching sub-module is configured to match the direction information with preset direction information.
[0120] The second generation sub-module is configured to generate a second driving signal and send the second driving signal to the driving chip if the direction information matches the preset direction information, so as to drive the motor to rotate according to the second driving signal.
[0121] In an exemplary embodiment, the control device of the electromagnetic valve further comprises:
[0122] The acquisition module is configured to acquire the control duration of the disconnection of the upper half bridge and the lower half bridge of the driving chip.
[0123] The comparison module is configured to compare the control duration with a preset duration threshold.
[0124] The generation module is configured to continuously generate a dead zone control signal to control the disconnection of the upper half bridge and the lower half bridge of the driving chip if the control duration is less than the preset duration threshold.
[0125] In an exemplary embodiment, the acquisition module comprises:
[0126] The recording sub-module is configured to record the starting time of the disconnection of the upper half bridge and the lower half bridge of the driving chip, and record the ending time of the disconnection of the upper half bridge or the lower half bridge of the driving chip.
[0127] The calculation sub-module is configured to calculate the control duration according to the starting time and the ending time.
[0128] It should be noted that the apparatus provided by the above embodiments and the method provided by the above embodiments belong to the same concept, wherein the specific manner in which each module, sub-module, unit and sub-unit performs operations has been described in detail in the method embodiments, and will not be described here.
[0129] Embodiments of the present application also provide an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the control method of the electromagnetic valve provided in each of the above embodiments.
[0130] Figure 8 A structural schematic diagram of a computer system of an electronic device suitable for implementing embodiments of the present application is shown.
[0131] It should be noted that, Figure 8 The computer system 800 of the electronic device shown is only an example and should not limit the functions and use range of the embodiments of the present application.
[0132] As Figure 8 shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 802 or programs loaded from a storage portion 808 into a random access memory (RAM) 803, such as performing the methods in the above embodiments. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0133] The following components are connected to the I / O interface 805: an input part 806 including a keyboard, a mouse, etc.; an output part 807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage part 808 including a hard disk, etc.; and a communication part 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 810 as necessary, so that a computer program read out therefrom is installed in the storage part 808 as necessary.
[0134] In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing a computer program for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, various functions defined in the system of the present application are executed.
[0135] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this application, the computer-readable storage medium can be any tangible medium that contains or stores a program used by an instruction execution system, apparatus or device, and can be used or combined with the same. In this application, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable computer programs. Such a propagated data signal can take various forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, transmit, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device. The computer programs contained in the computer-readable medium can be transmitted by any suitable medium, including, but not limited to, wireless, wired, or the like, or any suitable combination thereof.
[0136] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In the flowcharts or block diagrams, each block can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders than that shown in the drawings. For example, two blocks that are shown in succession can actually be executed substantially in parallel, and sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams or flowcharts, and the combination of blocks in the block diagrams or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0137] The units described in the embodiments of the present application can be implemented in the form of software, or can be implemented in the form of hardware, and the described units can also be arranged in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.
[0138] Another aspect of the present application also provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the method described above. The computer readable storage medium can be included in the electronic device described in the above embodiments, or can exist separately and not be assembled into the electronic device.
[0139] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to make the computer device execute the method provided in each of the above embodiments.
[0140] The above is only a preferred exemplary embodiment of the present application, and is not intended to limit the implementation of the present application. Those skilled in the art can easily make corresponding modifications or variations according to the main concept and spirit of the present application, and the protection scope of the present application should be subject to the protection scope required by the claims.
Claims
1. A method of controlling an electromagnetic valve, characterized by, The method comprises: receiving an electromagnetic valve closing instruction, and detecting whether the position information of the motor matches the target position information according to the electromagnetic valve closing instruction, wherein the position information of the motor is determined by the acoustic electromagnetic valve controller based on the magnetic field variation generated when the motor rotates through a Hall sensor; if the position information of the motor matches the target position information, controlling the upper half bridge and the lower half bridge of the drive chip to be disconnected to stop providing driving voltage for the motor; after disconnecting for a preset time length, controlling the upper half bridge or the lower half bridge of the drive chip to be turned on to guide the electrical energy generated by the rotation of the motor into a preset circuit, and consume the electrical energy through electronic components, thereby reducing the closing speed of the electromagnetic valve.
2. The method of claim 1, wherein, The detection of whether the position information of the motor matches the target position information according to the electromagnetic valve closing instruction comprises: generating a first driving signal according to the electromagnetic valve closing instruction, and sending the first driving signal to the drive chip to drive the motor to rotate according to the first driving signal; continuously acquiring the position information of the motor during the driving of the motor, and detecting whether the position information of the motor matches the target position information according to the position information of the motor.
3. The method of claim 2, wherein, The continuous acquisition of the position information of the motor during the driving of the motor comprises: continuously acquiring the magnetic field variation generated by the rotation of the magnetic ring during the rotation of the motor; determining the position information of the motor according to the magnetic field variation to obtain the position information of the motor.
4. The method of claim 3, wherein, The determination of the position information of the motor according to the magnetic field variation comprises: calculating the rotation speed of the motor according to the magnetic field variation through a Hall sensor; determining the position information of the motor according to the rotation speed.
5. The method of claim 2, wherein, Before the continuous acquisition of the position information of the motor during the driving of the motor, the method further comprises: acquiring the direction information of the motor during the driving of the motor; matching the direction information with preset direction information; if the direction information matches the preset direction information, generating a second driving signal and sending the second driving signal to the drive chip to drive the motor to rotate according to the second driving signal.
6. The method of any one of claims 1 to 5, wherein, Before the control of the upper half bridge or the lower half bridge of the drive chip to be turned on after the disconnection for a preset time length, the method further comprises: acquiring the control time length of the disconnection of the upper half bridge and the lower half bridge of the drive chip; comparing the control time length with a preset time length threshold; if the control time length is less than the preset time length threshold, continuously generating a dead zone control signal to control the disconnection of the upper half bridge and the lower half bridge of the drive chip.
7. The method of claim 6, wherein, The acquisition of the control time length of the disconnection of the upper half bridge and the lower half bridge of the drive chip comprises: recording the starting time of the disconnection of the upper half bridge and the lower half bridge of the drive chip, and recording the termination time of the disconnection of the upper half bridge or the lower half bridge of the drive chip; calculating the control time length according to the starting time and the termination time.
8. A control device for a solenoid valve, characterized by It comprises: The receiving module is configured to receive a solenoid valve closing instruction and detect whether position information of the motor matches target position information according to the solenoid valve closing instruction, wherein the position information of the motor is determined by an acoustic solenoid valve controller based on a magnetic field variation amount generated when the motor rotates through a Hall sensor; The first control module is configured to control upper and lower half bridges of a driving chip to be disconnected to stop providing driving voltage for the motor if the position information of the motor matches the target position information; The second control module is configured to control the upper or lower half bridge of the driving chip to be turned on to guide electric energy generated by rotation of the motor to a preset circuit to consume the electric energy through electronic components to reduce a closing speed of the solenoid valve after a preset time length.
9. An electronic device, comprising: Comprise: One or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the solenoid valve control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer readable instruction is stored thereon, which, when executed by a processor of a computer, causes the computer to perform the solenoid valve control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Motor back electromotive force protection method, system and device, and storage medium
CN109994998A
Electromagnetically driven valve control system and method
US20040187814A1