Sensored brushless motor position detection method, device, smart seat and storage medium

Through the cooperation of three-way Hall sensors and pressure sensors, the initial coordinate information and rotation direction of the brushless motor are detected and adjusted, which solves the problem of position deviation caused by external forces, realizes precise automatic adjustment of smart seats, and improves User experience.

CN118523670BActive Publication Date: 2024-10-22SHENZHEN SIHOO INTELLIGENT FURNITURE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410983218.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-22
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

The existing brushless motor's running direction is inconsistent with the desired direction due to the influence of external forces during operation, or the output shaft rotates when stopped, making it difficult for the software to accurately determine the motor position, resulting in intelligent seat adjustment deviations, which cannot meet user needs.

Method used

Using three-way Hall sensors and pressure sensors to cooperate with the controller, it obtains the commutation table through forward and reverse rotation, detects the stop coordinate information and Hall state changes, determines the initial coordinate information, and performs initialization adjustments to continuously read the Hall status to determine the direction of rotation and compensation correction to ensure accurate operation of the motor.

Benefits of technology

When the brushless motor moves passively due to external force, it accurately determines the direction of the passive movement and performs compensation and correction, which improves the control accuracy, ensures the accuracy of the automatic adjustment process of the smart seat, meets user needs, and provides a better user experience. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118523670B_ABST
    Figure CN118523670B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, smart seat and storage medium for detecting the position of a sensed brushless motor, and relates to the technical field of brushless motors. The method includes: driving the brushless motor to rotate forward and reverse, and obtaining a commutation table; when the brushless motor stops rotating, obtaining the stop coordinate information of the brushless motor and storing it in a storage unit; when the pressure sensor obtains a pressure signal, determining the initial coordinate information of the brushless motor, and initializing and adjusting the brushless motor according to the initial coordinate information and the stop coordinate information; according to user instructions or user information, driving the brushless motor after initialization and adjustment to rotate to the target position; when an abnormality occurs in the brushless motor during operation, determining the first passive direction of the brushless motor, and compensating and correcting the operation process of the brushless motor according to the first passive direction. The method according to the embodiment of the present invention can effectively eliminate the problem of the position deviating from the expected during the operation of the motor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of brushless motors, and in particular to a method and device for detecting the position of a brushless motor, a smart seat and a storage medium. Background Art

[0002] With the improvement of living standards, people have higher requirements for the comfort of chairs and the impact of chairs on physical health. At present, there are many smart seats such as smart massage chairs or smart ergonomic chairs on the market. These smart seats can automatically adjust the backrest angle, seat cushion inclination, and the angle of the armrests on both sides. In addition, these smart seats may also be equipped with massage modules for massaging the human body. In order to automatically adjust the angle of each component or adjust the position of the massage module, the smart seat will use a brushless motor to drive these components to move.

[0003] Existing brushless motors generally determine the motor position through the change of Hall signal and the direction of motor operation, and save the coordinate information of the motor position to facilitate the control of motor operation. However, this solution has the following problems: when the motor is running, if it is affected by external forces, the direction of the motor operation will be inconsistent with the expected direction, or when the motor stops, the output shaft of the motor will rotate due to external forces. These situations will cause the software to be unable to accurately determine the direction or position of the motor when calculating the coordinates, resulting in the final coordinate position of the motor deviating from the target position, which will cause the smart seat to deviate when adjusting the seat and fail to meet customer needs. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method, device, smart seat and storage medium for detecting the position of a brushless motor, which can effectively eliminate the problem of the position deviating from the expected position during the operation of the motor.

[0005] In the first aspect, a method for detecting the position of a brushless motor according to an embodiment of the present invention is applied to a smart seat, wherein the smart seat is provided with a controller, a motor drive circuit and a brushless motor, wherein the brushless motor is provided with three Hall sensors for detecting the position of the motor, and the three Hall sensors are spaced 120° apart from each other, and the controller is provided with a storage unit for storing the coordinate information of the motor position of the brushless motor, and the smart seat is provided with a plurality of pressure sensors, wherein the Hall sensors and the pressure sensors are both electrically connected to the controller, and the controller is electrically connected to the motor drive circuit, and the motor drive circuit is electrically connected to the brushless motor, and the brushless motor is used to drive the seat cushion or backrest or massage module of the smart seat to move; the method for detecting the position of a brushless motor comprises:

[0006] The controller drives the brushless motor to rotate forward and reverse through the motor drive circuit, and during the forward and reverse rotation, obtains the commutation table of the brushless motor during the forward and reverse rotation through the three Hall sensors;

[0007] When the brushless motor stops rotating, the stop coordinate information of the brushless motor is obtained through the three Hall sensors and stored in the storage unit;

[0008] When the brushless motor stops rotating, the three Hall sensors are used to detect the change of the Hall state of the brushless motor;

[0009] When the pressure sensor acquires the pressure signal, the initial coordinate information of the brushless motor is determined according to the stop coordinate information, the change of the Hall state and the commutation table, and the brushless motor is initialized and adjusted according to the initial coordinate information and the stop coordinate information;

[0010] Obtaining a user instruction or user information, determining a target position according to the user instruction or the user information, and driving the brushless motor after initialization adjustment to rotate to the target position;

