Device driving method, device, electronic device and storage medium
By dynamically adjusting the clamping force of the smart curtain drive device, the clamping force fixation and operation in the prior art is solved, extending the equipment life and improving the user experience.
Patent Information
- Application Number
- CN202210135517.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-02-14
AI Technical Summary
The clamping force of existing smart curtain drive devices is fixed, which has poor user experience and requires auxiliary equipment to change clamping force, which is troublesome and expensive.
By obtaining the speed of the driving device motor when the curtain moves to the target position, calculating and dynamically adjusting the driving force and the holding force, the driving device drive curtain moves on the load bearing device, and adjusting the holding force according to the rotation speed.
It extends the service life of the drive equipment, simplifies operation, avoids the need to use high-cost auxiliary equipment, and improves the user experience.
Smart Images

Figure CN114625182B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a device driving method, apparatus, electronic device and storage medium. Background Art
[0002] With the development of science and technology, the application of smart curtain companions is becoming more and more extensive. At present, the curtain can be moved by a driving device, but the holding force between the driving device and the curtain rod is always fixed, and the user experience is poor. Summary of the invention
[0003] In view of the above problems, the present application proposes a device driving method, apparatus, electronic device and storage medium to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a device driving method, the method comprising: acquiring the collected rotational speed of a motor of a driving device when the curtain moves to a target position, wherein the driving device is used to drive the curtain to move on a carrying device; based on the rotational speed, obtaining a driving force of the driving device when the curtain moves to the target position; based on the driving force, obtaining a target clamping force between the driving device and the carrying device; and controlling the driving device to drive the curtain to move on the carrying device based on the target clamping force.
[0005] In a second aspect, an embodiment of the present application provides a device driving apparatus, the apparatus comprising: a rotational speed acquisition module, for acquiring the rotational speed of a motor of a driving device when the curtain moves to a target position, wherein the driving device is used to drive the curtain to move on a carrying device; a driving force acquisition module, for obtaining the driving force of the driving device at the target position based on the rotational speed; a target clamping force acquisition module, for obtaining a target clamping force between the driving device and the carrying device based on the driving force; and a curtain driving module, for controlling the driving device to drive the curtain to move on the carrying device based on the target clamping force.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
[0008] The device driving method, device, electronic device and storage medium provided in the embodiments of the present application obtain the collected rotation speed of the motor of the driving device when the curtain moves to the target position, wherein the driving device is used to drive the curtain to move on the bearing device, and based on the rotation speed, obtain the driving force of the driving device when the curtain moves to the target position, and based on the driving force, obtain the target clamping force between the driving device and the bearing device, and control the driving device to drive the curtain to move on the bearing device based on the target clamping force. In this way, the target clamping force can be dynamically adjusted according to the rotation speed of the motor of the driving device, and the driving device can be controlled to drive the curtain to move on the bearing device according to the clamping force, which can extend the service life of the driving device, and the clamping force can be changed without other auxiliary equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0010] Figure 1 A schematic diagram of a process flow of a device driving method provided in an embodiment of the present application is shown;
[0011] Figure 2 A schematic diagram of a first scenario of a device driving method provided in an embodiment of the present application is shown;
[0012] Figure 3 A second scenario schematic diagram of the device driving method provided in an embodiment of the present application is shown;
[0013] Figure 4 A schematic diagram of a device driving method provided by an embodiment of the present application is shown;
[0014] Figure 5 A module block diagram of a device driver provided by an embodiment of the present application is shown;
[0015] Figure 6 A block diagram of an electronic device according to an embodiment of the present application for executing a device driving method according to an embodiment of the present application is shown;
[0016] Figure 7 A storage unit for storing or carrying program codes for implementing a device driving method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0018] At present, the clamping force of the driving device in the smart curtain companion can be controlled and changed, but other auxiliary equipment is still needed to change the clamping force of the driving device in the smart curtain companion. For example, the curtain is weighed by a weighing device, and the clamping force of the driving device is set according to the weight of the curtain, so that the driving device drives the curtain to move on the supporting device with the clamping force. However, the weighing device is cumbersome to operate, resulting in a poor user experience. For another example, a thrust sensor is used to monitor the resistance encountered by the driving device, and the clamping force is set according to the resistance encountered, so that the driving device drives the curtain to move on the supporting device with the clamping force. However, the mechanical structure of the thrust sensor has a high assembly cost.
[0019] In view of the above problems, the inventors have discovered after long-term research and proposed the curtain method, device, server and storage medium provided in the embodiments of the present application. The driving device can obtain driving force according to the rotation speed of the motor of the driving device when the curtain moves to the target position, and use the target clamping force to drive the curtain to move on the bearing device, so that the hanging ring of the driving device can be used for a longer time, and no auxiliary equipment with high cost and troublesome operation is required. Among them, the specific device driving method is described in detail in the subsequent embodiments.
[0020] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a device driving method provided by an embodiment of the present application. In a specific embodiment, the device driving method is applied to Figure 5 The device driver 300 and the electronic device 100 equipped with the device driver 300 are shown in FIG. Figure 6 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Figure 1 The process shown is described in detail, and the device driving method may specifically include the following steps:
[0021] Step S110: Acquire the collected rotation speed of the motor of the driving device when the curtain moves to the target position, wherein the driving device is used to drive the curtain to move on the carrying device.
[0022] In some embodiments, the device driving method can be executed by a driving device. Then the driving device can obtain the rotation speed of its motor when the curtain moves to the target position. It should be noted that the target position refers to the position where the curtain is subjected to the greatest resistance, that is, the position when the curtain is fully tightened. It should be noted that the bearing device can include devices such as curtain rods and curtain slides, which are not limited here.
[0023] In some embodiments, the driving device may include a Hall sensor, so the rotation speed of the motor of the driving device collected by the Hall sensor when the curtain moves to the target position can be obtained.
[0024] In some embodiments, the device driving method can be executed by an electronic device. Then the electronic device can obtain the speed of the motor of the driving device when the curtain moves to the target position. Figure 2 , Figure 2 The first scenario schematic diagram of the device driving method provided in the embodiment of the present application is shown. Among them, the electronic device 100 can be connected to the driving device 200 via Bluetooth, WIFI, ZigBee to realize data interaction between the electronic device 100 and the driving device 200. Based on the connection with the driving device 200, the electronic device 100 can obtain the speed of the motor of the driving device 200 when the resistance to the curtain is the largest. Among them, the electronic device 100 may include electronic devices such as smart phones, tablet computers, and smart bracelets, which are not limited here.
[0025] See also Figure 3 , Figure 3 A second scenario schematic diagram of the device driving method provided in the embodiment of the present application is shown. Figure 2 As shown, the driving device 200 can drive the curtain 210 to move on the curtain rod 220 .
[0026] The electronic device is used as an example for explanation. In some embodiments, the electronic device can control the driving device so that the driving device obtains the rotation speed of the motor of the driving device when the curtain moves to the target position. The electronic device can also detect the driving device, and when it is detected that the driving device drives the curtain to move, obtain the rotation speed of the driving device in the process of driving the curtain to move, and determine the rotation speed of the motor of the driving device when the curtain moves to the target position according to the change in the rotation speed.
[0027] In some embodiments, when the driving device drives the curtain to move on the carrying device, the electronic device can obtain the rotation speed of the motor of the driving device when the curtain moves to the preset end position, and determine the rotation speed of the motor of the driving device when the curtain moves to the preset end position as the rotation speed of the motor of the driving device when the resistance to the curtain is the largest. As one way, when the driving device drives the curtain to move on the curtain rod, the electronic device can obtain the rotation speed of the motor of the driving device in real time, and then determine the rotation speed of the motor of the driving device when the curtain moves to the preset end position according to the change in the rotation speed. As another way, when the driving device drives the curtain to move on the carrying device, the electronic device can detect whether the curtain moves to the preset end position, and when it is determined that the curtain moves to the preset end position, the electronic device can detect the rotation speed of the motor of the driving device at this time, and determine the rotation speed of the driving device at this time as the rotation speed when the curtain moves to the target position.
[0028] It should be noted that if the driving device needs to drive the curtain to move on the carrying device, the maximum driving force of the driving device must be greater than or equal to the maximum resistance of the curtain, that is, the formula F 驱(max) ≥F 帘(max) , where F 驱(max) Expressed as the maximum driving force of the driving device, F 帘(max) It is expressed as the maximum resistance of the curtain. When the driving device is running, it needs to satisfy that the driving force of the driving device is slightly greater than the maximum resistance of the curtain. If the driving force of the driving device is too much greater than the maximum resistance of the curtain, the hanging ring of the driving device will be easily damaged; if the driving force of the driving device is not greater than the maximum resistance of the curtain, it will lead to the failure of the driving device to drive the curtain to move. Therefore, the maximum resistance F of the curtain can be obtained. 帘(max) Then adjust the maximum driving force F of the driving device according to the maximum resistance of the curtain. 帘(max) For example, if the driving force of the driving device is greater than 1.5 times the maximum resistance of the curtain, it is considered that the driving force of the driving device is too much greater than the maximum resistance of the curtain; if the driving force of the driving device is greater than the maximum resistance of the curtain and less than 1.5 times the resistance of the curtain, it is considered that the driving force of the driving device is slightly greater than the maximum resistance of the curtain.
[0029] For normal curtain driving, as the curtain is squeezed, the driven curtain becomes heavier and heavier. Therefore, when the curtain is fully tightened, the curtain resistance will reach the maximum value. Therefore, the driving force of the driving device only needs to meet the value of the maximum resistance of the curtain to achieve the control of the opening and closing of the curtain. When the curtain is just started to be driven, the resistance of the curtain is zero. The driving device needs to overcome some other resistances such as gear boxes to drive the curtain to move on the bearing device; when the curtain is fully tightened, the resistance of the curtain can reach the maximum value. Therefore, the driving force of the motor of the driving device when the curtain is fully tightened can be used to replace the maximum resistance of the curtain, which can be expressed as formula F 驱 =F 帘(max) =k 环 m 帘 g, where F 驱 It is expressed as the driving force of the driving device when the resistance of the curtain is the largest, F 帘(max) Expressed as the maximum resistance of the curtain, k 环 Expressed as the friction coefficient of the hanging ring, m 帘 is represented by the weight of the curtain and g is represented by the earth's gravity.
[0030] According to formula F 驱 =F 帘(max) =k 环 m 帘 g tells us k 环 The friction coefficient represented by the hanging ring and g represented by the earth's gravity are fixed values. There is a unique corresponding relationship between the weight of the curtain and the driving force of the motor of the driving device when the resistance encountered by the curtain is the largest. Because the driving force of the motor of the driving device when the resistance encountered by the curtain is the largest can be obtained according to the rotation speed of the motor of the driving device when the resistance encountered by the curtain is the largest, the rotation speed of the motor of the driving device when the resistance encountered by the curtain is the largest is obtained.
[0031] Step S120: Based on the rotation speed, obtaining the driving force of the driving device when the curtain moves to the target position.
[0032] In this embodiment, the electronic device can obtain the driving force of the driving device when the curtain moves to the target position according to the rotation speed of the motor of the driving device when the curtain moves to the target position.
[0033] In some implementations, the torque of the driving device when the curtain moves to the target position is obtained based on the rotational speed of the driving device when the curtain moves to the target position, and the driving force of the driving device when the curtain moves to the target position is obtained based on the torque.
[0034] In some embodiments, the algorithm T=F 驱 × 驱 ,algorithm Using algorithm T = IBL1L2, we can derive the algorithm And according to the algorithm The speed is calculated to obtain the driving force of the driving device when the curtain moves to the target position. It can be understood that in the formula In the formula, except for the speed of the motor of the driving device when the curtain moves to the target position, the other variables are fixed values. Therefore, the speed can be calculated according to the formula to obtain the driving force of the driving device when the curtain moves to the target position. 驱 represents the driving force of the driving device when the curtain moves to the target position, U represents the power supply voltage of the motor, L1 represents the armature length of the internal coil of the motor, L2 represents the armature radius of the internal coil of the motor, B represents the magnetic flux passing through the coil inside the motor, r (驱) It is represented by the radius of the driving wheel, R is represented by the equivalent coil winding of the motor, and n is represented by the speed of the motor of the driving device when the curtain moves to the target position.
[0035] In some embodiments, the algorithm may be used A mapping relationship between the rotation speed and the driving force of the driving device when the curtain moves to the target position is established. As one method, a memory may be provided in the driving device, so that the mapping relationship between the rotation speed and the driving force of the driving device when the curtain moves to the target position can be stored in the driving device. According to the rotation speed of the driving device when the curtain moves to the target position, the driving force corresponding to the rotation speed is searched in the mapping relationship to obtain the driving force of the driving device when the curtain moves to the target position. As another method, the mapping relationship between the rotation speed and the driving force of the driving device when the curtain moves to the target position can be stored in the electronic device. According to the rotation speed of the driving device when the curtain moves to the target position, the driving force corresponding to the rotation speed is searched in the mapping relationship to obtain the driving force of the driving device when the curtain moves to the target position. The calculation time of the driving device and / or the electronic device can be reduced, while improving the user experience.
[0036] Step S130: Based on the driving force, a target clamping force between the driving device and the carrying device is obtained.
[0037] In this embodiment, the target clamping force between the driving device and the carrying device can be obtained according to the driving force of the driving device when the curtain moves to the target position. The carrying device may include a curtain rod and a curtain slide, etc., which are not limited here.
[0038] In some embodiments, the The driving force and the weight of the driving device are calculated to obtain the target clamping force between the driving device and the load-bearing device, where F 驱It is represented as the driving force of the driving device when the curtain moves to the target position, F 压 Expressed as the target clamping force between the drive device and the carrier, k 轮 Expressed as the friction coefficient of the driving wheel, k 环 Expressed as the friction coefficient of the hanging ring, m 机 It is expressed as the weight of the driving device and g is the earth's gravity.
[0039] Step S140: controlling the driving device to drive the curtain to move on the supporting device based on the target clamping force.
[0040] In some embodiments, the driving device can be controlled to drive the curtain to move on the carrying device with a target holding force. As a method, the electronic device can obtain the rotation speed of the motor of the driving device when the curtain moves to the target position, calculate, obtain the minimum holding force, send the minimum holding force to the driving device, and control the driving device to drive the curtain to move on the carrying device according to the minimum holding force.
[0041] In some embodiments, the electronic device can store the target holding force, and the electronic device can also control the driving device to store the calculated target holding force. It is understandable that when the target holding force calculated according to the rotational speed is stored, the target holding force can be used directly during the next operation, without calculating the rotational speed of the motor of the driving device when the curtain moves to the target position. When it is detected that the rotational speed of the motor of the driving device changes when the curtain moves to the target position, the rotational speed of the motor of the new driving device when the curtain moves to the target position is calculated to obtain a new target holding force, and the target holding force is stored. In this way, when a new curtain is replaced, the target holding force can be adaptively changed.
[0042] In some embodiments, there is a corresponding relationship between the curtain weight, rotation speed and target holding force. As a method, a mapping relationship between the rotation speed and the target holding force can be established. The mapping relationship between the rotation speed and the target holding force can be stored in the driving device. According to the obtained rotation speed, the target holding force corresponding to the rotation speed is searched in the mapping relationship, and the driving device is controlled to drive the curtain to move on the supporting device with the target holding force.
[0043] In some embodiments, when the driving device starts, the curtain is driven to move on the supporting device according to a preset clamping force. When the target position is reached, the rotational speed of the motor of the driving device when the curtain moves to the target position is detected by a Hall sensor, and then calculation is performed to obtain the target clamping force between the driving device and the supporting device, thereby dynamically adjusting the target clamping force, and then fine-tuning the target clamping force according to the real-time rotational speed of the motor of the driving device when the curtain moves to the target position, so that the target clamping force is more accurate.
[0044] An embodiment of the present application provides a device driving method, which obtains the collected rotation speed of the motor of the driving device when the curtain moves to the target position, wherein the driving device is used to drive the curtain to move on the bearing device, and based on the rotation speed, obtains the driving force of the driving device when the curtain moves to the target position, and based on the driving force, obtains the target clamping force between the driving device and the bearing device, and controls the driving device to drive the curtain to move on the bearing device based on the target clamping force. In this way, the target clamping force can be dynamically adjusted according to the rotation speed of the motor of the driving device, and the driving device is controlled to drive the curtain to move on the bearing device according to the clamping force, which can extend the service life of the driving device, and the clamping force can be changed without other auxiliary equipment.
[0045] See also Figure 4 , Figure 4 The flowchart of the device driving method provided by an embodiment of the present application is shown. In a specific embodiment, the driving device includes a driving wheel, the driving wheel is used to drive the curtain to move on the carrying device, and the driving device is hung on the carrying device through a hanging ring. Figure 4 The process shown is described in detail, and the device driving method may specifically include the following steps:
[0046] Step S210: when the driving device drives the curtain to move on the carrying device, the collected rotation speed of the motor of the driving device when the curtain moves to a preset end position is obtained.
[0047] In this embodiment, when the driving device drives the curtain to move on the carrying device, the electronic device can obtain the rotation speed of the motor of the driving device when the curtain moves to the preset end position. The electronic device can also detect the driving device, and when it is detected that the driving device drives the curtain to move, obtain the rotation speed of the driving device in the process of driving the curtain to move, and determine the rotation speed of the motor of the driving device when the resistance to the curtain is the largest according to the change in the rotation speed. It should be noted that the preset end point means that the current will suddenly increase when encountering the maximum resistance to the curtain, and then after monitoring the characteristic of the sudden increase in current, it is considered that the driving device drives the curtain to move to the fully tightened state of the curtain.
[0048] In some embodiments, when the driving device drives the curtain to move on the supporting device, the electronic device can obtain the rotation speed of the motor of the driving device in real time, and then determine the rotation speed of the motor of the driving device when the curtain moves to a preset end position based on the change in the rotation speed.
[0049] In some embodiments, when the driving device drives the curtain to move on the supporting device, the electronic device can detect whether the curtain moves to the preset end position. When it is determined that the curtain moves to the preset end position, the rotational speed of the motor of the driving device at this time can be detected, and the rotational speed of the driving device at this time can be determined as the rotational speed of the motor of the driving device when the curtain moves to the preset end position.
[0050] Step S220: Determine the rotation speed of the motor of the driving device when the curtain moves to the preset terminal position as the rotation speed of the motor of the driving device when the curtain moves to the target position.
[0051] In this embodiment, the resistance provided by the curtain is the largest at the preset end point, and at this time the driving force of the driving device is equal to the resistance of the curtain. Therefore, the speed of the motor of the driving device when the curtain moves to the preset end point is determined as the speed of the motor of the driving device when the curtain moves to the target position.
[0052] Step S230: Based on the rotation speed, obtaining the torque of the driving device when the curtain moves to the target position.
[0053] In this embodiment, the torque of the driving device when the curtain moves to the target position can be obtained according to the rotation speed of the driving device when the curtain moves to the target position.
[0054] In some embodiments, the The rotation speed is calculated to obtain the torque of the driving device when the curtain moves to the target position, wherein T represents the torque of the driving device when the curtain moves to the target position, P represents the effective power of the motor of the driving device, and n represents the rotation speed.
[0055] In some embodiments, there is a corresponding relationship between the rotation speed of the driving device when the curtain moves to the target position and the torque of the driving device when the curtain moves to the target position. As one way, a mapping relationship between the rotation speed and the torque can be established, and the mapping relationship between the rotation speed and the torque can be stored in the driving device. According to the rotation speed of the driving device when the curtain moves to the target position, the torque corresponding to the rotation speed is searched in the mapping relationship, and the torque is determined to be the torque of the driving device when the curtain moves to the target position. As another way, the mapping relationship between the rotation speed and the torque can be stored in the electronic device. According to the rotation speed of the driving device when the curtain moves to the target position, the torque corresponding to the rotation speed is searched in the mapping relationship, and the torque is determined to be the torque of the driving device when the curtain moves to the target position.
[0056] Step S240: Based on the torque, obtaining the driving force of the driving device when the curtain moves to the target position.
[0057] In this embodiment, the driving force of the driving device when the curtain moves to the target position can be obtained according to the torque of the driving device when the curtain moves to the target position.
[0058] In some embodiments, the The torque of the driving device when the curtain moves to the target position is calculated to obtain the driving force of the driving device when the curtain moves to the target position, where F 驱 It is represented by the driving force of the driving device when the curtain moves to the target position, T is represented by the torque of the driving device when the curtain moves to the target position, and r (驱) Expressed as the radius of the driving wheel.
[0059] In some embodiments, there is a corresponding relationship between the torque of the driving device when the curtain moves to the target position and the driving force of the driving device when the curtain moves to the target position. As a way to establish a mapping relationship between torque and driving force, a memory may be provided in the driving device, so that the mapping relationship between torque and driving force can be stored in the driving device, and the driving force corresponding to the torque is found in the mapping relationship according to the torque of the driving device when the curtain moves to the target position, and the driving force is determined to be the driving force of the driving device when the curtain moves to the target position. As another way, the mapping relationship between torque and driving force can be stored in the electronic device, and the driving force corresponding to the torque is found in the mapping relationship according to the torque of the driving device when the curtain moves to the target position, and the driving force is determined to be the driving force of the driving device when the curtain moves to the target position. The calculation time of the driving device and / or the electronic device can be reduced, while improving the user experience.
[0060] Step S250: Obtain the weight of the driving device.
[0061] In this embodiment, the electronic device can obtain the weight of the driving device. As one way, the weight of the driving device can be obtained in advance. As another way, the driving device includes a weighing device, the driving device detects its own weight, and the electronic device obtains the weight of the driving device.
[0062] Step S260: Based on the driving force and the weight of the driving device, a target clamping force between the driving device and the carrying device is obtained.
[0063] In some embodiments, the condition for the normal operation of the driving device is that the maximum driving force of the driving device is greater than the maximum resistance of the curtain, that is, F 驱(max) ≥F 帘(max) , F 驱(max) =(k 轮 -k 环 )(F 压 -m 机 g) and Bring in this condition, that is And when the maximum driving force of the driving device is equal to the maximum resistance of the curtain, the target holding force required by the driving device can be obtained. Therefore, when the maximum driving force of the driving device is equal to the maximum resistance of the curtain, the relationship between the rotation speed and the target holding force can be obtained as follows: Among them, F 压 Expressed as the target clamping force between the drive device and the carrier, m 机 It is represented by the weight of the driving device, g is represented by the earth's gravity, U is represented by the supply voltage of the motor, L1 is represented by the armature length of the internal coil of the motor, L2 is represented by the armature radius of the internal coil of the motor, B is represented by the magnetic flux passing through the coil inside the motor, and k 轮 Expressed as the friction coefficient of the driving wheel, k 环 Expressed as the friction coefficient of the hanging ring, r (驱) It is represented by the radius of the driving wheel, R is represented by the equivalent coil winding of the motor, and n is represented by the rotation speed of the driving device when the curtain moves to the target position.
[0064] In some embodiments, the The driving force of the driving device when the curtain moves to the target position and the weight of the driving device are calculated to obtain the target clamping force between the driving device and the load-bearing device, where F 驱 It is represented as the driving force of the driving device when the curtain moves to the target position, F 压 Expressed as the target clamping force between the drive device and the carrier, k 轮 Expressed as the friction coefficient of the driving wheel, k 环 Expressed as the friction coefficient of the hanging ring, m 机 It is expressed as the weight of the driving device and g is the earth's gravity.
[0065] In some embodiments, a mapping relationship between the driving force, the weight of the driving device, and the target holding force may be provided in the driving device as a method, so that the mapping relationship between the driving force, the weight of the driving device, and the target holding force may be stored in the driving device. According to the driving force of the driving device when the curtain is moved to the target position, the target holding force corresponding to the driving force is searched in the mapping relationship, the target holding force between the driving device and the bearing device is obtained, and the driving device is controlled to drive the curtain to move according to the target holding force. As another method, the mapping relationship between the driving force, the weight of the driving device, and the target holding force may be stored in the electronic device. According to the driving force of the driving device when the curtain is moved to the target position, the target holding force corresponding to the driving force is searched in the mapping relationship, the target holding force between the driving device and the bearing device is obtained, and the driving device is controlled to drive the curtain to move according to the target holding force. The calculation time of the driving device and / or the electronic device can be reduced, while improving the user experience.
[0066] Step S270: controlling the driving device to drive the curtain to move on the supporting device based on the target clamping force.
[0067] For the detailed description of step S270, please refer to step S140, which will not be repeated here.
[0068] Compared with the device driving method provided by an embodiment of the present application, Figure 1 The device driving method shown can also obtain the torque of the driving device when the curtain moves to the target position according to the rotational speed, obtain the driving force of the driving device when the curtain moves to the target position according to the torque of the driving device when the curtain moves to the target position, and then obtain the target holding force between the driving device and the supporting device according to the driving force of the driving device when the curtain moves to the target position, thereby realizing dynamic adjustment of the target holding force according to the rotational speed of the motor of the driving device, and controlling the driving device to drive the curtain to move on the supporting device according to the holding force, which can extend the service life of the driving device, and obtaining the driving force of the driving device when the resistance encountered by the curtain is the largest is equivalent to obtaining the weight of the curtain, and the target holding force can be set according to the driving force, which is simple to operate and improves user experience.
[0069] See also Figure 5 , Figure 5 The module block diagram of the curtain driving device provided by the embodiment of the present application is shown. The curtain driving device 300 is applied to the above electronic equipment. Figure 5 The block diagram shown in FIG. 1 is used to illustrate that the curtain driving device 300 includes: a rotation speed acquisition module 310, a minimum holding force acquisition module 320 and a curtain driving module 330, wherein:
[0070] The rotation speed acquisition module 310 is used to acquire the rotation speed of the motor of the driving device when the curtain moves to the target position, wherein the driving device is used to drive the curtain to move on the carrying device.
[0071] Furthermore, the speed acquisition module 310 includes: a Hall sensor acquisition submodule, wherein:
[0072] The Hall sensor acquisition submodule is used to obtain the rotation speed of the motor of the driving device acquired by the Hall sensor when the curtain moves to the target position.
[0073] Furthermore, the speed acquisition module 310 includes: a first speed acquisition submodule and a second speed acquisition submodule, wherein:
[0074] The first speed acquisition submodule is used for acquiring the speed of the motor of the driving device when the curtain moves to a preset end position when the driving device drives the curtain to move on the carrying device.
[0075] The second speed acquisition submodule is used to determine the speed of the motor of the driving device when the curtain moves to a preset end position as the speed of the motor of the driving device when the curtain moves to a target position.
[0076] The driving force acquisition module 320 is used to obtain the driving force of the driving device when it is at the target position based on the rotation speed.
[0077] Furthermore, the driving force acquisition module 320 includes: a torque acquisition submodule and a first driving force acquisition submodule, wherein:
[0078] The torque acquisition submodule is used to obtain the torque of the driving device when the curtain moves to the target position based on the rotation speed.
[0079] The first driving force obtaining submodule is configured to obtain, based on the torque, the driving force of the driving device when the curtain moves to the target position.
[0080] Furthermore, the driving force acquisition module 320 further includes: a second driving force acquisition submodule, wherein:
[0081] The second driving force acquisition submodule is used to obtain the The rotation speed is calculated to obtain the driving force of the driving device when the curtain moves to the target position, wherein F 驱represents the driving force of the driving device when the curtain moves to the target position, U represents the power supply voltage of the motor, L1 represents the armature length of the internal coil of the motor, L2 represents the armature radius of the internal coil of the motor, B represents the magnetic flux passing through the coil inside the motor, r (驱) represents the radius of the driving wheel, R represents the equivalent coil winding of the motor, and n represents the rotational speed of the motor of the driving device when the curtain moves to the target position.
[0082] The target clamping force acquisition module 330 is used to obtain a target clamping force between the driving device and the carrying device based on the driving force.
[0083] Furthermore, the target holding force acquisition module 330 includes: a driving device acquisition submodule and a first target holding force acquisition submodule, wherein:
[0084] The driving device acquisition submodule is used to acquire the weight of the driving device.
[0085] The first target clamping force obtaining submodule is used to obtain a target clamping force between the driving device and the carrying device based on the driving force and the weight of the driving device.
[0086] Furthermore, the first target holding force obtaining submodule includes: a second target holding force obtaining unit, wherein:
[0087] The second target holding force obtaining unit is used to obtain the target holding force based on The driving force and the weight of the driving device are calculated to obtain the target clamping force between the driving device and the carrying device, where F 驱 Characterizes the driving force of the driving device when the curtain moves to the target position, F 压 Characterizes the target clamping force between the drive device and the carrier, k 轮 Characterizes the friction coefficient of the driving wheel, k 环 Characterize the friction coefficient of the hanging ring, m 机 represents the weight of the driving device, and g represents the earth's gravity.
[0088] The curtain driving module 340 is used to control the driving device to drive the curtain to move on the carrying device based on the target clamping force.
[0089] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0090] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0091] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0092] See also Figure 6 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0093] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0094] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the electronic device 100 during use (such as a phone book, audio and video data, chat record data), etc.
[0095] See also Figure 7 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 400 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0096] The computer readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 410 can be compressed, for example, in an appropriate form.
[0097] In summary, the device driving method, device, electronic device, and storage medium provided in the embodiments of the present application obtain the collected rotation speed of the motor of the driving device when the curtain moves to the target position, wherein the driving device is used to drive the curtain to move on the carrying device, and based on the rotation speed, obtain the driving force of the driving device when the curtain moves to the target position, and based on the driving force, obtain the target clamping force between the driving device and the carrying device, and control the driving device to drive the curtain to move on the carrying device based on the target clamping force. In this way, the target clamping force can be dynamically adjusted according to the rotation speed of the motor of the driving device, and the driving device can be controlled to drive the curtain to move on the carrying device according to the clamping force, which can extend the service life of the driving device, and the clamping force can be changed without other auxiliary equipment.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A device driving method, characterized in that: The method comprises: Acquire the collected rotation speed of the motor of the driving device when the curtain moves to the target position, wherein the driving device is used to drive the curtain to move on the carrying device; Based on the rotation speed, obtaining a driving force of the driving device when the curtain moves to the target position; Based on the driving force and the weight of the driving device, obtaining a target clamping force between the driving device and the carrying device; The driving device is controlled to drive the curtain to move on the carrying device based on the target clamping force.
2. The method according to claim 1, characterized in that: The acquiring the collected rotation speed of the motor of the driving device when the curtain moves to the target position includes: When the driving device drives the curtain to move on the carrying device, the collected rotation speed of the motor of the driving device when the curtain moves to a preset end position is obtained; The rotation speed of the motor of the driving device when the curtain moves to a preset terminal position is determined as the rotation speed of the motor of the driving device when the curtain moves to a target position.
3. The method according to claim 1, characterized in that The obtaining, based on the rotation speed, the driving force of the driving device when the curtain moves to the target position comprises: Based on the rotation speed, obtaining the torque of the driving device when the curtain moves to the target position; Based on the torque, a driving force of the driving device when the curtain moves to the target position is obtained.
4. The method according to claim 1, characterized in that: Based on the rotation speed, the driving force of the driving device when the curtain moves to the target position is obtained, and the calculation formula of the driving force is: ,in, represents the driving force of the driving device when the curtain moves to the target position, U represents the power supply voltage of the motor, Characterizes the armature length of the internal coil of the motor, represents the armature radius of the internal coil of the motor, B represents the magnetic flux passing through the coil inside the motor, represents the radius of the driving wheel, R represents the equivalent coil winding of the motor, and n represents the rotational speed of the motor of the driving device when the curtain moves to the target position.
5. The method according to claim 1, characterized in that The driving device comprises a driving wheel, and the driving wheel is used to drive the curtain to move on the carrying device. The driving device is hung on the carrying device through a hanging ring. Based on the driving force and the weight of the driving device, a target clamping force between the driving device and the carrying device is obtained. The calculation formula of the target clamping force is: ,in, characterizes the driving force of the driving device when the curtain moves to the target position, Characterizes the target holding force between the drive device and the carrier, Characterizes the friction coefficient of the driving wheel, Characterizing the friction coefficient of the hanging ring, Characterizes the weight of the drive equipment, Characterizes the Earth's gravity.
6. The method according to any one of claims 1 to 5, characterized in that: The driving device includes a Hall sensor, and the acquisition of the collected rotation speed of the motor of the driving device when the curtain moves to the target position includes: The rotation speed of the motor of the driving device when the curtain moves to the target position is acquired by the Hall sensor.
7. A curtain driving device, characterized in that: The device comprises: A rotation speed acquisition module, used to acquire the rotation speed of the motor of the driving device when the curtain moves to the target position, wherein the driving device is used to drive the curtain to move on the carrying device; A driving force acquisition module, used for acquiring the driving force of the driving device at the target position based on the rotation speed; a target holding force acquisition module, configured to obtain a target holding force between the driving device and the carrying device based on the driving force and the weight of the driving device; The curtain driving module is used to control the driving device to drive the curtain to move on the carrying device based on the target clamping force.
8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor, and the memory stores instructions. When the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Motorized window treatment
CN103620150A
Motor uniform-speed operation control method, device, system and roller shutter control system
CN108123657A
