Electric curtain, electric curtain control method and device and electronic equipment

文档序号:1359262 发布日期:2020-07-28 浏览:19次 中文

阅读说明:本技术 一种电动窗帘、电动窗帘控制方法、装置及电子设备 (Electric curtain, electric curtain control method and device and electronic equipment ) 是由 李绍斌 段武斌 唐杰 陈道远 陈宇 罗代芳 于 2020-03-20 设计创作,主要内容包括:本申请涉及一种电动窗帘、电动窗帘控制方法、装置及电子设备,属于电动窗帘技术领域。所述方法应用于电动窗帘,所述电动窗帘包括电机、设置在所述电机中的至少两个霍尔器件,所述方法包括:获取所述至少两个霍尔器件随所述电机转动的过程中,切割磁场产生的至少两个脉冲信号;确定所述至少两个脉冲信号的输出电平的变化情况;根据所述至少两个脉冲信号的输出电平的变化情况、预设的转动方向判断规则,确定所述电机的当前转动方向;控制所述电机以所述当前转动方向继续转动,以带动帘布展开或者收拢。采用本申请提供的技术方案,无需复杂的机械结构,即可简单、有效的确定电机的转动方向,进而实现手拉启动。(The application relates to an electric curtain, an electric curtain control method, an electric curtain control device and electronic equipment, and belongs to the technical field of electric curtains. The method is applied to a motorized window treatment, which comprises a motor and at least two Hall devices arranged in the motor, and comprises the following steps: acquiring at least two pulse signals generated by a cutting magnetic field in the process that the at least two Hall devices rotate along with the motor; determining the change condition of the output levels of the at least two pulse signals; determining the current rotation direction of the motor according to the change condition of the output levels of the at least two pulse signals and a preset rotation direction judgment rule; and controlling the motor to continuously rotate in the current rotating direction to drive the curtain cloth to be unfolded or folded. By adopting the technical scheme provided by the application, a complex mechanical structure is not needed, the rotation direction of the motor can be simply and effectively determined, and then the hand-pulling starting is realized.)

1. A motorized window treatment control method is applied to a motorized window treatment, the motorized window treatment comprises a motor and at least two Hall devices arranged in the motor, and the method comprises the following steps:

acquiring at least two pulse signals generated by a cutting magnetic field in the process that the at least two Hall devices rotate along with the motor;

determining the change condition of the output levels of the at least two pulse signals;

determining the current rotation direction of the motor according to the change condition of the output levels of the at least two pulse signals and a preset rotation direction judgment rule;

and controlling the motor to continuously rotate in the current rotating direction to drive the curtain cloth to be unfolded or folded.

2. The method according to claim 1, wherein the at least two pulse signals comprise a first pulse signal and a second pulse signal, and the determining the current rotation direction of the motor according to the variation of the output levels of the at least two pulse signals and a preset rotation direction judgment rule comprises:

determining an output level of the second pulse signal when the output level of the first pulse signal is changed from a first level to a second level;

if the output level of the second pulse signal is the first level, determining that the current rotation direction of the motor is a first rotation direction;

and if the output level of the second pulse signal is the second level, determining that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction.

3. The method according to claim 1, wherein the at least two pulse signals comprise a first pulse signal and a second pulse signal, and the determining the current rotation direction of the motor according to the variation of the output levels of the at least two pulse signals and a preset rotation direction judgment rule comprises:

if the output levels of the first pulse signal and the second pulse signal are both the first level, determining that the output level is changed into a target pulse signal of the second level;

if the target pulse signal is the second pulse signal, determining that the current rotating direction of the motor is a first rotating direction;

and if the target pulse signal is the first pulse signal, determining that the current rotating direction of the motor is a second rotating direction opposite to the first rotating direction.

4. The method according to claim 2 or 3, wherein the first level is a preset high level and the second level is a preset low level;

alternatively, the first and second electrodes may be,

the first level is a preset low level, and the second level is a preset high level.

5. A motorized window treatment, comprising: the device comprises a motor, at least two Hall devices arranged in the motor and a processing device; wherein the content of the first and second substances,

the processing device is used for acquiring at least two pulse signals generated by the cutting magnetic field in the process that the at least two Hall devices rotate along with the motor; determining the change condition of the output levels of the at least two pulse signals, determining the current rotation direction of the motor according to the change condition of the output levels of the at least two pulse signals and a preset rotation direction judgment rule, and controlling the motor to continue to rotate in the current rotation direction so as to drive the curtain to be unfolded or folded.