[0011] In the process of driving the brushless motor to rotate, the Hall state of the brushless motor is continuously read through the three Hall sensors, and the rotation direction of the brushless motor is determined according to the Hall state and the commutation table;

[0012] Determining whether the brushless motor is operating normally according to the rotation direction, the Hall state and the commutation table;

[0013] When an abnormality occurs in the running process of the brushless motor, a first passive direction of the brushless motor is determined, and a compensation correction is performed on the running process of the brushless motor according to the first passive direction.

[0014] According to some embodiments of the present invention, the step of determining the initial coordinate information of the brushless motor according to the stop coordinate information, the change of the Hall state and the commutation table, and initializing and adjusting the brushless motor according to the initial coordinate information and the stop coordinate information includes:

[0015] Determining a second passive direction and a passive movement distance of the brushless motor during a period of stopping rotation according to the change of the Hall state and the commutation table;

[0016] determining the initial coordinate information according to the stop coordinate information, the second passive direction and the passive movement distance;

[0017] The brushless motor is driven to rotate the passive movement distance in the opposite direction of the second passive direction, so that the brushless motor rotates to a position corresponding to the stop coordinate information.

[0018] According to some embodiments of the present invention, the pressure sensor includes a first pressure sensor and a second pressure sensor, the first pressure sensor is arranged on the seat cushion of the smart seat, and the second pressure sensor is arranged on the backrest of the smart seat; the step of obtaining a user instruction or user information, determining a target position according to the user instruction or the user information, and driving the brushless motor after initialization adjustment to rotate to the target position includes:

[0019] Acquiring first pressure information through the first pressure sensor;

[0020] acquiring second pressure information through the second pressure sensor;

[0021] Determine corresponding user information by combining the first pressure information and the second pressure information;

[0022] According to the user information, the target position of the brushless motor corresponding to the user information is determined in the storage unit, and the brushless motor after initialization adjustment is driven to rotate to the target position; or, a user instruction is received, the target position is determined according to the user instruction, and the brushless motor after initialization adjustment is driven to rotate from the starting position to the target position.

[0023] According to some embodiments of the present invention, the method for detecting the position of a brushless motor further includes:

[0024] During the operation of the brushless motor, when the Hall states read by the three Hall sensors are 000 or 111, it is determined that the brushless motor has a fault;

[0025] The operation of the brushless motor is stopped, the brushless motor is restarted, and the Hall state of the brushless motor is set to the Hall state read last time.

[0026] According to some embodiments of the present invention, the step of driving the brushless motor to rotate forward and reverse, and obtaining a commutation table of the brushless motor during forward and reverse rotation through three Hall sensors, includes:

[0027] The brushless motor is driven to rotate in a forward direction. During the forward rotation, the change of the Hall state is acquired through the three Hall sensors to obtain the first commutation information;

[0028] The brushless motor is driven to rotate in the reverse direction. During the reverse rotation, the change of the Hall state is acquired through the three Hall sensors to obtain the second commutation information;

[0029] The commutation table is obtained by combining the first commutation information and the second commutation information.

[0030] According to some embodiments of the present invention, when an abnormality occurs in the brushless motor during operation, the step of determining a first passive direction of the brushless motor and compensating and correcting the operation process of the brushless motor according to the first passive direction includes:

[0031] When an abnormality occurs during the operation of the brushless motor, the first passive direction of the brushless motor is determined according to the change of the Hall state of the brushless motor during the abnormality, and the Hall state read before the abnormality occurs is obtained;

[0032] When the first passive direction is opposite to the rotation direction of the brushless motor, the brushless motor is driven to rotate according to the rotation direction to the Hall state read before the abnormality occurs, the brushless motor is reset, and then the brushless motor is driven to rotate from the reset position to the target position according to the rotation direction;

[0033] When the first passive direction is the same as the rotation direction of the brushless motor, the rotation angular velocity of the brushless motor is adjusted so that the time for the brushless motor to reach the target position is the same as the preset time.

[0034] According to some embodiments of the present invention, when the first passive direction is the same as the rotation direction of the brushless motor, the step of adjusting the rotation angular velocity of the brushless motor so that the time for the brushless motor to reach the target position is the same as the preset time includes:

[0035] Before the brushless motor becomes abnormal, determining the rotation time of the brushless motor to complete one revolution by the change of the Hall state of the brushless motor;

[0036] Determining the rotation angular velocity of the brushless motor according to the rotation time;

[0037] Determining a rotation distance of the brushless motor according to an initial position and the target position;

[0038] Determining the preset time according to the rotation angular velocity and the rotation distance;

[0039] Determine the deviation distance between the current position of the brushless motor and the target position, and the deviation time between the current time and the preset time, and determine the adjusted rotational angular velocity according to the deviation distance and the deviation time.

[0040] In the second aspect, according to an embodiment of the present invention, a position detection device for a brushless motor includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the position detection method for a brushless motor as described in the embodiment of the first aspect.

[0041] In a third aspect, a smart chair according to an embodiment of the present invention includes the position detection device of the brushless motor described in the embodiment of the second aspect.

