Electric curtain control method, electric curtain and readable storage medium

By setting a mapping relationship between control parameters and motor Hall values ​​in electric curtains, the problem of inaccurate adjustment of existing electric curtain blade angles has been solved, achieving precise control of opening and closing degree and blade angle, and meeting the needs of fine-tuning.

CN122229302APending Publication Date: 2026-06-19GUANGDONG RUIZHU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG RUIZHU INTELLIGENT TECH CO LTD
Filing Date
2026-03-20
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Existing motorized blinds struggle to achieve precise control over the slat angle, especially when the blinds are lowered to the bottom, resulting in insufficient light-diffusing precision for the slat angle.

Method used

By establishing a mapping relationship between preset control parameters and the Hall value of the motor, a target Hall value is determined, and the operation of the electric curtain is controlled according to the target Hall value to achieve precise control over the opening and closing degree and the blade angle.

Benefits of technology

It achieves precise control over the opening and closing degree and slat angle of the electric curtains, improves adjustment accuracy, and meets the needs of fine-tuning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122229302A_ABST
    Figure CN122229302A_ABST
Patent Text Reader

Abstract

This application discloses a control method for electric curtains, an electric curtain, and a readable storage medium, relating to the field of electric curtain technology. The electric curtain control method includes: responding to a control command, determining a target control parameter corresponding to the control command, wherein the target control parameter is a target opening degree or a target slat angle; determining a target Hall value corresponding to the target control parameter based on a preset mapping relationship between the control parameter and the Hall value of the motor; and controlling the operation of the electric curtain according to the target Hall value. This application aims to achieve precise control of the slat angle of the electric curtain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electric curtain technology, and in particular to an electric curtain control method, an electric curtain, and a computer-readable storage medium. Background Technology

[0002] Currently, electric curtains are being used more and more widely. However, existing electric curtains on the market usually control the opening and closing degree and slat angle of the electric curtains through a combination of percentage adjustment and micro-motion adjustment. It is difficult to accurately control the opening and closing degree and slat angle of the electric curtains. In particular, there is a defect in the insufficient light-adjusting precision of the slat angle after the curtains are lowered to the bottom.

[0003] The information disclosed in this background section is only for understanding the background technology of the present application concept, and therefore may contain information that does not constitute prior art. Summary of the Invention

[0004] The main objective of this application is to provide a method for controlling electric curtains, an electric curtain, and a computer-readable storage medium, with the aim of improving the accuracy of the slat angle adjustment of electric curtains.

[0005] To achieve the above objectives, this application provides a method for controlling electric curtains, the method comprising:

[0006] In response to a control command, a target control parameter corresponding to the control command is determined, wherein the target control parameter is a target opening degree or a target blade angle; Based on the preset mapping relationship between control parameters and the Hall value of the motor, the target Hall value corresponding to the target control parameter is determined; The operation of the electric curtains is controlled based on the target Hall value.

[0007] In one embodiment, the mapping relationship includes at least the mapping relationship between the opening degree and the Hall value in the first interval and the mapping relationship between the Hall value in the second interval corresponding to the blade angle, and the boundary between the first interval and the second interval is the first stroke point; If the current Hall value corresponding to the motor of the electric curtain and the target Hall value are both located in the first interval or the second interval, then control the motor to run to the target Hall value; If the current Hall value corresponding to the motor of the electric curtain is in the first interval and the target Hall value is in the second interval, then control the motor to run to the target Hall value, and output the current opening degree when the Hall value of the motor is equal to the first travel point; If the current Hall value corresponding to the motor of the electric curtain is in the second interval and the target Hall value is in the first interval, then the motor is controlled to run to the target Hall value, and the current blade angle is output when the Hall value of the motor is equal to the first travel point.

[0008] In one embodiment, the electric curtain control method further includes: Control the electric curtain to operate until the opening degree is 0% and the blade angle is 0°, and determine the current Hall value of the motor as the second stroke point; Control the electric curtain to operate until the opening degree is 100% and the blade angle is 90°, and determine the current Hall value of the motor as the third stroke point; The first travel point is determined by adjusting the opening degree or the blade angle of the electric curtain, wherein the first travel point is the critical point for controlling the opening degree and the blade angle. The first interval and the second interval are determined based on the first travel point, the second travel point, and the third travel point.