6. The motorized window treatment of claim 5, wherein the at least two pulse signals comprise a first pulse signal and a second pulse signal, the processing device being configured to determine an output level of the second pulse signal, in particular when the output level of the first pulse signal changes from a first level to a second level; if the output level of the second pulse signal is the first level, determining that the current rotation direction of the motor is a first rotation direction; and if the output level of the second pulse signal is the second level, determining that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction.

7. The motorized window treatment of claim 5, wherein the at least two pulse signals comprise a first pulse signal and a second pulse signal, and the processing device is configured to determine a target pulse signal with an output level that is first changed to the second level when the output levels of the first pulse signal and the second pulse signal are both the first level; if the target pulse signal is the second pulse signal, determining that the current rotating direction of the motor is a first rotating direction; and if the target pulse signal is the first pulse signal, determining that the current rotating direction of the motor is a second rotating direction opposite to the first rotating direction.

8. The utility model provides a motorized window treatment controlling means, its characterized in that, the device is applied to motorized window treatment, motorized window treatment includes motor, sets up in at least two hall devices in the motor, the device includes:

the acquisition module is used for acquiring at least two pulse signals generated by a cutting magnetic field in the process that the at least two Hall devices rotate along with the motor;

the first determining module is used for determining the change condition of the output levels of the at least two pulse signals;

the second determining module is used for determining the current rotating direction of the motor according to the change condition of the output levels of the at least two pulse signals and a preset rotating direction judgment rule;

and the control module is used for controlling the motor to continuously rotate in the current rotating direction so as to drive the curtain cloth to be unfolded or furled.

9. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;

the memory is used for storing a computer program;

the processor, when executing a computer program, is adapted to perform the method steps of any of claims 1-4.

10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.

Technical Field

The present disclosure relates to electric curtains, and particularly to an electric curtain, a method and an apparatus for controlling the electric curtain, and an electronic device.

Background

Disclosure of Invention

In order to solve the technical problems, the application provides an electric curtain, an electric curtain control method, an electric curtain control device and electronic equipment.

In a first aspect, the present application provides a motorized window treatment control method applied to a motorized window treatment including a motor, at least two hall devices disposed in the motor, the method including:

acquiring at least two pulse signals generated by a cutting magnetic field in the process that the at least two Hall devices rotate along with the motor;

determining the change condition of the output levels of the at least two pulse signals;

determining the current rotation direction of the motor according to the change condition of the output levels of the at least two pulse signals and a preset rotation direction judgment rule;

and controlling the motor to continuously rotate in the current rotating direction to drive the curtain cloth to be unfolded or folded.

Optionally, the determining the current rotation direction of the motor according to the variation of the output levels of the at least two pulse signals and a preset rotation direction determination rule includes:

determining an output level of the second pulse signal when the output level of the first pulse signal is changed from a first level to a second level;

if the output level of the second pulse signal is the first level, determining that the current rotation direction of the motor is a first rotation direction;

and if the output level of the second pulse signal is the second level, determining that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction.

Optionally, the determining the current rotation direction of the motor according to the variation of the output levels of the at least two pulse signals and a preset rotation direction determination rule includes:

if the output levels of the first pulse signal and the second pulse signal are both the first level, determining that the output level is changed into a target pulse signal of the second level;

if the target pulse signal is the second pulse signal, determining that the current rotating direction of the motor is a first rotating direction;

and if the target pulse signal is the first pulse signal, determining that the current rotating direction of the motor is a second rotating direction opposite to the first rotating direction.

Optionally, the first level is a preset high level, and the second level is a preset low level; or, the first level is a preset low level, and the second level is a preset high level.

In a second aspect, the present application provides a motorized window treatment comprising: the device comprises a motor, at least two Hall devices arranged in the motor and a processing device; wherein the content of the first and second substances,

the processing device is used for acquiring at least two pulse signals generated by the cutting magnetic field in the process that the at least two Hall devices rotate along with the motor; determining the change condition of the output levels of the at least two pulse signals, determining the current rotation direction of the motor according to the change condition of the output levels of the at least two pulse signals and a preset rotation direction judgment rule, and controlling the motor to continue to rotate in the current rotation direction so as to drive the curtain to be unfolded or folded.