[0042] In a fourth aspect, according to a storage medium of an embodiment of the present invention, the storage medium stores computer executable instructions, and the computer executable instructions are used to enable a computer to execute the method for detecting the position of a brushless motor described in the embodiment of the first aspect.

[0043] The method, device, smart seat and storage medium for detecting the position of a brushless motor according to the embodiments of the present invention have at least the following beneficial effects: when the brushless motor generates passive movement due to an external force, the direction of the passive movement can be accurately determined, and the brushless motor can be compensated and corrected in time, thereby ensuring the control accuracy of the brushless motor, effectively eliminating the problem of the position deviating from the expected value during the operation of the motor, ensuring that the automatic adjustment process of the smart seat meets the needs of the user, and bringing the user a better user experience.

[0044] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0046] Figure 1 A flow chart of the steps of a method for detecting a position of a brushless motor according to an embodiment of the present invention;

[0047] Figure 2 Schematic diagram of the circuit structure of the smart chair according to an embodiment of the present invention;

[0048] Figure 3 is a schematic diagram of a commutation table according to an embodiment of the present invention;

[0049] Reference numerals:

[0050] The controller 100 , the storage unit 110 , the motor driving circuit 200 , the brushless motor 300 , the Hall sensor 400 , and the pressure sensor 500 . DETAILED DESCRIPTION

[0051] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limitations on the present application. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0052] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0053] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0054] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0055] With the improvement of living standards, people have higher requirements for the comfort of chairs and the impact of chairs on physical health. At present, there are many smart seats such as smart massage chairs or smart ergonomic chairs on the market. These smart seats can automatically adjust the backrest angle, seat cushion inclination, and the angle of the armrests on both sides. In addition, these smart seats may also be equipped with massage modules for massaging the human body. In order to automatically adjust the angle of each component or adjust the position of the massage module, the smart seat will use a brushless motor to drive these components to move.

[0056] Existing brushless motors generally determine the motor position through the change of Hall signal and the direction of motor operation, and save the coordinate information of the motor position to facilitate the control of motor operation. However, this solution has the following problems: when the motor is running, if it is affected by external forces, the direction of the motor operation will be inconsistent with the expected direction, or when the motor stops, the output shaft of the motor will rotate due to external forces. These situations will cause the software to be unable to accurately determine the direction or position of the motor when calculating the coordinates, resulting in the final coordinate position of the motor deviating from the target position, which will cause the smart seat to deviate when adjusting the seat and fail to meet customer needs.

[0057] To this end, the embodiments of the present invention provide a method, device, smart seat and storage medium for detecting the position of a brushless motor. When the brushless motor generates passive motion due to an external force, the method can accurately determine the direction of the passive motion and timely compensate and correct the brushless motor, thereby ensuring the control accuracy of the brushless motor, effectively eliminating the problem of the position deviation from the expected value during the operation of the motor, ensuring that the automatic adjustment process of the smart seat meets user needs, and bringing users a better user experience.

[0058] The following is combined with Figure 1-3 , describes in detail the method, device, smart seat and storage medium for detecting the position of a brushless motor according to an embodiment of the present invention.

[0059] On the one hand, the embodiment of the present invention provides a method for detecting the position of a brushless motor, which is applied to a smart seat, such as Figure 2 As shown, in this example, the smart seat is provided with a controller 100, a motor drive circuit 200 and a brushless motor 300, the brushless motor 300 is provided with three Hall sensors 400 for detecting the motor position, and the three Hall sensors 400 are spaced 120° apart from each other, the controller 100 is provided with a storage unit 110 for storing the coordinate information of the motor position of the brushless motor 300, the smart seat is provided with a plurality of pressure sensors 500, the Hall sensors 400 and the pressure sensors 500 are both electrically connected to the controller 100, the controller 100 is electrically connected to the motor drive circuit 200, the motor drive circuit 200 is electrically connected to the brushless motor 300, and the brushless motor 300 is used to drive the seat cushion or backrest or massage module of the smart seat.

[0060] It should be noted that the controller 100 can use a processor such as a single-chip microcomputer and a DSP to control the working state of each component inside the smart seat. The motor drive circuit 200 can use a common drive circuit such as a three-phase inverter bridge structure to drive the brushless motor 300 to rotate forward or reverse or stop rotating according to the instructions of the controller 100. The brushless motor 300 is provided with three Hall sensors 400, and the three Hall sensors 400 correspond to three phases respectively. The rotation direction and position information of the brushless motor 300 are identified by the Hall signals read by the three Hall sensors 400. The controller 100 is provided with a storage unit 110, which can be a common memory such as flash, RAM, ROM, etc., for storing the position coordinate information of the brushless motor 300, and can also be used to store user information, so that different users can set various parameters of the smart seat according to their own conditions, such as parameters such as backrest angle, seat cushion angle and massage position, so that the user can directly call the user information stored in the storage unit 110, so that the smart seat automatically adjusts according to the user information, simplifying the user's operation. The pressure sensor 500 can be set on the seat cushion or backrest or other positions of the smart chair to detect whether someone is sitting on the smart chair, and to determine who the user sitting on the chair is based on the detected pressure signal.

[0061] like Figure 1 As shown, the method for detecting the position of a brushless motor according to an embodiment of the present invention comprises the following steps:

[0062] Step S100: the controller 100 drives the brushless motor 300 to rotate forward and reverse through the motor driving circuit 200. During the forward and reverse rotation processes, the commutation table of the brushless motor 300 during the forward and reverse rotation is obtained through the three-way Hall sensor 400.

[0063] Specifically, in order to determine whether the brushless motor 300 is operating normally during operation and to determine the rotation direction of the brushless motor 300, it is necessary to first obtain the commutation table of the brushless motor 300. The specific method for obtaining the commutation table is as follows:

[0064] The brushless motor 300 is driven to rotate in the forward direction. During the forward rotation, the change of the Hall state is obtained through the three Hall sensors 400 to obtain the first commutation information;

[0065] The brushless motor 300 is driven to rotate in the reverse direction. During the reverse rotation, the change of the Hall state is obtained through the three-way Hall sensor 400 to obtain the second commutation information;

[0066] The first commutation information and the second commutation information are combined to obtain a commutation table.

[0067] First, the brushless motor 300 is rotated forward without external interference, and the commutation sequence read by the three Hall sensors 400 in each cycle is recorded. Then, the brushless motor 300 is rotated in the reverse direction, and the commutation sequence read by the three Hall sensors 400 in each cycle is also recorded. Finally, the commutation table can be obtained by summarizing. The final commutation table is as follows: Figure 3 As shown. Figure 3 It can be known that when the brushless motor 300 rotates forward, the commutation sequence of one cycle read by the three-way Hall sensor 400 is: 001-101-100-110-010-011; when the brushless motor 300 rotates reversely, the commutation sequence of one cycle read by the three-way Hall sensor 400 is: 001-011-010-110-100-101. If the Hall state read by the three-way Hall sensor 400 is 000 or 111 during the reading process, it indicates that the brushless motor 300 is in a fault state. Figure 3 It can be seen from the commutation table that when the brushless motor 300 is rotating forward or reverse, the changes in the Hall states read twice adjacently have a fixed order. Therefore, the movement direction of the brushless motor 300 can be judged as forward or reverse by the changes in the Hall states read twice adjacently.

[0068] Step S200: when the brushless motor 300 stops rotating, the stop coordinate information of the brushless motor 300 is obtained through the three-way Hall sensor 400 and stored in the storage unit 110;

[0069] Specifically, each time the brushless motor 300 of the smart seat changes from a working state to a stopped state, the stop coordinate information of the brushless motor 300 when it stops is obtained through the three-way Hall sensor 400, and the stop coordinate information is stored through the storage unit 110, so as to facilitate the memorization of the stop coordinate information and facilitate the brushless motor 300 to start from this position the next time it starts, thereby ensuring the position accuracy and control accuracy of the brushless motor 300.

[0070] Step S300: When the brushless motor 300 stops rotating, the three-way Hall sensor 400 is used to detect the change of the Hall state of the brushless motor 300;

[0071] Specifically, when the brushless motor 300 stops rotating, under normal circumstances, the Hall state of the brushless motor 300 will not change. Only when the brushless motor 300 is subjected to an external force, causing the output shaft of the brushless motor 300 to rotate, the Hall state of the brushless motor 300 will change. Therefore, by detecting whether the Hall state of the brushless motor 300 changes during the period when the brushless motor 300 stops rotating through the three-way Hall sensor 400, it can be known whether the output shaft of the brushless motor 300 rotates due to an external force during the period when the brushless motor 300 stops rotating.

[0072] Step S400: When the pressure sensor 500 obtains the pressure signal, the initial coordinate information of the brushless motor is determined according to the stop coordinate information, the change of the Hall state and the commutation table, and the brushless motor 300 is initialized and adjusted according to the initial coordinate information and the stop coordinate information.

[0073] Specifically, when the pressure sensor 500 does not detect a pressure signal, it means that there is no one on the smart seat, and the smart seat is in a dormant state, and the brushless motor 300 is in a stopped state. When the pressure sensor 500 obtains a pressure signal, it means that a user may be sitting on the smart seat. At this time, the smart seat needs to be prepared in advance for the next user to operate the smart seat. To this end, when the pressure sensor 500 obtains a pressure signal, the controller 100 determines whether the brushless motor 300 has passive motion during the period of stopping according to the change of the Hall state of the brushless motor 300 during the period of stopping. If the Hall state of the brushless motor 300 does not change during the period of stopping, it means that the brushless motor 300 has not passively moved during the period of stopping. At this time, the initial coordinate information of the brushless motor 300 is consistent with the stop coordinate information, and there is no need to initialize and adjust the brushless motor 300. If the Hall state of the brushless motor 300 changes during the period of stopping rotation, it means that the brushless motor 300 has passive movement during the period of stopping rotation. At this time, the initial coordinate information of the brushless motor 300 is inconsistent with the stop coordinate information, and the brushless motor 300 needs to be initialized and adjusted. If the brushless motor 300 is not initialized and adjusted, when the controller 100 receives a user instruction and needs to adjust the backrest angle, seat angle or massage position, it will calculate the rotation angle of the brushless motor 300 according to the stop coordinate information. However, at this time, the initial position of the brushless motor 300 is not located at the position corresponding to the stop coordinate information, which will cause the calculated rotation angle to have a deviation, causing the final position of the brushless motor 300 to deviate from the target position, resulting in the final adjusted backrest angle, seat angle or massage position not meeting the user's needs and failing to meet the user's requirements. Therefore, it is necessary to initialize and adjust the brushless motor 300 first, and the specific adjustment process is as follows:

[0074] Determine the second passive direction and passive movement distance of the brushless motor 300 during the stop period according to the change of the Hall state and the commutation table;

[0075] Determine the initial coordinate information according to the stop coordinate information, the second passive direction and the passive movement distance;

[0076] The brushless motor 300 is driven to rotate in the opposite direction of the second passive direction by a passive movement distance, so that the brushless motor 300 rotates to a position corresponding to the stop coordinate information.

[0077] When the three-way Hall sensor 400 detects that the Hall state of the brushless motor 300 changes during the period of stopping rotation, the commutation table will be queried according to the change of the Hall state to obtain the second passive direction and passive movement distance of the brushless motor 300, and then the initial coordinate information can be determined according to the stop coordinate information, the second passive direction and the passive movement distance. Finally, the brushless motor 300 is driven to rotate the passive movement distance in the opposite direction of the second passive direction, so that the brushless motor 300 rotates to the position corresponding to the stop coordinate information. Assuming that the second passive direction is a forward rotation, then when resetting the brushless motor 300, it needs to be rotated in the reverse direction; assuming that the second passive direction is a reverse rotation, then when resetting the brushless motor 300, it needs to be rotated in the forward direction, and the rotation distance is the same as the passive movement distance, so that the brushless motor 300 can be reset to the position corresponding to the stop coordinate information.

[0078] Step S500: obtaining a user instruction or user information, determining a target position according to the user instruction or user information, and driving the brushless motor 300 after initialization adjustment to rotate to the target position;

[0079] Specifically, when the user sits on the smart seat, the user can issue user instructions to the smart seat. The specific method can be to issue user instructions to the smart seat through the operation interface or operation buttons set on the smart seat, or to issue user instructions through some terminal devices (such as mobile phones, tablet computers, wearable devices, etc.), so as to control the smart seat to automatically adjust the backrest angle, seat cushion angle or massage position, etc. In addition to the user issuing user instructions to control the smart seat, the smart seat can also automatically obtain user information and automatically adjust according to the user information. In order to accurately obtain user information, the pressure sensor 500 includes a first pressure sensor and a second pressure sensor. The first pressure sensor is set on the seat cushion of the smart seat, and the second pressure sensor is set on the backrest of the smart seat. Obtaining user information includes the following four steps:

[0080] (1) Obtaining first pressure information through a first pressure sensor;

[0081] (2) obtaining second pressure information through a second pressure sensor;

[0082] (3) Determine corresponding user information by combining the first pressure information and the second pressure information;

[0083] (4) According to the user information, determining the target position of the brushless motor 300 corresponding to the user information in the storage unit 110, and driving the brushless motor 300 to rotate to the target position; or receiving a user instruction, determining the target position according to the user instruction, and driving the brushless motor 300 to rotate to the target position.

[0084] Since the first pressure sensor is arranged on the seat cushion of the smart chair, the first pressure sensor detects the weight information of the user, and the second pressure sensor is arranged on the backrest of the smart chair, and obtains the pressure when the user leans on the backrest of the smart chair. If only one kind of pressure information is used for judgment, there may be errors in the judgment result, and the first pressure information obtained by the first pressure sensor and the second pressure information obtained by the second pressure sensor are combined for judgment, which can improve the accuracy of the judgment result. The user can set personal default information (such as backrest angle, seat cushion angle and massage position, etc.) on the smart chair. The controller 100 will pair the user with the default information set according to the first pressure information and the second pressure information of the user, constitute the user information of the user, and store the user information in the storage unit 110. When the user sits on the smart chair, the controller 100 can find the corresponding user information in the storage unit 110 according to the first pressure information and the second pressure information, and control the brushless motor 300 to rotate according to the user information, so as to adjust the various parameters of the smart chair, so that the smart chair can adjust itself as soon as the user sits on the smart chair, without the need for user operation, thereby improving convenience. When the user sits on the smart seat, if he wants to adjust the smart seat, he can send a user command to make the smart seat adjust. It should be noted that the priority of the user command is higher than the user information. When the user command and the user information are different, the user command shall prevail.

[0085] Step S600: In the process of driving the brushless motor 300 to rotate, the Hall state of the brushless motor 300 is continuously read through the three-way Hall sensor 400, and the rotation direction of the brushless motor 300 is determined according to the Hall state and the commutation table;

[0086] Specifically, during the rotation of the brushless motor 300, the Hall state of the brushless motor 300 is continuously read through the three-way Hall sensor 400, and then the rotation direction of the brushless motor 300 can be known by querying the commutation table according to the change of the Hall state. For example, assuming that the Hall states obtained by the first two readings are 001 and 101 respectively, and the Hall state currently read is 100, by querying the commutation table, it can be known that the rotation direction of the brushless motor 300 at this time is forward rotation; assuming that the Hall states obtained by the first two readings are 001 and 011 respectively, and the Hall state currently read is 010, by querying the commutation table, it can be known that the rotation direction of the brushless motor 300 at this time is reverse rotation. It can be seen that the rotation direction of the brushless motor 300 can be determined according to the change of the Hall state and the commutation table.