[0009] In one embodiment, the step of determining the first travel point by adjusting the slat angle of the motorized curtain includes: When the slat angle of the electric curtain is greater than 0°, the slat angle of the electric curtain is controlled to decrease. When the blade angle of the electric curtain decreases to 0°, the current Hall value of the motor is determined as the first travel point.

[0010] In one embodiment, the step of determining the first travel point by adjusting the opening and closing degree of the electric curtain includes: When the opening degree of the electric curtain is less than 100%, the opening degree of the electric curtain is controlled to increase. When the opening degree of the electric curtain increases to 100%, the current Hall value of the motor is determined as the first stroke point.

[0011] In one embodiment, the step of determining the first interval and the second interval based on the first travel point, the second travel point, and the third travel point includes: The first interval is determined based on the first travel point and the second travel point, wherein the upper limit of the first interval is the second travel point, and the lower limit of the first interval is the first travel point; The second interval is determined based on the first travel point and the third travel point, wherein the upper limit of the second interval is the first travel point and the lower limit of the second interval is the third travel point.

[0012] In one embodiment, after the step of determining the first interval based on the first travel point and the second travel point, the motorized curtain control method further includes: Based on the preset opening and closing degree adjustment step size and opening and closing degree adjustment range, the number of opening and closing degree adjustment steps and multiple first opening and closing degrees are calculated, wherein the number of first opening and closing degrees is equal to the number of opening and closing degree adjustment steps; The first interval is divided into multiple equal parts to obtain multiple first Hall values, wherein the number of first Hall values ​​is equal to the number of opening and closing adjustment steps; Each of the first Hall values ​​and each of the first opening degrees are stored respectively to obtain the mapping relationship between the opening degree and the Hall value.

[0013] In one embodiment, after the step of determining the second interval based on the first travel point and the third travel point, the motorized curtain control method further includes: Based on the preset angle adjustment step size and blade angle adjustment range, the number of angle adjustment steps and multiple first blade angles are calculated, wherein the number of first blade angles is equal to the number of angle adjustment steps; The second interval is divided into multiple equal parts to obtain multiple second Hall values, wherein the number of second Hall values ​​is equal to the number of angle adjustment steps; Each second Hall value and each first blade angle are stored respectively to obtain the mapping relationship between blade angle and Hall value.

[0014] In addition, to achieve the above objectives, this application also provides an electric curtain, which includes at least: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the electric curtain control method applied to the electric curtain as described above.

[0015] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the electric curtain control method described above.

[0016] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the electric curtain control method described above.

[0017] This application provides a method for controlling electric curtains. The method includes: first, responding to a control command, determining a target control parameter corresponding to the control command, whereby the target control parameter is a target opening / closing degree or a target slat angle; then, based on a preset mapping relationship between the control parameters and the Hall effect value of the motor, determining a target Hall effect value corresponding to the target control parameter; and finally, controlling the operation of the electric curtain according to the target Hall effect value. In this application, the pre-set mapping relationship between the control parameters and the Hall effect value of the motor allows the electric curtain to be mapped to a uniquely corresponding target Hall effect value during control, enabling precise control of the opening / closing degree and slat angle of the electric curtain. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating the electric curtain control method in an embodiment of this application. Figure 2 This is a schematic diagram illustrating the composition of a feasible electric curtain control system according to an embodiment of this application; Figure 3 This is a schematic diagram of the first and second intervals in an embodiment of this application; Figure 4 This is a schematic diagram of the electric curtain control method in the embodiments of this application, where the control parameters are opening degree and blade angle, respectively. Figure 5 This is a schematic diagram of a feasible travel interval setting process in an embodiment of this application; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the electric curtain control method in this application embodiment.