Optionally, the at least two pulse signals include a first pulse signal and a second pulse signal, and the processing device is specifically configured to determine an output level of the second pulse signal when the output level of the first pulse signal is converted from a first level to a second level; if the output level of the second pulse signal is the first level, determining that the current rotation direction of the motor is a first rotation direction; and if the output level of the second pulse signal is the second level, determining that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction.

Optionally, the at least two pulse signals include a first pulse signal and a second pulse signal, and the processing device is specifically configured to determine, when output levels of the first pulse signal and the second pulse signal are both a first level, a target pulse signal whose output level is first changed to a second level; if the target pulse signal is the second pulse signal, determining that the current rotating direction of the motor is a first rotating direction; and if the target pulse signal is the first pulse signal, determining that the current rotating direction of the motor is a second rotating direction opposite to the first rotating direction.

Optionally, the first level is a preset high level, and the second level is a preset low level; or, the first level is a preset low level, and the second level is a preset high level.

In a third aspect, the present application provides a motorized window treatment control device, which is applied to a motorized window treatment, the motorized window treatment including a motor and at least two hall devices disposed in the motor, the device including:

the acquisition module is used for acquiring at least two pulse signals generated by a cutting magnetic field in the process that the at least two Hall devices rotate along with the motor;

the first determining module is used for determining the change condition of the output levels of the at least two pulse signals;

the second determining module is used for determining the current rotating direction of the motor according to the change condition of the output levels of the at least two pulse signals and a preset rotating direction judgment rule;

and the control module is used for controlling the motor to continuously rotate in the current rotating direction so as to drive the curtain cloth to be unfolded or furled.

Optionally, the second determining module includes:

a first determination sub-module for determining an output level of the second pulse signal when the output level of the first pulse signal is converted from a first level to a second level in a case where the at least two pulse signals include a first pulse signal and a second pulse signal;

the second determining submodule is used for determining that the current rotating direction of the motor is the first rotating direction when the output level of the second pulse signal is the first level;

the second determining submodule is further configured to determine that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction when the output level of the second pulse signal is the second level.

Optionally, the second determining module includes:

a third determining submodule, configured to determine, when the at least two pulse signals include a first pulse signal and a second pulse signal, when output levels of the first pulse signal and the second pulse signal are both a first level, a target pulse signal whose output level is first changed to a second level;

the fourth determining submodule is used for determining that the current rotating direction of the motor is the first rotating direction when the target pulse signal is the second pulse signal;

the fourth determining submodule is further configured to determine that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction when the target pulse signal is the first pulse signal.

Optionally, the first level is a preset high level, and the second level is a preset low level; or, the first level is a preset low level, and the second level is a preset high level.

In a fourth aspect, the present application provides an electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;

the memory is used for storing a computer program;

the processor is configured to, when executing the computer program, implement the method steps of the first aspect.

In a fifth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method steps of the first aspect described above.

In a sixth aspect, embodiments of the present application further provide a computer program product containing instructions, which when executed on a computer, cause the computer to perform the method steps of the first aspect.

Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:

the embodiment of the application provides an electric curtain, an electric curtain control method, an electric curtain control device and electronic equipment, wherein at least two pulse signals generated by a cutting magnetic field in the process that at least two Hall devices rotate along with a motor can be obtained; determining the change condition of the output levels of at least two pulse signals; determining the current rotation direction of the motor according to the change conditions of the output levels of at least two pulse signals and a preset rotation direction judgment rule; and controlling the motor to continuously rotate in the current rotation direction to drive the curtain cloth to be unfolded or folded.

The current rotation direction of the motor can be determined according to the change condition of the output levels of at least two pulse signals and the rotation direction judgment rule, so that the rotation direction of the motor can be simply and effectively determined without a complex mechanical structure, and further the hand-pulling starting is realized.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.

Fig. 1 is a flowchart of a method for controlling a motorized window treatment according to an embodiment of the present disclosure;

fig. 2 is a schematic diagram illustrating a variation of an output level of a pulse signal according to an embodiment of the present disclosure;

FIG. 3 is a flow chart of another method for controlling a motorized window treatment according to an embodiment of the present disclosure;

