Control method of driving assembly, electronic equipment and storage medium
By setting the rotation test value and rotation compensation value threshold in the drive assembly, the problem of the drive assembly is solved, ensuring that the sliding part meets the operating state control command at the position of the slide rail and does not reach the limit position, avoiding stress damage, and improving the stability and user experience of the equipment.
Patent Information
- Application Number
- CN202510793818.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-06-13
AI Technical Summary
In the prior art, the drive assembly is prone to blockage when the sliding part moves along the slide rail, resulting in deformation of the slide rail and damage to the electronic equipment, reducing the user experience.
The number of times threshold is determined by setting the rotation test value of the drive component and the preset rotation compensation value to avoid blockage. The driving component controls the driving component to stop running when the rotation statistics meet the number of times threshold to avoid blockage.
Effectively prevent the drive components from being blocked, protect the slide rails and electronic equipment from damage, and improve the stability and user experience of the equipment.
Smart Images

Figure CN120335338A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of transmission devices, and more particularly, to a control method, an electronic device, and a storage medium for a driving component in the field of transmission devices. Background Art
[0002] The transmission component includes a slide rail and a sliding part, which is usually connected to the driving component. The driving component drives the sliding part connected to the moving part to move along the slide rail, thereby driving the movement of the moving part to ensure the normal use of the electronic device.
[0003] In the related art, when the driving component drives the sliding part to move along the slide rail, it is judged whether the sliding part slides in place by whether a stall occurs. However, when the driving component stalls, the stress on the slide rail is relatively large. Over time, the slide rail will deform, resulting in a gap between the moving part of the electronic device and other components in the closed state. In severe cases, the slide rail may even be damaged, reducing the use experience of the electronic device. Summary of the Invention
[0004] This application provides a control method, an electronic device, and a storage medium for a driving component, which can avoid the driving component from stalling.
[0005] In a first aspect, a control method for a driving component is provided, which is applied to an electronic device. The electronic device includes a driving component and a transmission component. The transmission component includes a sliding part and a slide rail, and the transmission component is connected to the driving component. The method includes: in response to a control instruction for the operating state of the electronic device, controlling the driving component to drive the sliding part to move along the slide rail; obtaining a rotation statistical value when the driving component drives the sliding part to move along the slide rail; when the rotation statistical value meets a number threshold, controlling the driving component to stop operating, and the number threshold is determined by a rotation test value when the driving component stalls and a preset rotation compensation value for avoiding stalling.
[0006] In a second aspect, an electronic device is provided, including: a memory for storing executable program code; a processor for calling and running the executable program code from the memory, so that the electronic device executes the method in the first aspect or any possible implementation manner of the first aspect.
[0007] In a third aspect, a computer program product is provided, which includes: computer program code, when the computer program code runs on a computer, enabling the computer to execute the method in the first aspect or any possible implementation manner of the first aspect.
[0008] Fourthly, a computer-readable storage medium is provided. The computer-readable storage medium stores computer program code, and when the computer program code runs on a computer, the computer is caused to execute the method in the first aspect or any possible implementation manner of the first aspect described above.
[0009] In the embodiments of the present application, by presetting the number threshold determined by the rotation test value when the driving component is blocked and the preset rotation compensation value for avoiding blockage, and then when the rotation statistical value of the driving component meets the number threshold, it is determined that the position of the sliding part on the slide rail satisfies the operation state control instruction of the electronic device, and the sliding part does not reach the limit position of the slide rail, and the driving component will not be blocked, thus avoiding the damage to the electronic device caused by the stress generated when the driving component is blocked. Description of the Drawings
[0010] Figure 1 is a schematic diagram of a scenario of a control method for a driving component provided by an embodiment of the present application; Figure 2 is a flowchart of a control method for a driving component provided by an embodiment of the present application; Figure 3a is a schematic structural diagram of a transmission component provided by an embodiment of the present application; Figure 3b is a schematic structural diagram of a transmission component provided by an embodiment of the present application; Figure 4 is a flowchart of a control method for a driving component provided by an embodiment of the present application; Figure 5 is a flowchart of a control method for a driving component provided by an embodiment of the present application; Figure 6 is an example schematic diagram of a compensation distance provided by an embodiment of the present application; Figure 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments
[0011] Next, the technical solutions in the present application will be clearly and elaborately described in conjunction with the drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. The "and / or" in the text is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
[0012] Hereinafter, the terms "first" and "second" are for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0013] The transmission assembly converts the rotational power provided by the drive assembly into linear motion through mechanical transmission, thereby realizing the moving function. By running linearly, it can ensure that the electronic device completes the moving operation smoothly and precisely, achieving both the normal use of the electronic device and ensuring the stability and safety of the movement.
[0014] In the related art, the drive assembly drives the sliding part of the transmission assembly to move along the slide rail. When the slide rail moves to a position near the end point of the slide rail, it is usually judged whether the sliding part slides in place by whether the drive assembly is blocked. When the drive assembly is blocked, the stress on the slide rail is relatively large. Over time, the slide rail will be distorted, resulting in a gap between the moving parts and other parts of the electronic device in the closed state. In severe cases, the slide rail may even be damaged, reducing the use experience of the electronic device.
[0015] Figure 1 It is a schematic diagram of a scenario of a control method for a drive assembly provided by an embodiment of the present application. As Figure 1 shown in the schematic diagram of the scenario, the electronic device is described by taking the lift-type range hood 10 including a transmission assembly as an example. It can be understood that in other embodiments, the electronic device may specifically be other forms of devices including a transmission assembly, which will not be enumerated here.
[0016] For the lift-type range hood 10, it extends or retracts the moving assembly (fan) from the housing through a built-in transmission assembly (not shown in the figure). When in need of use, the drive assembly drives the transmission assembly to extend the fan from the housing of the range hood and starts the function of sucking cooking fumes to remove the kitchen fumes; when not in need of use, the drive assembly drives the transmission assembly to retract the fan into the housing, avoiding dust entering the housing and damage caused by the exposure of the fan. At the same time, it reduces the occupied area of the kitchen and improves the space utilization rate.
[0017] When the transmission assembly extends the fan from the housing or retracts the fan into the housing, it is judged whether the fan is fully extended or retracted by the blocking of the drive assembly. The stress generated when the drive assembly is blocked will damage the slide rail or the housing of the range hood.
[0018] Based on this, the present application proposes a control method for a driving component. When the range hood receives an operation state control instruction, it controls the driving component to respond to the operation state control instruction, drives the sliding part to move along the slide rail, and obtains the rotation statistical value obtained when the driving component drives the sliding part to move along the slide rail. When the rotation statistical value meets the number threshold, it controls the driving component to stop operating. By presetting the number threshold determined by the rotation test value when the driving component is jammed and the preset rotation compensation value for avoiding jamming, when the rotation statistical value of the driving component meets the number threshold, it is determined that the position of the sliding part on the slide rail meets the requirement for the electronic device to execute the operation state control instruction, and the sliding part has not reached the limit position of the slide rail, so the driving component will not be jammed, avoiding damage to the electronic device caused by the stress generated when the driving component is jammed.
[0019] Based on Figure 1 the scenario illustration shown below, the control method for the driving component provided by the embodiments of the present application will be introduced in detail in conjunction with Figures 2 - 6 this.
[0020] Please refer to Figure 2 which is a schematic flow chart of a control method for a driving component provided by an embodiment of the present application. As Figure 2 shown, the method of the embodiment of the present application may include the following steps S101 - step S103.
[0021] S101, in response to an operation state control instruction for an electronic device, control the driving component to drive the sliding part to move along the slide rail; In one embodiment, the operation state control instruction is used to adjust the operation state of the electronic device, and may include start control instructions, shutdown control instructions, instructions for adjusting operation parameters (such as temperature, speed), etc., which require the cooperation of the driving component and the transmission component to complete.
[0022] Exemplarily, referring to the above scenario illustration, when the electronic device is a lift - type range hood, the fan of the range hood is housed in the housing of the range hood and is connected to the transmission component. When receiving a start control instruction, the driving component drives the transmission component to extend the fan out of the housing of the range hood and start the fume extraction function to remove kitchen fumes; later, when receiving a shutdown control instruction, the driving component drives the transmission component to retract the fan back into the housing. It can be understood that in the embodiments of the present application, the moving component connected to the transmission component is described by taking the fan as an example. In some other embodiments, the moving component connected to the transmission component may specifically be other components such as lights and filters.
[0023] Specifically, the user can trigger the operation status control instruction through the physical button set on the housing of the electronic device, or trigger the operation status control instruction through other wireless control devices such as a remote control, or trigger the operation status control instruction through means such as a touch screen, voice control, or gesture recognition. Then, after receiving the operation status control instruction, the electronic device controls the driving component to drive the sliding part to move along the slide rail.
[0024] Please refer to Figure 3a , Figure 3a which is a schematic structural diagram of a transmission component provided by an embodiment of the present application. In Figure 3a the transmission component in includes two sets of slide rails 01 arranged in parallel in the vertical direction. The sliding part 02 (pulley) is driven by the driving component and moves up and down between the top and the end of the slide rail in the vertical direction.
[0025] Please refer to Figure 3b , Figure 3b which is a schematic structural diagram of a transmission component provided by an embodiment of the present application. In another embodiment, in Figure 3b the transmission component in includes two sets of slide rails 01 arranged in parallel in the horizontal direction. The sliding part 02 is driven by the driving component and moves left and right between the two ends of the slide rail in the horizontal direction.
[0026] It can be understood that in other embodiments, the transmission component may also include a single set of slide rails and a sliding part moving along the slide rail, or include multiple sets of slide rails and sliding parts moving along the slide rails, which will not be elaborated here.
[0027] S102. Obtain the rotation statistical value when the driving component drives the sliding part to move along the slide rail; In one embodiment, when the driving component drives the sliding part to move along the slide rail, the rotation statistical value of the driving component is obtained. The rotation statistical value calculates the relative value of the number of rotations of the driving component during the period when the electronic device responds to the operation status control instruction and the driving component drives the sliding part to move along the slide rail, and it is related to the operation status control instruction responded by the electronic device.
[0028] Optionally, in the embodiments of the present application, the rotation increment of the driving component within a certain time range can be determined by the number of rotations of the driving component associated with the rotational speed per unit time, and then the rotation statistical value can be determined based on the rotation increment and the operation status control instruction responded by the electronic device.
[0029] S103. When the rotation statistical value meets the number threshold, control the driving component to stop running. The number threshold is determined by the rotation test value when the driving component is stuck and the preset rotation compensation value for avoiding stuck rotation.
[0030] In one embodiment, the number threshold is a pre-determined threshold, which is determined based on the rotation test value when the driving component is blocked and the preset compensation value for avoiding the driving component from being blocked.
[0031] Referring to Figure 3a , after receiving the operation state control instruction, the driving component drives the sliding part to move from the top end of the slide rail to the end of the slide rail through the driving force generated by its own rotation. As the number of rotations of the driving component increases, the sliding part gets closer to the end of the slide rail, and the rotation statistical value changes as the number of rotations increases. Exemplarily, the calculated rotation statistical value is 495 times, and the pre-set number threshold is greater than or equal to 495 times and less than 500 times. It is determined that the rotation statistical value meets the number threshold, and further it is determined that the position of the sliding part on the slide rail meets the condition for the electronic device to execute the operation state control instruction, and within this number threshold, the driving component will not be blocked. The lower limit of the number threshold can be set as the condition for the position of the sliding part of the electronic device on the slide rail to meet the condition for the electronic device to execute the operation state control instruction; the upper limit of the number threshold is the rotation test value when the driving component is blocked. For example, when the rotation statistical value of the driving component meets the lower limit of the number threshold (greater than or equal to 495 times), it is determined that the sliding part drives the fan of the range hood to move to a suitable air inlet position, so as to ensure that the range hood can effectively absorb and discharge oil fume and improve the smoking efficiency; when the rotation statistical value of the driving component meets the upper limit of the number threshold (less than 500 times), it is determined that the sliding part does not move to the limit position of the slide rail and the driving component will not be blocked.
[0032] In the embodiment of the present application, by pre-setting the number threshold determined by the rotation test value when the driving component is blocked and the preset rotation compensation value for avoiding blockage, and then when the rotation statistical value of the driving component meets the number threshold, it is determined that the position of the sliding part on the slide rail meets the condition for the electronic device to execute the operation state control instruction, and the sliding part does not reach the limit position of the slide rail, and the driving component will not be blocked, thus avoiding the damage to the electronic device caused by the stress generated when the driving component is blocked.
[0033] Please refer to Figure 4 , which is a schematic flow chart of a control method for a driving component provided by an embodiment of the present application. As Figure 4 shown, the method of the embodiment of the present application may include the following steps S201-step S206.
[0034] S201, when the operation state control instruction is a start control instruction, control the driving component to rotate in the first rotation direction and drive the sliding part to move along the end of the slide rail; In one embodiment, the operation state control instruction is a start control instruction, which is used to start the electronic device and control the electronic device to execute its specific functions (for example, play function, temperature adjustment function, air purification function) instruction.
[0035] When the received operating state control instruction of the electronic device is a start control instruction, it determines to control the driving component to rotate in the first rotation direction. Please continue to refer to Figure 3a , in the embodiment of the present application, it is defined that the driving component controls the sliding part to move downward, that is, to move to the end of the slide rail, and the corresponding rotation direction is the first rotation direction. Optionally, the first rotation direction can be one of clockwise rotation or counterclockwise rotation.
[0036] S202. When the operating state control instruction is a shutdown control instruction, control the driving component to rotate in the second rotation direction, and drive the sliding part to move along the top of the slide rail; In one embodiment, the operating state control instruction is a shutdown control instruction for shutting down the electronic device and controlling the electronic device to stop executing its specific functions (for example, playing function, temperature adjustment function, air purification function).
[0037] When the received operating state control instruction of the electronic device is a shutdown control instruction, it determines to control the driving component to rotate in the second rotation direction. Please continue to refer to Figure 3a , in the embodiment of the present application, it is defined that the driving component controls the sliding part to move upward, that is, to move to the top of the slide rail, and the corresponding rotation direction is the second rotation direction. Similarly, the second rotation direction is opposite to the first rotation direction, that is, when the first rotation direction is the clockwise rotation direction, the second rotation direction is the counterclockwise rotation direction.
[0038] S203. Obtain the number of signal pulses output by the Hall sensor; Optionally, the electronic device further includes a Hall sensor, which is connected to the driving component. A magnet (or magnetic pole) is installed on the rotor of the driving component. When the magnet rotates, the magnetic field direction at the position of the Hall sensor will change. When the rotor rotates, the Hall sensor will be periodically affected by the magnetic field change and output a pulse signal. The electronic device collects the number of signal pulses output by the Hall sensor.
[0039] S204. Determine the rotation increment of the driving component based on the number of signals and the number of pulses per revolution corresponding to the driving component; In one embodiment, the number of pulses per revolution refers to the number of pulses output by the Hall sensor when the driving component rotates once (one circle). Exemplarily, the number of pulses per revolution is 2, and the electronic device collects the number of signal pulses output by the Hall sensor as 4, then the rotation increment of the driving component is determined to be 2.
[0040] The electronic device can periodically collect the number of signal pulses output by the Hall sensor, and its period should be set within a reasonable range to ensure that the rotation statistical value obtained based on the rotation increment can meet the number threshold at least once, and avoid the driving component from being blocked.
[0041] S205. When the operation status control instruction is the start control instruction, determine the sum of the initial statistical value and the rotation increment as the rotation statistical value. In one embodiment, when the received operation status control instruction is the start control instruction, control the drive assembly to rotate in the first rotation direction, drive the sliding part to move along the end of the slide rail, obtain the rotation increment when the drive assembly rotates in the first direction, and then determine the sum of the initial statistical value and the rotation increment as the rotation statistical value. Wherein, the initial statistical value is the statistical value determined based on the previous rotation increment of the drive assembly, and the determination time of the previous rotation increment is adjacent to the determination time of the currently determined rotation increment.
[0042] Exemplarily, when the initial statistical value determined based on the previous motion increment adjacent to the currently determined rotation increment is 450 and the currently determined operation increment is 2, the obtained rotation statistical value is 452.
[0043] S206. When the operation status control instruction is the stop control instruction, determine the difference between the initial statistical value and the rotation increment as the rotation statistical value, and the initial statistical value is the statistical value determined based on the previous rotation increment of the drive assembly. In one embodiment, when the received operation status control instruction is the stop control instruction, control the drive assembly to rotate in the second rotation direction, drive the sliding part to move along the top of the slide rail, obtain the rotation increment when the drive assembly rotates in the second direction, and then determine the difference between the initial statistical value and the rotation increment as the rotation statistical value.
[0044] Exemplarily, when the initial statistical value determined based on the previous motion increment adjacent to the currently determined rotation increment is 450 and the currently determined operation increment is 2, the obtained rotation statistical value is 448.
[0045] S207. When the operation status control instruction is the start control instruction and the rotation statistical value meets the first number threshold, control the drive assembly to stop running. S208. When the operation status control instruction is the stop control instruction and the rotation statistical value meets the second number threshold, control the drive assembly to stop running.
[0046] In one embodiment, corresponding number thresholds are set according to different operation status control instructions, and the number thresholds include the first number threshold and the second number threshold.
[0047] Specifically, when the operation state control instruction is a start control instruction and the rotation statistical value obtained by rotating the driving component in a rotation direction satisfies the first number threshold, it is determined that the position of the sliding part on the slide rail satisfies the electronic device to execute the start control instruction, and the driving component is controlled to stop running, that is, the driving component stops rotating in a rotation direction. Referring to the above embodiments, the first number threshold may be greater than or equal to 495 times and less than 500 times; when the operation state control instruction is a close control instruction and the rotation statistical value obtained by rotating the driving component in a second rotation direction satisfies the second number threshold, it is determined that the position of the sliding part on the slide rail satisfies the electronic device to execute the close control instruction, and the driving component is controlled to stop running, that is, to stop rotating in a rotation direction. Optionally, the first number threshold may be greater than or equal to 0 times and less than 5 times.
[0048] In the embodiment of the present application, according to different operation state control instructions, the driving component is controlled to rotate in the corresponding rotation direction to ensure that the electronic device can accurately execute the operation state control instruction; by obtaining the signal quantity of the pulse signal and the number of pulses per revolution, the rotation increment of the driving component is determined, and then based on the rotation increment and the operation state control instruction, the rotation statistical value is determined. The determination method of the rotation statistical value is associated with the operation state control instruction, which improves the accuracy of the calculated rotation statistical value; further, when the operation state control instruction is a start control instruction, the sum of the initial statistical value and the rotation increment is determined as the rotation statistical value, and when the operation state control instruction is a close control instruction, the difference between the initial statistical value and the rotation increment is determined as the rotation statistical value. According to different operation state control instructions, different methods are used to calculate the rotation statistical value, which improves the accuracy of the obtained rotation statistical value; further, by setting the corresponding number threshold according to different operation state control instructions, it can be accurately judged whether to control the driving component to stop running, effectively preventing the driving component from being blocked.
[0049] Please refer to Figure 5 , which is a schematic flowchart of a control method for a driving component provided by an embodiment of the present application. As Figure 5 shown, the method of the embodiment of the present application may include the following steps S301-step S304.
[0050] S301, in response to the threshold determination control instruction, control the driving component to rotate in the first rotation direction, and drive the sliding part to move from the top end of the slide rail to the end of the slide rail; S302, when the sliding part moves to the end of the slide rail, obtain the first rotation test value of the driving component, and determine the first number threshold based on the first rotation test value; Before the electronic device controls the driving component to drive the sliding part to move along the slide rail in response to the operation state control instruction for the electronic device, it is also necessary to determine the number threshold. Specifically, when receiving the threshold determination control instruction, it can execute the corresponding control operation to determine the number threshold corresponding to the electronic device under different operation state control instructions. The threshold determination control instruction is an instruction for determining the number threshold, which is similar to the operation state control instruction and can also be received in various ways.
[0051] Optionally, when the electronic device receives the threshold determination control instruction, it first determines the first number threshold corresponding to the start control instruction.
[0052] Specifically, control the driving component to rotate in the first rotation direction to drive the sliding part to move from the top end of the slide rail to the end of the slide rail. It can be understood that when the sliding part slides to the end of the slide rail, the sliding part cannot continue to move, the rotor of the driving component that drives the sliding part moves is mechanically stuck, and the current of the driving component rises sharply. Therefore, according to the current change of the driving component, it can be determined that the sliding part moves to the end of the slide rail. During the process of the driving component rotating in the first rotation direction to drive the sliding part to move from the top end of the slide rail to the end of the slide rail, obtain the first rotation test value of the driving component. The method of obtaining the first rotation test value of the driving component is similar to the method of determining the rotation statistical value when the operation state control instruction is the start control instruction, which will not be elaborated here. Exemplarily, when the driving component rotates in the first rotation direction to drive the sliding part to move from the top end of the slide rail to the end of the slide rail, the first rotation test value when stalling can be 500 times.
[0053] Furthermore, the determination of the first number threshold based on the first rotation test value can be: determine the first rotation compensation value corresponding to the first compensation distance, and determine the first number threshold based on the difference between the first rotation test value and the first rotation compensation value.
[0054] The first compensation distance can be the distance between the sliding part and the end of the slide rail when the position of the sliding part on the slide rail satisfies the electronic device to execute the start control instruction and the driving component will not stall when the driving component rotates in the first direction to drive the sliding part to move. The first compensation distance is set by the staff based on experience. Refer to Figure 6 , the first compensation distance can be L1. Then determine the first rotation compensation value corresponding to this first compensation distance, determine the difference between the first rotation test value and the first rotation compensation value as the lower limit value of the first number threshold, and determine the first rotation test value as the upper limit value of the first number threshold. Thus, the first number threshold can be determined.
[0055] Exemplarily, if the first rotation compensation value corresponding to L1 is 5 and the first rotation test value is 500, then it is determined that the first number threshold is greater than or equal to 495 times and less than 500 times, or the first number threshold is greater than 495 times and less than 500 times.
[0056] S303. Control the driving component to rotate in the second rotation direction, and drive the sliding part to move from the end of the slide rail to the top of the slide rail; S304. When the sliding part moves to the top of the slide rail, obtain the second rotation test value of the driving component, and determine the second number threshold based on the second rotation test value.
[0057] Optionally, after the electronic device determines the first number threshold corresponding to the start control instruction, based on the current position of the sliding part in the slide rail and the obtained first rotation test value, it further determines the second number threshold corresponding to the close control instruction.
[0058] Specifically, controlling the driving component to rotate in the second rotation direction and driving the sliding part to move from the end of the slide rail to the top of the slide rail, it can be understood that when the sliding part slides to the top of the slide rail, the sliding part will also be unable to continue moving, resulting in mechanical jamming of the rotor of the driving component that drives the sliding part to move, and the current of the driving component rising sharply. Thus, it can be determined that the sliding part has moved to the top of the slide rail according to the current change of the driving component. During the process of the driving component rotating in the second rotation direction and driving the sliding part to move from the end of the slide rail to the top of the slide rail, obtain the second rotation test value of the driving component. The method of obtaining the second rotation test value of the driving component is similar to the method of determining the rotation statistical value when the operation state control instruction is the start control instruction, and will not be elaborated here. Exemplarily, when the driving component rotates in the second rotation direction and drives the sliding part to move from the top of the slide rail to the end of the slide rail, the second rotation test value when stalling can be 0 times.
[0059] Further, the method of determining the first number threshold based on the first rotation test value can be: determining the second rotation compensation value corresponding to the second compensation distance, and determining the second number threshold based on the sum of the second rotation test value and the second rotation compensation value.
[0060] The second compensation distance can be the distance between the sliding part and the top of the slide rail when the position of the sliding part in the slide rail satisfies that the electronic device executes the close control instruction and the driving component will not stall when the driving component rotates in the second direction to drive the sliding part to move. The second compensation distance is set by the staff based on experience. Refer to Figure 6, the first compensation distance can be L2. Then, determine the second rotation compensation value corresponding to the second compensation distance, determine the upper limit value of the second number threshold as the value between the second rotation test value and the opposite number of the second rotation compensation value, and determine the second rotation test value as the lower limit value of the second number threshold. Thus, the second number threshold can be determined.
[0061] Exemplarily, if the second rotation compensation value corresponding to L1 is 5 and the second rotation test value is 0, then determine that the second number threshold is greater than 0 times and less than or equal to 5 times, or the first number threshold is greater than 0 times and less than 5 times.
[0062] In the embodiments of the present application, by responding to the threshold determination control instruction, obtaining the rotation test value when the control drive component rotates in different directions and jams, and then determining the number threshold corresponding to different operating state control instructions based on the rotation test value, it is possible to determine the number threshold corresponding to different operating state control instructions based on the actual situation, improving the accuracy of determining the number threshold corresponding to different operating state control instructions.
[0063] Please refer to Figure 7 , which provides a schematic structural diagram of an electronic device for the embodiments of the present application. As Figure 7 shown, the electronic device 500 includes a processor 501 and a memory 502. Among them, the processor 501 is electrically connected to the memory 502.
[0064] The processor 501 is the control center of the electronic device 500 and may include one or more processing cores. The processor 501 connects various parts of the entire electronic device 500 through various interfaces and lines. By running or calling the computer program stored in the memory 502 and calling the data stored in the memory 502, the processor 501 executes various functions of the electronic device 500 and processes data, thereby overall controlling the electronic device 500. Optionally, the processor 501 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), or programmable logic array (PLA). The processor 501 may integrate one or a combination of several of a CPU, a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user pages, and application programs, etc.; the GPU is responsible for rendering and drawing the display content; the modem is used to process wireless communication. It can be understood that the above modem may not be integrated into the processor 501 and may be implemented separately through a communication chip.
[0065] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, computer programs required for at least one function, etc.; the data storage area can store data created according to the use of the electronic device 500, etc.
[0066] In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
[0067] In this embodiment, the processor 501 in the electronic device 500 loads the instructions corresponding to the processes of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs the computer programs stored in the memory 502 to implement various functions as follows: In response to an operation state control instruction for the electronic device, control the driving component to drive the sliding part to move along the slide rail; Obtain the rotation statistical value when the driving component drives the sliding part to move along the slide rail; When the rotation statistical value meets the number threshold, control the driving component to stop running, and the number threshold is determined by the rotation test value when the driving component is stuck and the preset rotation compensation value for avoiding jamming.
[0068] Optionally, when the processor 501 executes the operation of controlling the driving component to drive the sliding part to move along the slide rail in response to an operation state control instruction for the electronic device, it specifically executes: When the operation state control instruction is a start control instruction, control the driving component to rotate in the first rotation direction and drive the sliding part to move along the end of the slide rail; When the operation state control instruction is a shutdown control instruction, control the driving component to rotate in the second rotation direction and drive the sliding part to move along the top of the slide rail, and the first rotation direction is opposite to the second rotation direction.
[0069] Optionally, when the processor 501 executes the operation of obtaining the rotation statistical value when the driving component drives the sliding part to move along the slide rail, it specifically executes: Obtain the number of signal pulses output by the Hall sensor; Determine the rotation increment of the driving component based on the number of signals and the number of pulses per revolution corresponding to the driving component; Determine the rotation statistical value based on the running state control instruction and the rotation increment.
[0070] Optionally, when the processor 501 executes to determine the rotation statistical value based on the running state control instruction and the rotation increment, it specifically executes: When the running state control instruction is a start control instruction, determine the sum of the initial statistical value and the rotation increment as the rotation statistical value; When the running state control instruction is a stop control instruction, determine the difference between the initial statistical value and the rotation increment as the rotation statistical value, and the initial statistical value is the statistical value determined based on the previous rotation increment of the drive assembly.
[0071] Optionally, when the processor 501 executes to control the drive assembly to stop running when the rotation statistical value meets the number threshold, it specifically executes: When the running state control instruction is a start control instruction and the rotation statistical value meets the first number threshold, control the drive assembly to stop running; When the running state control instruction is a stop control instruction and the rotation statistical value meets the second number threshold, control the drive assembly to stop running.
[0072] Optionally, before the processor 501 executes to control the drive assembly to drive the sliding part to move along the slide rail in response to the running state control instruction for the electronic device, it may also execute: In response to the threshold determination control instruction, control the drive assembly to rotate in the first rotation direction, and drive the sliding part to move from the top end of the slide rail to the end of the slide rail; When the sliding part moves to the end of the slide rail, obtain the first rotation test value of the drive assembly, and determine the first number threshold based on the first rotation test value; Control the drive assembly to rotate in the second rotation direction, and drive the sliding part to move from the end of the slide rail to the top end of the slide rail; When the sliding part moves to the top end of the slide rail, obtain the second rotation test value of the drive assembly, and determine the second number threshold based on the second rotation test value.
[0073] Optionally, when the processor 501 executes to determine the first number threshold based on the first rotation test value, it specifically executes: Determine the first rotation compensation value corresponding to the first compensation distance, and the first compensation distance is set by the staff; Determine the first number threshold based on the difference between the first rotation test value and the first rotation compensation value.
[0074] Optionally, when the processor 501 executes to determine the second number threshold based on the second rotation test value, it specifically executes: Determine the second rotation compensation value corresponding to the second compensation distance, where the second compensation distance is set by the staff; Determine the second number threshold based on the sum of the second rotation test value and the second rotation compensation value.
[0075] In the embodiment of the present application, by presetting the number threshold determined by the rotation test value when the driving component is blocked and the preset rotation compensation value for avoiding blockage, and then when the rotation statistical value of the driving component meets the number threshold, it is determined that the position of the sliding part on the slide rail meets the operation state control instruction of the electronic device, and the sliding part does not reach the limit position of the slide rail, so that the driving component will not be blocked, avoiding the damage to the electronic device caused by the stress generated when the driving component is blocked.
[0076] In the embodiment of the present application, according to different operation state control instructions, the driving component is controlled to rotate in the corresponding rotation direction to ensure that the electronic device can accurately execute the operation state control instruction; by obtaining the number of signal pulses and the number of pulses per revolution of the pulse signal, the rotation increment of the driving component is determined, and then based on the rotation increment and the operation state control instruction, the rotation statistical value is determined. The determination method of the rotation statistical value is associated with the operation state control instruction, improving the accuracy of the calculated rotation statistical value; further, when the operation state control instruction is the start control instruction, the sum of the initial statistical value and the rotation increment is determined as the rotation statistical value, and when the operation state control instruction is the shutdown control instruction, the difference between the initial statistical value and the rotation increment is determined as the rotation statistical value. According to different operation state control instructions, different methods are used to calculate the rotation statistical value, improving the accuracy of the obtained rotation statistical value; further, by setting the corresponding number threshold according to different operation state control instructions, it can be accurately judged whether to control the driving component to stop running, effectively preventing the driving component from being blocked.
[0077] In the embodiment of the present application, by responding to the threshold determination control instruction, the rotation test value when the driving component is blocked during rotation in different directions is obtained, and then based on the rotation test value, the number threshold corresponding to different operation state control instructions is determined, which can determine the number threshold corresponding to different operation state control instructions based on the actual situation, improving the accuracy of determining the number threshold corresponding to different operation state control instructions.
[0078] It should be understood that the device provided in the embodiment of the present application is used to execute the above control method of a driving component, so the same effect as the above implementation method can be achieved.
[0079] In the case of adopting an integrated unit, the device may include a processing module and a storage module. Among them, when the device is applied to an electronic device, the processing module can be used to control and manage the actions of the electronic device. The storage module can be used to support the electronic device to execute relevant program codes and the like.
[0080] Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits described in combination with the disclosure of this application. The processor can also be a combination that realizes computing functions, such as including a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory.
[0081] In addition, the device provided in the embodiments of this application can specifically be a chip, a component, or a module. The chip can include a processor and a memory connected thereto; among them, the memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a control method for a driving component provided in the above embodiments.
[0082] The embodiments of this application also provide a computer-readable storage medium. Computer program code is stored in the computer-readable storage medium. When the computer program code runs on a computer, the computer is caused to execute the above-related method steps to implement a control method for a driving component provided in the above embodiments.
[0083] The embodiments also provide a computer program product. When the computer program product runs on a computer, the computer is caused to execute the above-related steps to implement a control method for a driving component provided in the above embodiments.
[0084] Among them, the device, computer-readable storage medium, computer program product, or chip provided in the embodiments are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here.
[0085] Through the description of the above embodiments, those skilled in the art can understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0086] In the 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 merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical or other forms.
[0087] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A control method for a driving component, characterized in that, Applied to an electronic device, the electronic device includes a driving component and a transmission component, the transmission component includes a sliding part and a slide rail, the transmission component is connected to the driving component, and the method includes: In response to an operation state control instruction for the electronic device, controlling the driving component to drive the sliding part to move along the slide rail; Obtaining a rotation statistical value when the driving component drives the sliding part to move along the slide rail; When the rotation statistical value meets a number threshold, controlling the driving component to stop operating, where the number threshold is determined by a rotation test value when the driving component is stuck and a preset rotation compensation value for avoiding stuck rotation.
2. The method according to claim 1, wherein The step of, in response to an operation state control instruction for the electronic device, controlling the driving component to drive the sliding part to move along the slide rail includes: When the operation state control instruction is a start control instruction, controlling the driving component to rotate in a first rotation direction to drive the sliding part to move along the end of the slide rail; When the operation state control instruction is a shutdown control instruction, controlling the driving component to rotate in a second rotation direction to drive the sliding part to move along the top of the slide rail, where the first rotation direction is opposite to the second rotation direction.
3. The method according to claim 1, wherein The electronic device further includes a Hall sensor, and the step of obtaining a rotation statistical value when the driving component drives the sliding part to move along the slide rail includes: Obtaining the number of signal quantities of the pulse signal output by the Hall sensor; Determining a rotation increment of the driving component based on the number of signal quantities and the number of pulses per revolution corresponding to the driving component; Determining the rotation statistical value based on the operation state control instruction and the rotation increment.
4. The method according to claim 3, wherein The step of determining the rotation statistical value based on the operation state control instruction and the rotation increment includes: When the operation state control instruction is a start control instruction, determining the sum of an initial statistical value and the rotation increment as the rotation statistical value; When the operation state control instruction is a shutdown control instruction, determining the difference between the initial statistical value and the rotation increment as the rotation statistical value, where the initial statistical value is a statistical value determined based on the previous rotation increment of the driving component.
5. The method according to claim 1, characterized in that, The step of, when the rotation statistical value meets the number threshold, controlling the driving component to stop operating includes: When the operation state control instruction is a start control instruction and the rotation statistical value meets a first number threshold, controlling the driving component to stop operating; When the operation state control instruction is a shutdown control instruction and the rotation statistical value meets a second number threshold, controlling the driving component to stop operating.
6. The method according to claim 5, characterized in that, Before the step of, in response to an operation state control instruction for the electronic device, controlling the driving component to drive the sliding part to move along the slide rail, it further includes: In response to a threshold determination control instruction, controlling the driving component to rotate in a first rotation direction to drive the sliding part to move from the top of the slide rail to the end of the slide rail; When the sliding part moves to the end of the slide rail, obtain the first rotation test value of the drive assembly, and determine the first number threshold based on the first rotation test value; Control the drive assembly to rotate in the second rotation direction, and drive the sliding part to move from the end of the slide rail along the top end of the slide rail; When the sliding part moves to the top end of the slide rail, obtain the second rotation test value of the drive assembly, and determine the second number threshold based on the second rotation test value.
7. The method according to claim 6, characterized in that The determining the first number threshold based on the first rotation test value includes: Determine the first rotation compensation value corresponding to the first compensation distance, and the first compensation distance is set by the staff; Determine the first number threshold based on the difference between the first rotation test value and the first rotation compensation value.
8. The method according to claim 6, characterized in that, The determining the second number threshold based on the second rotation test value includes: Determine the second rotation compensation value corresponding to the second compensation distance, and the second compensation distance is set by the staff; Determine the second number threshold based on the sum of the second rotation test value and the second rotation compensation value.
9. An electronic device, characterized in that, The electronic device includes: A memory for storing executable program code; A processor for calling and running the executable program code from the memory, so that the electronic device executes the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Driving motor control method and device, electronic equipment and storage medium
CN115632591A
Vehicle logo control method and device and vehicle
CN117183928A
Automobile seat control method, device and equipment and storage medium
CN118124455A
Drive mechanism control method, drive mechanism, vehicle, and storage medium
CN118220008A
Refrigerant reversing valve control method and device, storage medium and equipment
CN119085182A