[0021] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0022] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0023] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0024] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0025] Current motorized blinds are typically based on percentage control, which includes two dimensions: the degree of opening (opening / closing) and angle adjustment. Specifically, as the percentage control increases from 0% (when the blinds are fully closed and the window is completely unobstructed) to 100% (when the blinds are fully open and the window is completely obstructed), the motor rotates. During the motor's rotation, the opening / closing degree is first increased (from 0% to 100%) to complete full opening. Finally, within a very short percentage control stroke (e.g., 5%), the angle is adjusted from 0° (when the slats are perpendicular to the horizontal plane) to 90° (when the slats are parallel to the horizontal plane) (the opening / closing degree remains at 100% during this phase). However, for a user to fix the motorized blinds at a specific slat angle and press the "stop" button at a specific time is difficult to operate. Therefore, percentage-based adjustment schemes cannot precisely adjust the motorized blinds to a specific angle desired by the user, resulting in poor control precision.

[0026] To improve the slat angle adjustment accuracy of electric curtains, this application provides an electric curtain control method, applied to electric curtains or their control unit, as described above. Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the electric curtain control method of this application. The electric curtain control method includes: Step S10: In response to the control command, determine the target control parameter corresponding to the control command. The target control parameter is the target opening degree or the target blade angle. The control commands are user-inputted commands, including target control parameters, which are specific opening degrees (e.g., 80%) or blade angles (e.g., 45°). Users can achieve precise control of motorized blinds by inputting control commands with opening degrees or blade angles.

[0027] In practical applications, a feasible electric curtain control system is as follows: Figure 2 As shown, users can send control signals (including control commands) to the electric curtains via a control terminal (remote control, mobile phone or other control device) to achieve remote control of the electric curtains.

[0028] Step S20: Based on the preset mapping relationship between control parameters and motor Hall values, determine the target Hall value corresponding to the target control parameters; It should be noted that motorized curtains adjust the opening degree and slat angle through motor operation. A Hall effect sensor on the motor rotor detects the number of pulses generated by the motor's rotation. Essentially, the sensor generates a pulse signal (Hall value) every time the motor rotates a certain angle. By counting the number of pulses, the number of rotations or the angle of the motor can be accurately calculated, thus indirectly determining the actual position of the curtains.

[0029] The control parameters include either the target opening degree or the target blade angle. The preset mapping relationship between the control parameters and the motor's Hall value includes both the mapping relationship between the opening degree and the Hall value, and the mapping relationship between the blade angle and the Hall value; these two mapping relationships are independent of each other. The mapping relationship can be represented in the form of a two-dimensional mapping table, where each opening degree or blade angle uniquely corresponds to a Hall value. Given the target control parameters, the corresponding target Hall value can be looked up in the two-dimensional mapping table.

[0030] Step S30: Control the operation of the electric curtains according to the target Hall value.

[0031] In this step, controlling the operation of the electric curtain based on the target Hall value means controlling the motor of the electric curtain to run until the collected Hall value reaches the target Hall value, and then stopping the operation. At this time, the Hall value corresponds to a target opening degree or a target blade angle, so that the electric curtain can not only achieve precise control of the opening degree, but also precise control of the blade angle.

[0032] Furthermore, in one embodiment, the mapping relationship includes at least a first interval corresponding to the opening degree and a second interval corresponding to the blade angle, and the boundary between the first interval and the second interval is the first travel point; Step S30, which controls the operation of the electric curtain based on the target Hall value, may include: Step S31: If the current Hall value and the target Hall value corresponding to the motor of the electric curtain are both in the first interval or the second interval, then control the motor to run to the target Hall value. Understandably, when adjusting the opening degree or slat angle of motorized curtains, there are two scenarios: one is that the current Hall effect value and the target Hall effect value are within the same travel range, and the other is that they are within different travel ranges. Within the same travel range, there are two scenarios: one is that the motorized curtain is currently within the opening degree adjustment range, i.e., the current opening degree is between 0% and 100% (while the slat angle is 0°), and the target control parameter is also the target opening degree; in this case, adjustment only needs to be made within the adjustment range containing the target opening degree (i.e., the first range); the other is that the motorized curtain is currently within the slat angle adjustment range, i.e., the current slat angle is between 0° and 90° (while the opening degree is 100%), and the target control parameter is also the target slat angle; in this case, adjustment only needs to be made within the adjustment range containing the target slat angle (i.e., the second range).