FIG. 4 is a flow chart illustrating another method for controlling a motorized window treatment according to an embodiment of the present disclosure;

fig. 5 is a schematic structural diagram of an electric machine according to an embodiment of the present disclosure;

fig. 6 is a schematic structural diagram of a motorized window treatment control device according to an embodiment of the present disclosure;

fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The embodiment of the application provides a control method of a motorized window treatment, which can be applied to the motorized window treatment, in particular to a control system of the motorized window treatment. The electric curtain comprises a motor and at least two Hall devices arranged in the motor.

By adopting the electric curtain provided by the embodiment of the application, a user can open the curtain or close the curtain in a hand-pulling starting mode. Taking curtain opening as an example, a user can pull the curtain cloth for a certain distance in the curtain opening direction, the motor of the electric curtain can passively rotate under the influence of the curtain cloth pulled by the user, and the passive rotation direction is the same as the pulling direction of the user. The electric curtain can determine the current rotation direction when the motor rotates passively, and then the motor is controlled to rotate continuously in the current rotation direction to drive the curtain cloth to expand towards the direction that a user pulls the curtain, so that the hand-pulling starting is realized.

The following will describe a control method of a motorized window treatment provided in an embodiment of the present application in detail with reference to specific embodiments, as shown in fig. 1, the specific steps are as follows:

step 101, acquiring at least two pulse signals generated by a cutting magnetic field in the process that at least two Hall devices rotate along with a motor.

In implementation, the electric window curtain may be provided with a magnetic component in advance, and the magnetic component may generate a magnetic field. In the process that the motor passively rotates along with the cord fabric pulled by a user, each Hall device arranged in the motor rotates along with the motor so as to cut a magnetic field and generate a pulse signal. Thus, the motorized window treatment may obtain at least two pulse signals.

And 102, determining the change condition of the output levels of at least two pulse signals.

In implementation, the motorized window treatment may perform data processing on each collected pulse signal to obtain an output level of the pulse signal. Because the direction of the cutting magnetic field of each Hall device changes along with the rotation of the motor, the output level of the pulse signal determined by the electric curtain can change in height, and the change in height can circulate according to a fixed rule, namely, the change condition of the output level is obtained by the electric curtain processing the pulse signal.

Thus, the motorized window treatment can determine a change in the output level of the at least two pulse signals.

Fig. 2 is a schematic diagram of a variation of an output level according to an embodiment of the present application, where a signal a and a signal B are two pulse signals generated by two hall devices cutting a magnetic field. The variation of the output level of the pulse signal can be represented as table 1:

TABLE 1

Signal A 1 0 0 1 1 0 0 1
Signal B 0 0 1 1 0 0 1 1

And 103, determining the current rotation direction of the motor according to the change conditions of the output levels of the at least two pulse signals and a preset rotation direction judgment rule.

In an implementation, the preset rotation direction determination rule may be a rising edge trigger determination, that is, when an output level of a certain pulse signal changes from a preset low level to a preset high level, a current rotation direction of the motor is determined. The rotation direction determination rule may also be a falling edge trigger determination, that is, when the output level of a certain pulse signal changes from a preset high level to a preset low level, the current rotation direction of the motor is determined.

Because at least two Hall devices cut the magnetic field successively, consequently, the output level of at least two pulse signal is different at the same moment.

The implementation manner of determining the current rotation direction of the motor of the electric curtain according to the change condition of the output levels of the at least two pulse signals and the rotation direction judgment rule can be diversified aiming at the difference of the output levels of the at least two pulse signals and the difference of the rotation direction judgment rule. The specific processing procedure will be described in detail later.

And 104, controlling the motor to continuously rotate in the current rotating direction to drive the curtain cloth to be unfolded or furled.

In implementation, if the current rotation direction is the direction of pulling the curtain cloth open, the electric curtain control motor continues to rotate in the current rotation direction, and the curtain cloth can be driven to be unfolded. If the current rotation direction is the direction for drawing the curtain cloth, the electric curtain control motor continuously rotates in the current rotation direction to drive the curtain cloth to be drawn.

The specific processing procedure of the electric curtain control motor rotating continuously in the current rotating direction can refer to the processing procedure of controlling the motor to rotate in a certain rotating direction in the related art, and is not repeated in the application.

