Automatic synchronization system for pointer movement
Through the photoelectric encoder and PID control method, the automatic synchronization of the electronic movement pointer is realized, solving the synchronization differences between mechanical pointer and digital screen display and battery consumption, and improving the time display accuracy and battery life.
Patent Information
- Application Number
- CN202411189693.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-08-28
AI Technical Summary
When the mechanical pointer and digital screen display time are displayed simultaneously, the current electronic movements are caused by the phenomenon of sneaking and needle stuck due to assembly, vibration or external force, resulting in a difference in time display. The traditional stepper motor drive compensation method is complex and time-consuming. And frequent timing calibration consumes a lot of power and shortens battery life.
The photoelectric encoder is used to operate in concert with the main control IC, and environmental interference is filtered through grating modulation and filter, combined with sliding window averaging and PID control methods, automatic synchronization of pointers is achieved to reduce mechanical wear and power consumption.
Improves the accuracy of time display, reduces mechanical wear and power consumption, extends battery life, and reduces the user's manual calibration needs, with good scalability.
Smart Images

Figure CN118707839B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electronic movements, in particular to an automatic synchronization system for a pointer movement. Background Art
[0002] In electronic movements that use a main control IC (integrated circuit) to control mechanical hands and digital screens to display time synchronously, the mechanical hands may stop or get stuck during movement due to assembly, vibration, external force or other factors, resulting in differences in the time displayed by the mechanical hands and digital screens. The synchronization method that generally uses a stepper motor to drive and compensate for the pointer indication is only applicable to watches with independent indications of mechanical hands and digital screens. Detecting multiple pulse signals causes complex calculations, time-consuming transmission, and unnecessary mechanical wear. Traditional electronic movements eliminate display errors through time calibration. Frequent regular calibration consumes more power, resulting in accelerated battery consumption and increased user burden. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an automatic synchronization system for a pointer movement. For the synchronization method that generally uses a stepper motor to drive and compensate the pointer indication, it is only for watches with independent indications of mechanical pointers and digital screen displays. The detection of multiple pulse signals causes complex calculations, time-consuming transmission, and unnecessary mechanical wear. This solution realizes the coordinated operation of the photoelectric encoder and the main control IC, and provides real-time pointer position through the synchronous rotation of the photoelectric encoder with the pointer. Automatic calibration is achieved through modulation of the grating and demodulation of the main control IC. A filter is used to filter ambient light interference, thereby improving the accuracy of time display and reducing mechanical wear. For the traditional electronic movement, display errors are eliminated by timing calibration, and frequent regular calibration requires more power consumption, resulting in accelerated battery consumption and increased user burden. This solution uses a sliding window averaging method to provide a more stable and accurate time feedback signal, combined with a PID control method to make precise adjustments based on real-time errors, to achieve automatic synchronization of the pointer, reduce the need for manual calibration by users, reduce power consumption, and extend battery life. It can be combined with other intelligent functions and has good scalability.
[0004] The present invention provides an automatic synchronization system for a pointer movement, which is characterized by comprising a main control IC, a stepping motor, a filter, and a photoelectric encoder;
[0005] The stepper motor is connected to the pointer mechanism in the electronic movement to drive the pointer to rotate;
[0006] The photoelectric encoder includes a light source, a rotating disk and a photoelectric sensor. The rotating disk is engraved with a grating and installed on the rotating shaft of the stepper motor. The photoelectric sensor is fixed near the rotating disk. When the rotating disk rotates, the light beam emitted by the light source is modulated by the grating to form a series of light signals. The photoelectric sensor detects the light signal and converts it into an electrical signal to obtain the angle information of the stepper motor rotation, and feeds the angle information back to the main control IC.
[0007] The main control IC receives the angle information of the photoelectric encoder, calculates the current pointer position, and controls the operation of the stepper motor; the main control IC is also provided with an internal clock module for indicating the accurate time with low power consumption;
[0008] The filter is installed at the front end of the photoelectric sensor to filter the interference of ambient light.
[0009] Furthermore, the automatic synchronization system of the pointer movement adopts a sliding window averaging method and a PID control method to realize automatic synchronization of the pointer, and specifically comprises the following steps:
[0010] Step S1: The main control IC obtains the current time from the internal clock module and obtains the angle information of the photoelectric encoder;
[0011] Step S2: Sliding window average denoising, select the window size according to the rate of change of the angle information, smooth the signal fluctuations, and update the angle information;
[0012] Step S3: error calculation, calculating the actual position of the current pointer according to the angle information, calculating the corresponding target position of the pointer according to the current time, and calculating the error value between the actual position and the target position;
[0013] Step S4: PID control, set the proportional, integral and differential parameters of PID control, calculate the proportional control signal according to the current error value; accumulate the error value to obtain the integral control signal; calculate the rate of change of the error value to obtain the differential control signal; add the calculation results of the proportional, integral and differential control signals to generate the final PID control signal. The formula used is as follows:
[0014] ;
[0015] In the formula, Represents the final PID control signal, Indicates the current time. Indicates the error value between the actual position and the target position. denote the proportional, integral and differential parameters respectively, represents the cumulative error value at the previous moment, Indicates the time interval, Indicates the rate of change of the error value;
[0016] Step S5: adjusting the stepper motor, using the final PID control signal to adjust the rotation of the stepper motor, and driving the pointer to move to the target position;
[0017] Step S6: Continuously monitor the angle information fed back by the photoelectric encoder, calculate the real-time error, and update the PID control signal. If error accumulation is detected during the operation of the pointer, the main control IC dynamically adjusts the PID parameters to optimize the control effect.
[0018] Further, in step S2, sliding window average denoising is performed, specifically including the following steps:
[0019] Step S21: Determine that the sliding window size is N, create a queue with a length of N, and store the angle information of the most recent N time points;
[0020] Step S22: filling the initial queue to include the angle information of the first N time points;
[0021] Step S23: Calculate the sliding average value step by step, add the angle information of each new time point to the rightmost end of the queue, and remove the angle information of a time point at the leftmost end; calculate the average value of all elements in the sliding window queue as the smoothed signal value at the current moment, and the formula used is as follows:
[0022] S= 1 N ∑ t=1 N A[t] ;
[0023] In the formula, Represents the smoothed signal value at the current moment, Indicates the window size, Indicates a point in time, Indicates time point Angle information;
[0024] Step S24: Use the calculated smoothed signal value to update the original angle information to reduce the error caused by noise.
[0025] Furthermore, in step S5, the stepper motor is adjusted to convert the PID control signal into a control instruction for the stepper motor: the rotation direction of the stepper motor is determined according to the sign of the error value, and the number of step pulses to be issued is determined according to the amplitude of the PID control signal; the converted control instruction is sent to the stepper motor controller, and the stepper motor rotates a specified number of steps according to the received pulse signal to adjust the position of the pointer.
[0026] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0027] (1) The synchronization method that generally uses a stepper motor to drive and compensate the pointer indication is only applicable to watches with independent indications of mechanical pointers and digital screen displays. The detection of multiple pulse signals causes complex calculations, time-consuming transmission, and unnecessary mechanical wear. This solution realizes the coordinated operation of the photoelectric encoder and the main control IC. The photoelectric encoder provides real-time pointer position through the synchronous rotation of the pointer. Automatic calibration is achieved through modulation of the grating and demodulation of the main control IC. A filter is used to filter out ambient light interference, thereby improving the accuracy of time display and reducing mechanical wear.
[0028] (2) Traditional electronic movements eliminate display errors through timing calibration. Frequent regular calibration consumes more power, leading to accelerated battery consumption and increased user burden. This solution uses a sliding window averaging method to provide a more stable and accurate time feedback signal, combined with a PID control method to make precise adjustments based on real-time errors, achieve automatic synchronization of the pointer, reduce the need for manual calibration by users, reduce power consumption, extend battery life, and can be combined with other intelligent functions, with good scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of an automatic synchronization system for a pointer movement proposed by the present invention;
[0030] Figure 2 It is a partial structural diagram of the dual-display watch in Example 7.
[0031] Among them, 1. Antenna, 2. Solar panel, 3. Main control IC, 4. Battery.
[0032] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0033] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0034] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0035] Example 1, see Figure 1 , the present invention provides an automatic synchronization system for a pointer movement, comprising a main control IC, a stepping motor, a filter, and a photoelectric encoder;
[0036] A small stepper motor is used to connect the pointer mechanism in the electronic movement to drive the pointer to rotate;
[0037] Install a small photoelectric encoder, including an 850nm LED light source, a rotating disk and an infrared photoelectric sensor with an operating wavelength of 850nm. The rotating disk is engraved with a series of gratings with transparent and opaque stripes at equal intervals. It is installed on the rotating shaft of the stepper motor. The photoelectric sensor is fixed near the rotating disk. When the rotating disk rotates, the LED light source emits a stable infrared beam to illuminate the grating. The transparent and opaque stripes of the grating alternately pass between the LED light source and the photoelectric sensor, forming a light signal that alternates between light and dark. The photoelectric sensor detects the light signal and converts it into an electrical signal to obtain the angle information of the stepper motor rotation, and feeds the angle information back to the main control IC.
[0038] The main control IC receives the angle information from the photoelectric encoder, calculates the current pointer position, and controls the operation of the stepper motor; the main control IC also has an internal clock module to indicate the accurate time with low power consumption;
[0039] A bandpass filter with a central wavelength of 850nm is selected and installed at the front end of the infrared photoelectric sensor to allow infrared light with a wavelength of 850nm to pass through and block light of other wavelengths.
[0040] By executing the operations, the synchronization method that generally uses a stepper motor to drive and compensate the pointer indication is only for watches with independent indications of mechanical pointers and digital screen displays. The detection of multiple pulse signals causes complex calculations, time-consuming transmission, and unnecessary mechanical wear. This solution realizes the coordinated operation of the photoelectric encoder and the main control IC, provides real-time pointer position through the synchronous rotation of the photoelectric encoder with the pointer, realizes automatic calibration through modulation of the grating and demodulation of the main control IC, uses a filter to filter ambient light interference, improves the accuracy of time display, and reduces mechanical wear.
[0041] Example 2, see Figure 1This embodiment is based on the first embodiment. In this embodiment, the photoelectric encoder selects an incremental encoder to detect the relative position of the pointer. The rotating disk is engraved with evenly distributed transparent and opaque stripe gratings. The photoelectric sensor detects the passage of the stripes and generates a pulse signal. Each pulse corresponds to a fixed rotation angle.
[0042] Example 3, see Figure 1 This embodiment is based on the first embodiment. In this embodiment, the photoelectric encoder selects an absolute encoder to detect the absolute position of the pointer. The grating engraved on the rotating disk corresponds to n concentric rings. The transparent and opaque areas on the concentric rings are arranged according to binary coding. Each ring represents a bit. When the rotating disk rotates, the photoelectric sensor detects the combination of transparent and opaque areas on different rings and generates a corresponding binary code. Each angular position generates a unique binary code, which corresponds to the absolute position of the current pointer.
[0043] Assuming that the grating engraved on the rotating disk corresponds to 3 concentric rings, the design is as follows:
[0044] Outer ring: transparent-opaque-transparent-opaque-transparent-opaque-opaque-transparent-opaque;
[0045] Middle ring: transparent-transparent-opaque-opaque-transparent-transparent-opaque-opaque;
[0046] Inner ring: transparent-transparent-transparent-transparent-opaque-opaque-opaque-opaque;
[0047] Coding rules: Transparent code is 1, opaque code is 0, and each position of the rotating disk is coded as follows:
[0048] Location Outer Ring Central Inner Ring coding 0 1 1 1 111 1 0 1 1 011 2 1 0 1 101 3 0 0 1 001 4 1 1 0 110 5 0 1 0 010 6 1 0 0 100 7 0 0 0 000
[0049] Each position has a unique 3-bit binary code. After the photoelectric sensor reads the binary code, the main control IC decodes it to determine the position of the pointer.
[0050] Example 4, see Figure 1 This embodiment is based on the above embodiment and uses a sliding window averaging method and a PID control method to realize automatic synchronization of pointers. Specifically, it includes the following steps:
[0051] Step S1: The main control IC obtains the current time from the internal clock module and obtains the angle information of the photoelectric encoder;
[0052] Step S2: Sliding window average denoising, select the window size according to the rate of change of the angle information, smooth the signal fluctuations, and update the angle information;
[0053] Step S3: error calculation, calculating the actual position of the current pointer according to the angle information, calculating the corresponding target position of the pointer according to the current time, and calculating the error value between the actual position and the target position;
[0054] Step S4: PID control, set the proportional, integral and differential parameters of PID control, calculate the proportional control signal according to the current error value; accumulate the error value to obtain the integral control signal; calculate the rate of change of the error value to obtain the differential control signal; add the calculation results of the proportional, integral and differential control signals to generate the final PID control signal. The formula used is as follows:
[0055] ;
[0056] In the formula, Represents the final PID control signal, Indicates the current time. Indicates the error value between the actual position and the target position. denote the proportional, integral and differential parameters respectively, represents the cumulative error value at the previous moment, Indicates the time interval, Indicates the rate of change of the error value;
[0057] Step S5: adjusting the stepper motor, using the final PID control signal to adjust the rotation of the stepper motor, and driving the pointer to move to the target position;
[0058] Step S6: Continuously monitor the angle information fed back by the photoelectric encoder, calculate the real-time error, and update the PID control signal. If error accumulation is detected during the operation of the pointer, the main control IC dynamically adjusts the PID parameters to optimize the control effect.
[0059] By performing the operations, traditional electronic movements eliminate display errors through timing calibration. Frequent periodic calibration consumes more power, leading to accelerated battery consumption and increased user burden. This solution uses a sliding window averaging method to provide a more stable and accurate time feedback signal, combined with a PID control method to make precise adjustments based on real-time errors, to achieve automatic synchronization of the pointer, reduce the need for manual calibration by users, reduce power consumption, extend battery life, and can be combined with other intelligent functions, with good scalability.
[0060] Example 5, see Figure 1 This embodiment is based on the above embodiment. It is assumed that there is angle information: [10, 12, 15, 18, 20, 25, 23, 22, 24, 28], and the sliding window size N=5. In step S2, the sliding window average denoising is performed, which specifically includes the following steps:
[0061] Step S21: Determine that the sliding window size is 5, create a queue with a length of 5, and store the angle information of the last five time points;
[0062] Step S22: fill the initial queue to include the angle information of the first five time points; initial sliding window queue: [10, 12, 15, 18, 20];
[0063] Step S23: Calculate the sliding average value step by step, add the angle information of each new time point to the rightmost end of the queue, and remove the angle information of a time point at the leftmost end; calculate the average value of all elements in the sliding window queue as the smoothed signal value at the current moment, the initial smoothed signal value:
[0064] ;
[0065] Step S24: Use the calculated smooth signal value to update the original angle information to reduce the error caused by noise; update the sliding window: [12, 15, 18, 20, 25]; update the smooth signal value:
[0066] ;
[0067] Calculate in sequence to get the smoothed angle information: [15, 18, 20.2, 21.6, 22.8, 24.4];
[0068] The high-frequency noise in the original data is effectively smoothed, and the signal fluctuation is more stable.
[0069] Example 6, see Figure 1 This embodiment is based on the above embodiment. In step S5, the stepper motor is adjusted to convert the PID control signal into a control instruction of the stepper motor: the rotation direction of the stepper motor is determined according to the sign of the error value, and the number of step pulses to be issued is determined according to the amplitude of the PID control signal; the converted control instruction is sent to the stepper motor controller, and the stepper motor rotates a specified number of steps according to the received pulse signal to adjust the position of the pointer.
[0070] Embodiment 7, see Figure 1 and Figure 2This embodiment is based on the above embodiment. In this embodiment, the synchronous operation of the pointer is implemented in combination with a dual-display watch including a main control IC3 that controls the mechanical pointer and the digital screen display: the dual-display watch has a built-in antenna 1 that regularly receives a standard time signal, a battery 4 is provided to power the main control IC3, and a solar panel 2 is provided to power the light source of the digital screen display and the photoelectric encoder and to charge the battery 4; the main control IC3 decodes the received standard time signal and provides it to the internal clock module, and the time display of the digital screen display is provided by the internal clock module; the photoelectric encoder is installed on the rotating shaft of the stepper motor, and the light source and the filter are installed at the front end of the photoelectric sensor to ensure that the light emitted by the light source passes through the grating. The photoelectric sensor detects the light signal modulated by the grating, converts it into an electrical signal, and feeds it back to the main control IC3; the main control IC3 calculates the rotation angle of the stepper motor according to the electrical signal of the photoelectric sensor, determines the actual position of the pointer, and realizes the pointer to generate a control signal to adjust the stepper motor through the sliding window averaging method and the PID control method, and drives the pointer to move to the target position. At the same time, the main control IC3 continuously monitors the photoelectric encoder, dynamically generates a control signal through PID control, and adjusts the pointer position.
[0071] It should be noted that, in this article, relational terms such as first and second, etc. 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.
[0072] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0073] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. An automatic synchronization system for a pointer movement, characterized in that: Including main control IC, stepper motor, filter, photoelectric encoder; The stepper motor is connected to the pointer mechanism in the electronic movement to drive the pointer to rotate; The photoelectric encoder includes a light source, a rotating disk and a photoelectric sensor. The rotating disk is engraved with a grating and is installed on the rotating shaft of the stepper motor. The photoelectric sensor is fixed near the rotating disk. When the rotating disk rotates, the light beam emitted by the light source is modulated by the grating to form a series of light signals. The photoelectric sensor detects the light signal and converts it into an electrical signal to obtain the angle information of the stepper motor rotation, and feeds the angle information back to the main control IC. The main control IC receives the angle information of the photoelectric encoder, calculates the current pointer position, and controls the operation of the stepper motor; the main control IC is also provided with an internal clock module for indicating the accurate time with low power consumption; The filter is installed at the front end of the photoelectric sensor to filter the ambient light interference; The automatic synchronization of the pointer is realized by combining the sliding window average method and the PID control method, which specifically includes the following steps: Step S1: The main control IC obtains the current time from the internal clock module and obtains the angle information of the photoelectric encoder; Step S2: Sliding window average denoising, select the window size according to the rate of change of the angle information, smooth the signal fluctuations, and update the angle information; Step S3: error calculation, calculating the actual position of the current pointer according to the angle information, calculating the corresponding target position of the pointer according to the current time, and calculating the error value between the actual position and the target position; Step S4: PID control, set the proportional, integral and differential parameters of PID control, calculate the proportional control signal according to the current error value; accumulate the error value to obtain the integral control signal; calculate the rate of change of the error value to obtain the differential control signal; add the calculation results of the proportional, integral and differential control signals to generate the final PID control signal. The formula used is as follows: ; In the formula, Represents the final PID control signal, Indicates the current time. Indicates the error value between the actual position and the target position. denote the proportional, integral and differential parameters respectively, represents the cumulative error value at the previous moment, Indicates the time interval, Indicates the rate of change of the error value; Step S5: adjusting the stepper motor, using the final PID control signal to adjust the rotation of the stepper motor, and driving the pointer to move to the target position; Step S6: Continuously monitor the angle information fed back by the photoelectric encoder, calculate the real-time error, and update the PID control signal. If error accumulation is detected during the operation of the pointer, the main control IC dynamically adjusts the PID parameters to optimize the control effect.
2. The automatic synchronization system of a pointer movement according to claim 1, characterized in that: In step S2, sliding window average denoising is performed, which specifically includes the following steps: Step S21: Determine that the sliding window size is N, create a queue with a length of N, and store the angle information of the most recent N time points; Step S22: filling the initial queue to include the angle information of the first N time points; Step S23: Calculate the sliding average value step by step, add the angle information of each new time point to the rightmost end of the queue, and remove the angle information of a time point at the leftmost end; calculate the average value of all elements in the sliding window queue as the smoothed signal value at the current moment, and the formula used is as follows: ; In the formula, Represents the smoothed signal value at the current moment, Indicates the window size, Indicates a point in time, Indicates time point Angle information of Step S24: Use the calculated smoothed signal value to update the original angle information to reduce the error caused by noise.
3. The automatic synchronization system of a pointer movement according to claim 2, characterized in that: In step S5, the stepper motor is adjusted and the PID control signal is converted into a control instruction of the stepper motor: the rotation direction of the stepper motor is determined according to the sign of the error value, and the number of step pulses issued is determined according to the amplitude of the PID control signal; the converted control instruction is sent to the stepper motor controller, and the stepper motor rotates the specified number of steps according to the received pulse signal to adjust the position of the pointer.