[0033] Furthermore, after adjustment is completed, the target opening degree or target blade angle is output to the server and / or control terminal to achieve visual feedback and synchronization.

[0034] Step S32: If the current Hall value corresponding to the motor of the electric curtain is in the first interval and the target Hall value is in the second interval, then control the motor to run to the target Hall value, and output the current opening degree when the Hall value of the motor is equal to the first stroke point; In different travel ranges, one scenario involves the motorized curtain currently being in the opening / closing adjustment range (blade angle at 0°), but the target control parameter is the target blade angle. In this case, cross-range adjustment is required. First, the opening / closing degree of the motorized curtain is controlled to reach 100%, then the blade angle is gradually increased until the Hall value collected at the motor reaches the target Hall value (at which point the blade angle in the control command is achieved). Simultaneously, when the opening / closing degree of the motorized curtain just reaches 100%, the current opening / closing degree is simultaneously output to remind the user of the current opening / closing status and that it is currently entering the blade angle adjustment range, allowing the user to monitor the device status in real time.

[0035] Furthermore, after adjustment is complete, the target blade angle is output to the server and / or control terminal to achieve visual feedback and synchronization.

[0036] For example, when the motor's Hall value is in the first interval and a control command for the blade angle is received: it first runs to the third stroke point (output opening degree 0%), and then runs to the target blade angle in the second interval and reports it. Example: When the motor's Hall value is in the first interval and the opening degree is 30%, it receives a "30°" command, first runs to the first stroke point, and then moves down to the position where the blade angle is 30°.

[0037] Step S33: If the current Hall value corresponding to the motor of the electric curtain is in the second interval and the target Hall value is in the first interval, then control the motor to run to the target Hall value, and output the current blade angle when the Hall value of the motor is equal to the first stroke point.

[0038] Another scenario involves different travel ranges. The motorized blind is currently in the slat angle adjustment range (opening / closing degree is 100%), but the target control parameter is the target opening / closing degree. In this case, cross-range adjustment is required. First, the slat angle is controlled to decrease to 0°, then the opening / closing degree is gradually reduced until the Hall value collected at the motor reaches the target Hall value (at which point the opening / closing degree in the control command is achieved). Simultaneously, when the slat angle just reaches 0°, the current slat angle is output to remind the user of the current slat angle and that the blind is currently entering the opening / closing degree adjustment range, allowing the user to monitor the device status in real time.

[0039] Furthermore, after adjustment is complete, the target opening degree is output to the server and / or control terminal to achieve visual feedback and synchronization.

[0040] For example, when the motor's Hall value is in the second range and a control command for the opening degree is received: it first runs to the first stroke point (output blade angle 0°), then runs to the target opening degree in the first range and reports it. Example: When the motor's Hall value is in the second range and the blade angle is 60° and a "50%" command is received, it first goes to the first stroke point, then moves up to the position where the opening degree is 50%.

[0041] For ease of understanding, the control methods for electric blinds are as follows, with the control parameters being opening / closing degree and blade angle: Figure 3 As shown, the control command is first parsed to determine if the corresponding control parameter is the degree of opening. If it is the degree of opening, the Hall value of the current motor is determined to be in the first interval. If it is not in the first interval, the Hall value corresponding to the degree of opening is determined, and the blade angle is output as 0° when it equals the first stroke point. Then, the motor runs to the first interval. If it is in the first interval, the Hall value corresponding to the degree of opening is directly determined, and the motor is finally controlled to run to the position of the Hall value corresponding to the degree of opening, and the degree of opening is output. If it is not the degree of opening, it is the blade angle. The control process is as follows: the Hall value of the current motor is determined to be in the first interval. If it is not in the first interval, the Hall value corresponding to the blade angle is determined. If it is in the first interval, the Hall value corresponding to the blade angle is determined, and the degree of opening is output as 0% when it equals the first stroke point. The motor runs to the second interval, and the motor is finally controlled to run to the position of the Hall value corresponding to the blade angle, and the blade angle is output.