In the embodiment of the application, the electric curtain can obtain at least two pulse signals generated by a cutting magnetic field in the process that at least two Hall devices rotate along with the motor; determining the change condition of the output levels of at least two pulse signals; determining the current rotation direction of the motor according to the change conditions of the output levels of at least two pulse signals and a preset rotation direction judgment rule; and controlling the motor to continuously rotate in the current rotation direction to drive the curtain cloth to be unfolded or folded.

The current rotation direction of the motor can be determined according to the change condition of the output levels of at least two pulse signals and the rotation direction judgment rule, so that the rotation direction of the motor can be simply and effectively determined without a complex mechanical structure, and further the hand-pulling starting is realized.

In addition, the code for realizing the control function of the electric curtain has the advantages of simple writing and less instructions in the software control layer of the electric curtain.

Optionally, taking an example that the at least two pulse signals include a first pulse signal and a second pulse signal, an embodiment of the present application provides an implementation manner for determining a current rotation direction of the motor based on a rotation direction determination rule and a change condition of output levels of the at least two pulse signals, as shown in fig. 3, including:

step 301 determines the output level of the second pulse signal when the output level of the first pulse signal is changed from the first level to the second level.

In an embodiment, the motorized window treatment may determine a transition timing at which the output level is changed from the first level to the second level according to a change in the output level of the first pulse signal. The motorized window treatment may then determine the transition time, the output level of the second pulse signal.

Thereafter, the motorized window treatment may determine whether the output level of the second pulse signal is the first level or the second level.

And 302, if the output level of the second pulse signal is the first level, determining the current rotation direction of the motor to be the first rotation direction.

And step 303, if the output level of the second pulse signal is the second level, determining that the current rotating direction of the motor is a second rotating direction opposite to the first rotating direction.

Optionally, the first level is a preset low level, the second level is a preset high level, and the rotation direction determination rule may be a rising edge trigger determination, that is, when the output level of a certain pulse signal changes from the preset low level to the preset high level, the current rotation direction of the motor is determined.

Taking the first level as 0, the second level as 1, and the first rotation direction as the forward rotation direction of the motor as an example, when the output level of the first pulse signal is changed from the first level 0 to the second level 1, that is, when a rising edge occurs, the motorized window shade may determine the output level of the second pulse signal. If the output level of the second pulse signal is 0, the motorized window treatment may determine that the current rotation direction of the motor is the first rotation direction, i.e., the forward rotation direction. If the output level of the second pulse signal is 1, the motorized window treatment may determine that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction, i.e., a reverse rotation direction.

For example, as shown at a position indicated by an arrow 1 in fig. 2, when the output level of the first pulse signal a is changed from the first level 0 to the second level 1, that is, when a rising edge occurs, the motorized window treatment may determine the output level of the second pulse signal B to obtain the second level 1, and the motorized window treatment may determine that the current rotation direction of the motor is the reverse rotation direction.

Optionally, the first level is a preset high level, the second level is a preset low level, and the rotation direction determination rule may be that a falling edge triggers determination, that is, when an output level of a certain pulse signal changes from the preset high level to the preset low level, a current rotation direction of the motor is determined.

Taking the first level as 1, the second level as 0, and the first rotation direction as the forward rotation direction of the motor as an example, the output level of the second pulse signal is determined when the output level of the first pulse signal is changed from the first level 1 to the second level 0. If the output level of the second pulse signal is 1, the motorized window treatment may determine that the current rotation direction of the motor is the first rotation direction, i.e., the forward rotation direction. If the output level of the second pulse signal is 0, the motorized window treatment may determine that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction, i.e., a reverse rotation direction.

For example, as shown at a position indicated by an arrow 2 in fig. 2, when the output level of the first pulse signal a is changed from the first level 1 to the second level 0, that is, when a falling edge occurs, the motorized window treatment may determine the output level of the second pulse signal B to obtain the second level 0, and the motorized window treatment may determine that the current rotation direction of the motor is the reverse rotation direction.

In an embodiment of the present application, the motorized window treatment may determine the output level of the second pulse signal when the output level of the first pulse signal is changed from the first level to the second level. If the output level of the second pulse signal is the first level, the motorized window treatment may determine that the current rotational direction of the motor is the first rotational direction. If the output level of the second pulse signal is the second level, the motorized window treatment may determine that the current rotational direction of the motor is a second rotational direction opposite to the first rotational direction. Therefore, the current rotating direction of the motor can be quickly and accurately determined by the electric curtain through the change condition of the output levels of at least two pulse signals and the rotating direction judgment rule, so that the use experience of a user can be improved.

