CN115929160A - Multi-door linkage control method based on intelligent wardrobe - Google Patents

Multi-door linkage control method based on intelligent wardrobe Download PDF

Info

Publication number
CN115929160A
CN115929160A CN202211407782.1A CN202211407782A CN115929160A CN 115929160 A CN115929160 A CN 115929160A CN 202211407782 A CN202211407782 A CN 202211407782A CN 115929160 A CN115929160 A CN 115929160A
Authority
CN
China
Prior art keywords
door
controller
target
target motor
controllers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211407782.1A
Other languages
Chinese (zh)
Inventor
刘权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202211407782.1A priority Critical patent/CN115929160A/en
Publication of CN115929160A publication Critical patent/CN115929160A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides a multi-door linkage control method based on an intelligent wardrobe, wherein the intelligent wardrobe is provided with a plurality of doors, each door is provided with a controller, one of the controllers is a master controller, and the other controllers are slave controllers; the method comprises the following steps: the method comprises the following steps that a master controller sends communication commands to all slave controllers at preset time intervals, wherein the communication commands are commands of first data returned by target slave controllers; the slave controller judges whether the slave controller is a target slave controller, if so, the target slave controller transmits first data back to each controller, and the first data comprise the state of a door controlled by the target slave controller; and after receiving the user control signal, the main controller sends the user control signal to each slave controller, and each controller controls the work of the door corresponding to each controller according to the user control signal and the recorded state of the door. According to the intelligent wardrobe, the states of the doors can be known, so that the doors sharing one track position are prevented from being opened at the same time.

Description