[0042] Compared to the traditional percentage control strategy, the embodiments of this application add a first stroke point in the motor stroke to achieve physical isolation between the opening degree and the blade angle control.

[0043] In another feasible embodiment, the electric curtain control method may further include: Step A10: Control the electric curtain to run until the opening degree is 0% and the blade angle is 0°, and determine the current Hall value of the motor as the second stroke point; Step A20: Control the electric curtain to operate until the opening degree is 100% and the blade angle is 90°, and determine the current Hall value of the motor as the third stroke point; Step A30: Determine the first stroke point by adjusting the opening degree or blade angle of the electric curtain, wherein the first stroke point is the critical point for controlling the opening degree and blade angle. Step A40: Determine the first interval and the second interval based on the first travel point, the second travel point, and the third travel point.

[0044] This application embodiment provides a method for setting first, second, and third travel points and first and second intervals. The second travel point determined in step A10 corresponds to the travel point at the uppermost extreme position of the electric curtain, and the third travel point determined in step A20 corresponds to the travel point at the lowermost extreme position of the electric curtain. Furthermore, the first travel point in step A30, used to distinguish between the first and second intervals, is a critical point for controlling the opening and closing degree and slat angle of the electric curtain. Figure 4 As shown, one side of the first travel point belongs to the first interval, and the other side belongs to the second interval. Finally, the first and second intervals are divided according to the first, second, and third travel points.

[0045] Furthermore, step A30, which determines the first travel point by adjusting the slat angle of the electric curtain, may include: Step A31: When the slat angle of the electric curtain is greater than 0°, control the slat angle of the electric curtain to decrease. Step A32: When the slat angle of the electric curtain decreases to 0°, the current Hall value of the motor is determined as the first travel point.

[0046] This application provides a feasible method for determining the first travel point by adjusting the slat angle of an electric curtain. When the slat angle of the electric curtain is greater than 0° (belonging to the second interval), the slat angle is reduced to approach 0°, and the current Hall value is determined as the first travel point at the moment it just reaches 0°. Because the motor enters the first interval and begins to adjust the opening degree after this time point, the Hall value at this time point can be used as the first travel point.

[0047] In another feasible embodiment, step A30, which determines the first travel point by adjusting the opening and closing degree of the electric curtain, may include: Step A33: When the opening degree of the electric curtain is less than 100%, control the opening degree of the electric curtain to increase. Step A34: When the opening degree of the electric curtain increases to 100%, the current Hall value of the motor is determined as the first stroke point.

[0048] This application provides a feasible method for determining the first travel point by adjusting the opening degree of an electric curtain. When the opening degree of the electric curtain is less than 100% (belonging to the first interval), the opening degree is increased to approach 100%, and the current Hall value is determined as the first travel point at the moment it just reaches 100%. Because after this time point, the motor enters the second interval and begins to adjust the blade angle, the Hall value at this time point can be used as the first travel point.

[0049] Further, step A40, which determines the first interval and the second interval based on the first travel point, the second travel point, and the third travel point, may include: Step A41: Determine the first interval based on the first travel point and the second travel point, wherein the upper limit of the first interval is the second travel point, and the lower limit of the first interval is the first travel point; Step A42: Determine the second interval based on the first travel point and the third travel point, wherein the upper limit of the second interval is the first travel point and the lower limit of the second interval is the third travel point.

[0050] like Figure 4 As shown, the first stroke point, the second stroke point, and the third stroke point divide the entire stroke of the motor into two parts. The first interval is used to control the opening degree, the upper limit is the second stroke point, and the lower limit is the first stroke point; the second interval is used to control the blade angle, the upper limit is the first stroke point, and the lower limit is the third stroke point.