Optionally, taking an example that the at least two pulse signals include a first pulse signal and a second pulse signal, an embodiment of the present application provides another implementation manner for determining the current rotation direction of the motor based on the rotation direction determination rule and the change condition of the output levels of the at least two pulse signals, as shown in fig. 4, including:

step 401, if the output levels of the first pulse signal and the second pulse signal are both the first level, determining that the output level is changed to the target pulse signal of the second level first.

In an implementation, the motorized window treatment may determine whether the output levels of the first pulse signal and the second pulse signal are both the first level at the same time according to a variation of the output levels of the two pulse signals. If the output levels of the first pulse signal and the second pulse signal are both the first level, the electric curtain can determine that the output level is changed into the pulse signal of the second level first, and then the target pulse signal is obtained.

And 402, if the target pulse signal is the second pulse signal, determining the current rotating direction of the motor to be the first rotating direction.

And 403, if the target pulse signal is the first pulse signal, determining the current rotation direction of the motor to be a second rotation direction opposite to the first rotation direction.

Optionally, the first level is a preset low level, the second level is a preset high level, and the rotation direction determination rule may be a rising edge trigger determination, that is, when the output level of a certain pulse signal changes from the preset low level to the preset high level, the current rotation direction of the motor is determined.

Taking the first level as 0, the second level as 1, and the first rotation direction as the forward rotation direction of the motor as an example, when the output levels of the first pulse signal and the second pulse signal are both the first level 0, the motorized window shade may determine the target pulse signal whose output level is first changed to the second level 1. If the target pulse signal is the second pulse signal, the motorized window treatment may determine that the current rotational direction of the motor is the first rotational direction. If the target pulse signal is a first pulse signal, the motorized window treatment may determine that the current rotational direction of the motor is a second rotational direction opposite the first rotational direction, i.e., a reverse rotational direction.

For example, as shown in the position indicated by the arrow 3 in fig. 2, when the output levels of the first pulse signal a and the second pulse signal B are both the first level 0, the motorized window shade may determine that the target pulse signal whose output level is first changed to the second level 1, and obtain the second pulse signal B. The motorized window treatment may determine that the current rotational direction of the motor is a reverse rotational direction.

Optionally, the first level is a preset high level, the second level is a preset low level, and the rotation direction determination rule may be that a falling edge triggers determination, that is, when an output level of a certain pulse signal changes from the preset high level to the preset low level, a current rotation direction of the motor is determined.

Taking the first level as 1, the second level as 0, and the first rotation direction as the forward rotation direction of the motor as an example, when the output levels of the first pulse signal and the second pulse signal are both the first level 1, the motorized window shade may determine the target pulse signal whose output level is first changed to the second level 0. If the target pulse signal is a second pulse signal, the motorized window treatment may determine that the current rotational direction of the motor is a second rotational direction opposite the first rotational direction, i.e., a reverse rotational direction.

For example, as shown in fig. 2 at the position indicated by the arrow 4, when the output levels of the first pulse signal a and the second pulse signal B are both the first level 1, the motorized window shade may determine that the target pulse signal whose output level is first changed to the second level 0, and obtain the second pulse signal B. The motorized window treatment may determine that the current rotational direction of the motor is a reverse rotational direction.

In this embodiment, when the output levels of the first pulse signal and the second pulse signal are both the first level, the motorized window shade may determine the target pulse signal whose output level is first changed to the second level. If the target pulse signal is the second pulse signal, the motorized window treatment may determine that the current rotational direction of the motor is the first rotational direction; if the target pulse signal is a first pulse signal, the motorized window treatment may determine that the current rotational direction of the motor is a second rotational direction opposite the first rotational direction. Therefore, the current rotating direction of the motor can be quickly and accurately determined by the electric curtain through the changing conditions of the output levels of at least two pulse signals, so that the use experience of a user can be improved.

Based on the same technical concept, the embodiment of the present application further provides a motorized window treatment, which includes: the device comprises a motor, at least two Hall devices arranged in the motor and a processing device; wherein the content of the first and second substances,