[0087] Step S700: Determine whether the brushless motor 300 is operating normally according to the rotation direction, the Hall state and the commutation table;

[0088] Specifically, after obtaining the rotation direction of the brushless motor 300, the next Hall state can be predicted according to the commutation table. If the Hall state read next time is consistent with the predicted Hall state, it means that the brushless motor 300 is operating normally. If the Hall state read next time is inconsistent with the predicted Hall state, it means that the brushless motor 300 is operating abnormally. If the rotation direction of the brushless motor 300 is forward rotation, and the current Hall state is 101, it can be known from the commutation table that the next Hall state should be 100. If the next Hall state is 100, it proves that the brushless motor 300 is operating normally. If the next Hall state is not 100, it means that the brushless motor 300 is abnormal, indicating that the brushless motor 300 rotates under the influence of external force and deviates from the original operating state, which will cause the final position of the brushless motor 300 to deviate from the target position.

[0089] Step S800: when an abnormality occurs during the operation of the brushless motor 300, a first passive direction of the brushless motor 300 is determined, and compensation correction is performed on the operation process of the brushless motor 300 according to the first passive direction.

[0090] Specifically, when an abnormality is detected in the operation of the brushless motor 300, the first passive direction of the brushless motor 300 when subjected to external force can be determined based on the change in the Hall state of the brushless motor 300 during the abnormal time period, thereby compensating and correcting the operation process of the brushless motor 300 based on the first passive direction of the brushless motor 300 to ensure that the final position of the brushless motor 300 is consistent with the target position.

[0091] In this example, the above step S800 includes the following three steps:

[0092] (1) When an abnormality occurs during the operation of the brushless motor 300, the first passive direction of the brushless motor 300 is determined according to the change of the Hall state of the brushless motor 300 during the abnormality, and the Hall state read before the abnormality occurs is obtained;

[0093] (2) When the first passive direction is opposite to the rotation direction of the brushless motor 300, the brushless motor 300 is driven to rotate in the rotation direction to the Hall state read before the abnormality occurs, the brushless motor 300 is reset, and then the brushless motor 300 is driven to rotate from the reset position to the target position according to the rotation direction;

[0094] (3) When the first passive direction is the same as the rotation direction of the brushless motor 300 , the rotation angular velocity of the brushless motor 300 is adjusted so that the time for the brushless motor 300 to reach the target position is the same as the preset time.

[0095] When it is detected that the brushless motor 300 is abnormal during operation, the change of the Hall state of the brushless motor 300 can be obtained within a period of time after the abnormality occurs, and the commutation table is queried according to the change of the Hall state to obtain the first passive direction of the brushless motor 300. At the same time, the Hall state read last time before the abnormality occurs is recorded. If the first passive direction is opposite to the rotation direction of the brushless motor 300, the brushless motor 300 is driven to rotate in the rotation direction to the Hall state read before the abnormality occurs, the brushless motor 300 is reset, and then the brushless motor 300 is driven to rotate from the reset position to the target position according to the rotation direction, that is, the brushless motor 300 is reset first and returned to the state before the abnormality occurs, so as to control the brushless motor 300 to rotate, and ensure that the final position of the brushless motor 300 is equal to the target position. When the first passive direction is the same as the rotation direction of the brushless motor 300, if the brushless motor 300 is driven to rotate in the opposite direction for reset, it may cause a bad experience to the user, or make the user think that the operation is wrong, so as to readjust the smart seat, which brings inconvenience to the user. Therefore, in this example, when the first passive direction is the same as the rotation direction of the brushless motor 300, in order not to affect the user experience, the brushless motor 300 is not rotated in the reverse direction for resetting, but the rotation angular velocity of the brushless motor 300 is adjusted so that the smart seat is adjusted to the target position at a lower speed. The specific adjustment method is as follows:

[0096] Before the brushless motor 300 becomes abnormal, the rotation time of the brushless motor 300 to complete one revolution is determined by the change of the Hall state of the brushless motor 300;

[0097] Determine the rotation angular velocity of the brushless motor 300 according to the rotation time;

[0098] Determine the rotation distance of the brushless motor 300 according to the initial position and the target position;

[0099] Determine the preset time according to the rotation angular velocity and the rotation distance;

[0100] The deviation distance between the current position of the brushless motor 300 and the target position, and the deviation time between the current time and the preset time are determined, and the adjusted rotational angular velocity is determined according to the deviation distance and the deviation time.