[0051] In one feasible embodiment, a feasible travel interval setting process is as follows: Figure 5 As shown, first determine if the motor has a stroke. If not, set the stroke (referring to determining the second and third stroke points, corresponding to steps A10 to A20). After setting the motor stroke, adjust the curtain blades from 90 degrees to 0 degrees, and just as they fall to 0 degrees, set the third stroke point, and control the device to generate the first and second intervals with the third stroke point as the critical point.

[0052] In another feasible embodiment, after step A41 of determining the first interval based on the first travel point and the second travel point, the electric curtain control method may further include: Step A43: Based on the preset opening degree adjustment step size and opening degree adjustment range, calculate the number of opening degree adjustment steps and multiple first opening degrees, wherein the number of first opening degrees is equal to the number of opening degree adjustment steps; Step A44: Divide the first interval into multiple equal parts to obtain multiple first Hall values, wherein the number of first Hall values ​​is equal to the number of opening and closing adjustment steps; Step A45: Store each first Hall value and each first opening degree respectively to obtain the mapping relationship between the opening degree and the Hall value.

[0053] This application provides a method for generating a mapping relationship between opening degree and Hall value, which involves uniformly dividing a first interval and an opening degree adjustment range and storing them accordingly. Specifically, the opening degree adjustment range can be 0%~100%, and the opening degree adjustment step size can be 1%. Then, the number of opening degree adjustment steps = 100% / 1%+1 = 101, and each first opening degree is 0%, 1%, 2%, 3%, ..., 98%, 99%, 100%, for a total of 101 opening degree values. In addition, the Hall value of the first interval is further divided into multiple equal parts. For example, if the first interval is [a, b], then the step size of the arithmetic sequence formed by multiple first Hall values ​​is (ba) / 100, for a total of 101 first Hall values.

[0054] Furthermore, in the process of storing each first Hall value and each first opening degree respectively, they are sorted and matched according to their numerical values. For example, the opening degree corresponding to the first Hall value a is 0%, the opening degree corresponding to the first Hall value a+(ba) / 100 is 1%, and so on, the opening degree corresponding to the first Hall value b is 100%.

[0055] In another feasible embodiment, after step A42 of determining the second interval based on the first travel point and the third travel point, the motorized curtain control method may further include: Step A46: Based on the preset angle adjustment step size and blade angle adjustment range, calculate the angle adjustment step number and multiple first blade angles, wherein the number of first blade angles is equal to the angle adjustment step number; Step A47: Divide the second interval into multiple equal parts to obtain multiple second Hall values, where the number of second Hall values ​​is equal to the number of angle adjustment steps; Step A48: Store each second Hall value and each first blade angle respectively to obtain the mapping relationship between blade angle and Hall value.

[0056] This application provides a method for generating a mapping relationship between blade angle and Hall value, which involves uniformly dividing a second interval and the blade angle adjustment range and storing them accordingly. Specifically, the blade angle adjustment range can be 0°~90°, and the blade angle adjustment step size can be 1°. Therefore, the number of blade angle adjustment steps = 90° / 1° + 1 = 91, and the first blade angles are 0°, 1°, 2°, 3°, ..., 88°, 89°, and 90°, totaling 91 1° values. Furthermore, the Hall value of the second interval is further divided into multiple equal parts. For example, if the first interval is [c, d], the step size of the arithmetic sequence formed by multiple second Hall values ​​is (dc) / 90, resulting in 91 second Hall values. It is understood that since the Hall value range of the second interval is narrower than that of the first interval, the difference between adjacent second Hall values ​​in the second interval is generally significantly smaller than the difference between adjacent first Hall values ​​in the first interval.

[0057] Furthermore, during the process of storing each second Hall value and each first blade angle respectively, they are sorted according to their numerical values. For example, the blade angle corresponding to the second Hall value c is 0°, the blade angle corresponding to the second Hall value c+(dc) / 90 is 1°, and so on, the blade angle corresponding to the second Hall value d is 90°.

[0058] In summary, this embodiment of the application supports precise control of the blade angle by equally dividing the Hall values ​​for opening degree and blade angle into upper and lower intervals respectively. In particular, the control of the blade angle in the second interval achieves precise adjustment at the "degree" level, overcoming the limitations of existing percentage-based indirect adjustment and meeting the needs of fine-tuning. Moreover, based on existing hardware devices, no new complex hardware is required; only the control logic and calibration algorithm are optimized, making it easy to scale up and deploy.

