Pointer instrument, pointer instrument control method, instrument controller and medium

The stepper motor is directly driven by the controller outputting multiple pulse control signals, solving the problem of high production cost of pointer instruments in the prior art, and achieving the effect of reducing costs and smooth rotation of the instrument pointer.

CN113071312BActive Publication Date: 2025-04-22ZHENGZHOU J&T HI TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110532946.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-14
Publication Date
2025-04-22
Estimated Expiration
2041-05-14

AI Technical Summary

Technical Problem

The production cost of existing pointer instruments is relatively high, mainly because the need for special driving chips to realize the rotation of the stepper motor.

Method used

The controller is directly electrically connected to the stepper motor. Through the controller, a multi-channel pulse control signal is output to drive the stepper motor to rotate based on the target environmental parameters collected by the sensor and the current scale value of the instrument pointer.

Benefits of technology

It reduces the production cost of pointer instruments, avoids the use of special driver chips, and at the same time realizes the smooth rotation of the instrument pointer and reduces working noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113071312B_ABST
    Figure CN113071312B_ABST
Patent Text Reader

Abstract

The present application provides a pointer instrument, a pointer instrument control method, an instrument controller and a medium, and relates to the technical field of pointer instruments. The pointer instrument comprises: a controller, a stepper motor and a pointer disk; wherein the input end of the controller is connected to the sensor for communication to obtain the target environmental parameters collected by the sensor; the multiple output ends of the controller are electrically connected to the multiple control ends of the stepper motor; the driving end of the stepper motor is connected to the instrument pointer on the pointer disk in a transmission manner, so that multiple pulse control signals can be output through the multiple output ends of the controller to drive the stepper motor to work, and then the stepper motor can drive the instrument pointer to rotate on the pointer disk to the target scale value corresponding to the environmental parameter, and avoid the use of a dedicated driver chip, which can reduce the manufacturing cost of the pointer instrument.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle-mounted instruments, and in particular to a pointer instrument, a pointer instrument control method, an instrument controller and a medium. Background Art

[0002] The on-board instrument is the main window for information exchange between the vehicle and the driver, and is also an important part of the vehicle's electronic control system. According to its working principle, it can be divided into mechanical pointer instruments and virtual instruments based on LCD screens.

[0003] Compared with virtual instruments on LCD screens, mechanical pointer instruments are used in various types of vehicles because they have low production costs and are suitable for a wider range of scenarios. For example, in outdoor scenarios, LCD screens are exposed to sunlight, which may cause unclear interface display and pose safety risks. The use of mechanical pointer instruments can solve this problem.

[0004] However, since the existing pointer type instruments generally use a special driving chip to drive the motor to rotate, the manufacturing cost of the existing pointer type instruments is relatively high. Summary of the invention

[0005] The purpose of the present application is to provide a pointer instrument, a pointer instrument control method, an instrument controller and a medium to address the deficiencies in the above-mentioned prior art, which can reduce the manufacturing cost of the pointer instrument.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, the present invention provides a pointer instrument, comprising: a controller, a stepping motor and a pointer plate;

[0008] The input end of the controller is connected to the sensor for communication so as to obtain the target environmental parameters collected by the sensor; the multiple output ends of the controller are electrically connected to the multiple control ends of the stepper motor so that the controller outputs multiple pulse control signals to the stepper motor according to the target environmental parameters and the current environmental parameter value indicated by the instrument pointer on the pointer disk;

[0009] The driving end of the stepper motor is in transmission connection with the instrument pointer on the pointer disk, so that the instrument pointer is driven by the stepper motor to rotate on the pointer disk to a target scale value corresponding to the target environmental parameter.

[0010] In an optional embodiment, the pointer instrument also includes: a level conversion chip; multiple input terminals of the level conversion chip are electrically connected to multiple output terminals of the controller, and multiple output terminals of the level conversion chip are respectively electrically connected to multiple control terminals of the stepper motor, so as to output multiple pulse control signals to the stepper motor after level conversion.

[0011] In an optional embodiment, the multiple pulse output terminals of the controller are electrically connected to the multiple control terminals of the stepper motor respectively, so as to output multiple pulse control signals to the stepper motor, and each control signal is a pulse control signal.

[0012] In an optional embodiment, the multiple pulse output terminals and the multiple input and output ports of the controller are respectively electrically connected to the multiple control terminals of the stepper motor to output multiple pulse control signals to the stepper motor, each control signal being a pulse control signal;

