A photoelectric angle sensor for steering gear
By using a combination of a gradient color ring and a photoelectric sensor in the steering gear, and using the look-up table method and linear interpolation method, the problems of high cost and complex signal processing in the existing technology are solved, and the effects of simplifying signal processing and reducing production costs are achieved.
Patent Information
- Application Number
- CN202010908248.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-02
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-09-02
AI Technical Summary
The angle sensor integrated with the existing steering gear torque sensor has problems of high cost and complex signal processing, and a more economical and simplified solution is needed.
A photoelectric angle sensor for steering gear is designed. It uses a gradient color ring and two photoelectric sensors. It calculates the angle of the steering gear through the linear gradient of the color depth of the gradient color ring and the change of the voltage signal of the photoelectric sensor. The look-up table method and linear Interpolation simplifies signal processing.
It achieves the reduction of components and simplification of signal processing, reducing production costs, while accurately calculating the angle and direction of rotation of the steering gear.
Smart Images

Figure CN114199162B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electronic steering gears, in particular to a photoelectric angle sensor for steering gears. Background Art
[0002] At present, the angle sensor integrated in the steering gear torque sensor adopts a planetary gear structure plus magnetic induction, such as Figure 1 As shown, a large gear ring 3 is installed on a bracket 2 fixed at the steering gear end, which rotates with the steering gear and drives two fixed planetary gears 4 to rotate at the same time. A magnet is installed on the planetary gear 4, and the number of teeth of the two planetary gears 4 is different. A magnetic resistance sensor 6 sensitive to magnetic field changes and an ASIC chip for processing signals are installed under the magnet of the planetary gear 4. When the steering gear rotates, the two planetary gears 4 rotate accordingly, causing the magnetic field around the magnetic resistance sensor 6 to change. The magnetic resistance sensor 6 converts the change of the magnetic field into an electrical signal and inputs it into the ASIC chip. The ASIC chip calculates the position difference of the two planetary gears 4 to further calculate the current angle of the large gear ring 3, i.e., the steering gear, and transmits it to the ECU in the form of the SENT protocol.
[0003] Magnetic induction torque sensors have high sensitivity and are less affected by external environmental factors such as temperature, but they also have problems such as relatively high cost and complex signal processing.
[0004] Therefore, it is necessary to design a photoelectric angle sensor for a steering gear to reduce components, simplify signal processing, and reduce production costs. Summary of the invention
[0005] The object of the present invention is to overcome the deficiencies of the prior art and provide a photoelectric angle sensor for a steering machine, so as to reduce components, simplify signal processing and reduce production costs.
[0006] In order to achieve the above-mentioned purpose, the present invention is a photoelectric angle sensor for a steering machine, comprising an upper cover plate, a photoelectric sensor, a gradient color ring, a connector, a shell, and an electronic control unit. The upper cover plate covers the top of the shell, a connector is installed in the shell, the connector is connected to the steering gear, a gradient color ring is provided on the outer sleeve of the connector, and photoelectric sensor 1 and photoelectric sensor 2 are provided just below the edge of the gradient color ring. The induced voltage signal output end of the photoelectric sensor 1 is connected to the analog-to-digital conversion channel 1 of the microcontroller of the electronic control unit, and the induced voltage signal output end of the photoelectric sensor 2 is connected to the analog-to-digital conversion channel 2 of the microcontroller of the electronic control unit.
[0007] The distance between the transmitting and receiving surface of the photoelectric sensor 1 or the photoelectric sensor 2 and the gradient color ring is 2 mm.
[0008] The model of the photoelectric sensor 1 or the photoelectric sensor 2 is ITR9909.
[0009] The model of the microcontroller used in the electronic control unit is TC299TP.
[0010] The electronic control unit is provided with a power management module, the input end of the power management module is connected to the 12V power supply, and the output end of the power management module is respectively connected to the power supply end of the photoelectric sensor 1, the photoelectric sensor 2 and the microcontroller.
[0011] The gradient color ring rotates with the steering gear, and the photoelectric sensor 1 and the photoelectric sensor 2 receive the infrared light reflected by the gradient color ring and output the electrical signal to the microcontroller, and the microcontroller performs analog-to-digital conversion on the electrical signal and forms the voltage value of the sensor 1 and the voltage value of the sensor 2, and obtains the current angle value by using the table lookup method and the linear interpolation method according to the voltage value of the sensor 1 and the voltage value of the sensor 2; if the current angle value is greater than the previous angle value, it is judged that the current rotation direction is counterclockwise rotation, and if the current angle value is less than the previous angle value, it is judged that the current rotation direction is clockwise rotation, and the current rotation direction is stored in the register; a counter is set in the memory to record the number of times the 0° position is passed, the initial value of the counter is 0, when the counterclockwise rotation passes the 0° position, the counter value is increased by 1, and when the clockwise rotation passes the 0° position, the counter value is reduced by 1; the final angle value=current angle value+counter value*360°.
[0012] The table lookup method is to find the corresponding steering wheel angle in the voltage angle table according to the specific values of the voltage value of sensor one and the voltage value of sensor two, which is the current angle value.
[0013] The linear interpolation method is as follows: Step 1, determine the angle area in the voltage angle table by rounding the index, and then retrieve the nearest voltage value point P1 and the corresponding angle Angle in the area according to the voltage value of the sensor. P1 , and record the angle of the adjacent point along the difference direction Angle P1’ , retrieve the nearest voltage value point P2 and the corresponding angle Angle according to the voltage value of sensor 2 P2 , and record the angle of the adjacent point along the difference direction Angle P2’ ; Step 2, calculate the difference between the voltage value of sensor 1 and the nearest voltage value point P1, the difference percentage value δ1 is equal to the difference one divided by 1 degree resolution voltage, calculate the difference between the voltage value of sensor 2 and the nearest voltage value point P2, the difference percentage value δ2 is equal to the difference two divided by 1 degree resolution voltage, the angle of sensor 1 = Angle P1 +(Angle P1’ -Angle P1 )*δ1, the angle of sensor 2 = AngleP2 +(Angle P2’ -Angle P2 )*δ2, current angle value = (angle of sensor one + angle of sensor two) / 2.
[0014] The 1 degree resolution voltage = (the voltage value corresponding to the lightest part of the gradient color ring - the voltage value corresponding to the deepest part of the gradient color ring) / the angle that the gradient color ring needs to rotate from the deepest part to the lightest part.
[0015] The gradient color ring is a circular ring with linear gradient color depth.
[0016] Compared with the prior art, the present invention designs a gradient color ring with linear gradient color depth, so that the intensity of reflected light absorbed by the photoelectric sensor at different angles is different, thereby converting it into a changing electrical signal output. When the steering gear rotates to drive the gradient color ring to rotate circumferentially, the voltage output by the two photoelectric sensors also changes linearly, and the electronic control unit calculates the final angle value of the steering gear based on the voltage values of the two sensors. The present invention has a simple structure, reduces components, simplifies signal processing, and reduces production costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is an exploded view of the prior art.
[0018] Figure 2 It is an exploded view of the present invention.
[0019] Figure 3 It is an axonometric drawing of the present invention.
[0020] Figure 4 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0021] The present invention will now be further described with reference to the accompanying drawings.
[0022] See also Figure 2 , Figure 3 and Figure 4 The present invention is a photoelectric angle sensor for a steering gear, comprising an upper cover plate, a photoelectric sensor, a gradient color ring, a connector, a shell, and an electronic control unit. The upper cover plate 1 covers the top of a shell 9, a connector 8 is installed in the shell 9, the connector 8 is connected to a steering gear, a gradient color ring 10 is arranged on the outer sleeve of the connector 8, a photoelectric sensor 1 5 and a photoelectric sensor 2 7 are arranged just below the edge of the gradient color ring 10, an induced voltage signal output end of the photoelectric sensor 1 5 is connected to an analog-to-digital conversion channel 1 of a microcontroller 12 of an electronic control unit 11, and an induced voltage signal output end of the photoelectric sensor 2 7 is connected to an analog-to-digital conversion channel 2 of the microcontroller 12 of the electronic control unit 11.
[0023] In the present invention, the gradient color ring 10 is a circular ring with a linear gradient color depth. The distance between the emitting and receiving surfaces of the photoelectric sensor 1 5 and the photoelectric sensor 2 7 and the gradient color ring 10 is 2 mm. According to the characteristics of the infrared wavelength, this distance can effectively ensure that the reflected infrared light is received and effectively avoid the crosstalk of the optical signals between the two photoelectric sensors.
[0024] The model of the photoelectric sensor 1 5 or the photoelectric sensor 2 7 is ITR9909.
[0025] See also Figure 4 The electronic control unit 11 is provided with a power management module 13, the input end of the power management module 13 is connected to a 12V power supply, and the output end of the power management module 13 is respectively connected to the power supply end of the photoelectric sensor 1 5, the photoelectric sensor 2 7, and the microcontroller 12. The model of the microcontroller used in the electronic control unit 11 is TC299TP.
[0026] When the present invention is working, the gradient color ring 10 rotates with the steering gear, the photoelectric sensor 1 5 and the photoelectric sensor 2 7 receive the infrared light reflected by the gradient color ring 10 and output the electrical signal to the microcontroller 12, the microcontroller 12 performs analog-to-digital conversion on the electrical signal and forms the voltage value of the sensor 1 and the voltage value of the sensor 2, and uses the table lookup method and the linear interpolation method to obtain the current angle value according to the voltage value of the sensor 1 and the voltage value of the sensor 2; if the current angle value is greater than the previous angle value, it is judged that the current rotation direction is counterclockwise rotation, if the current angle value is less than the previous angle value, it is judged that the current rotation direction is clockwise rotation, and the current rotation direction is stored in the register; a counter is set in the memory to record the number of times the 0° position is passed, the initial value of the counter is 0, when the counterclockwise rotation passes the 0° position, the counter value is increased by 1, and when the clockwise rotation passes the 0° position, the counter value is reduced by 1; the final angle value=current angle value+counter value*360°.
[0027] The table lookup method is to find the corresponding steering wheel angle in the voltage angle table according to the specific values of the voltage value of sensor 1 and the voltage value of sensor 2, which is the current angle value. The voltage angle table is as follows:
[0028]
[0029]
[0030]
[0031] The linear interpolation method is as follows: Step 1, determine the angle area in the voltage angle table by rounding the index, and then retrieve the nearest voltage value point P1 and the corresponding angle Angle in the area according to the voltage value of the sensor. P1 , and record the angle of the adjacent point along the difference direction AngleP1’ , retrieve the nearest voltage value point P2 and the corresponding angle Angle according to the voltage value of sensor 2 P2 , and record the angle of the adjacent point along the difference direction Angle P2’ ; Step 2, calculate the difference between the voltage value of sensor 1 and the nearest voltage value point P1, the difference percentage value δ1 is equal to the difference one divided by 1 degree resolution voltage, calculate the difference between the voltage value of sensor 2 and the nearest voltage value point P2, the difference percentage value δ2 is equal to the difference two divided by 1 degree resolution voltage, the angle of sensor 1 = Angle P1 +(Angle P1’ -Angle P1 )*δ1, the angle of sensor 2 = Angle P2 + (Angle P2’ -Angle P2 )*δ2, current angle value = (angle of sensor one + angle of sensor two) / 2.
[0032] 1 degree resolution voltage = (voltage value corresponding to the lightest part of the gradient color ring - voltage value corresponding to the deepest part of the gradient color ring) / angle that the gradient color ring needs to rotate from the deepest part to the lightest part.
[0033] Example 1
[0034] In this example, the voltage value corresponding to the lightest part of the gradient color ring is 4.5V, and the voltage value corresponding to the deepest part of the gradient color ring is 0.5V. The gradient color ring needs to rotate 180° from the deepest part to the lightest part. The 1-degree resolution voltage = (4.5 -0.5) / 180 = 0.02222 V.
[0035] If at a certain moment, the voltage value of sensor 1 = 2.05 V, the voltage value of sensor 2 = 1.03 V, the counter value is 2, and the nearest voltage value point P1 in the voltage angle table is 2.044, the corresponding angle Angle P1 The angle of the adjacent point along the difference direction is 314°. P1’ The difference between the voltage value of sensor 1 and the nearest voltage value point P1 is 0.006V, and the difference percentage value δ1 is 0.27. The angle of sensor 1 = 314° + (313° - 314°) * 0.27 = 313.73°; the nearest voltage value point P2 in the voltage angle table is 1.022, and the corresponding angle Angle P1 The angle of the adjacent point along the difference direction is 314°. P1’The angle is 313°, the difference between the voltage value of sensor 2 and the nearest voltage value point P2 is 0.008V, the difference percentage value δ2 is 0.36, the angle of sensor 2 = 314° + (313° - 314°) * 0.36 = 313.64°, the current angle value = (313.73° + 313.64°) / 2 = 313.69°, the final angle value = 313.69° + 2 * 360° = 1033.69°.
Claims
1. A photoelectric angle sensor for a steering machine, comprising an upper cover, a photoelectric sensor, a gradient color ring, a connector, a housing, and an electronic control unit, characterized in that: The upper cover plate (1) covers the top of the housing (9). A connector (8) is installed in the housing (9). The connector (8) is connected to the steering gear. A gradient color ring (10) is provided on the outer cover of the connector (8). A photoelectric sensor 1 (5) and a photoelectric sensor 2 (7) are provided just below the edge of the gradient color ring (10). The gradient color ring (10) with linear gradient color depth makes the intensity of reflected light absorbed by the photoelectric sensor 1 (5) and the photoelectric sensor 2 (7) different at different angles. The induced voltage signal output end of the photoelectric sensor 1 (5) is connected to the analog-to-digital conversion channel 1 of the microcontroller (12) of the electronic control unit (11), and the induced voltage signal output end of the photoelectric sensor 2 (7) is connected to the analog-to-digital conversion channel 2 of the microcontroller (12) of the electronic control unit (11).
2. A photoelectric angle sensor for a steering gear according to claim 1, characterized in that: The distance between the transmitting and receiving surface of the photoelectric sensor 1 (5) or the photoelectric sensor 2 (7) and the gradient color ring (10) is 2 mm.
3. The photoelectric angle sensor for a steering gear according to claim 1, characterized in that: The model of the photoelectric sensor 1 (5) or the photoelectric sensor 2 (7) is ITR9909.
4. The photoelectric angle sensor for a steering machine according to claim 1, characterized in that: The model of the microcontroller used in the electronic control unit (11) is TC299TP.
5. The photoelectric angle sensor for a steering gear according to claim 1, characterized in that: The electronic control unit (11) is provided with a power management module (13), the input end of the power management module (13) is connected to a 12V power supply, and the output end of the power management module (13) is respectively connected to the power supply ends of the photoelectric sensor 1 (5), the photoelectric sensor 2 (7), and the microcontroller (12).
6. The photoelectric angle sensor for a steering gear according to claim 1, characterized in that: As the gradient color ring (10) rotates with the steering gear, the photoelectric sensor 1 (5) and the photoelectric sensor 2 (7) receive the infrared light reflected by the gradient color ring (10) and output an electrical signal to the microcontroller (12). The microcontroller (12) performs analog-to-digital conversion on the electrical signal and forms a sensor 1 voltage value and a sensor 2 voltage value. The current angle value is obtained by using a table lookup method and a linear interpolation method according to the sensor 1 voltage value and the sensor 2 voltage value. If the current angle value is greater than the previous angle value, the current rotation direction is determined to be counterclockwise. If the current angle value is less than the previous angle value, the current rotation direction is determined to be clockwise. The current rotation direction is stored in a register. A counter is set in the memory to record the number of times the 0° position is passed. The initial value of the counter is 0. When the counterclockwise rotation passes the 0° position, the counter value is increased by 1. When the clockwise rotation passes the 0° position, the counter value is decreased by 1. The final angle value = current angle value + counter value * 360°.
7. The photoelectric angle sensor for a steering gear according to claim 6, characterized in that: The table lookup method is to find the corresponding steering wheel angle in the voltage angle table according to the specific values of the voltage value of sensor one and the voltage value of sensor two, which is the current angle value.
8. The photoelectric angle sensor for a steering gear according to claim 6, characterized in that: The linear interpolation method is as follows: Step 1, determine the angle area in the voltage angle table by rounding the index, and then retrieve the nearest voltage value point P1 and the corresponding angle Angle in the area according to the voltage value of the sensor. P1 , and record the angle of the adjacent point along the difference direction Angle P1’ , retrieve the nearest voltage value point P2 and the corresponding angle Angle according to the voltage value of sensor 2 P2 , and record the angle of the adjacent point along the difference direction Angle P2’ ; Step 2, calculate the difference between the voltage value of sensor 1 and the nearest voltage value point P1, the difference percentage value δ1 is equal to the difference one divided by 1 degree resolution voltage, calculate the difference between the voltage value of sensor 2 and the nearest voltage value point P2, the difference percentage value δ2 is equal to the difference two divided by 1 degree resolution voltage, the angle of sensor 1 = Angle P1 +(Angle P1’ -Angle P1 )*δ1, the angle of sensor 2 =Angle P2 +(Angle P2’ -Angle P2 )*δ2, current angle value = (angle of sensor one + angle of sensor two) / 2.
9. The photoelectric angle sensor for a steering gear according to claim 8, characterized in that: The 1 degree resolution voltage = (the voltage value corresponding to the lightest part of the gradient color ring - the voltage value corresponding to the deepest part of the gradient color ring) / the angle that the gradient color ring needs to rotate from the deepest part to the lightest part.
10. The photoelectric angle sensor for a steering gear according to claim 1, characterized in that: The gradient color ring (10) is a circular ring with a linear gradient in color depth.