[0059] In another feasible embodiment, after the user sends a cancellation command to the motorized curtain via the control terminal, the first travel point record is deleted, the traditional control strategy of single percentage control (100 equal parts) from the upper limit to the lower limit is restored, and the "first travel point not set" status is reported. At this time, the control command containing the blade angle is invalid, which supports the user to flexibly switch the control mode of the motorized curtain and has a higher degree of freedom.

[0060] It should be noted that this example is only for the purpose of assisting in understanding this application and does not constitute a limitation on the electric curtain control method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0061] This application also provides an electric curtain, which includes at least: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the electric curtain control method described in the above embodiments.

[0062] The following is for reference. Figure 6 The diagram shows a structural schematic suitable for implementing the embodiments of the present application for an electric curtain. Figure 6 The electric curtain shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.

[0063] like Figure 6 As shown, the motorized curtain may include a processing device 101 (e.g., a central processing unit, a graphics processor, etc.) that can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 102 or a program loaded from storage device 103 into random access memory (RAM) 104. RAM 104 also stores various programs and data required for the operation of the motorized curtain. The processing device 101, ROM 102, and RAM 104 are interconnected via bus 105. Input / output (I / O) interface 106 is also connected to the bus. Typically, the following systems can be connected to I / O interface 106: input devices 107 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 108 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 103 including, for example, magnetic tape, hard disks, etc.; and communication devices 109. Communication device 109 allows the motorized curtain to communicate wirelessly or wiredly with other devices to exchange data. Although the diagram shows motorized blinds with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.

[0064] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 103, or installed from ROM 102. When the computer program is executed by processing device 101, it performs the functions defined in the methods of the embodiments of this application.

[0065] The electric curtain provided in this application embodiment, employing the electric curtain control method described in the above embodiments, can improve the adjustment accuracy of the curtain blade angle. Compared with the prior art, the beneficial effects of the electric curtain provided in this application embodiment are the same as those of the electric curtain control method described in the above embodiments, and other technical features of this electric curtain are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0066] It should be understood that various parts of the embodiments of this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0067] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the above claims.

[0068] This application also provides a computer-readable storage medium storing a computer program that can run on a processor. The computer program is used to execute the electric curtain control method in the above embodiments.

[0069] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0070] The aforementioned computer-readable storage medium may be included in the motorized curtains; or it may exist independently and not assembled into the motorized curtains.

[0071] The aforementioned computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electric curtain, the electric curtain: responds to a control command, determines a target control parameter corresponding to the control command, wherein the target control parameter is a target opening degree or a target blade angle; determines a target Hall value corresponding to the target control parameter based on a preset mapping relationship between the control parameter and the Hall value of the motor; and controls the operation of the electric curtain according to the target Hall value.

[0072] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0073] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0074] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0075] The computer-readable storage medium provided in this application embodiment stores computer-readable program instructions for executing the above-described electric curtain control method, which can improve the adjustment accuracy of the slat angle of the electric curtain. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application embodiment are the same as the beneficial effects of the electric curtain control method provided in the above embodiments, and will not be repeated here.

[0076] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the electric curtain control method described above.

[0077] The computer program product provided in this application can improve the adjustment accuracy of the slat angle of electric curtains. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the electric curtain control method provided in the above embodiments, and will not be repeated here.

[0078] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A method for controlling an electric curtain, characterized in that, The electric curtain control method includes: In response to a control command, a target control parameter corresponding to the control command is determined, wherein the target control parameter is a target opening degree or a target blade angle; Based on the preset mapping relationship between control parameters and the Hall value of the motor, the target Hall value corresponding to the target control parameter is determined; The operation of the electric curtains is controlled based on the target Hall value.