the processing device is used for acquiring at least two pulse signals generated by a cutting magnetic field in the process that the at least two Hall devices rotate along with the motor, determining the current rotating direction of the motor according to the change conditions of the output levels of the at least two pulse signals and a preset rotating direction judgment rule, and controlling the motor to continue rotating in the current rotating direction so as to drive the curtain cloth to be unfolded or folded.

Fig. 5 is a schematic structural diagram of a motor according to an embodiment of the present application. Wherein, the motor includes a driving shaft 510, at least two hall devices 520, a magnetic member 530, and a circuit board 540. At least two hall devices 520 are disposed on the circuit board 540, and since they are covered by the magnetic member 530, the detailed shapes of the at least two hall devices 520 are not shown in the drawings, and only the disposition positions are shown. During the rotation of the at least two hall devices 520 with the motor, the magnetic field generated by the magnetic component 530 can be cut to generate at least two pulse signals.

Alternatively, the included angle between the at least two hall devices 520 and the drive shaft 510 may be less than 180 degrees.

When the included angle between the at least two hall devices 520 and the driving shaft 510 is equal to 180 degrees, that is, when the at least two hall devices 520 are arranged symmetrically to the driving shaft 510, the at least two hall devices 520 may generate the same pulse signal during the rotation with the motor to cut the magnetic field due to the influence of the magnetic field distribution.

And the included angle between at least two hall devices 520 and the transmission shaft 510 is less than 180 degrees, so that at least two different pulse signals can be generated when the at least two hall devices 520 rotate along with the motor so as to cut the magnetic field. The current rotation direction of the motor can be conveniently determined according to the change conditions of the output levels of the at least two pulse signals and the preset rotation direction judgment rule.

Optionally, the at least two pulse signals include a first pulse signal and a second pulse signal, and the processing device is specifically configured to determine an output level of the second pulse signal when the output level of the first pulse signal is converted from a first level to a second level; if the output level of the second pulse signal is the first level, determining that the current rotation direction of the motor is a first rotation direction; and if the output level of the second pulse signal is the second level, determining that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction.

Optionally, the at least two pulse signals include a first pulse signal and a second pulse signal, and the processing device is specifically configured to determine, when output levels of the first pulse signal and the second pulse signal are both a first level, a target pulse signal whose output level is first changed to a second level; if the target pulse signal is the second pulse signal, determining that the current rotating direction of the motor is a first rotating direction; and if the target pulse signal is the first pulse signal, determining that the current rotating direction of the motor is a second rotating direction opposite to the first rotating direction.

Optionally, the first level is a preset high level, and the second level is a preset low level; or, the first level is a preset low level, and the second level is a preset high level.

Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:

the embodiment of the application provides an electric curtain, which can obtain at least two pulse signals generated by a cutting magnetic field in the process that at least two Hall devices rotate along with a motor; determining the change condition of the output levels of at least two pulse signals; determining the current rotation direction of the motor according to the change conditions of the output levels of at least two pulse signals and a preset rotation direction judgment rule; and controlling the motor to continuously rotate in the current rotation direction to drive the curtain cloth to be unfolded or folded.

The current rotation direction of the motor can be determined according to the change condition of the output levels of at least two pulse signals and the rotation direction judgment rule, so that the rotation direction of the motor can be simply and effectively determined without a complex mechanical structure, and further the hand-pulling starting is realized.

Based on the same technical concept, the embodiment of the present application further provides a motorized window treatment control device, where the device is applied to a motorized window treatment, the motorized window treatment includes a motor and at least two hall devices disposed in the motor, and as shown in fig. 6, the device includes:

the acquiring module 610 is used for acquiring at least two pulse signals generated by a cutting magnetic field in the process that the at least two hall devices rotate along with the motor;

a first determining module 620, configured to determine a variation of output levels of the at least two pulse signals;

a second determining module 630, configured to determine a current rotation direction of the motor according to a change condition of output levels of the at least two pulse signals and a preset rotation direction determination rule;

and the control module 640 is used for controlling the motor to continuously rotate in the current rotation direction so as to drive the curtain to be unfolded or furled.

Optionally, the second determining module includes:

a first determination sub-module for determining an output level of the second pulse signal when the output level of the first pulse signal is converted from a first level to a second level in a case where the at least two pulse signals include a first pulse signal and a second pulse signal;

