Electric vehicle motor dual encoder control system and control method thereof, electric vehicle
By setting up a dual encoder and switching device on the electric vehicle motor, quick switching and control when the encoder fails, the motor loss caused by the encoder is solved, and the safe and stable driving of the electric vehicle is ensured.
Patent Information
- Application Number
- CN201711443417.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-12-27
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2037-12-27
AI Technical Summary
In electric vehicles, when the encoder fails, such as disconnection, the motor will lose control and may cause accidents. It is difficult for the prior art to keep the vehicle running smoothly when driving at high speeds.
Design a dual encoder control system for electric vehicle motors. By setting the first encoder and the second encoder on the motor, when either encoder fails, the motor operation parameters collected by another normal-functional encoder are controlled. , the switching device monitors and switches the use of backup encoder in real time to ensure the normal operation of the motor.
It effectively avoids motor loss and emergency braking caused by encoder failure, ensuring that electric vehicles can drive safely and smoothly when driving at high speeds, and avoid accidents.
Smart Images

Figure CN108039838B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an electric vehicle control system, in particular to an electric vehicle motor dual encoder control system and a control method thereof, and an electric vehicle. Background Art
[0002] The motor position sensor is mainly divided into: photoelectric encoder, magnetic encoder and resolver. At present, the encoder in the motor driver mainly adopts the magnetoresistive resolver. The encoder is a detection element, which is mainly used to detect the motor angular position. The decoder can convert the motor angular position detected by the encoder into a straight-line running distance, and can also calculate the motor speed by calculating the number of pulses per unit time. In the actual driving process of electric vehicles, it is inevitable that there will be failures such as encoder disconnection. Once the encoder disconnection and other failure emergencies occur, the feedback speed is abnormal, causing the motor to lose control. The conventional solution is that the vehicle enters emergency braking, but the disadvantage is that the motor will lock. If this situation occurs during the high-speed operation of the vehicle, it is likely to cause an accident, directly threatening the driver's life safety.
[0003] Therefore, it is necessary to provide a method that allows the electric vehicle to continue to run smoothly when a failure such as an encoder disconnection occurs. Summary of the invention
[0004] The present invention aims at the deficiencies in the prior art and provides an electric vehicle motor dual encoder control system and method thereof, which can enable the electric vehicle to continue to run smoothly when the electric vehicle encoder fails, such as being disconnected. Also, the electric vehicle is provided.
[0005] The present invention is implemented by the following technical solutions: an electric vehicle motor dual encoder control system, comprising a motor unit, a motor control unit, an encoder unit, and a decoder unit;
[0006] The encoder unit includes a first encoder and a second encoder, the first encoder and the second encoder are respectively fixed on the motor unit and rotate synchronously with the motor unit, the first encoder and the second encoder are used to collect operating parameters of the motor unit, wherein the operating parameters of the motor unit at least include a speed signal of the motor and a motor position angle;
[0007] The decoder unit is connected to the encoder unit and the motor control unit respectively, and the decoder unit is used to decode the operating parameters of the motor unit collected by the first encoder and the second encoder and send them to the motor control unit;
[0008] The motor control unit is connected to the motor unit and is used to control the motor unit according to the operating parameters of the motor unit;
[0009] The motor control unit compares the parameters measured by the first encoder or the second encoder with the corresponding reference parameters, and if the deviation exceeds a set value, stops using the operating parameters of the motor unit collected by the encoder whose deviation exceeds the set value to participate in controlling the motor unit;
[0010] The decoder unit includes a first decoder and a second decoder, wherein the first decoder is connected to the first encoder and the motor control unit, and the first decoder is used to decode the parameters collected by the first encoder and send them to the motor control unit; the second decoder is connected to the second encoder and the motor control unit, and the second decoder is used to decode the parameters collected by the second encoder and send them to the motor control unit;
[0011] The motor control unit compares the angular acceleration signal of the motor unit acquired by the first encoder with the angular acceleration signal of the motor unit acquired by the first encoder in the previous cycle for three consecutive cycles, and if the deviation exceeds a set value, determines that the first encoder fails;
[0012] or,
[0013] The decoder unit includes a third decoder and a switching device, wherein the third decoder is connected to the motor control unit, and the switching device is respectively connected to the first encoder, the second encoder, the third decoder and the motor control unit, and the switching device receives an instruction from the motor control unit to switch the first encoder to be connected to the third decoder, or the second encoder to be connected to the third decoder.
[0014] Its working principle is as follows: first, the first encoder works, and the second encoder is on standby. The second encoder in standby state still detects motor parameters in real time. The switching device disconnects the connection between the second encoder and the third decoder, and connects the connection between the first encoder and the third decoder. The motor control unit determines whether the first encoder fails. If it is determined that the first encoder fails, the motor control unit sends a control instruction to the switching device. After receiving the control instruction, the switching device performs a switching action to disconnect the connection between the first encoder and the third decoder, and connect the second encoder and the third decoder at the same time. The motor control unit uses the parameters collected by the second decoder for control. The motor control unit outputs a control signal to control the motor unit to continue to work normally or stop running.
[0015] Among them, the motor control unit determines whether the first encoder has a failure fault specifically including: the first encoder collects the motor position angle in real time; calculates the current angular acceleration of the motor unit according to the motor position angle and the angular acceleration calculation formula; calculates the angular acceleration difference of the motor unit according to the angular acceleration of the motor unit in two adjacent acquisition cycles; continuously samples the angular acceleration difference of the motor unit for 3 cycles, and if the deviation exceeds a preset range, it is determined that the first encoder acquisition signal has failed.
[0016] The present invention arranges a first encoder and a second encoder on the electric vehicle motor. When any encoder in operation fails, the motor control unit can use the motor unit operation parameters collected by another encoder with normal functions to participate in the control of the motor, thereby preventing the motor from losing control, the vehicle from entering emergency braking, and the motor from locking due to encoder failure.
[0017] Furthermore, it also includes a speed detection unit, which is connected to the motor control unit, detects the speed of the motor unit, and sends a speed signal to the motor control unit, and the motor control unit compares the speed of the motor unit collected by the first encoder or the second encoder with the speed detected by the speed detection unit. If the deviation exceeds the set value, it is determined that the first encoder or the second encoder is invalid, and the operating parameters collected by the invalid encoder are stopped from being used to control the motor unit. The speeds measured by the first encoder and the second encoder can be compared with the speed measured by the speed detection unit, which increases the way to determine the failure of the decoder.
[0018] Furthermore, a display device is included, which is connected to the motor control unit and is used to display the rotation speed of the motor unit. The display device enables the driver to detect the motor rotation speed more intuitively and conveniently.
[0019] The present invention also provides an electric vehicle, including an electric vehicle motor dual encoder control system provided by the present invention.
[0020] The present invention also provides a control method for a dual encoder control system of an electric vehicle motor:
[0021] The following steps are involved:
[0022] Step 1: The motor control unit compares the operating parameters of the motor unit collected by the first encoder or the second encoder with the corresponding reference parameters. If the deviation exceeds the set value, step 2 is executed;
[0023] Step 2: The motor control unit stops using the operating parameters collected by the encoder whose deviation exceeds the set value to participate in the control of the motor unit.
[0024] Wherein, when the first encoder is in working state, the second encoder is in standby state; when the second encoder is in working state, the first encoder is in standby state;
[0025] In step 2, when the motor control unit stops using the operating parameters collected by the failed encoder to participate in the control of the motor unit, the motor control unit switches the encoder in the standby state to the working state.
[0026] When the first encoder and the second encoder are both in working state, the motor control unit uses the average value of the operating parameters collected by the first encoder and the second encoder to participate in the control of the motor unit.
[0027] As a further improvement of the present invention, the decoder unit includes a third decoder and a switching device, the third decoder is connected to the motor control unit, and the switching device is respectively connected to the first encoder, the second encoder, the third decoder and the motor control unit;
[0028] In step 2, the step of the motor control unit stopping using the operating parameters collected by the encoder whose deviation from the corresponding reference parameters exceeds the set value to participate in the control of the motor unit includes:
[0029] Step 21: The motor control unit sends a switching instruction to the switching device to control the switching device to switch channels, and the encoder whose switching deviation does not exceed the set value is connected to the third decoder.
[0030] Wherein, in step 1, the reference parameter is the rotation speed or angular acceleration of the motor unit collected by the first encoder or the second encoder at a previous moment.
[0031] As a further improvement of the present invention, the electric vehicle motor dual encoder control system further includes a speed detection unit, the speed detection unit is connected to the motor control unit, the speed detection unit detects the speed of the motor unit and sends a speed signal to the motor control unit;
[0032] In step 1, the reference parameter is the speed of the motor unit collected in real time by the speed detection unit.
[0033] In order to more clearly understand the present invention, the specific implementation of the present invention will be described below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a system block diagram of the first embodiment of the present invention;
[0035] Figure 2 It is a system block diagram of the second embodiment of the present invention. DETAILED DESCRIPTION
[0036] Figure 1 is a system block diagram of the first embodiment of the present invention, such as Figure 1 As shown, the electric vehicle motor dual encoder control system of this embodiment includes: a motor controller 10, a three-phase inverter 20, a motor 30, a first encoder 41, a second encoder 42, a first decoder 51, a second decoder 52, a speed detection unit 80 and a display 90, wherein the motor controller 10 controls the start and stop of the motor 30 through the three-phase inverter 20 and adjusts the state of the motor 70 in operation according to the operating parameters of the motor 70; the first encoder 41 and the second encoder 42 are respectively fixed on the motor 70, and can measure the operating parameters of the motor 30 such as the angular position, angular acceleration, speed and displacement, the first encoder 41 is connected to the first decoder 51, and the first decoder 51 is connected to the motor controller 10, Responsible for decoding the parameters output by the first encoder 41 into parameters such as the angular position, angular acceleration, speed and displacement of the motor 30 and sending the above parameters to the motor controller 10; the second encoder 41 is connected to the second decoder 51, and the second decoder 51 is connected to the motor controller 10, responsible for decoding the parameters output by the second encoder 41 into parameters such as the angular position, angular acceleration, speed and displacement of the motor 30 and sending the above parameters to the motor controller 10; the speed detection unit 80 is installed on the motor 30, can monitor the speed of the motor 30 in real time, and send the speed signal to the motor controller 10, the display 90 is connected to the motor controller 10, can obtain the speed signal of the motor 30 from the motor controller 10 and display it.
[0037] In this embodiment, the first encoder 41 and the second encoder 42 have two working modes, which are respectively introduced below.
[0038] The first working mode: the first encoder 41 and the second encoder 42 are in working state and standby state respectively. The following is a detailed description of the working principle when the first encoder 41 is in working state and the second encoder 42 is in standby state: when the electric vehicle is running, the first decoder 51 converts the signal collected by the first encoder 41 into the speed signal of the motor 30 and sends it to the motor controller 10. At the same time, the speed detection unit 80 also synchronously collects the speed signal of the motor unit 30 and sends it to the motor controller 10 in real time. The motor controller 10 compares the speed signals detected by the first encoder 41 and the speed detection unit 80 in real time. If the deviation of the two speed signals exceeds the set value, it is determined that the first encoder 41 is invalid. At the same time, an alarm message will be displayed on the display device 90. At this time, the motor control unit 10 sends a signal to switch to using the parameters collected by the second encoder 42 to participate in the control, and at the same time sends a signal to stop using the parameters collected from the first encoder 41 to participate in the control. At this time, the switching is completed.
[0039] In this working mode, the motor controller 10 collects the parameters of the motor 30 detected by the first encoder 41 in the working state, and uses the parameters to participate in the motor control; the second encoder 42 in the standby state can be in a stopped detection state. In this embodiment, the second encoder 42 in the standby state still detects the parameters of the motor 30 in real time; the motor control unit may not collect the parameters of the motor detected by the second encoder 42 in the standby state, or the motor control unit may still collect the motor parameters detected by the second encoder 42 in the standby state, but does not participate in the control of the motor 30.
[0040] Specifically, in this working mode, the control method of the motor dual encoder control system includes the following steps:
[0041] S10, the first encoder 41 is working, the second encoder 42 is on standby, and it is determined whether the first encoder 41 has a failure such as disconnection;
[0042] S11, the motor controller 10 enables the signal collected by the second encoder 42 to participate in the control, and at the same time stops using the signal collected by the first encoder 41 to participate in the control;
[0043] S12, the motor controller 10 outputs a control signal to control the motor 30 to continue to operate normally or stop operating.
[0044] Further, in step S10, determining whether one of the encoders is offline or has a failure such as a failure specifically includes the following steps:
[0045] Step S101: Count the number of output pulses of the encoder 10 installed on the motor;
[0046] Step S102: Calculate the motor speed V1 according to the encoder 10 pulses. In this step, the current motor speed can be calculated by the following formula: V = DP / (T*n*k), where T is the time of a sampling cycle, DP is the encoder output pulse change value collected in the current sampling cycle, n is the encoder line number, and k is the frequency multiplication factor;
[0047] Step S103: at the same time, V1 is compared with the actual speed V0 of the motor 30 collected in real time by the signal detection unit 80, and the speed difference is: DV=V0-V1;
[0048] Step S104: continuously sample the rotation speed difference of three cycles. If the deviation exceeds a certain range, it can be determined that the signal acquisition of the first encoder 41 is invalid.
[0049] Step S10 may also adopt other methods, such as: the motor controller 10 compares the speed signal of the motor 30 collected by the first encoder 41 with the speed signal of the motor 30 collected by the first encoder 41 in the previous cycle, and if the deviation exceeds the set value, it is determined that the first encoder 41 is invalid; in this method, three consecutive cycles can also be compared to ensure accurate judgment. When this method is adopted, the speed detection unit 80 may not be used in this embodiment to achieve the technical effect intended to be achieved by the present invention.
[0050] Step S10 may also adopt other methods, such as: the motor controller 10 compares the angular acceleration signal of the motor 30 collected by the first encoder 41 with the angular acceleration signal of the motor 30 collected by the first encoder 41 in the previous cycle, and if the deviation exceeds the set value, it is determined that the first encoder 41 is invalid; in this method, three consecutive cycles can also be compared to ensure accurate judgment. When this method is adopted, the speed detection unit 80 may not be used in this embodiment to achieve the technical effect intended by the present invention.
[0051] The second working mode: the first encoder 41 and the second encoder 42 are in working state at the same time. In this working mode, the motor controller 10 simultaneously collects the motor parameters detected by the first encoder 41 and the second encoder 42, and uses the motor parameters detected by the first encoder 41 and the second encoder 42 to control the motor 30. The working principle of this working mode is described in detail below: When the electric car is driving, the first decoder 51 converts the signal collected by the first encoder 41 into the speed signal of the motor 30 and sends it to the motor controller 10. At the same time, the second decoder 52 also converts the signal collected by the second encoder 42 into the speed signal of the motor 30 and sends it to the motor controller 10. At the same time, the speed detection unit 80 also synchronously collects the speed signal of the motor unit 30 and sends it to the motor controller 10 in real time. The motor controller 10 compares the speed signals detected by the first encoder 41 and the second encoder 42 in real time. If the speed parameters collected by the encoder 41 and the encoder 42 are basically the same, If they are consistent, the motor controller 10 calculates the average speed of the two, uses the average speed to participate in the control of the motor 30, and sends it to the display device 90. At the same time, the controller 10 also compares the speed signals collected by the first encoder 41 and the second encoder 42 with the speed signals detected by the speed detection unit 80. If the speed signal collected by the first encoder 41 deviates from the speed signal detected by the speed detection unit 80 by more than the set value, it is determined that the first encoder 41 is invalid, and the motor controller 10 sends a signal to stop using the parameters collected by the first encoder 41 to participate in the control. At the same time, an alarm message will be displayed on the display device 90. Similarly, if the speed collected by the second encoder 42 deviates from the speed signal detected by the speed detection unit 80 by more than the set value, it is determined that the second encoder 42 is invalid, and the motor controller 10 sends a signal to stop using the parameters collected by the second encoder 42 to participate in the control.
[0052] Specifically, in this working mode, the control method of the motor dual encoder control system includes the following steps:
[0053] S20, the first encoder 41 and the second encoder 42 work simultaneously, and the motor controller 10 performs real-time detection and comparison on the rotation speed of the motor 30 measured by the first encoder 41 and the second encoder 42 to determine whether one of the encoders has a failure such as disconnection.
[0054] S21, if it is determined that one of the encoders fails, the motor controller 10 sends a signal to stop using the parameters collected by the faulty encoder to participate in control.
[0055] S22, the motor controller 10 outputs a control signal to control the motor 30 to continue to operate normally or stop operating.
[0056] Further, in step S20, determining whether one of the encoders (here taking the first encoder 41 as an example) is offline or has a failure such as a failure specifically includes the following steps:
[0057] Step S201: Count the number of output pulses of the first encoder 41 installed on the motor;
[0058] Step S202: Calculate the motor speed V1 according to the pulse output by the first encoder 41. In this step, the current motor speed can be calculated by the following formula: V = DP / (T*n*k), where T is the time of a sampling cycle, DP is the encoder output pulse change value collected in the current sampling cycle, n is the encoder line number, and k is the frequency multiplication factor;
[0059] Step S203: at the same time, V1 is compared with the actual speed V0 of the motor 30 collected in real time by the speed detection unit 80, and the speed difference is: DV=V0-V1;
[0060] Step S204: continuously sample the rotation speed difference of three cycles. If the deviation exceeds a certain range, it can be determined that the signal acquisition of the first encoder 41 is invalid.
[0061] Step S20 may also adopt other methods, such as: the motor controller 10 compares the speed signal of the motor 30 collected by the first encoder 41 with the speed signal of the motor 30 collected by the first encoder 41 in the previous cycle, and if the deviation exceeds the set value, the first encoder 41 is determined to be invalid; in this method, three consecutive cycles can also be compared to ensure accurate judgment. When this method is adopted, the speed detection unit 80 may not be used in this embodiment to achieve the technical effect intended by the present invention.
[0062] Step S20 may also adopt other methods, such as: the motor controller 10 compares the angular acceleration signal of the motor 30 collected by the first encoder 41 with the angular acceleration signal of the motor 30 collected by the first encoder 41 in the previous cycle, and if the deviation exceeds the set value, the first encoder 41 is determined to be invalid; in this method, three consecutive cycles can also be compared to ensure accurate judgment. When this method is adopted, the speed detection unit 80 may not be used in this embodiment to achieve the technical effect intended by the present invention.
[0063] Figure 2 : is a system block diagram of a second embodiment of the present invention, such as Figure 2As shown, the electric vehicle motor dual encoder control system of this embodiment includes: a motor controller 10, a three-phase inverter 20, a motor 30, a first encoder 41, a second encoder 42, a third decoder 53, a switching device 60, a speed detection unit 80 and a display 90, wherein the motor controller 10 controls the start and stop of the motor 30 through the three-phase inverter 20 and adjusts the state of the motor 70 in operation according to the operating parameters of the motor 70; the first encoder 41 and the second encoder 42 are respectively fixed on the motor 70, and can measure the angular position, angular acceleration, speed and displacement and other operating parameters of the motor 30, the first encoder 41 and the second encoder 42 are respectively connected to the switching device 60, and the switching device 60 is also respectively connected to the motor controller 10 and the third decoder 53, which can receive the motor The control instructions of the controller 10 are switched in real time between two working states: the first encoder 41 is connected to the third decoder 53, the second encoder 42 is disconnected from the third decoder 53, and the first encoder 41 is disconnected from the third decoder 53, and the second encoder 42 is connected to the third decoder 53. The third decoder 53 is connected to the motor controller 10, and is responsible for decoding the parameters output by the first encoder 41 or the second encoder 42 into parameters such as the angular position, angular acceleration, speed and displacement of the motor 30 and sending the above parameters to the motor controller 10; the speed detection unit 80 is installed on the motor 30, and can monitor the speed of the motor 30 in real time, and send the speed signal to the motor controller 10; the display 90 is connected to the motor controller 10, and can obtain the speed signal of the motor 30 from the motor controller 10 and display it.
[0064] The working principle of this embodiment is as follows: when the electric vehicle is running, the switching device 60 only connects one encoder to the third decoder 53 at the same time. The following is a detailed description of the first encoder 41 connected to the third decoder 53 and the second encoder 42 disconnected from the third decoder 53 as an example: the third decoder 53 converts the signal collected by the first encoder 41 into a speed signal of the motor 30 and sends it to the motor controller 10. At the same time, the speed detection unit 80 also synchronously collects the speed signal of the motor unit 30 and sends it to the motor controller 10 in real time. The motor controller 10 compares the speed signals detected by the first encoder 41 and the speed detection unit 80 in real time. If the deviation of the two speed signals exceeds the set value, it is determined that the first encoder 41 is invalid. At the same time, an alarm message will be displayed on the display device 90. At this time, the motor control unit 10 sends a control instruction to the switching device 60. After receiving the control instruction, the switching device 60 performs a switching action to disconnect the connection between the first encoder 41 and the third decoder 53, and connect the second encoder 42 and the third decoder 53. At this time, the switching is completed.
[0065] Specifically, in this embodiment, the control method of the motor dual encoding system includes the following steps:
[0066] S30, the first encoder 41 is working, the second encoder 42 is on standby, the second encoder 42 in the standby state may be in a stop detection state, in this embodiment, the second encoder 42 in the standby state still detects the motor parameters in real time, the switching device disconnects the connection between the second encoder 42 and the third decoder 53, and connects the connection between the first encoder 41 and the third decoder 53, and the motor controller 10 determines whether the first encoder 41 fails;
[0067] S31, if it is determined that the first encoder 41 fails, the motor controller 10 sends a control instruction to the switching device 60. After receiving the control instruction, the switching device 60 performs a switching action to disconnect the first encoder 41 from the third decoder 53 and simultaneously connect the second encoder 42 to the third decoder 53. At this time, the motor controller 10 uses the parameters collected by the second decoder 42 for control;
[0068] S32, the motor controller 10 outputs a control signal to control the motor 30 to continue to operate normally or stop operating.
[0069] Furthermore, in step S30, the motor controller 10 determines whether the first encoder 41 is offline or has a failure such as a fault, which specifically includes the following steps:
[0070] Step S301: the first encoder 41 collects the motor position angle θ1 in real time;
[0071] Step S302: Calculate the angular acceleration α1. In this step, the current angular acceleration of the motor can be calculated by the following formula: α = (θ1-θ0) / Δt 2 , where Δt is the time of a sampling cycle, θ1 is the relative position angle of the motor rotation collected by the encoder within Δt time, and θ0 is the relative position angle of the motor rotation collected within Δt time at the previous moment. Since α=Δω / Δt, ω=Δθ / Δt, Δθ=θ1-θ0, α=Δθ / Δt 2 =(θ1-θ0) / Δt 2 ;
[0072] Step S303: calculating the angular acceleration difference Δα=α1-α0, where α1 is the motor angular acceleration acquired by the encoder in real time, and α0 is the motor angular acceleration in the previous acquisition cycle;
[0073] Step S304: continuously sample the angular acceleration difference of three cycles. If the deviation exceeds a certain range, it can be determined that the acquisition signal of the first encoder 41 fails.
[0074] If the above steps S301-S304 are adopted, the rotation speed detection unit 80 may not be used in this embodiment, and the technical effect intended to be achieved by the present invention can be achieved.
[0075] Step S30 may also adopt other methods, such as: the motor controller 10 compares the speed signal of the motor 30 collected by the first encoder 41 with the speed signal of the motor 30 collected by the first encoder 41 in the previous cycle, and if the deviation exceeds the set value, the first encoder 41 is determined to be invalid; in this method, three consecutive cycles can also be compared to ensure accurate judgment. When this method is adopted, the speed detection unit 80 may not be used in this embodiment to achieve the technical effect intended by the present invention.
[0076] Step S30 can also adopt other methods, such as the motor controller 10 compares the speed signal of the motor 30 collected by the first encoder 41 with the speed signal collected in real time by the speed detection unit 80. If the deviation exceeds the set value, it is determined that the first encoder 41 has failed. In this method, three consecutive cycles of comparison can also be performed to ensure accurate judgment.
[0077] The present invention also provides an electric vehicle. The electric vehicle of the present invention adopts the above-mentioned electric vehicle motor dual encoder control system, and when the above-mentioned control method is used, when a fault such as encoder failure occurs during high-speed driving of the electric vehicle, a rapid and disturbance-free switching can be performed, and uncontrollable failures caused by faults such as single encoder failure can be converted into controllable failures, effectively avoiding motor loss of control, vehicle emergency braking and motor locking, so that the electric vehicle of the present invention can be driven safely and smoothly at high speed, avoiding the occurrence of accidents.
[0078] The present invention is not limited to the above-mentioned embodiments. In the present invention, the encoder may adopt a photoelectric encoder, a magnetic encoder or a rotary transformer. If various changes or deformations of the present invention do not depart from the spirit and scope of the present invention, and if these changes and deformations fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and deformations.
Claims
1. A dual encoder control system for an electric vehicle motor, characterized in that: It includes a motor unit, a motor control unit, an encoder unit, and a decoder unit; The encoder unit includes a first encoder and a second encoder, the first encoder and the second encoder are respectively fixed on the motor unit and rotate synchronously with the motor unit, and the first encoder and the second encoder are used to collect operating parameters of the motor unit, wherein the operating parameters of the motor unit include a speed signal of the motor and a motor position angle; The decoder unit is connected to the encoder unit and the motor control unit respectively, and the decoder unit is used to decode the operating parameters of the motor unit collected by the first encoder and the second encoder and send them to the motor control unit; The motor control unit is connected to the motor unit and is used to control the motor unit according to the operating parameters of the motor unit; The motor control unit compares the parameters measured by the first encoder or the second encoder with the corresponding reference parameters, and if the deviation exceeds a set value, stops using the operating parameters of the motor unit collected by the encoder whose deviation exceeds the set value to participate in controlling the motor unit; The decoder unit includes a first decoder and a second decoder, wherein the first decoder is connected to the first encoder and the motor control unit, and the first decoder is used to decode the parameters collected by the first encoder and send them to the motor control unit; the second decoder is connected to the second encoder and the motor control unit, and the second decoder is used to decode the parameters collected by the second encoder and send them to the motor control unit; The motor control unit compares the angular acceleration signal of the motor unit acquired by the first encoder with the angular acceleration signal of the motor unit acquired by the first encoder in the previous cycle for three consecutive cycles, and if the deviation exceeds a set value, determines that the first encoder fails; or, The decoder unit includes a third decoder and a switching device, wherein the third decoder is connected to the motor control unit, and the switching device is respectively connected to the first encoder, the second encoder, the third decoder and the motor control unit, and the switching device receives an instruction from the motor control unit to switch the first encoder to be connected to the third decoder, or the second encoder to be connected to the third decoder. Its working principle is as follows: first, the first encoder works, and the second encoder is on standby. The second encoder in standby state still detects motor parameters in real time. The switching device disconnects the connection between the second encoder and the third decoder, and connects the connection between the first encoder and the third decoder. The motor control unit determines whether the first encoder fails. If it is determined that the first encoder fails, the motor control unit sends a control instruction to the switching device. After receiving the control instruction, the switching device performs a switching action to disconnect the connection between the first encoder and the third decoder, and connect the second encoder and the third decoder at the same time. The motor control unit uses the parameters collected by the second decoder for control. The motor control unit outputs a control signal to control the motor unit to continue to work normally or stop running. Among them, the motor control unit determines whether the first encoder has a failure fault specifically including: the first encoder collects the motor position angle in real time; calculates the current angular acceleration of the motor unit according to the motor position angle and the angular acceleration calculation formula; calculates the angular acceleration difference of the motor unit according to the angular acceleration of the motor unit in two adjacent acquisition cycles; continuously samples the angular acceleration difference of the motor unit for 3 cycles, and if the deviation exceeds a preset range, it is determined that the first encoder acquisition signal has failed.
2. The electric vehicle motor dual encoder control system according to claim 1, characterized in that: It also includes a speed detection unit, which is connected to the motor control unit. The speed detection unit detects the speed of the motor unit and sends a speed signal to the motor control unit. The motor control unit compares the speed of the motor unit collected by the first encoder or the second encoder with the speed detected by the speed detection unit. If the deviation exceeds the set value, the operating parameters collected by the failed encoder are stopped from being used to control the motor unit.
3. The electric vehicle motor dual encoder control system according to claim 1, characterized in that: It also includes a display device, which is connected to the motor control unit and is used to display the rotation speed of the motor unit.
4. An electric vehicle, characterized in that: The invention comprises the electric vehicle motor dual encoder control system as described in any one of claims 1 to 3.
5. The control method of the electric vehicle motor dual encoder control system as claimed in claim 1, characterized in that: The following steps are involved: Step 1: The motor control unit compares the operating parameters of the motor unit collected by the first encoder or the second encoder with the corresponding reference parameters. If the deviation exceeds the set value, step 2 is executed; Step 2: The motor control unit stops using the operating parameters collected by the encoder whose deviation exceeds the set value to participate in the control of the motor unit.
6. The control method of the electric vehicle motor dual encoder control system as claimed in claim 5, characterized in that: When the first encoder is in working state, the second encoder is in standby state; when the second encoder is in working state, the first encoder is in standby state; In step 2, when the motor control unit stops using the operating parameters collected by the encoder whose deviation from the corresponding reference parameters exceeds the set value to participate in controlling the motor unit, the motor control unit switches the encoder in the standby state to the working state.
7. The control method of the electric vehicle motor dual encoder control system as claimed in claim 5, characterized in that: When the first encoder and the second encoder are both in working state, the motor control unit uses the average value of the operating parameters collected by the first encoder and the second encoder to participate in the control of the motor unit.
8. The control method of the electric vehicle motor dual encoder control system as claimed in claim 5, characterized in that: The decoder unit comprises a third decoder and a switching device, the third decoder is connected to the motor control unit, and the switching device is respectively connected to the first encoder, the second encoder, the third decoder and the motor control unit; In step 2, the step of the motor control unit stopping using the operating parameters collected by the encoder whose deviation from the corresponding reference parameters exceeds the set value to participate in the control of the motor unit includes: Step 21: The motor control unit sends a switching instruction to the switching device to control the switching device to switch channels, and the encoder whose switching deviation does not exceed the set value is connected to the third decoder.
9. A control method for a dual encoder control system for an electric vehicle motor according to any one of claims 5 to 8, characterized in that: In step 1, the reference parameter is the rotation speed or angular acceleration of the motor unit acquired by the first encoder or the second encoder at a previous moment.
10. A control method for a dual encoder control system of an electric vehicle motor according to any one of claims 5 to 8, characterized in that: The electric vehicle motor dual encoder control system further comprises a speed detection unit, the speed detection unit is connected to the motor control unit, the speed detection unit detects the speed of the motor unit and sends a speed signal to the motor control unit; In step 1, the reference parameter is the speed of the motor unit detected in real time by the speed detection unit.