2. The electric curtain control method as described in claim 1, characterized in that, The mapping relationship includes at least the mapping relationship between the opening degree and the Hall value in the first interval and the mapping relationship between the Hall value in the second interval corresponding to the blade angle, and the boundary between the first interval and the second interval is the first stroke point; The step of controlling the operation of the electric curtains based on the target Hall value includes: If the current Hall value corresponding to the motor of the electric curtain and the target Hall value are both located in the first interval or the second interval, then control the motor to run to the target Hall value; If the current Hall value corresponding to the motor of the electric curtain is in the first interval and the target Hall value is in the second interval, then control the motor to run to the target Hall value, and output the current opening degree when the Hall value of the motor is equal to the first travel point; If the current Hall value corresponding to the motor of the electric curtain is in the second interval and the target Hall value is in the first interval, then the motor is controlled to run to the target Hall value, and the current blade angle is output when the Hall value of the motor is equal to the first travel point.

3. The electric curtain control method as described in claim 2, characterized in that, The electric curtain control method also includes: Control the electric curtain to operate until the opening degree is 0% and the blade angle is 0°, and determine the current Hall value of the motor as the second stroke point; Control the electric curtain to operate until the opening degree is 100% and the blade angle is 90°, and determine the current Hall value of the motor as the third stroke point; The first travel point is determined by adjusting the opening degree or the blade angle of the electric curtain, wherein the first travel point is the critical point for controlling the opening degree and the blade angle. The first interval and the second interval are determined based on the first travel point, the second travel point, and the third travel point.

4. The electric curtain control method as described in claim 3, characterized in that, The steps for determining the first travel point by adjusting the slat angle of the electric curtain include: When the slat angle of the electric curtain is greater than 0°, the slat angle of the electric curtain is controlled to decrease. When the blade angle of the electric curtain decreases to 0°, the current Hall value of the motor is determined as the first travel point.

5. The electric curtain control method as described in claim 3, characterized in that, The steps for determining the first travel point by adjusting the opening and closing degree of the electric curtain include: When the opening degree of the electric curtain is less than 100%, the opening degree of the electric curtain is controlled to increase. When the opening degree of the electric curtain increases to 100%, the current Hall value of the motor is determined as the first stroke point.

6. The electric curtain control method as described in claim 3, characterized in that, The step of determining the first interval and the second interval based on the first travel point, the second travel point, and the third travel point includes: The first interval is determined based on the first travel point and the second travel point, wherein the upper limit of the first interval is the second travel point, and the lower limit of the first interval is the first travel point; The second interval is determined based on the first travel point and the third travel point, wherein the upper limit of the second interval is the first travel point and the lower limit of the second interval is the third travel point.

7. The electric curtain control method as described in claim 6, characterized in that, After the step of determining the first interval based on the first travel point and the second travel point, the electric curtain control method further includes: Based on the preset opening and closing degree adjustment step size and opening and closing degree adjustment range, the number of opening and closing degree adjustment steps and multiple first opening and closing degrees are calculated, wherein the number of first opening and closing degrees is equal to the number of opening and closing degree adjustment steps; The first interval is divided into multiple equal parts to obtain multiple first Hall values, wherein the number of first Hall values ​​is equal to the number of opening and closing adjustment steps; Each of the first Hall values ​​and each of the first opening degrees are stored respectively to obtain the mapping relationship between the opening degree and the Hall value.

8. The electric curtain control method as described in claim 5, characterized in that, After the step of determining the second interval based on the first travel point and the third travel point, the electric curtain control method further includes: Based on the preset angle adjustment step size and blade angle adjustment range, the number of angle adjustment steps and multiple first blade angles are calculated, wherein the number of first blade angles is equal to the number of angle adjustment steps; The second interval is divided into multiple equal parts to obtain multiple second Hall values, wherein the number of second Hall values ​​is equal to the number of angle adjustment steps; Each second Hall value and each first blade angle are stored respectively to obtain the mapping relationship between blade angle and Hall value.

9. An electric curtain, characterized in that, The electric curtain includes at least: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the electric curtain control method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for implementing an electric curtain control method, which is executed by a processor to implement the steps of the electric curtain control method as described in any one of claims 1 to 8.