the second determining submodule is used for determining that the current rotating direction of the motor is the first rotating direction when the output level of the second pulse signal is the first level;

the second determining submodule is further configured to determine that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction when the output level of the second pulse signal is the second level.

Optionally, the second determining module includes:

a third determining submodule, configured to determine, when the at least two pulse signals include a first pulse signal and a second pulse signal, when output levels of the first pulse signal and the second pulse signal are both a first level, a target pulse signal whose output level is first changed to a second level;

the fourth determining submodule is used for determining that the current rotating direction of the motor is the first rotating direction when the target pulse signal is the second pulse signal;

the fourth determining submodule is further configured to determine that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction when the target pulse signal is the first pulse signal.

Optionally, the first level is a preset high level, and the second level is a preset low level; or, the first level is a preset low level, and the second level is a preset high level.

Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:

the embodiment of the application provides a control device of an electric curtain, which can obtain at least two pulse signals generated by a cutting magnetic field in the process that at least two Hall devices rotate along with a motor; determining the change condition of the output levels of at least two pulse signals; determining the current rotation direction of the motor according to the change conditions of the output levels of at least two pulse signals and a preset rotation direction judgment rule; and controlling the motor to continuously rotate in the current rotation direction to drive the curtain cloth to be unfolded or folded.

The current rotation direction of the motor can be determined according to the change condition of the output levels of at least two pulse signals and the rotation direction judgment rule, so that the rotation direction of the motor can be simply and effectively determined without a complex mechanical structure, and further the hand-pulling starting is realized.

An embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device may include: the system comprises a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 are communicated with each other through the communication bus 704.

A memory 703 for storing a computer program;

the processor 701 is configured to, when executing the computer program stored in the memory 703, implement the following steps:

acquiring at least two pulse signals generated by a cutting magnetic field in the process that the at least two Hall devices rotate along with the motor;

determining the change condition of the output levels of the at least two pulse signals;

determining the current rotation direction of the motor according to the change condition of the output levels of the at least two pulse signals and a preset rotation direction judgment rule;

and controlling the motor to continuously rotate in the current rotating direction to drive the curtain cloth to be unfolded or folded.

Optionally, the determining the current rotation direction of the motor according to the variation of the output levels of the at least two pulse signals and a preset rotation direction determination rule includes:

determining an output level of the second pulse signal when the output level of the first pulse signal is changed from a first level to a second level;

if the output level of the second pulse signal is the first level, determining that the current rotation direction of the motor is a first rotation direction;

and if the output level of the second pulse signal is the second level, determining that the current rotation direction of the motor is a second rotation direction opposite to the first rotation direction.

Optionally, the determining the current rotation direction of the motor according to the variation of the output levels of the at least two pulse signals and a preset rotation direction determination rule includes:

if the output levels of the first pulse signal and the second pulse signal are both the first level, determining that the output level is changed into a target pulse signal of the second level;

if the target pulse signal is the second pulse signal, determining that the current rotating direction of the motor is a first rotating direction;

and if the target pulse signal is the first pulse signal, determining that the current rotating direction of the motor is a second rotating direction opposite to the first rotating direction.

Optionally, the first level is a preset high level, and the second level is a preset low level; or, the first level is a preset low level, and the second level is a preset high level.

The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.

The communication interface is used for communication between the electronic equipment and other equipment.

The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.

The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.

Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:

the embodiment of the application provides electronic equipment which can obtain at least two pulse signals generated by a cutting magnetic field in the process that at least two Hall devices rotate along with a motor; determining the change condition of the output levels of at least two pulse signals; determining the current rotation direction of the motor according to the change conditions of the output levels of at least two pulse signals and a preset rotation direction judgment rule; and controlling the motor to continuously rotate in the current rotation direction to drive the curtain cloth to be unfolded or folded.

The current rotation direction of the motor can be determined according to the change condition of the output levels of at least two pulse signals and the rotation direction judgment rule, so that the rotation direction of the motor can be simply and effectively determined without a complex mechanical structure, and further the hand-pulling starting is realized.

Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the above-mentioned steps of a motorized window treatment control method.

Embodiments of the present application also provide a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of a motorized window treatment control method as described above.

It should be noted that, for the above-mentioned apparatus, electronic device, computer-readable storage medium and computer program product embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.

It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种弹性组合刮皮片及其在土豆刮皮上的应用

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!