[0013] Among them, the pulse control signal output by each input and output port is: the controller queries the preset target table based on the target environmental parameters and the current scale value of the instrument pointer on the pointer dial to obtain a pulse control signal based on the high-level signal output based on the target interval; the pulse control signal output by each pulse output terminal is: the controller queries the preset target table based on the target environmental parameters and the current scale value of the instrument pointer on the pointer dial to obtain a pulse control signal based on the target pulse duty cycle parameter.

[0014] In an optional embodiment, the pointer instrument further includes: a power module, a first output end of the power module is electrically connected to the power end of the controller, and a second output end of the power module is electrically connected to the power end of the level conversion chip.

[0015] In an optional embodiment, the power supply module includes: two power conversion chips, the input ends of the two power conversion chips are respectively electrically connected to the input power supply to convert the supply voltage of the input power supply into a first supply voltage and a second supply voltage, and output them through the output ends of the two power conversion chips respectively, and the output ends of the two power conversion chips are the first output end and the second output end.

[0016] In an optional embodiment, the pointer instrument further includes: a communication module;

[0017] The communication module is communicatively connected to a host computer, and the host computer is communicatively connected to the sensor, so that the target environment parameters collected by the sensor are transmitted to the communication module via the host computer;

[0018] The communication module is also connected to the controller for communication so as to transmit the target environment parameter to the controller.

[0019] In an optional implementation, the communication module is connected to the controller via a CAN bus.

[0020] In an optional embodiment, the pointer instrument further includes: a liquid crystal display screen, which is communicatively connected to the controller to display the target environmental parameters.

[0021] In an optional embodiment, the stepper motor is a micro stepper motor.

[0022] In a second aspect, the present invention provides a pointer instrument control method, which is applied to the above controller, and the method comprises:

[0023] Obtain the target environmental parameters collected by the sensor and the current environmental parameter values ​​indicated by the instrument pointer on the pointer disk;

[0024] According to the target environmental parameter and the current environmental parameter value indicated by the instrument pointer on the pointer disk, a multi-channel pulse control signal is output to the stepper motor so that the instrument pointer rotates on the pointer disk to the target scale value corresponding to the target environmental parameter under the drive of the stepper motor.

[0025] In an optional embodiment, if the multiple pulse output terminals and multiple input and output ports of the controller are electrically connected to the multiple control terminals of the stepping motor respectively;

[0026] The current environmental parameter value indicated by the target environmental parameter and the instrument pointer on the pointer disk includes:

[0027] Determining a target rotation angle and a target rotation direction of the stepping motor according to the target environmental parameter and a current environmental parameter value indicated by an instrument pointer on the pointer disk;

[0028] According to the target rotation angle and the target rotation direction, a preset target table is queried to determine the pulse control signal output by each of the input and output ports and the pulse control signal output by each pulse output terminal;

[0029] Among them, the pulse control signal output by each of the input and output ports is a pulse control signal formed based on a high-level signal output at a target interval, and the pulse control signal output by each pulse output terminal is a pulse control signal formed based on a target pulse duty cycle parameter.

[0030] In an optional embodiment, the preset target table includes: a mapping relationship between the angle to be rotated and the preset target interval and the preset pulse duty cycle parameter;

[0031] The step of querying a preset target table to determine the pulse control signal output by each input / output port and the pulse control signal output by each pulse output terminal according to the target rotation angle and the target rotation direction includes:

[0032] According to the target rotation angle, query the preset target table to determine the target interval and target pulse duty cycle parameters corresponding to the target rotation angle;

[0033] The pulse control signal output by each of the input / output ports and the pulse control signal output by each pulse output terminal are determined according to the target interval corresponding to the target rotation angle, the target pulse duty cycle parameter and the target rotation direction.

[0034] In a third aspect, the present invention provides an instrument controller, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the instrument controller is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the pointer instrument control method as described in any of the aforementioned implementations.

[0035] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the pointer instrument control method as described in any of the aforementioned implementation modes are executed.

[0036] The beneficial effects of this application are:

[0037] The pointer instrument, pointer instrument control method, instrument controller and medium provided in the embodiments of the present application, wherein the pointer instrument includes: a controller, a stepper motor and a pointer disk; wherein the input end of the controller is communicatively connected to the sensor to obtain the target environmental parameters collected by the sensor; the multiple output ends of the controller are electrically connected to the multiple control ends of the stepper motor, so that the controller outputs multiple pulse control signals to the stepper motor according to the target environmental parameters and the current environmental parameter values ​​indicated by the instrument pointer on the pointer disk; the driving end of the stepper motor is transmission-connected to the instrument pointer on the pointer disk, so that the instrument pointer rotates on the pointer disk to the target scale value corresponding to the environmental parameter under the drive of the stepper motor, thereby realizing that multiple pulse control signals can be output through the multiple output ends of the controller to drive the stepper motor to work, and then the stepper motor can drive the instrument pointer to rotate on the pointer disk to the target scale value corresponding to the environmental parameter, and avoids the use of a dedicated driver chip, which can reduce the production cost of the pointer instrument. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A schematic diagram of a pointer instrument structure provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of another pointer-type instrument structure provided in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of another pointer instrument structure provided in an embodiment of the present application;

[0042] Figure 4 A schematic diagram of another pointer-type instrument structure provided in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of a flow chart of a pointer instrument control method provided in an embodiment of the present application;

[0044] Figure 6 A schematic flow chart of another pointer instrument control method provided in an embodiment of the present application;

[0045] Figure 7 A flowchart of another pointer instrument control method provided in an embodiment of the present application;

[0046] Figure 8 A schematic diagram of the structure of an instrument controller provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0048] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0049] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0050] Figure 1 This is a schematic diagram of a pointer instrument structure provided in an embodiment of the present application. The pointer instrument can be applied to any vehicle such as a car, a motor vehicle, a train, a high-speed train, etc., and is not limited here. Figure 1 As shown, the pointer instrument 100 may include: a controller 110, a stepping motor 120 and a pointer plate 130;

[0051] Among them, the input end of the controller 110 is communicatively connected with the sensor 140 to obtain the target environmental parameters collected by the sensor 140. The sensor 140 can be a sensor 140 in the vehicle for collecting environmental parameters such as pressure, vibration, vehicle speed, and oil volume. For example, the sensor 140 can include: a pressure sensor, an acceleration sensor, and a vibration sensor, but is not limited to this; multiple output ends of the controller 110 are electrically connected to multiple control ends of the stepper motor 120, so that the controller 110 outputs a multi-channel pulse control signal to the stepper motor 120 according to the target environmental parameters and the current environmental parameter value indicated by the instrument pointer on the pointer disk 130. The multi-channel pulse control signal can be used to drive the stepper motor 120 rotates; the driving end of the stepper motor 120 is transmission-connected to the instrument pointer on the pointer disk 130, so that the instrument pointer is driven by the stepper motor 120 to rotate on the pointer disk 130 to the target scale value corresponding to the environmental parameter, that is, the controller 110 drives the stepper motor 120 to rotate through a multi-channel pulse control signal, and the stepper motor 120 will drive the instrument pointer to rotate on the pointer disk 130 to the target scale value corresponding to the environmental parameter. For example, the sensor 140 is a pressure sensor 140, and the instrument pointer will rotate on the pointer disk 130 to the target scale value corresponding to the target environmental parameter collected by the pressure sensor 140, that is, the instrument pointer can rotate on the pointer disk 130 to the corresponding pressure value.

[0052] In summary, by applying the embodiments of the present application, it is possible to output multiple pulse control signals through multiple output terminals of the controller to drive the stepper motor to work, and then the stepper motor can drive the instrument pointer to rotate on the pointer dial to the target scale value corresponding to the environmental parameter, thereby avoiding the use of a dedicated driver chip, and reducing the production cost of the pointer instrument.

[0053] Figure 2 This is another schematic diagram of the structure of a pointer instrument provided in an embodiment of the present application. Figure 2As shown, the pointer instrument 100 further includes: a level conversion chip 150, which may include electronic components such as transistors, diodes, resistors, capacitors, etc., but is not limited thereto; multiple input terminals of the level conversion chip 150 are electrically connected to multiple output terminals of the controller 110, and multiple output terminals of the level conversion chip 150 are respectively electrically connected to multiple control terminals of the stepper motor 120, so as to output the multiple pulse control signals to the stepper motor 120 after level conversion.

[0054] In some embodiments, for the controller 110, if the multi-channel pulse control signal output by the controller 110 is a pulse wave with a high level of 3.3V, and for the stepper motor 120, its level requirement is 5~10V, that is, higher than the high level corresponding to the multi-channel pulse control signal output by the controller 110. Therefore, in order to enable the stepper motor 120 to work normally, it is necessary to introduce a level conversion chip 150, and the level conversion chip 150 is used to convert the level of the multi-channel pulse control signal output by the controller 110, and the converted multi-channel pulse control signal is output to the stepper motor 120, thereby ensuring that the stepper motor 120 can work normally.