[0101] Specifically, it is necessary to first obtain the rotational angular velocity of the brushless motor 300 before the abnormality occurs. To this end, the rotation time of the brushless motor 300 to complete one circle can be determined according to the change of the Hall state of the brushless motor 300. Each time the brushless motor 300 rotates one circle, it needs to go through 6n phase changes, n is the number of motor pole pairs, and it is assumed that the change of the Hall state is 001-101-100-110-010-011. When the Hall state changes from 011 to 001, it means that the brushless motor 300 has completed 1 / n circles. The time when the Hall state changes from 001 to 001 again (recorded as t / n) can be recorded, and the rotational time t of the brushless motor 300 to complete one circle can be known. The rotational angular velocity of the brushless motor 300 is: w=2π / t. Then, the distance (recorded as L, in radians) that the brushless motor 300 needs to rotate from the initial position to the target position is determined. According to the rotational angular velocity and the rotational distance, the preset time can be determined as T=L / w. Finally, determine the deviation distance between the current position of the brushless motor 300 and the target position (recorded as L1, in radians), and the deviation time between the current time and the preset time (recorded as t1, the current time refers to the time from the start of the rotation of the brushless motor 300 to the present, recorded as t2, then t1=t-t2), and determine the adjusted rotation angular velocity as w1=L1 / t1 according to the deviation distance and deviation time. By adjusting the rotation angular velocity, the time when the brushless motor 300 reaches the target position can be the same as the preset time, and the brushless motor 300 can rotate at a constant speed before and after the abnormality occurs, which ensures both the control accuracy of the brushless motor 300 and the comfort of the adjustment process.

[0102] Furthermore, in some embodiments of the present invention, the method for detecting the position of a brushless motor further includes the following steps:

[0103] During the operation of the brushless motor 300, when the Hall state read by the three-way Hall sensor 400 is 000 or 111, it is determined that the brushless motor 300 has a fault;

[0104] The operation of the brushless motor 300 is stopped, the brushless motor 300 is restarted, and the Hall state of the brushless motor 300 is set to the Hall state read last time.

[0105] Specifically, through Figure 3 From the commutation table shown, it can be known that when the brushless motor 300 is in normal operation, the Hall state of the brushless motor 300 will not be 000 or 111, and when the brushless motor 300 is passively moved due to external force, the Hall state of the brushless motor 300 will not change to 000 or 111. Therefore, if the Hall state of the brushless motor 300 changes to 000 or 111, it means that the brushless motor 300 may encounter a fault. At this time, it is necessary to stop the operation of the brushless motor 300, restart the brushless motor 300, and set the Hall state of the brushless motor 300 to the Hall state read last time, so that the brushless motor 300 can rotate normally. If the brushless motor 300 still appears in the state of 000 or 111 after restarting, it is necessary to stop the operation of the brushless motor 300 and restart it after eliminating the fault.

[0106] According to the inductive brushless motor position detection method of the embodiment of the present invention, when the brushless motor 300 generates passive movement due to external force, it can accurately determine the direction of passive movement and timely compensate and correct the brushless motor 300, thereby ensuring the control accuracy of the brushless motor 300, effectively eliminating the problem of position deviation from the expected during motor operation, ensuring that the automatic adjustment process of the smart seat meets user needs, and bringing users a better user experience.

[0107] On the other hand, an embodiment of the present invention further provides a position detection device for a brushless motor, the device comprising:

[0108] The processor may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0109] The memory can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory can store an operating system and other applications. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory, and the processor is called to execute the automatic manufacturing method of the curved screen frame of the embodiment of the present application;

[0110] Input / output interface, used to realize information input and output;

[0111] Communication interface, used to realize communication interaction between this device and other devices. Communication can be realized through wired methods (such as USB, network cable, etc.) or wireless methods (such as mobile network, WIFI, Bluetooth, etc.);

[0112] The bus, which transfers information between the various components of the device (such as the processor, memory, input / output interfaces, and communication interfaces);

[0113] The processor, memory, input / output interface and communication interface are connected to each other through a bus inside the device.

[0114] On the other hand, an embodiment of the present invention further provides a smart seat, comprising the sensored brushless motor position detection device as described above.

[0115] On the other hand, an embodiment of the present invention further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the above-mentioned method for detecting the position of a brushless sensored motor is implemented.

[0116] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0117] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.

[0118] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.

[0119] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.

[0120] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.

[0121] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages ​​include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages ​​or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.

[0122] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).