Multi-door linkage control method based on intelligent wardrobe
Technical Field
The invention relates to the field of intelligent furniture, in particular to a multi-door linkage control method based on an intelligent wardrobe.
Background
The opening and closing of the cabinet door of the common wardrobe need to be controlled manually. When some wardrobes have a plurality of cabinet doors, there is corresponding relation between two of its cabinet doors, and two cabinet doors are a set of cabinet doors, and a set of cabinet doors need to be opened and closed simultaneously. When a large amount of clothes are in the hands of a user, the user is difficult to open a group of cabinet doors completely, and a large amount of clothes cannot be put into a wardrobe at the same time.
An existing intelligent storage cabinet comprises a power module, a switch module, a programmable control module, a motor, a direction switching module and the like. The user controls the door to be opened or closed by outputting the door opening signal and the door closing signal through the touch switch module.
However, the intelligent storage cabinet only controls one door, and when a plurality of cabinet doors exist, the intelligent storage cabinet cannot control linkage of a plurality of doors. When one door is opened, the door at the position of the shared track around the door is not allowed to be opened, and if a user signal is received at the moment, the door at the position of the shared track is required to be opened, and the door is damaged at the moment.
Disclosure of Invention
The invention aims to provide a multi-door linkage control method based on an intelligent wardrobe, wherein each door knows the state of each door.
In order to achieve the first object, the invention provides a multi-door linkage control method based on an intelligent wardrobe, wherein the intelligent wardrobe is provided with a plurality of doors, each door is provided with a controller, one of the controllers is a master controller, and the other controllers are slave controllers; the method comprises the following steps: the master controller sends communication commands to all the slave controllers at preset time intervals, the communication commands are commands of first data returned by the target slave controllers, and the master controller also sends information of states of the controlled doors when sending the communication commands; the slave controller judges whether the slave controller is a target slave controller, if so, the target slave controller transmits first data back to each controller, and the first data comprise the state of a door controlled by the target slave controller; and after receiving the user control signal, the master controller sends the user control signal to each slave controller, and each controller controls the work of the door corresponding to each controller according to the user control signal and the recorded state of the door.
According to the scheme, after the target slave controller receives the communication command sent by the master controller, the data of the state information of the door controlled by the target slave controller is sent to each controller. Each slave controller receives a communication command needing to return data by itself, so each controller receives the state information of the door controlled by each controller; this can make the target from the controller judge whether can open the cabinet door itself according to the state of the door that each controller controlled. The user control signal is a signal received by the wireless module from the remote controller. According to the intelligent wardrobe, the doors know the states of the doors, and the doors which share one rail can be prevented from being simultaneously opened to damage the doors.
In a further scheme, the current controller acquires the states of the doors corresponding to the other controllers, and judges whether the state of the door at the position of the common track of the door corresponding to the current controller is opened or closed; if the door at the common track position of the door corresponding to the current controller is opened, the current controller confirms that the corresponding door cannot be opened; and if the door at the common track position of the door corresponding to the current controller is closed, confirming that the corresponding door can be opened.
It can be seen that when two doors share a track position, when one door is opened, the other door cannot be opened. One of the controllers receives the state information of the door sent by the controller of the other door, judges whether the other door is opened or not, and if the other door is opened, confirms that the corresponding door cannot be opened. If the current controller receives the user control signal and needs to open the corresponding door, and the door at the common track position of the door corresponding to the current controller is in an open state, the current controller does not open the corresponding door.
In a further scheme, the number of the doors is more than four, wherein two doors form one group, and controllers on the same group of doors form one group of controllers; and the group of controllers control the same group of doors to be opened or closed simultaneously according to the user control signals sent by the main controller.
Therefore, the two doors are a group of doors, the controller on one group of doors is a group of controllers, and one group of controllers controls the same group of doors to be opened or closed simultaneously according to the user control signals sent by the main controller. When one controller in the front group of doors detects that the door at the common track position of the door corresponding to the controller is opened, the controller confirms that the corresponding door is not opened and simultaneously sends a signal that the door cannot be opened to the other controller in the front group of doors. If the group of doors needs to be opened by receiving the user control signal, the controller of the group of doors also controls the group of motors not to open the group of doors.
In a further scheme, one controller in a group of controllers acquires the state of the door at the position of the common track of the door with the other controller, judges whether the state of the door at the position of the common track of the door with the other controller is open or closed, confirms that the corresponding door cannot be opened if the state is the open state, and sends information that the group of doors cannot be opened to the other controller.
Therefore, one controller in a group of controllers can not only acquire the state of the door sharing the track position with the controller, but also acquire the state of the door sharing the track position with the door where the other controller is located, and if the state of the door sharing the track position with the door where the other controller is located is open, the group of controllers confirms that the corresponding door cannot be opened, and sends information that the group of doors cannot be opened to the other controller. If the group of doors needs to be opened by receiving the user control signal, the controller of the group of doors cannot control the corresponding motor to open the group of doors.
In a further aspect, the method further comprises: each controller recognizes the number of each door, sets the controller of the door of a specific number as a master controller, and sets the other controllers as slave controllers.
It can be seen that each controller sets the controller of the door with a specific number as a master controller by identifying the number of the door, and the rest are slave controllers.
In a further scheme, before the master controller sends the communication command to all the slave controllers at preset time intervals, the following steps are also executed: the target controller enters a learning state according to the user control signal; the target controller controls the target motor to rotate, so that a door corresponding to the target motor is opened, and the number of first Hall pulses detected in the Hall detection circuit is recorded; controlling the target motor to rotate, closing a door corresponding to the target motor and recording the number of second Hall pulses detected in the Hall detection circuit; and adding the first Hall pulse number and the second Hall pulse number, and then calculating an average number, wherein the average number is the stroke of the door corresponding to the target motor.
Therefore, the main control chip can enter a learning state, the travel information of the doors is recorded in the learning state process, the travel of each door is different when the door is opened and closed, and the travel information of each door is recorded to prevent each door from being impacted when the door is closed or opened, so that great noise is caused.
In a further aspect, the method further comprises: recording the Hall feedback time and the third Hall pulse number in the Hall detection circuit; calculating the actual rotating speed of the target motor, wherein the actual rotating speed is as follows: and dividing the product of the Hall feedback time and the third Hall pulse number by 60 to obtain the actual rotating speed. And subtracting the target motor set parameter from the actual rotating speed to obtain a difference value, and adjusting according to the difference value until the set rotating speed of the target motor is reached.
Therefore, in the process of opening or closing the motor control door, the main control chip records the Hall feedback time and the third Hall pulse number of the motor rotating for one circle in the Hall detection circuit, then calculates the actual speed and adjusts the rotating speed according to the actual speed.
In a further scheme, each controller is respectively connected with a direction setting circuit, a state switch is arranged on each direction setting circuit, when the state switch is closed, the target controller detects that the direction setting circuit is a low level signal, and when the state switch is opened, the target controller detects that the direction setting circuit is a high level signal; the target controller controls the target motor to rotate anticlockwise when detecting that the direction setting circuit is a high-level signal; before the target controller enters the learning state according to the user control signal, the method further comprises the following steps: after the intelligent wardrobe is powered on, the target controller judges whether the direction setting circuit is a high-level signal or not, if so, the target controller controls the target motor to rotate anticlockwise until the target motor is locked; if not, the target controller controls the target motor to rotate clockwise until the target motor is locked.
Therefore, after the motors are installed, the rotating directions of the opening doors of the motors are different due to different installation directions. It is necessary to test the direction of rotation of the motor to open the door before use. After the controller is powered on for the first time, a user pulls the door to a half-open state, and the target controller controls the target motor to rotate according to whether the direction setting circuit is a high-level signal.
In a further scheme, the target controller controls the target motor to rotate anticlockwise until the target motor is locked, and then executes the following steps: judging whether the direction setting circuit is a high level signal or not again, if so, recording that the rotating direction of the target motor when controlling the corresponding door to be closed is anticlockwise; if not, the rotation direction of the recording target motor when controlling the corresponding door to close is clockwise.
Therefore, when the target controller controls the target motor to rotate anticlockwise, if the door is in a door opening state, the user closes the state switch, and the controller detects that the direction setting circuit is a low-level signal; the target controller records that the rotating direction of the target motor when the corresponding door is controlled to be closed is clockwise.
In a further scheme, the target controller controls the target motor to rotate clockwise until the target motor is locked, and then the following steps are executed: judging whether the direction setting circuit is a high level signal or not, if not, recording that the rotating direction of the target motor when controlling the corresponding door to be closed is clockwise; if so, the rotation direction of the recording target motor when controlling the corresponding door to close is anticlockwise.
Therefore, when the target controller controls the target motor to rotate clockwise, if the door is in a door opening state, a user opens the switch of the direction setting circuit, and the controller detects that the direction setting circuit is a high-level signal; the target controller records that the rotating direction of the target motor when the corresponding door is controlled to be closed is anticlockwise.
Drawings
Fig. 1 is a block diagram of a system structure of an intelligent wardrobe to which an embodiment of the intelligent wardrobe-based multi-door linkage method of the present invention is applied.
Fig. 2 is a schematic diagram of a direction setting circuit in an intelligent wardrobe to which an embodiment of the intelligent wardrobe-based multi-door linkage method of the present invention is applied.
Fig. 3 is a schematic diagram of a door number setting circuit in an intelligent wardrobe applying the embodiment of the intelligent wardrobe-based multi-door linkage method of the present invention.
Fig. 4 is a schematic structural diagram of an intelligent wardrobe to which the embodiment of the intelligent wardrobe-based multi-door linkage method of the invention is applied.
FIG. 5 is a flowchart of detecting the rotation direction of a motor-controlled door when the door is opened according to an embodiment of the multi-door linkage method based on the intelligent wardrobe.
Fig. 6 is a flowchart of entering a learning state of the intelligent wardrobe based on the embodiment of the multi-door linkage method of the intelligent wardrobe.
FIG. 7 is a flow chart of adjusting the rotation speed of the motor according to the embodiment of the multi-door linkage method based on the intelligent wardrobe.
FIG. 8 is a flowchart of an embodiment of a multi-door linkage method based on an intelligent wardrobe.
Fig. 9 is a flowchart of the controller determining whether the corresponding door can be opened according to the embodiment of the multi-door linkage method based on the intelligent wardrobe.
Fig. 10 is a flowchart of the controller determining whether a corresponding set of doors can be opened according to the embodiment of the multi-door linkage method based on the intelligent wardrobe.
The invention is further described with reference to the following figures and examples.
Detailed Description
Referring to fig. 1, fig. 1 is a system structure diagram of an intelligent wardrobe to which an embodiment of the multi-door linkage method based on the intelligent wardrobe is applied. The intelligent wardrobe is provided with a plurality of doors, each door is provided with a controller, one of the controllers is a master controller 100, and the other controllers are slave controllers 110. The master controller 100 communicates with the slave controller 110 through the RS485 circuit 117 and the RS485 circuit 107. The circuit of the main controller 100 comprises a main controller 100, a motor driving circuit 101, a motor 105, a photoelectric isolation circuit 102, a Hall detection circuit 103, a current detection device 104, a wireless module 106 and an RS485 circuit 107. The circuits of the slave controller 110 comprise a slave controller 110, a motor driving circuit 111, a motor 115, a photoelectric isolation circuit 112, a hall detection circuit 113, a current detection device 114, a wireless module 116 and an RS485 circuit 117. The motors 105 and 115 use dc brushless motors. Wireless module 106 and wireless module 116 may be 2.4G wireless modules or WIFI wireless modules. The circuit configuration of the master controller 100 and the slave controller 110 is the same.
The master controller 100 receives the user control signal from the wireless module 106, and sends the user control signal to each slave controller, and each controller controls the operation of the corresponding door according to the user control signal and the recorded door state. The Hall detection circuit is a Hall sensor, the Hall detection circuit 103 and the Hall detection circuit 113 receive the Hall pulse number and the Hall feedback time when the motor works, the master controller 100 and the slave controller 110 determine the stroke of the motor corresponding to the opening and closing of the door according to the Hall pulse number when the door is opened and when the door is closed, and determine the rotation speed of the motor according to the Hall feedback time, the Hall pulse number when the motor rotates for one circle and the Hall feedback time. The optoelectronic isolation circuits 102 and 112 can effectively suppress the noise of the signal. The main controller 100 receives the current of the motor 105 detected by the current detection circuit 104, and can determine whether the current is normal and determine whether the motor is locked. The current detection circuit 114 received from the controller 110 detects the current of the motor 115, and can determine whether the current is normal and determine whether the motor is locked.
The user control signal can be a user control signal received by the wireless module and received by the main controller, or the number of Hall pulses detected by the Hall detection circuit when the door is opened or closed can be received by the current controller. When the door is opened or closed, the door and the motor are in a non-working state, and the Hall pulse number is 0. If the number of Hall pulses is detected in the Hall detection circuit at this time, it is proved that the user has the action of opening or closing the door, the current controller can control the work of the door corresponding to the current controller according to the user control signal and the recorded state of the door, and meanwhile, the controller in the same group with the current controller also controls the corresponding door to work synchronously.
Referring to fig. 2, fig. 2 is a schematic diagram of a direction setting circuit in an intelligent wardrobe to which an embodiment of the multi-door linkage method based on the intelligent wardrobe is applied. The direction setting circuit is connected in series with a resistor R5 and a state switch K5. The first end of the direction setting circuit is connected with a direct current voltage VCC, and the other end of the direction setting circuit is connected with a grounding end. The pin of the controller 1 is connected between the resistor R5 and the state switch K5. When the state switch K5 is closed, the controller 1 detects the level of the ground terminal, so that the controller 1 detects that the level state is low. When the state switch K5 is turned on, the direction setting circuit is in an open circuit state, two ends of the resistor R5 are in an equipotential state, and the pin of the controller 1 detects that the level state is a high level. The controller 1 determines the rotation direction of the motor by detecting the level state of the direction setting circuit 118. The controller 1 may be any controller in an intelligent wardrobe.
Referring to fig. 3, fig. 3 is a schematic diagram of a door number setting circuit in an intelligent wardrobe to which an embodiment of the intelligent wardrobe-based multi-door linkage method of the present invention is applied. The gate number setting circuit 119 has a plurality of circuits, and the first end of each circuit is connected to the dc power supply VCC and the other end is connected to the ground terminal. A resistor R1 is also connected in series between the first end of each circuit and the dc power supply VCC. Each circuit is connected with a resistor and a switching device in series: the resistor R2 is connected with the switch device K1 in series, the resistor R3 is connected with the switch device K2 in series, the resistor R4 is connected with the switch device K3 in series, and the resistor R6 is connected with the switch device K4 in series. The pins of the controller 1 are connected to a first end of each circuit. The pins are connected to an analog-to-digital converter in the controller 1. The number of circuits depends on the number of gates. The resistances of the resistors R2, R3, R4, and R6 are different, for example, the resistance of the resistor R2 may be 47K, the resistance of the resistor R3 may be 20K, the resistance of the resistor R4 may be 5.1K, and the resistance of the resistor R6 may be 1K. The controller 1 sets the pin to an analog input mode, receives the voltage of the pin, and converts the voltage into a voltage value through an analog-digital converter. Since the resistance values of the resistors of each circuit are different, the voltage value received by the controller 1 is also different when any switch is closed. The value of the voltage value at the first terminal of each circuit is recorded in the controller 1. The voltage value of each circuit corresponds to a gate number, and when the controller 1 receives the voltage value corresponding to a gate number, the controller 1 is recorded as the gate number. For example, when the gate number corresponding to the voltage value when K1 is closed is one, and the controller 1 receives the voltage value when K1 is closed, it records that the gate controlled by the controller 1 is one. If the controller 1 receives the voltage value corresponding to the specific number, the controller 1 may be set as the main controller.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an intelligent wardrobe to which an embodiment of the intelligent wardrobe-based multi-door linkage method of the present invention is applied. The number of the doors of the intelligent wardrobe is more than four, wherein two doors form one group, and the control on the same group of doors forms one group of controllers. The gate 22 and the gate 23 are a set of gates, and the gate 21 and the gate 24 are a set of gates. Door 21 shares a track position with door 22 and door 23 shares a track position with door 24. When the door 21 is opened, the door 22 moves in the direction of the door 22, when the door 22 is opened, the door 23 moves in the direction of the door 24, and when the door 24 is opened, the door 23 moves in the direction of the door 23. Because there is a spacing mechanism between the door 22 and the door 21, the door 21 cannot be opened when the door 22 is opened. If the door 21 moves toward the door 22 at this time, the door 21 is damaged. Similarly, when the door 23 is opened, the door 24 cannot be opened due to the presence of the stopper mechanism. If door 24 moves in the direction of door 23 at this time, door 24 is damaged.
Referring to fig. 5, fig. 5 is a flowchart for detecting the rotation direction of the motor-controlled door when the door is opened according to the embodiment of the multi-door linkage method based on the intelligent wardrobe. The direction in which each motor is installed may be different when the motor is installed, and the direction in which the motor rotates when the door is closed is different. Therefore, the rotating direction of the door is judged by the level state of the direction setting circuit when the door is closed, and the target controller controls the target motor to rotate anticlockwise when detecting that the direction setting circuit is a high level signal.
After the intelligent wardrobe is powered on, a user pulls the door to a half-open and half-closed state, and then step S61 is executed to judge whether the direction setting circuit is a high level signal.
If the direction setting circuit is a high level signal, step S62 is executed, and the target controller controls the target motor to rotate counterclockwise.
If the direction setting circuit is a low level signal, step S63 is executed, and the target controller controls the target motor to rotate clockwise.
And (4) after the target controller controls the target motor to rotate anticlockwise until the motor is locked, executing the step S64, and judging whether the direction setting circuit is a high-level signal again by the target controller. If the direction setting circuit is a high level signal, step S66 is executed, and the target controller records that the rotating direction of the target motor when controlling the corresponding door to close is counterclockwise. After the target controller controls the target motor to rotate anticlockwise, a user judges whether the door is closed or not after the target motor rotates anticlockwise. If the door is normally closed, the user does not have to change the state of the state switch on the direction setting circuit.
If the direction setting circuit is a low level signal, step S65 is executed, and the target controller records that the rotating direction of the target motor when controlling the corresponding door to close is clockwise. After the target controller controls the target motor to rotate counterclockwise, the user determines whether the door of the target motor is closed or opened. If the door of the target motor is open, the user closes the state switch on the direction setting circuit. At this time, the state switch of the direction setting circuit is closed, so the level signal received by the controller is low level, and the target controller records that the rotating direction of the target motor when controlling the corresponding door to be closed is clockwise.
After the target controller controls the target motor to rotate clockwise, step S67 is performed, and the target controller again determines whether the direction setting circuit is a high level signal.
If the direction setting circuit is a high level signal, step S68 is executed, and the target controller records that the rotating direction of the target motor when controlling the corresponding door to close is counterclockwise. After the target controller controls the target motor to rotate clockwise, the user judges whether the door of the target motor is closed or opened. If the door of the target motor is open, the user opens the state switch on the direction setting circuit. At this time, the state switch of the direction setting circuit is in an open state, the controller can detect a high level signal of the direction setting circuit, and the target controller records that the rotating direction of the target motor when controlling the corresponding door to be closed is anticlockwise.
If the direction setting circuit is a low level signal, step S69 is executed, and the target controller records that the rotating direction of the target motor when controlling the corresponding door to close is clockwise. After the target controller controls the target motor to rotate clockwise, and after the target motor rotates clockwise, a user judges whether the door is closed. If the door is normally closed, the state of the state switch on the direction setting circuit is not changed.
After the rotation direction of the motor is recorded, the main control chip receives a user control signal and enters a learning state. The main control chip enters a learning state to learn the stroke of the door, and the stroke information of the learning door can be accurately controlled when the intelligent wardrobe opens and closes the door, so that the noise is reduced.
Referring to fig. 6, fig. 6 is a flowchart illustrating an intelligent wardrobe entering a learning state in an embodiment of a multi-door linkage method based on the intelligent wardrobe. Step S41 is executed first, and the target controller enters a learning state according to the user control signal received by the wireless module. The main control chip can learn the stroke from opening to closing of the door after entering the learning state. Since the width of each door is different, the stroke of opening and closing each door is different. Therefore, before the intelligent wardrobe is used for the first time, the travel of each door needs to be learned.
And after the main control chip enters the learning state, executing step S42, controlling the target motor to rotate, opening the door corresponding to the target motor, and recording the number of the first Hall pulses detected in the Hall detection circuit. The first Hall pulse number is the pulse number detected by the Hall detection circuit in the door opening process of the motor.
After step S42 is executed, step S43 is executed to control the target motor to rotate, so that the gate corresponding to the target motor is closed, and the second hall pulse number detected by the hall detection circuit is recorded. The second Hall pulse number is the pulse number detected by the Hall detection circuit in the door closing process of the motor. Since there is a little deviation in the recorded strokes of opening and closing the door, the stroke of one door is confirmed from the number of hall pulses for opening and closing the door.
After step S43 is executed, step S44 is executed to add the first hall pulse number and the second hall pulse number and then average the numbers. The average is the travel of the door for the target motor.
Referring to fig. 7, fig. 7 is a flow chart of adjusting the rotation speed of the motor in the embodiment of the multi-door linkage method based on the intelligent wardrobe. When the intelligent wardrobe is used, the actual rotating speed of the intelligent wardrobe is calculated to adjust the rotating speed so that the motor reaches the target rotating speed. Step S51 is first executed to record the hall feedback time and the third hall pulse number detected in the hall detection circuit. The third Hall pulse number is the pulse number of one rotation of the motor.
After the hall feedback time and the third hall pulse number detected in the hall detection circuit are recorded, step S52 is executed to calculate the actual rotational speed of the target motor. The third Hall pulse number is the pulse number of one rotation of the target motor, and the actual rotating speed of the target motor is the product of the Hall feedback time and the third Hall pulse number divided by 60.
After calculating the actual rotation speed of the target motor, step S53 is executed to subtract the set parameter of the target motor from the actual rotation speed to obtain a difference value, and the rotation speed of the target motor is adjusted according to the difference value. The duty ratio output by the main control chip can be changed through the difference value, so that the driving motor adjusts the speed of the driving motor. The motor speed is accurately controlled, so that the vibration of the motor is small, the vibration of the door is also reduced, and large noise cannot be caused.
Referring to fig. 8, fig. 8 is a flowchart of an embodiment of a multi-door linkage method based on an intelligent wardrobe according to the present invention. First, step S10 is executed, in which the master controller sends communication commands to all the slaves at preset time intervals. The communication command is a command of the target slave controller for returning the first data, and when the communication command is sent, the master controller also sends the state information of the corresponding door of the master controller.
And after the step that the master controller sends the communication command to all the slave controllers in preset time, the step S11 is executed, and each slave controller judges whether the slave controller is a target slave controller. And after receiving the communication command sent by the master controller, the slave controller can judge whether the slave controller is a target slave controller. And the communication command of the master controller comprises the address of the target slave controller, when the target slave controller receives the communication command, the address of the master controller is compared with the address in the communication command, and if the address of the master controller is equal to the address in the communication command, the master controller is proved to be the target slave controller.
If the slave controller judges that the slave controller is the target slave controller, step S12 is executed, and the target slave controller transmits the first data back to each controller. The first data transmitted back by the target slave controller includes status information of the door controlled by the target slave controller. Each slave controller can receive the communication command sent by the master controller, each slave controller can send the state of the door controlled by the slave controller to each controller, and each controller knows the state of each door.
And (4) after the target slave controller transmits the first data back to each controller, executing the step S13, after receiving the user control signal, the master controller transmits the user control signal to each slave controller, and each controller controls the work of the corresponding door of each controller according to the user control signal and the recorded state of the door.
Referring to fig. 9, fig. 9 is a flowchart illustrating a controller determining whether a corresponding door can be opened according to an embodiment of the multi-door linkage method based on an intelligent wardrobe. Step S20 is executed first, and the current controller acquires the states of the doors corresponding to the remaining controllers. When the master controller sends a communication command, the target slave controller sends the states of the gates controlled by the target slave controller to the controllers, so that each controller can receive the states of the gates.
After the current controller obtains the states of the doors corresponding to the other controllers, step S21 is executed to determine whether the door state at the common rail position of the door corresponding to the current controller is open.
If the door at the common track position of the door corresponding to the current controller is in the open state, step S22 is executed, and the current controller confirms that the corresponding door cannot be opened. If the current controller receives a user control signal that the corresponding door needs to be opened, and the door at the common track position of the door corresponding to the current controller is in an opened state, the current controller does not open the corresponding door.
In another embodiment, if the door at the common track position of the door corresponding to the current controller is open, the current controller determines that the motor cannot open its corresponding door and sends a signal to the other controller of the set of controllers that the door cannot be opened. Because the door at the position of the common rail of the door corresponding to the current controller is already opened, the door corresponding to the current controller may be damaged if opened. If the group of doors needs to be opened by receiving the user control signal, the controller of the group of doors also controls the group of motors not to open the group of doors.
If the door at the common track position of the door corresponding to the current controller is in a closed state, step S23 is executed, and the current controller confirms that the corresponding door can be opened. In another embodiment, if the door at the common track position of the door corresponding to the current controller is in a closed state, the current controller confirms that the corresponding door can be opened, and sends a message that the door can be opened to another controller of the group of controllers.
Referring to fig. 10, fig. 10 is a flowchart illustrating a controller determining whether a corresponding set of doors can be opened according to an embodiment of the multi-door linkage method based on an intelligent wardrobe. First, step S30 is performed, and one controller of the group of controllers acquires the status of the door at the common track position of the door where the other controller is located. One of the controllers in a group of doors may also obtain the door status of the common track location of the door in which the other controller is located.
After step S30 is executed, step S31 is executed to determine whether the door at the common track position with the door where the other controller is located is open. If the door is in the open state, step S32 is executed, and the controller currently determines that the corresponding door cannot be opened. If the group of doors needs to be opened by receiving the user control signal, the group controller does not open the group of doors either.
If the door is closed, step S33 is executed, and the controller can open the corresponding door. The group controller may open the group of doors if a user control signal is received to open the group of doors.
According to the intelligent wardrobe, the doors know the states of the doors, and the work of the doors is controlled through the user control signal and the recorded states of the doors, so that the doors sharing one track are prevented from being simultaneously opened to damage the doors.
The above description is only a preferred embodiment of the present invention, but the inventive concept is not limited thereto, and many other equivalent embodiments can be included without departing from the inventive concept, and it will be apparent to those skilled in the art that various changes, rearrangements, and substitutions can be made without departing from the scope of the invention.