[0055] Optionally, the multiple pulse output terminals of the controller 110 are electrically connected to the multiple control terminals of the stepper motor 120 respectively, so as to output multiple pulse control signals to the stepper motor 120, each control signal being a pulse control signal.

[0056] In some embodiments, the controller 110 may be an embedded single-chip microcomputer, which may include multiple pulse output terminals, which may be pulse width modulation (PWM) terminals, wherein the multiple pulse output terminals may be electrically connected to multiple control terminals of the stepper motor 120, respectively, so as to output multiple pulse control signals to the stepper motor 120. Optionally, the stepper motor 120 may include four control terminals, but is not limited thereto.

[0057] Optionally, the multiple output terminals of the controller 110 may also include multiple pulse output terminals and multiple input / output ports (I / O), for example, Figure 2 As shown, two pulse output terminals (PWM1 and PWM2) and two input / output ports (IO1 and IO2) may be included, but not limited thereto. The multiple pulse output terminals and the multiple input / output ports are respectively electrically connected to the multiple control terminals of the stepper motor 120 to output multiple pulse control signals to the stepper motor 120, each control signal being a pulse control signal.

[0058] Among them, the pulse control signal output by each input and output port is: the controller 110 queries the preset target table based on the environmental parameters and the current scale value of the instrument pointer on the pointer disk 130 to obtain a pulse control signal based on the high-level signal output based on the target interval; the pulse control signal output by each pulse output terminal is: the controller 110 queries the preset target table based on the environmental parameters and the current scale value of the instrument pointer on the pointer disk 130 to obtain a pulse control signal based on the target pulse duty cycle parameter.

[0059] Optionally, the controller 110 may pre-store a preset target table, which may include: pulse control parameters of each pulse control signal under any environmental parameters and any scale value of the instrument pointer on the pointer disk 130. Optionally, for the input and output ports, the pulse control parameters may include a target interval, and for the pulse output end, the pulse control parameters may include a pulse duty cycle parameter. The pulse duty cycle parameter may indicate the proportion of the high level in the pulse control signal in a pulse cycle, so that during the control process, a sub-step corresponding to the stepper motor 120 in the prior art can be divided into multiple micro-steps, that is, a pulse control cycle of the stepper motor 120 can be approximately close to a sinusoidal pulse sequence, thereby realizing micro-stepping of the stepper motor 120, making the motor run more smoothly and reducing working noise.

[0060] Based on the above description, by applying the embodiments of the present application, a multi-channel pulse control signal can be output through the pulse output end and multiple input and output ports of the controller according to the target environmental parameters collected by the sensor and the current scale value of the instrument pointer on the pointer dial to smoothly drive the stepper motor to drive the instrument pointer to rotate on the pointer dial to the target scale value corresponding to the environmental parameter. On the one hand, it can avoid the use of dedicated driver chips and reduce the production cost of pointer instruments; on the other hand, it can make the stepper motor rotate in a sinusoidal manner, ensure the smooth rotation of the instrument pointer, reduce working noise, and improve user experience.

[0061] Figure 3 A schematic diagram of another pointer instrument structure provided in an embodiment of the present application. Figure 3 As shown, the pointer instrument 100 further includes: a power module 160, a first output end of the power module 160 is electrically connected to the power end of the controller 110, and a second output end of the power module 160 is electrically connected to the power end of the level conversion chip 150, so that the controller 110 and the level conversion chip 150 can be powered by the power module 160 to ensure the normal operation of the controller 110 and the level conversion chip 150.

[0062] Optionally, the power supply module 160 may include: two power conversion chips, the input ends of the two power conversion chips are respectively electrically connected to the input power supply to convert the supply voltage of the input power supply into a first supply voltage and a second supply voltage, and output them through the output ends of the two power conversion chips respectively, and the output ends of the two power conversion chips are a first output end and a second output end.

[0063] In some embodiments, the power supply voltages required by the controller 110 and the level conversion chip 150 may be different. Therefore, it is necessary to introduce two power conversion chips so that the power supply voltage of the input power supply can be converted into a first power supply voltage and a second power supply voltage respectively through the two power conversion chips to ensure the normal operation of the controller 110 and the level conversion chip 150. Optionally, the two power conversion chips can be a first switching regulator chip and a second switching regulator chip, respectively, wherein the first power supply voltage output by the first switching regulator chip can be 5V, which is used to power the level conversion chip, and the second power supply voltage output by the second switching regulator chip can be 3.3V, which is used to power the controller, but not limited to this.

[0064] Figure 4 This is another schematic diagram of the structure of a pointer instrument provided in an embodiment of the present application. Figure 4 As shown, the pointer instrument 100 may also include: a communication module 170, which can communicate with other modules based on interface standards such as RS-232 and RS-485, wherein the communication module 170 is connected to the host computer 200 for communication, and the host computer 200 is connected to the sensor 140 for communication, so that the environmental parameters collected by the sensor 140 are transmitted to the communication module 170 through the host computer 200; the communication module 170 is also connected to the controller 110 for communication, so that the environmental parameters are transmitted to the controller 110. By applying the embodiment of the present application, the environmental parameters collected by the sensor 140 can be transmitted to the controller 110 through the host computer 200, which facilitates the setting of the sensor 140 and improves the applicable scenarios of the pointer instrument 100. Of course, it should be noted that, according to the actual application scenario, the communication module 170 can also be powered by the power module 160, which is not limited in the present application.

[0065] Optionally, the communication module 170 and the controller 110 may be connected via a CAN bus of the controller 110 to meet the requirements of the vehicle instrument protocol, thereby making full use of the advantages of the CAN bus and improving the applicability of the pointer instrument 100 .

[0066] Alternatively, if Figure 4As shown, the pointer instrument 100 further includes: a liquid crystal display screen 190, which is in communication with the controller 110 to display environmental parameters. It is understandable that in certain application scenarios, the target environmental parameters collected by the sensor 140 can also be displayed through the liquid crystal display screen 190. Depending on the sensor 140, different types of environmental parameters can be displayed so that the user can intuitively read the environmental parameters through the liquid crystal display screen 190 to provide user experience. Of course, the liquid crystal display screen 190 can also display other parameters, such as time parameters, mileage, hour meter, etc., to improve the applicability of the pointer instrument 100. The present application does not limit the size of the liquid crystal display screen 190, which may vary according to the actual application scenario.

[0067] Optionally, the stepper motor 120 can be a micro-stepper motor, and the multiple output terminals of the controller 110 can be electrically connected to the dual-drive four-head terminal of the micro-stepper motor through the above-mentioned level conversion chip (which can include electronic components such as transistors, diodes, resistors, capacitors, etc.) to achieve the purpose of driving the micro-stepper motor to rotate. In some embodiments, the micro-stepper motor can have a built-in gear ratio of 180:1, the step angle of the output shaft can be as small as 1 / 12°, and the maximum angular velocity can be 600° / S. Of course, the actual parameters of the micro-stepper motor are not limited to this, and may vary according to the actual application scenario.

[0068] Figure 5 A flow chart of a pointer instrument control method provided in an embodiment of the present application is shown. The method can be applied to the controller in the pointer instrument in the above embodiment, such as Figure 5 As shown, the control method may include:

[0069] S101, obtaining target environmental parameters collected by sensors and current environmental parameter values ​​indicated by instrument pointers on a pointer dial.

[0070] Optionally, when the sensor is directly connected to the controller for communication, the controller can directly obtain the target environmental parameters collected by the sensor; when the sensor is indirectly connected to the controller for communication, the controller can obtain the target environmental parameters collected by the sensor through the communication module. The present application does not limit the specific acquisition method. It can be understood that for the instrument pointer, each rotation of the instrument pointer requires the controller to drive the stepper motor to drive it to rotate. Therefore, after each rotation of the instrument pointer, the controller can save the scale value corresponding to each rotation of the instrument pointer, and use the scale value as the current scale value indicated by the instrument pointer at the next rotation. The scale value has a certain mapping relationship with the environmental parameter value, and the mapping relationship can be stored in a preset mapping table. Therefore, the current environmental parameter value indicated by the instrument pointer on the pointer disk can be obtained. Of course, the actual acquisition method is not limited to this.

[0071] S102, outputting a multi-channel pulse control signal to the stepper motor according to the target environmental parameter and the current environmental parameter value indicated by the instrument pointer on the pointer disk, so that the instrument pointer is driven by the stepper motor to rotate on the pointer disk to the target scale value corresponding to the target environmental parameter.

[0072] Among them, when determining the multi-channel pulse control signal according to the target environmental parameters and the current environmental parameter values, the relevant rotation parameters of the stepper motor can be determined according to the target environmental parameters and the current environmental parameter values, and the multi-channel pulse control signal can be determined according to the relevant rotation parameters of the stepper motor, and then the multi-channel pulse control signal can be output to the stepper motor, so that the instrument pointer rotates on the pointer dial to the target scale value corresponding to the target environmental parameter under the drive of the stepper motor.

[0073] In summary, by applying the embodiments of the present application, it is possible to output multiple pulse control signals through multiple output terminals of the controller, so that the instrument pointer can be driven by the stepper motor to rotate on the pointer dial to the target scale value corresponding to the target environmental parameter. Compared with the existing method of driving the stepper motor through a driver chip, the present application can reduce the production cost of pointer instruments to a certain extent.

[0074] Figure 6 A flowchart of another pointer instrument control method provided in an embodiment of the present application. Figure 6 As shown, if the multiple pulse output terminals and multiple input and output ports of the controller are electrically connected to the multiple control terminals of the stepper motor respectively; the above-mentioned current environmental parameter value indicated by the target environmental parameter and the instrument pointer on the pointer disk may include:

[0075] S201, determining a target rotation angle and a target rotation direction of the stepper motor according to the target environmental parameter and the current environmental parameter value indicated by the instrument pointer on the pointer disk.

[0076] The target rotation angle is used to indicate the angle parameter that the stepper motor needs to rotate to drive the instrument pointer on the pointer disk from the current scale value to the target scale value corresponding to the target environmental parameter.

[0077] Optionally, the target rotation angle and the target rotation direction can be determined based on the difference between the current environmental parameter value and the target environmental parameter. Of course, they can also be determined by other methods. For example, they can be determined based on the target scale value corresponding to the target environmental parameter and the current scale value indicated by the instrument pointer on the pointer dial. This is not limited here and may be different depending on the actual application scenario.

[0078] S202: According to the target rotation angle and the target rotation direction, query the preset target table to determine the pulse control signal output by each input and output port and the pulse control signal output by each pulse output terminal.

[0079] Among them, the pulse control signal output by each input and output port is a pulse control signal formed based on the high-level signal output at the target interval, and the pulse control signal output by each pulse output terminal is a pulse control signal formed based on the target pulse duty cycle parameter.

[0080] Optionally, the control parameters of the multi-channel pulse control signal can be determined by querying the preset target table according to the target rotation angle and the target rotation direction, and then the pulse control signal output by each input and output port and the pulse control signal output by each pulse output port can be determined according to the control parameters, and the multi-channel pulse control signal is output to the stepper motor, so that the instrument pointer rotates on the pointer dial to the target scale value corresponding to the environmental parameter under the drive of the stepper motor.

[0081] In some embodiments, the stepper motor is a micro stepper motor, which may include a first drive end and a second drive end. Optionally, the first pulse output end and the first input and output port of the controller may be electrically connected to the first drive end, and the second pulse output end and the second input and output port of the controller may be electrically connected to the second drive end, so that the micro stepper motor may rotate according to the multi-channel pulse control signal. Optionally, the rotation direction may be clockwise or counterclockwise, which is not limited here.

[0082] Figure 7 A flowchart of another pointer instrument control method provided in an embodiment of the present application. Optionally, the preset target table includes: a mapping relationship between the angle to be rotated and the preset target interval and the preset pulse duty cycle parameter; Figure 7 As shown, the above-mentioned method of querying a preset target table to determine the pulse control signal output by each input and output port and the pulse control signal output by each pulse output terminal according to the target rotation angle and the target rotation direction includes:

[0083] S301. According to a target rotation angle, query a preset target table to determine a target interval and a target pulse duty cycle parameter corresponding to the target rotation angle.

[0084] Among them, the target interval can indicate the time when the input and output ports output high-level signals, which may be different according to different application scenarios. The target pulse duty cycle parameter can indicate the proportion of the high level in a pulse cycle, and its value can be any value between 0 and 1. Different rotation angles can correspond to different target intervals and target pulse duty cycle parameters.

[0085] Since the preset target table includes: the mapping relationship between the angle to be rotated and the preset target interval and the preset pulse duty cycle parameters, therefore, for the target rotation angle, the preset target table can be queried to determine the target interval and the target pulse duty cycle parameters corresponding to the target rotation angle, thereby realizing that the multi-channel pulse control signal of the controller can be set according to the target pulse duty cycle parameters, so that the stepper motor can rotate in a sinusoidal manner, ensuring the smooth rotation of the instrument pointer.

[0086] S302, determining the pulse control signal output by each input / output port and the pulse control signal output by each pulse output terminal according to the target interval, the target pulse duty cycle parameter and the target rotation direction corresponding to the target rotation angle.

[0087] Based on the above description, the pulse control signal output by each input and output port can be determined as a pulse control signal formed by a high-level signal output based on the target interval, and the pulse control signal output by each pulse output port can be determined as a pulse control signal formed based on the target pulse duty cycle parameter according to the determined target interval, and the pulse control signal output by each pulse output port can be determined as a pulse control signal formed based on the target pulse duty cycle parameter. In this way, during the control process, a sub-step corresponding to the stepper motor in the prior art can be divided into multiple micro-steps, that is, a pulse control cycle of the stepper motor can be approximately close to a sinusoidal pulse sequence, thereby realizing micro-stepping of the stepper motor, making the motor run more smoothly and reducing working noise.

[0088] Optionally, in some embodiments, when the stepper motor is a micro-stepper motor, the controller can be set to output a multi-channel pulse control signal according to the following process. Based on the above description, the target rotation angle and target rotation direction of the micro-stepper motor can be determined according to the target environmental parameter and the current environmental parameter value indicated by the instrument pointer on the pointer disk; according to the target rotation angle, the preset target table is queried to determine the target interval and target pulse duty cycle parameter corresponding to the target rotation angle; in addition, the differential step value diffStep of the micro-stepper motor can also be determined according to the target rotation angle (optionally, diffStep=target rotation angle×number of differential steps corresponding to unit rotation angle), and the corresponding differential time M / diffStep can be determined according to the differential step value diffStep; and then according to the target interval, target pulse duty cycle parameter, differential time and target rotation direction, the controller can be set to output a multi-channel pulse control signal, wherein the value of M can be any value between 350 and 600, such as 540, 560, 600, etc., and its value can be set according to human experience and is not limited here.

[0089] Optionally, when the program is used for control, the differential time M / diffStep and the cumulative timing time t1Count can be compared. If the cumulative timing time is greater than the differential time M / diffStep, the stepper motor can be controlled to rotate. Based on this description, it can be understood that when the stepper motor just rotates, the differential step value diffStep is relatively large, the differential time M / diffStep will be relatively small, the differential time t1Count will take less time to accumulate, and the motor can rotate in a very short time. From the instrument panel, the instrument pointer rotates faster on the pointer disk; when the motor rotates, the diffStep differential step value continues to decrease, M / diffStep continues to increase, and the motor rotation time continues to increase. From the instrument panel, the instrument pointer rotates slower on the pointer disk than before; according to this principle, until the diffStep differential step value is equal to 0, the instrument pointer rotates on the pointer disk to the target scale value corresponding to the target environmental parameter. In this process, since the controller's multi-channel pulse control signal can be set according to the target pulse duty cycle parameters, the stepper motor can be made to rotate in a sinusoidal manner, ensuring the smooth rotation of the instrument pointer and reducing working noise; since the controller's multi-channel pulse control signal can be set according to the differential time, when the stepper motor drives the instrument pointer to rotate on the pointer dial during rotation, the instrument pointer can be prevented from shaking on the pointer dial, thereby improving the user experience.

[0090] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0091] Figure 8 This is a schematic diagram of the structure of an instrument controller provided in an embodiment of the present application. The instrument controller can be integrated into a terminal device or a chip of a terminal device. The terminal can be a computing device with image processing function. Figure 8As shown, the instrument controller may include: a processor 210, a storage medium 220 and a bus 230, the storage medium 220 stores machine-readable instructions executable by the processor 210, when the instrument controller is running, the processor 210 and the storage medium 220 communicate through the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0092] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.