[0123] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A method for detecting the position of a brushless motor, characterized in that: Applied to a smart seat, the smart seat is provided with a controller, a motor drive circuit and a brushless motor, the brushless motor is provided with three Hall sensors for detecting the motor position, the three Hall sensors are spaced 120° apart in pairs, the controller is provided with a storage unit for storing the coordinate information of the motor position of the brushless motor, the smart seat is provided with a plurality of pressure sensors, the Hall sensors and the pressure sensors are both electrically connected to the controller, the controller is electrically connected to the motor drive circuit, the motor drive circuit is electrically connected to the brushless motor, and the brushless motor is used to drive the seat cushion or backrest or massage module of the smart seat to move; The position detection method of the brushless motor comprises: The controller drives the brushless motor to rotate forward and reverse through the motor drive circuit, and during the forward and reverse rotation, obtains the commutation table of the brushless motor during the forward and reverse rotation through the three Hall sensors; When the brushless motor stops rotating, the stop coordinate information of the brushless motor is obtained through the three Hall sensors and stored in the storage unit; When the brushless motor stops rotating, the three Hall sensors are used to detect the change of the Hall state of the brushless motor; When the pressure sensor acquires the pressure signal, the initial coordinate information of the brushless motor is determined according to the stop coordinate information, the change of the Hall state and the commutation table, and the brushless motor is initialized and adjusted according to the initial coordinate information and the stop coordinate information; Obtaining a user instruction or user information, determining a target position according to the user instruction or the user information, and driving the brushless motor after initialization adjustment to rotate to the target position; In the process of driving the brushless motor to rotate, the Hall state of the brushless motor is continuously read through the three Hall sensors, and the rotation direction of the brushless motor is determined according to the Hall state and the commutation table; Determining whether the brushless motor is operating normally according to the rotation direction, the Hall state and the commutation table; When an abnormality occurs in the operation of the brushless motor, determining a first passive direction of the brushless motor, and performing compensation correction on the operation of the brushless motor according to the first passive direction; The step of determining the initial coordinate information of the brushless motor according to the stop coordinate information, the change of the Hall state and the commutation table, and initializing and adjusting the brushless motor according to the initial coordinate information and the stop coordinate information comprises: Determining a second passive direction and a passive movement distance of the brushless motor during a period of stopping rotation according to the change of the Hall state and the commutation table; determining the initial coordinate information according to the stop coordinate information, the second passive direction and the passive movement distance; driving the brushless motor to rotate the passive motion distance in the opposite direction of the second passive direction, so that the brushless motor rotates to a position corresponding to the stop coordinate information; The pressure sensor includes a first pressure sensor and a second pressure sensor, the first pressure sensor is arranged on the seat cushion of the smart seat, and the second pressure sensor is arranged on the backrest of the smart seat; the step of obtaining a user instruction or user information, determining a target position according to the user instruction or the user information, and driving the brushless motor after initialization adjustment to rotate to the target position includes: Acquiring first pressure information through the first pressure sensor; acquiring second pressure information through the second pressure sensor; Determine corresponding user information by combining the first pressure information and the second pressure information; According to the user information, the target position of the brushless motor corresponding to the user information is determined in the storage unit, and the brushless motor after initialization and adjustment is driven to rotate to the target position; or, a user instruction is received, the target position is determined according to the user instruction, and the brushless motor after initialization and adjustment is driven to rotate to the target position.

2. The method for detecting the position of a brushless motor according to claim 1, characterized in that: The sensored brushless motor position detection method also includes: During the operation of the brushless motor, when the Hall states read by the three Hall sensors are 000 or 111, it is determined that the brushless motor has a fault; The operation of the brushless motor is stopped, the brushless motor is restarted, and the Hall state of the brushless motor is set to the Hall state read last time.

3. The method for detecting the position of a brushless motor according to claim 1, characterized in that: The step of driving the brushless motor to rotate forward and reverse, and obtaining a commutation table of the brushless motor during the forward and reverse rotation through three Hall sensors, comprises: The brushless motor is driven to rotate in a forward direction. During the forward rotation, the change of the Hall state is acquired through the three Hall sensors to obtain the first commutation information; The brushless motor is driven to rotate in the reverse direction. During the reverse rotation, the change of the Hall state is acquired through the three Hall sensors to obtain the second commutation information; The commutation table is obtained by combining the first commutation information and the second commutation information.

4. The method for detecting the position of a brushless motor according to claim 1, characterized in that: When an abnormality occurs in the operation of the brushless motor, the step of determining a first passive direction of the brushless motor and compensating and correcting the operation of the brushless motor according to the first passive direction comprises: When an abnormality occurs during the operation of the brushless motor, the first passive direction of the brushless motor is determined according to the change of the Hall state of the brushless motor during the abnormality, and the Hall state read before the abnormality occurs is obtained; When the first passive direction is opposite to the rotation direction of the brushless motor, the brushless motor is driven to rotate according to the rotation direction to the Hall state read before the abnormality occurs, the brushless motor is reset, and then the brushless motor is driven to rotate from the reset position to the target position according to the rotation direction; When the first passive direction is the same as the rotation direction of the brushless motor, the rotation angular velocity of the brushless motor is adjusted so that the time for the brushless motor to reach the target position is the same as the preset time.

5. The method for detecting the position of a brushless motor according to claim 4, characterized in that: The step of adjusting the rotational angular velocity of the brushless motor so that the time for the brushless motor to reach the target position is the same as the preset time when the first passive direction is the same as the rotational direction of the brushless motor comprises: Before the brushless motor becomes abnormal, determining the rotation time of the brushless motor to complete one revolution by the change of the Hall state of the brushless motor; Determining the rotation angular velocity of the brushless motor according to the rotation time; Determining a rotation distance of the brushless motor according to an initial position and the target position; Determining the preset time according to the rotation angular velocity and the rotation distance; Determine the deviation distance between the current position of the brushless motor and the target position, and the deviation time between the current time and the preset time, and determine the adjusted rotational angular velocity according to the deviation distance and the deviation time.

6. A position detection device for a brushless motor, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the position detection method of the brushless motor as described in any one of claims 1 to 5.

7. A smart seat, characterized in that: It includes the position detection device of the brushless motor as described in claim 6.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the position detection method of a brushless sensor motor according to any one of claims 1 to 5.