Claims (10)

1. A multi-door linkage control method based on an intelligent wardrobe is characterized by comprising the following steps:
the intelligent wardrobe is provided with a plurality of doors, each door is provided with a controller, one of the controllers is a master controller, and the other controllers are slave controllers;
the method comprises the following steps:
the master controller sends communication commands to all the slave controllers at preset time intervals, the communication commands are commands of first data returned by a target slave controller, and the master controller also sends information of states of the controlled doors when sending the communication commands;
the slave controller judges whether the slave controller is a target slave controller, if so, the target slave controller sends the first data to each controller, and the first data comprise the state of a door controlled by the target slave controller;
and the master controller receives a user control signal through a wireless module and then sends the user control signal to each slave controller, and each controller controls the work of the door corresponding to each controller according to the user control signal and the recorded state of the door.
2. The intelligent wardrobe-based multi-door linkage control method according to claim 1, characterized in that:
the current controller acquires the states of the doors corresponding to the other controllers, and judges whether the state of the door at the position of the shared track of the door corresponding to the current controller is open or closed;
if the door at the common track position of the door corresponding to the current controller is opened, the current controller confirms that the corresponding door cannot be opened;
and if the door at the common track position of the door corresponding to the current controller is closed, the current controller confirms that the corresponding door can be opened.
3. The intelligent wardrobe-based multi-door linkage control method according to claim 1, characterized in that:
the number of the doors is more than four, wherein two doors form one group, and the controllers on the same group of doors form one group of controllers;
and the group of controllers control the same group of doors to be opened or closed simultaneously according to the user control signals sent by the main controller.
4. The intelligent wardrobe-based multi-door linkage control method according to claim 3, wherein:
one controller in a group of controllers acquires the state of the door at the position of the common track of the door with the other controller, judges whether the state of the door at the position of the common track of the door with the other controller is open or closed, confirms that the corresponding door is not opened if the state is the open state, and sends information that the group of doors cannot be opened to the other controller.
5. The intelligent wardrobe-based multi-door linkage control method according to any one of claims 1 to 4, wherein:
the method further comprises the following steps: each of the controllers recognizes the number of each door, sets the controller of the door having a specific number as the master controller, and sets the other controllers as the slave controllers.
6. The intelligent wardrobe-based multi-door linkage control method according to any one of claims 1 to 4, wherein:
before the master controller sends communication commands to all the slave controllers at preset time intervals, the master controller further executes:
the target controller enters a learning state according to the user control signal;
the target controller controls a target motor to rotate, a door corresponding to the target motor is opened, and the number of first Hall pulses detected in a Hall detection circuit is recorded;
controlling the target motor to rotate, closing a door corresponding to the target motor and recording the number of second Hall pulses detected in the Hall detection circuit;
and adding the first Hall pulse number and the second Hall pulse number, and then calculating an average number, wherein the average number is the stroke of the door corresponding to the target motor.
7. The intelligent wardrobe-based multi-door linkage control method according to claim 6, wherein:
the method further comprises the following steps:
recording the Hall feedback time and the third Hall pulse number in the Hall detection circuit;
calculating the actual rotating speed of the target motor, wherein the actual rotating speed is as follows: dividing the product of the Hall feedback time and the third Hall pulse number by 60 to obtain the actual rotating speed;
and subtracting the target motor set parameter from the actual rotating speed to obtain a difference value, and adjusting according to the difference value until the set rotating speed of the target motor is reached.
8. The intelligent wardrobe-based multi-door linkage control method according to claim 6, wherein:
each controller is respectively connected with a direction setting circuit, a state switch is arranged on each direction setting circuit, when the state switch is closed, the target controller detects that the direction setting circuit is a low level signal, and when the state switch is opened, the target controller detects that the direction setting circuit is a high level signal;
the target controller controls the target motor to rotate anticlockwise when detecting that the direction setting circuit is a high-level signal;
before the target controller enters the learning state according to the user control signal, the method further comprises the following steps:
after the intelligent wardrobe is powered on, the target controller judges whether the direction setting circuit is a high-level signal or not, if so, the target controller controls the target motor to rotate anticlockwise until the target motor is locked; if not, the target controller controls the target motor to rotate clockwise until the target motor is locked up.
9. The intelligent wardrobe-based multi-door linkage control method according to claim 8, wherein:
the target controller controls the target motor to rotate anticlockwise until the target motor is locked, and executes the following steps:
judging whether the direction setting circuit is a high level signal or not, if so, recording that the rotating direction of the target motor when the target motor controls the corresponding door to be closed is anticlockwise; if not, recording that the rotating direction of the target motor when controlling the corresponding door to close is clockwise.
10. The intelligent wardrobe-based multi-door linkage control method according to claim 8, wherein:
the target controller controls the target motor to rotate clockwise until the target motor is locked, and then the following steps are executed:
judging whether the direction setting circuit is a high level signal or not, if not, recording that the rotating direction of the target motor when controlling the corresponding door to be closed is clockwise; and if so, recording that the rotating direction of the target motor when the target motor controls the corresponding door to close is anticlockwise.
CN202211407782.1A 2022-11-10 2022-11-10 Multi-door linkage control method based on intelligent wardrobe Pending CN115929160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211407782.1A CN115929160A (en) 2022-11-10 2022-11-10 Multi-door linkage control method based on intelligent wardrobe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211407782.1A CN115929160A (en) 2022-11-10 2022-11-10 Multi-door linkage control method based on intelligent wardrobe

