Control method of driving assembly, electronic device, and storage medium
By setting a number threshold to control the rotation of the drive component, the sliding part is prevented from being blocked, the problems of slide rail deformation and component gaps are solved, and the stable and safe use of electronic equipment is ensured.
Patent Information
- Application Number
- CN202510793818.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2045-06-13
AI Technical Summary
The drive assembly is prone to stalling when the sliding portion moves along the slide rail, causing deformation of the slide rail and gaps or damage to electronic equipment components, affecting the user experience.
By setting a number threshold, the drive component is controlled to stop running based on the rotation statistics of the drive component to avoid stalling. The number threshold is determined by the stall test value and the compensation value to ensure that the position of the sliding part meets the operating status control instruction and does not reach the limit position.
It effectively prevents drive components from stalling, protects slide rails and electronic equipment components, and improves stability and safety in use.
Smart Images

Figure CN120335338B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of transmission devices, and more particularly, to a control method of a driving assembly, an electronic device and a storage medium in the field of transmission devices. BACKGROUND
[0002] The transmission assembly includes a slide rail and a sliding part, which is usually connected with the driving assembly. The driving assembly drives the sliding part along the slide rail to move, thereby driving the movement of the moving part, ensuring that the electronic device can be used normally.
[0003] In the related art, whether the sliding part is slid in place is determined by whether the driving assembly is stalled when the driving assembly drives the sliding part to move along the slide rail. However, when the driving assembly is stalled, the stress on the slide rail is large, which may cause the slide rail to deform over time, resulting in a gap between the moving part and other parts of the electronic device in the closed state, and even damage the slide rail in severe cases, reducing the user experience of the electronic device. SUMMARY
[0004] The present application provides a control method of a driving assembly, an electronic device and a storage medium, which can avoid the stall of the driving assembly.
[0005] In a first aspect, a control method of a driving assembly is provided, applied to an electronic device, the electronic device including a driving assembly and a transmission assembly, the transmission assembly including a sliding part and a slide rail, the transmission assembly being connected with the driving assembly, the method including: in response to a running state control instruction for the electronic device, controlling the driving assembly to drive the sliding part to move along the slide rail; obtaining a rotation statistical value of the driving assembly when driving the sliding part to move along the slide rail; and when the rotation statistical value meets a number threshold, controlling the driving assembly to stop running, the number threshold being determined by a rotation test value when the driving assembly is stalled and a pre-set rotation compensation value for avoiding stall.
[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 one of the possible implementation manners of the first aspect.
[0007] In a third aspect, a computer program product is provided, including: computer program code, when the computer program code is run on a computer, causing the computer to execute the method in the first aspect or any one of the possible implementation manners of the first aspect.
[0008] In a fourth aspect, a computer readable storage medium is provided, which stores computer program codes. When the computer program codes are run on a computer, the computer is caused to perform the method in the first aspect or any possible implementation manner of the first aspect.
[0009] In the embodiment of the present application, the number threshold is determined by the rotation test value when the driving assembly is about to be stalled and the preset rotation compensation value for avoiding stalling. When the rotation statistical value of the driving assembly meets the number threshold, it is determined that the position of the sliding part on the slide rail meets the running state control instruction of the electronic device, and the sliding part does not reach the limit position of the slide rail, and the driving assembly will not be stalled, thereby avoiding the damage to the electronic device caused by the stress generated when the driving assembly is stalled. BRIEF DESCRIPTION OF DRAWINGS
[0010] Figure 1 is a scene schematic diagram of a control method of a driving assembly provided by the embodiment of the present application;
[0011] Figure 2 is a flow schematic diagram of a control method of a driving assembly provided by the embodiment of the present application;
[0012] Figure 3a is a structural schematic diagram of a transmission assembly provided by the embodiment of the present application;
[0013] Figure 3b is a structural schematic diagram of a transmission assembly provided by the embodiment of the present application;
[0014] Figure 4 is a flow schematic diagram of a control method of a driving assembly provided by the embodiment of the present application;
[0015] Figure 5 is a flow schematic diagram of a control method of a driving assembly provided by the embodiment of the present application;
[0016] Figure 6 is an example schematic diagram of a compensation distance provided by the embodiment of the present application;
[0017] Figure 7 is a structural schematic diagram of an electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0018] The following will clearly and thoroughly describe the technical solutions in this application in conjunction with the accompanying drawings. In the description of the embodiments of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more than two.
[0019] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0020] The transmission assembly converts the rotational power provided by the drive assembly into linear motion through mechanical transmission, thereby achieving the mobile function. This linear motion ensures that the electronic device can move smoothly and accurately, ensuring the stability and safety of the movement while ensuring the normal use of the electronic device.
[0021] In the related art, the driving component drives the sliding part of the transmission component to move along the slide rail. When the slide rail moves to a position near the end point of the slide rail, whether the sliding part has slid into place is usually judged by whether the driving component is stuck. When the driving component is stuck, the slide rail is subjected to greater stress, which will cause the slide rail to be distorted over time, resulting in a gap between the moving parts of the electronic device and other parts when the electronic device is in a closed state. In severe cases, the slide rail may even be damaged, reducing the user experience of the electronic device.
[0022] Figure 1 This is a schematic diagram of a control method for a drive component provided in an embodiment of the present application. Figure 1 In the illustrated scenario diagram, the electronic device is described by taking a lift-type range hood 10 including a transmission assembly as an example. It is understandable that in other embodiments, the electronic device may also be other types of devices including a transmission assembly, which are not enumerated here.
[0023] The lift-type range hood 10 uses a built-in transmission assembly (not shown) to extend or retract the movable assembly (fan) from the housing. When in use, the drive assembly drives the transmission assembly to extend the fan from the range hood housing, activating the fume extraction function to remove kitchen fumes. When not in use, the drive assembly drives the transmission assembly to retract the fan into the housing, preventing dust from entering the housing and damaging the fan due to exposure. This also reduces kitchen floor space and improves space utilization.
[0024] When the transmission assembly extends the fan out of the shell or retracts the fan into the shell, whether the fan is completely extended or retracted is determined by the occurrence of the stall of the driving assembly, and the stress generated when the driving assembly stalls can cause damage to the slide rail or the shell of the range hood.
[0025] Therefore, the application provides a control method of a driving assembly. When the range hood receives an operation state control instruction, the driving assembly is controlled to respond to the operation state control instruction, drive the sliding part to move along the slide rail, and obtain a rotation statistical value obtained when the driving assembly drives the sliding part to move along the slide rail. When the rotation statistical value meets a frequency threshold, the driving assembly is controlled to stop operating. The frequency threshold is determined by the rotation test value when the driving assembly stalls and a preset rotation compensation value for avoiding the stall. When the rotation statistical value of the driving assembly meets the frequency 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. The driving assembly does not stall, and the stress generated when the driving assembly stalls does not cause damage to the electronic device.
[0026] Based on the above, Figure 1 The following will be described in combination with the scenario shown in FIG. 1. Figures 2-6 The control method of the driving assembly provided in the embodiments of the application will be described in detail.
[0027] Please refer to Figure 2 A flowchart of the control method of the driving assembly provided in the embodiments of the application is shown in FIG. 2. As shown in FIG. 2, the method provided in the embodiments of the application can include the following steps S101-S103. Figure 2
[0028] S101, in response to an operation state control instruction for an electronic device, a driving assembly is controlled to drive a sliding part to move along a slide rail;
[0029] In an embodiment, the operation state control instruction is used to adjust the operation state of the electronic device, and can include a start control instruction, a shutdown control instruction, an adjustment of an operation parameter (such as temperature, speed), and the like, which needs to be completed by cooperation of the driving assembly and the transmission assembly.
[0030] For example, referring to the schematic diagram of the above scenario, when the electronic device is specifically a lift-type range hood, the fan of the range hood is housed in the housing of the range hood, which is connected to the transmission assembly. Upon receiving a start control command, the drive assembly drives the transmission assembly to extend the fan from the housing of the range hood, and activates the oil fume suction function to remove kitchen fumes; thereafter, upon receiving a shutdown control command, the drive assembly drives the transmission assembly to retract the fan into the housing. It is understandable that in the embodiments of the present application, the fan is used as an example to illustrate the mobile assembly connected to the transmission assembly. In other embodiments, the mobile assembly connected to the transmission assembly may also be other components such as lights and filters.
[0031] Specifically, the user can trigger the operation status control instruction through a physical button set on the shell 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 a touch screen, voice control, gesture recognition, etc., and then the electronic device controls the driving component to drive the sliding part to move along the slide rail after receiving the operation status control instruction.
[0032] Please refer to Figure 3a , Figure 3a This is a schematic diagram of the structure of a transmission assembly provided in an embodiment of the present application. Figure 3a The transmission assembly includes two sets of slide rails 01 arranged in parallel in the vertical direction. The sliding part 02 (pulley) is driven by the driving assembly and moves up and down between the top and the end of the slide rails in the vertical direction.
[0033] Please refer to Figure 3b , Figure 3b A schematic diagram of the structure of a transmission assembly provided in an embodiment of the present application. In another embodiment, Figure 3b The transmission assembly includes two sets of slide rails 01 arranged side by side in the horizontal direction. The sliding part 02 is driven by the driving assembly and moves left and right between the two ends of the slide rails in the horizontal direction.
[0034] It is understandable that in other embodiments, the transmission assembly may also include a single set of slide rails and a sliding part moving along the slide rails, or include multiple sets of slide rails and a sliding part moving along the slide rails, which will not be repeated here.
[0035] S102, obtaining a rotation statistic when the driving assembly drives the sliding portion to move along the slide rail;
[0036] In one embodiment, when the driving component drives the sliding part to move along the slide rail, the rotation statistics of the driving component are obtained. The rotation statistics calculate the electronic device's response to the operating status control instruction. During the period when the driving component drives the sliding part to move along the slide rail, the relative value of the number of rotations of the driving component is related to the operating status control instruction to which the electronic device responds.
[0037] Optionally, in an embodiment 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 rotation speed per unit time, and then the rotation statistical value can be determined based on the rotation increment and the operating status control instruction responded by the electronic device.
[0038] S103, when the rotation statistics value meets the number threshold, controlling the drive component to stop running, the number threshold is determined by the rotation test value when the drive component is locked and the preset rotation compensation value for avoiding the lock.
[0039] In one embodiment, the number threshold is a predetermined threshold, which is determined based on a rotation test value when the drive component is stalled and a preset compensation value for avoiding stalling of the drive component.
[0040] Reference Figure 3a After receiving the operating state control command, the drive assembly uses the driving force generated by its own rotation to drive the sliding portion from the top of the slide rail to the end of the slide rail. As the number of rotations of the drive assembly increases, the sliding portion approaches the end of the slide rail, and the rotation statistics change with the increase in the number of rotations. For example, the calculated rotation statistics are 495 times, and the preset number threshold is greater than or equal to 495 times and less than 500 times. It is determined that the rotation statistics meet the number threshold, and further, it is determined that the position of the sliding portion on the slide rail meets the conditions for the electronic device to execute the operating state control command. Within this number threshold, the drive assembly will not be blocked. The lower limit of the number threshold can be set to the position of the sliding part of the electronic device on the slide rail that meets the condition for the electronic device to execute the operation status control instruction; the upper limit of the number threshold is the rotation test value when the drive component is stuck. For example, when the rotation statistical value of the drive 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, thereby ensuring that the range hood can effectively absorb and discharge oil smoke and improve the smoking efficiency; when the rotation statistical value of the drive component meets the upper limit of the number threshold (less than 500 times), it is determined that the sliding part has not moved to the extreme position of the slide rail and the drive component will not be stuck.
[0041] In an embodiment of the present application, a number threshold value determined by a rotation test value when the drive component is stuck and a preset rotation compensation value for avoiding stalling is set in advance, and then when the rotation statistical value of the drive component meets the number threshold value, it is determined that the position of the sliding part on the slide rail meets the electronic device's execution of the operating status control instruction, and the sliding part has not reached the limit position of the slide rail, the drive component will not be stuck, thereby avoiding damage to the electronic device caused by the stress generated when the drive component is stuck.
[0042] SeeFigure 4 A flowchart of a control method of a driving assembly is provided for the embodiments of the present application. As shown in Figure 4 the method of the embodiments of the present application can include the following steps S201-S206.
[0043] S201, when the running state control instruction is a start control instruction, controlling the driving assembly to rotate in a first rotation direction, and driving the sliding part to move to the end of the slide rail;
[0044] In an embodiment, the running 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 function (e.g., a playing function, a temperature adjusting function, and an air purifying function).
[0045] When the received running state control instruction is a start control instruction, the electronic device determines to control the driving assembly to rotate in a first rotation direction. Please continue to refer to Figure 3a In the embodiments of the present application, the corresponding rotation direction of the driving assembly controlling the sliding part to move downward, i.e., to move to the end of the slide rail, is defined as the first rotation direction. Alternatively, the first rotation direction can be one of clockwise rotation or counterclockwise rotation.
[0046] S202, when the running state control instruction is a close control instruction, controlling the driving assembly to rotate in a second rotation direction, and driving the sliding part to move to the top of the slide rail;
[0047] In an embodiment, the running state control instruction is a close control instruction, which is used to close the electronic device and control the electronic device to stop executing its specific function (e.g., a playing function, a temperature adjusting function, and an air purifying function).
[0048] When the received running state control instruction is a close control instruction, the electronic device determines to control the driving assembly to rotate in a second rotation direction. Please continue to refer to Figure 3a In the embodiments of the present application, the corresponding rotation direction of the driving assembly controlling the sliding part to move upward, i.e., to move to the top of the slide rail, is defined as the second rotation direction. Similarly, the second rotation direction is opposite to the first rotation direction, i.e., when the first rotation direction is clockwise rotation, the second rotation direction is counterclockwise rotation.
[0049] S203, obtaining the signal quantity of the pulse signal output by the Hall sensor;
[0050] Optionally, the electronic device further comprises a Hall sensor connected with the driving assembly, a magnet (or a magnetic pole) is installed on the rotor of the driving assembly, the magnet changes the direction of the magnetic field at the position of the Hall sensor when rotating, when the rotor rotates, the Hall sensor is periodically subjected to the change of the magnetic field, and outputs a pulse signal, and the electronic device collects the signal quantity of the pulse signal output by the Hall sensor.
[0051] S204, determining a rotation increment of the driving assembly based on the signal quantity and a pulse number per rotation corresponding to the driving assembly;
[0052] In an embodiment, the pulse number per rotation represents the number of pulses output by the Hall sensor when the driving assembly rotates once (one revolution). For example, the pulse number per rotation is 2, the electronic device collects the signal quantity of the pulse signal output by the Hall sensor, and the signal quantity is 4, and then it is determined that the rotation increment of the driving assembly is 2.
[0053] The electronic device can periodically collect the signal quantity of the pulse signal output by the Hall sensor, and the period should be set within a reasonable range to ensure that the rotation statistical value based on the rotation increment meets the threshold value at least once, so as to avoid the driving assembly from being locked.
[0054] S205, when the running state control instruction is a start control instruction, determining that the sum of an initial statistical value and the rotation increment is a rotation statistical value;
[0055] In an embodiment, when the received running state control instruction is an open control instruction, the driving assembly is controlled to rotate in a first rotation direction, the sliding part moves along the end of the slide rail, the rotation increment of the driving assembly rotating in the first direction is obtained, and then the sum of the initial statistical value and the rotation increment is determined as the rotation statistical value. The initial statistical value is a statistical value determined based on the last rotation increment of the driving assembly, and the last rotation increment is adjacent in time to the currently determined rotation increment.
[0056] For example, the initial statistical value determined based on the last motion increment adjacent to the currently determined rotation increment is 450, the currently determined rotation increment is 2, and then the rotation statistical value is 452.
[0057] S206, when the running state control instruction is a close control instruction, determining that the difference between an initial statistical value and a rotation increment is a rotation statistical value, and the initial statistical value is a statistical value determined based on the last rotation increment of the driving assembly;
[0058] In an embodiment, when the received operation state control instruction is a closing control instruction, the driving assembly is controlled to rotate in the second rotating direction, the sliding part is driven to move along the top end of the slide rail, the rotation increment of the driving assembly when rotating in the second direction is obtained, and then the difference between the initial statistical value and the rotation increment is determined as the rotation statistical value.
[0059] For example, when the initial statistical value determined based on the last motion increment adjacent to the currently determined rotation increment is 450, and the currently determined operation increment is 2, the rotation statistical value is 448.
[0060] S207, when the operation state control instruction is a starting control instruction and the rotation statistical value meets the first number threshold, the driving assembly is controlled to stop operation.
[0061] S208, when the operation state control instruction is a closing control instruction and the rotation statistical value meets the second number threshold, the driving assembly is controlled to stop operation.
[0062] In an embodiment, according to the difference of the operation state control instruction, the corresponding number threshold is set, and the number threshold includes the first number threshold and the second number threshold.
[0063] Specifically, when the operation state control instruction is a starting control instruction and the rotation statistical value obtained by rotating the driving assembly in a rotating direction meets the first number threshold, it is determined that the position of the sliding part on the slide rail meets the execution of the starting control instruction by the electronic device, and the driving assembly is controlled to stop operation, i.e., the driving assembly stops rotating in a rotating direction. Referring to the above embodiment, the first number threshold can be greater than or equal to 495 times and less than 500 times. When the operation state control instruction is a closing control instruction and the rotation statistical value obtained by rotating the driving assembly in a second rotating direction meets the second number threshold, it is determined that the position of the sliding part on the slide rail meets the execution of the closing control instruction by the electronic device, and the driving assembly is controlled to stop operation, i.e., the driving assembly stops rotating in a rotating direction. Optionally, the first number threshold can be greater than or equal to 0 times and less than 5 times.
[0064] In the embodiment of the present application, according to the difference of the running state control instruction, the driving assembly is controlled to rotate in the corresponding rotation direction, so as to ensure that the electronic device can accurately execute the running state control instruction; the rotation increment of the driving assembly is determined by the signal quantity of the pulse signal and the number of pulses per rotation, and then the rotation statistical value is determined based on the rotation increment and the running state control instruction, and the determination manner of the rotation statistical value is associated with the running state control instruction, thereby improving the accuracy of the calculated rotation statistical value; further, when the running 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 running state control instruction is the close control instruction, the difference between the initial statistical value and the rotation increment is determined as the rotation statistical value, according to the difference of the running state control instruction, the rotation statistical value is calculated in different ways, thereby improving the accuracy of the obtained rotation statistical value; further, according to the difference of the running state control instruction, the corresponding number threshold is set, which can accurately determine whether to control the driving assembly to stop running, thereby effectively preventing the driving assembly from being locked.
[0065] Please refer to Figure 5 A flowchart of a control method of a driving assembly is provided for the embodiment of the present application. As shown in Figure 5 The method of the embodiment of the present application can include the following steps S301-S304.
[0066] S301, in response to a threshold determination control instruction, the driving assembly is controlled to rotate in a first rotation direction, and the sliding part is driven to move from the top end of the slide rail to the end of the slide rail;
[0067] S302, when the sliding part moves to the end of the slide rail, a first rotation test value of the driving assembly is obtained, and a first number threshold is determined based on the first rotation test value;
[0068] Before the electronic device controls the driving assembly to drive the sliding part to move along the slide rail in response to the running state control instruction for the electronic device, the number threshold needs to be determined, specifically, when the threshold determination control instruction is received, the corresponding control operation is performed to determine the corresponding number threshold of the electronic device under different running state control instructions, and the threshold determination control instruction is an instruction for determining the number threshold, which is similar to the running state control instruction and can also be received in multiple ways.
[0069] Optionally, when the electronic device receives the threshold determination control instruction, it first determines the first number threshold corresponding to the start control instruction.
[0070] Specifically, the control driving assembly rotates in the first rotating direction, and drives 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 assembly driving the sliding part to move is mechanically locked, and the current of the driving assembly sharply rises. Therefore, the movement of the sliding part to the end of the slide rail can be determined according to the current change of the driving assembly. In the process of rotating the driving assembly in the first rotating direction and driving the sliding part to move from the top end of the slide rail to the end of the slide rail, a first rotating test value of the driving assembly is obtained. The first rotating test value of the driving assembly is obtained in a similar manner to the determination of the rotating statistical value when the running state control instruction is the start control instruction, and will not be described here. For example, when the driving assembly rotates in the first rotating direction and drives the sliding part to move from the top end of the slide rail to the end of the slide rail, the first rotating test value when the locked-rotor occurs can be 500 times.
[0071] Further, determining the first number threshold based on the first rotating test value can be: determining a first rotating compensation value corresponding to a first compensation distance, and determining the first number threshold based on the difference between the first rotating test value and the first rotating compensation value.
[0072] The first compensation distance can be the distance between the sliding part and the end of the slide rail when the sliding part is at a position on the slide rail that satisfies the electronic device to execute the start control instruction and the driving assembly does not occur locked-rotor during the driving assembly driving the sliding part to move in the first direction. The first compensation distance is set by the worker according to experience. Referring to Figure 6 , the first compensation distance can be L1. Further, a first rotating compensation value corresponding to the first compensation distance is determined, the difference between the first rotating test value and the first rotating compensation value is determined as the lower limit value of the first number threshold, and the first rotating test value is determined as the upper limit value of the first number threshold. Therefore, the first number threshold can be determined.
[0073] For example, if the first rotating compensation value corresponding to L1 is 5 and the first rotating test value is 500, the first number threshold is determined to be 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.
[0074] S303, control the driving assembly to rotate in the second rotating direction, and drive the sliding part to move from the end of the slide rail to the top end of the slide rail.
[0075] S304, when the sliding part moves to the top end of the slide rail, a second rotating test value of the driving assembly is obtained, and a second number threshold is determined based on the second rotating test value.
[0076] Optionally, after determining the first numerical threshold corresponding to the start control instruction, the electronic device further determines a second numerical threshold corresponding to the close control instruction based on the current position of the sliding part in the slide rail and the obtained first rotation test value.
[0077] Specifically, the drive assembly is controlled to rotate in the second rotation direction, and the drive sliding part is driven to move from the end of the slide rail along the top of the slide rail. It is understandable that when the sliding part slides to the top of the slide rail, the sliding part will also be unable to continue to move, causing the rotor of the drive assembly that drives the sliding part to move to be mechanically stuck, and the current of the drive assembly to rise sharply. Therefore, it is possible to determine that the sliding part has moved to the top of the slide rail based on the current change of the drive assembly. In the process of the drive assembly rotating in the second rotation direction and driving the sliding part to move from the end of the slide rail along the top of the slide rail, the second rotation test value of the drive assembly is obtained, wherein obtaining the second rotation test value of the drive assembly is similar to the above-mentioned method of determining the rotation statistical value when the operating state control instruction is the start control instruction, and will not be repeated here. For example, the drive assembly rotates in the second rotation direction, and the drive sliding part moves from the top of the slide rail along the end of the slide rail. The second rotation test value when the stall occurs can be 0 times.
[0078] Furthermore, determining the first numerical threshold based on the first rotation test value may include: determining a second rotation compensation value corresponding to the second compensation distance, and determining the second numerical threshold based on the sum of the second rotation test value and the second rotation compensation value.
[0079] The second compensation distance can be the distance between the sliding part and the top of the slide rail when the driving component rotates in the second direction to drive the sliding part to move, the position of the sliding part on the slide rail meets the electronic device's execution of the shutdown control instruction, and the driving component does not get stuck. The second compensation distance is set by the staff based on experience, with reference to Figure 6 The first compensation distance may be L2. A second rotation compensation value corresponding to the second compensation distance is then determined. The value between the second rotation test value and the inverse of the second rotation compensation value is determined as the upper limit of the second numerical threshold. The second rotation test value is determined as the lower limit of the second numerical threshold. Thus, the second numerical threshold is determined.
[0080] For example, if the second rotation compensation value corresponding to L1 is 5 and the second rotation test value is 0, the second count threshold is determined to be greater than 0 times and less than or equal to 5 times, or the first count threshold is determined to be greater than 0 times and less than 5 times.
[0081] In the embodiment of the present application, the number threshold corresponding to the control instruction of the different operating states is determined based on the rotation test value when the driving assembly is rotated in different directions, and the number threshold corresponding to the control instruction of the different operating states is determined based on the actual situation, thereby improving the accuracy of determining the number threshold corresponding to the control instruction of the different operating states.
[0082] Please refer to Figure 7 A structural schematic diagram of an electronic device is provided for the embodiment of the present application. As shown in the figure, the electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502. Figure 7
[0083] The processor 501 is the control center of the electronic device 500, and can include one or more processing cores. The processor 501 connects various parts of the entire electronic device 500 through various interfaces and lines, executes various functions of the electronic device 500 and processes data by running or calling computer programs stored in the memory 502 and calling data stored in the memory 502, thereby overall controlling the electronic device 500. Optionally, the processor 501 can be realized in at least one of the hardware forms of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 501 can integrate one or a combination of several kinds of CPUs, Graphics Processing Units (GPUs), and modems. Among them, the CPU is mainly used to process operating systems, user pages, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 501, but can be realized by a separate communication chip.
[0084] The memory 502 can be used to store software programs and modules, and the processor 501 executes various functions and data processing by running the computer programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating systems, computer programs required by at least one function, etc.; and the data storage area can store data created according to the use of the electronic device 500, etc.
[0085] In addition, the memory 502 can include a high-speed random access memory and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state memory device. Accordingly, the memory 502 can also include a memory controller to provide the processor 501 with access to the memory 502.
[0086] In the 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 and runs the computer programs stored in the memory 502 by the processor 501 to implement various functions according to the following steps:
[0087] In response to the running state control instruction for the electronic device, the driving assembly is controlled to drive the sliding part to move along the slide rail;
[0088] The rotation statistical value when the driving assembly drives the sliding part to move along the slide rail is obtained;
[0089] When the rotation statistical value meets a number threshold, the driving assembly is controlled to stop running, and the number threshold is determined by a rotation test value when the driving assembly stalls and a rotation compensation value preset to avoid stalling.
[0090] Optionally, when the processor 501 executes the step of controlling the driving assembly to drive the sliding part to move along the slide rail in response to the running state control instruction for the electronic device, the processor 501 specifically executes:
[0091] When the running state control instruction is a start control instruction, the driving assembly is controlled to rotate in a first rotation direction to drive the sliding part to move along the end of the slide rail;
[0092] When the running state control instruction is a close control instruction, the driving assembly is controlled to rotate in a second rotation direction to drive the sliding part to move along the top end of the slide rail, and the first rotation direction is opposite to the second rotation direction.
[0093] Optionally, when the processor 501 executes the step of obtaining the rotation statistical value when the driving assembly drives the sliding part to move along the slide rail, the processor 501 specifically executes:
[0094] The signal quantity of the pulse signal output by the Hall sensor is obtained;
[0095] The rotation increment of the driving assembly is determined based on the signal quantity and the pulse number per rotation corresponding to the driving assembly;
[0096] The rotation statistical value is determined based on the running state control instruction and the rotation increment.
[0097] Optionally, when the processor 501 executes the step of determining the rotation statistical value based on the running state control instruction and the rotation increment, the processor 501 specifically executes:
[0098] In a case where the running 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;
[0099] In a case where the running state control instruction is the stop control instruction, the difference between the initial statistical value and the rotation increment is determined as the rotation statistical value, and the initial statistical value is a statistical value determined based on a previous rotation increment of the driving assembly.
[0100] Optionally, the processor 501, in execution of the control of the driving assembly to stop running in a case where the rotation statistical value meets the number threshold, specifically executes:
[0101] In a case where the running state control instruction is the start control instruction and the rotation statistical value meets a first number threshold, the driving assembly is controlled to stop running.
[0102] In a case where the running state control instruction is the stop control instruction and the rotation statistical value meets a second number threshold, the driving assembly is controlled to stop running.
[0103] Optionally, the processor 501, in execution of the control of the driving assembly to drive the sliding part to move along the slide rail in response to the running state control instruction for the electronic device, can further execute:
[0104] In response to a threshold determination control instruction, the driving assembly is controlled to rotate in a first rotation direction, and the sliding part is driven to move from the top end of the slide rail to the end of the slide rail.
[0105] When the sliding part moves to the end of the slide rail, a first rotation test value of the driving assembly is acquired, and a first number threshold is determined based on the first rotation test value.
[0106] The driving assembly is controlled to rotate in a second rotation direction, and the sliding part is driven to move from the end of the slide rail to the top end of the slide rail.
[0107] When the sliding part moves to the top end of the slide rail, a second rotation test value of the driving assembly is acquired, and a second number threshold is determined based on the second rotation test value.
[0108] Optionally, the processor 501, in execution of the determination of the first number threshold based on the first rotation test value, specifically executes:
[0109] A first rotation compensation value corresponding to a first compensation distance is determined, and the first compensation distance is set by a worker.
[0110] The first number threshold is determined based on a difference between the first rotation test value and the first rotation compensation value.
[0111] Optionally, the processor 501, in execution of the determination of the second number threshold based on the second rotation test value, specifically executes:
[0112] Determine a second rotation compensation value corresponding to a second compensation distance, where the second compensation distance is set by a staff member;
[0113] The second numerical threshold is determined based on the sum of the second rotation test value and the second rotation compensation value.
[0114] In an embodiment of the present application, a number threshold value determined by a rotation test value when the drive component is stuck and a preset rotation compensation value for avoiding stalling is set in advance, and then when the rotation statistical value of the drive component meets the number threshold value, it is determined that the position of the sliding part on the slide rail meets the electronic device's execution of the operating status control instruction, and the sliding part has not reached the limit position of the slide rail, the drive component will not be stuck, thereby avoiding damage to the electronic device caused by the stress generated when the drive component is stuck.
[0115] In an embodiment of the present application, according to different operating state control instructions, the drive component is controlled to rotate in the corresponding rotation direction to ensure that the electronic device can accurately execute the operating state control instruction; the rotation increment of the drive component is determined by obtaining the signal number of the pulse signal and the number of pulses per rotation, and then the rotation statistical value is determined based on the rotation increment and the operating state control instruction. The method for determining the rotation statistical value is associated with the operating state control instruction, which improves the accuracy of the calculated rotation statistical value; further, when the operating 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 operating state control instruction is a shutdown control instruction, the difference between the initial statistical value and the rotation increment is determined as the rotation statistical value. According to different operating state control instructions, the rotation statistical value is calculated using different methods, which improves the accuracy of the obtained rotation statistical value; further, by setting the corresponding number threshold according to different operating state control instructions, it is possible to accurately determine whether to control the drive component to stop running, effectively preventing the drive component from being blocked.
[0116] In an embodiment of the present application, the control instruction is determined in response to the threshold, and the rotation test value of the stall that occurs when the control drive component rotates in different directions is obtained, and then the number thresholds corresponding to the different operating state control instructions are determined based on the rotation test value. The number thresholds corresponding to the different operating state control instructions can be determined based on actual conditions, thereby improving the accuracy of determining the number thresholds corresponding to the different operating state control instructions.
[0117] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned control method of a drive component, and thus can achieve the same effect as the above-mentioned implementation method.
[0118] In the case of employing the integrated unit, the device can include a processing module, a storage module. Wherein, 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.
[0119] Wherein, the processing module can be a processor or a controller, which can realize or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor can also be a combination of computing functions, such as including one or more microprocessor combinations, digital signal processing (digital signal processing, DSP) and microprocessor combinations, etc. The storage module can be a memory.
[0120] In addition, the device provided by the embodiments of the present application can be a chip, an assembly or a module, the chip can include a connected processor and a memory; wherein the memory is used to store instructions, when the processor calls and executes the instructions, the chip can execute the control method of the driving assembly provided by the above embodiments.
[0121] The embodiments of the present application also provide a computer readable storage medium, the computer readable storage medium stores computer program codes, when the computer program codes run on the computer, the computer program codes make the computer execute the above related method steps to realize the control method of the driving assembly provided by the above embodiments.
[0122] The embodiments of the present application also provide a computer program product, when the computer program product runs on the computer, the computer program product makes the computer execute the above related steps to realize the control method of the driving assembly provided by the above embodiments.
[0123] Wherein, the device, the computer readable storage medium, the computer program product or the chip provided by the embodiments of the present application are used to execute the corresponding method provided above, so the beneficial effects that can be achieved are referred to the beneficial effects in the corresponding method provided above, which will not be repeated here.
[0124] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the above division of functional modules is taken as an example for illustration, in actual application, the above functions can be completed by 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.
[0125] In the embodiments of the present disclosure, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are merely schematic, and the division of the modules or units is merely a logical function division. In actual implementation, another division manner can be adopted, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or in other forms.
[0126] The above merely describes specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present disclosure, which should be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A control method of a drive assembly, characterized by, The application is applied to an electronic device, the electronic device comprising a driving assembly, a transmission assembly and a Hall sensor, the transmission assembly comprising a sliding part and a sliding rail, the transmission assembly being connected with the driving assembly; the Hall sensor being connected with the driving assembly, a magnetic piece being installed on a rotor of the driving assembly, and the Hall sensor periodically outputting a pulse signal based on a magnetic field change of the magnetic piece when the rotor rotates; The method comprises: in response to a running state control instruction for the electronic device, controlling the driving assembly to drive the sliding part to move along the sliding rail; acquiring a signal quantity of the pulse signal output by the Hall sensor; determining a rotation increment of the driving assembly based on the signal quantity and a pulse number per rotation corresponding to the driving assembly; and determining a rotation statistical value based on the running state control instruction, an initial statistical value and the rotation increment; when the rotation statistical value meets a frequency threshold value, controlling the driving assembly to stop running, the frequency threshold value being determined by a rotation test value when the driving assembly is locked and a rotation compensation value corresponding to a preset compensation distance, the compensation distance being a distance between the sliding part and an endpoint in the sliding rail that conforms to a moving direction of the sliding part when the sliding part is driven to move by the driving assembly rotating in a corresponding direction, a position of the sliding part on the sliding rail satisfying a corresponding control instruction for the electronic device and the driving assembly not being locked.
2. The method of claim 1, wherein, The response to the running state control instruction for the electronic device, the control of the driving assembly to drive the sliding part to move along the sliding rail, comprises: when the running state control instruction is a start control instruction, controlling the driving assembly to rotate in a first rotation direction to drive the sliding part to move along an end of the sliding rail; when the running state control instruction is a close control instruction, controlling the driving assembly to rotate in a second rotation direction to drive the sliding part to move along a top end of the sliding rail, the first rotation direction being opposite to the second rotation direction.
3. The method of claim 1, wherein, The determination of the rotation statistical value based on the running state control instruction, the initial statistical value and the rotation increment, comprises: when the running state control instruction is the start control instruction, determining a sum of the initial statistical value and the rotation increment as the rotation statistical value; when the running state control instruction is the close control instruction, determining a difference between the initial statistical value and the rotation increment as the rotation statistical value, the initial statistical value being a statistical value determined based on a previous rotation increment of the driving assembly.
4. The method of claim 1, wherein, The control of the driving assembly to stop running when the rotation statistical value meets the frequency threshold value, comprises: when the running state control instruction is the start control instruction and the rotation statistical value meets a first frequency threshold value, controlling the driving assembly to stop running; when the running state control instruction is the close control instruction and the rotation statistical value meets a second frequency threshold value, controlling the driving assembly to stop running.
5. The method of claim 4, wherein, The method further comprises, before the driving component is controlled to drive the sliding part to move along the slide rail in response to the operation state control instruction for the electronic device: controlling the driving component to rotate in a 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 in response to a threshold determination control instruction; acquiring a first rotation test value of the driving component when the sliding part moves to the end of the slide rail, and determining the first number threshold based on the first rotation test value; controlling the driving component to rotate in a second rotation direction to drive the sliding part to move from the end of the slide rail to the top end of the slide rail; acquiring a second rotation test value of the driving component when the sliding part moves to the top end of the slide rail, and determining the second number threshold based on the second rotation test value.
6. The method of claim 5, wherein, The method further comprises: determining a first rotation compensation value corresponding to a first compensation distance, the first compensation distance being set by a worker; determining the first number threshold based on a difference between the first rotation test value and the first rotation compensation value.
7. The method of claim 5, wherein, The method further comprises: determining a second rotation compensation value corresponding to a second compensation distance, the second compensation distance being set by the worker; determining the second number threshold based on a sum of the second rotation test value and the second rotation compensation value.
8. An electronic device, comprising: The electronic device comprises: 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 performs the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer program code, when the computer program code is executed, the method according to any one of claims 1 to 7 is realized.
Citation Information
Patent Citations
Driving motor control method and device, electronic equipment and storage medium
CN115632591A
Motor control device, motor control method, and image forming apparatus
US20140049199A1