[0093] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0095] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0096] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0097] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0098] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A pointer instrument, characterized in that: include: Controller, stepper motor and pointer plate; The input end of the controller is connected to the sensor for communication so as to obtain the target environmental parameters collected by the sensor; the multiple output ends of the controller are electrically connected to the multiple control ends of the stepper motor so that the controller outputs multiple pulse control signals to the stepper motor according to the target environmental parameters and the current environmental parameter value indicated by the instrument pointer on the pointer disk, and each control signal is a pulse control signal; The pointer instrument further comprises: a level conversion chip; a plurality of input terminals of the level conversion chip are electrically connected to a plurality of output terminals of the controller; a plurality of output terminals of the level conversion chip are electrically connected to a plurality of control terminals of the stepping motor, so as to convert the level of the multi-channel pulse control signal and output it to the stepping motor; The driving end of the stepper motor is in transmission connection with the instrument pointer on the pointer disk, so that the instrument pointer is driven by the stepper motor to rotate on the pointer disk to a target scale value corresponding to the target environmental parameter; Wherein, the multiple output terminals of the controller include: multiple pulse output terminals and multiple input and output ports; The controller is specifically used to: determine the target rotation angle and target rotation direction of the stepper motor according to the target environmental parameter and the current environmental parameter value indicated by the instrument pointer on the pointer disk; according to the target rotation angle and target rotation direction, query a preset target table to determine the pulse control signal output by each input and output port and the pulse control signal output by each pulse output terminal; Among them, the pulse control signal output by each input and output port is: the controller queries the preset target table based on the target environmental parameters and the current scale value of the instrument pointer on the pointer dial to obtain a pulse control signal based on the high-level signal output based on the target interval; the pulse control signal output by each pulse output terminal is: the controller queries the preset target table based on the target environmental parameters and the current scale value of the instrument pointer on the pointer dial to obtain a pulse control signal based on the target pulse duty cycle parameter.

2. The pointer instrument according to claim 1, characterized in that: The multiple pulse output terminals of the controller are electrically connected to the multiple control terminals of the stepper motor respectively, so as to output multiple pulse control signals to the stepper motor, and each control signal is a pulse control signal.

3. The pointer instrument according to claim 1, characterized in that: The pointer instrument further comprises: a power module, a first output end of the power module is electrically connected to the power end of the controller, and a second output end of the power module is electrically connected to the power end of the level conversion chip.

4. A pointer instrument control method, characterized in that: A controller used in a pointer instrument as claimed in any one of claims 1 to 3, wherein the method comprises: Obtain the target environmental parameters collected by the sensor and the current environmental parameter values ​​indicated by the instrument pointer on the pointer disk; According to the target environmental parameter and the current environmental parameter value indicated by the instrument pointer on the pointer disk, a multi-channel pulse control signal is output to the stepper motor, so that the instrument pointer is driven by the stepper motor to rotate on the pointer disk to the target scale value corresponding to the target environmental parameter; Wherein, if the multiple pulse output terminals and multiple input and output ports of the controller are electrically connected to the multiple control terminals of the stepper motor through the level conversion chip, so as to output multiple pulse control signals to the stepper motor, each control signal is a pulse control signal; The current environmental parameter value indicated by the target environmental parameter and the instrument pointer on the pointer disk includes: Determining a target rotation angle and a target rotation direction of the stepping motor according to the target environmental parameter and a current environmental parameter value indicated by an instrument pointer on the pointer disk; According to the target rotation angle and the target rotation direction, a preset target table is queried to determine the pulse control signal output by each of the input and output ports and the pulse control signal output by each pulse output terminal; Among them, the pulse control signal output by each of the input and output ports is: the controller queries the preset target table based on the target environmental parameters and the current scale value of the instrument pointer on the pointer dial to obtain a pulse control signal based on the high-level signal output based on the target interval; the pulse control signal output by each pulse output terminal is: the controller queries the preset target table based on the target environmental parameters and the current scale value of the instrument pointer on the pointer dial to obtain a pulse control signal based on the target pulse duty cycle parameter.

5. The method according to claim 4, characterized in that The preset target table includes: a mapping relationship between the to-be-rotated angle and the preset target interval and the preset pulse duty cycle parameters; The step of querying a preset target table to determine the pulse control signal output by each input / output port and the pulse control signal output by each pulse output terminal according to the target rotation angle and the target rotation direction includes: According to the target rotation angle, query the preset target table to determine the target interval and target pulse duty cycle parameters corresponding to the target rotation angle; The pulse control signal output by each of the input / output ports and the pulse control signal output by each pulse output terminal are determined according to the target interval corresponding to the target rotation angle, the target pulse duty cycle parameter and the target rotation direction.

6. An instrument controller, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the instrument controller is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the pointer instrument control method as described in any one of claims 4-5.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the pointer instrument control method as claimed in any one of claims 4 to 5 are executed.

Citation Information

Patent Citations

  • Pointer type instrument reading method and device, computer device and storage medium

    CN110110733A

  • Pointer type instrument

    CN214607086U

  • Diesel engine meter employing digital bus transmission and finger display

    CN2859461Y