Publications (1)

Publication Number Publication Date
CN115929160A true CN115929160A (en) 2023-04-07

Family

ID=86648094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211407782.1A Pending CN115929160A (en) 2022-11-10 2022-11-10 Multi-door linkage control method based on intelligent wardrobe

Country Status (1)

Country Link
CN (1) CN115929160A (en)

Similar Documents

Publication Publication Date Title
KR100348739B1 (en) Method for detecting interposition in power window apparatus
JP3547977B2 (en) Remote monitoring system for automatic door systems
DE60303668T2 (en) DEVICE FOR CONTROLLING ENGINE SPEED-BASED COVER PROTECTION AND METHOD FOR DETECTING AND COMPENSATING BAD TRAFFIC CONDITIONS
US7489483B2 (en) System and method for look ahead detection of electrical problems at a motor of a vehicle
KR101125310B1 (en) Device with controllable divider elements and control method
US6822410B2 (en) Motor speed-based anti-pinch control apparatus and method
US5950364A (en) Monitoring the motion of a drive-operable, one or multiple part door body
WO1999007971A3 (en) System and related methods for detecting and measuring the operational parameters of a garage door
CA2348784A1 (en) System and related methods for detecting and measuring the operational parameters of a garage door utilizing a lift cable system
US6034495A (en) Apparatus for detecting pinching of an object in a power window
CN101841449A (en) Method and device for realizing purpose of binding positions of CAN bus sensors
US7521881B2 (en) Constant speed barrier operator
CN104876102A (en) System and method for door motor control based on position verification
US6211665B1 (en) Solenoid motion detection circuit
CN115066534A (en) Sectional door operator system
CN115929160A (en) Multi-door linkage control method based on intelligent wardrobe
CN110748270B (en) Gate equipment, limit detection method of gate equipment and controller
US6157952A (en) Method and apparatus for networked access control
CN215581207U (en) Detection system for leaving of family of old people
DE10041736C1 (en) Device and method for detecting at least one parameter of a movement of parts which are movable relative to one another, in particular for adjusting drives in motor vehicles
US7724126B2 (en) Movable barrier operator operating parameter transfer method and apparatus
CN108662717A (en) Opening-closing structure control method, air conditioner and the readable storage medium storing program for executing of air conditioner
CN113220043A (en) Alignment adjustment method of blocking component, controller and gate equipment
US20220065023A1 (en) Automatic door operator and method of operating automatic door opertor
CN201243226Y (en) Dynamic drive circuit for preventing station long hair defect

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination