[go: up one dir, main page]

CN117375335B - Method for adjusting line sequence of Hall sensor by motor, control device and BLDC motor - Google Patents

Method for adjusting line sequence of Hall sensor by motor, control device and BLDC motor Download PDF

Info

Publication number
CN117375335B
CN117375335B CN202311678762.2A CN202311678762A CN117375335B CN 117375335 B CN117375335 B CN 117375335B CN 202311678762 A CN202311678762 A CN 202311678762A CN 117375335 B CN117375335 B CN 117375335B
Authority
CN
China
Prior art keywords
hall sensor
sensor data
preset
line sequence
motor
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.)
Active
Application number
CN202311678762.2A
Other languages
Chinese (zh)
Other versions
CN117375335A (en
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.)
Shenzhen Yankong Automation Technology Co ltd
Original Assignee
Shenzhen Yankong Automation Technology Co ltd
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 Shenzhen Yankong Automation Technology Co ltd filed Critical Shenzhen Yankong Automation Technology Co ltd
Priority to CN202311678762.2A priority Critical patent/CN117375335B/en
Publication of CN117375335A publication Critical patent/CN117375335A/en
Application granted granted Critical
Publication of CN117375335B publication Critical patent/CN117375335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K15/00Processes or apparatus specially adapted for manufacturing, assembling, maintaining or repairing of dynamo-electric machines
    • H02K15/50Disassembling, repairing or modifying dynamo-electric machines
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R29/00Arrangements for measuring or indicating electric quantities not covered by groups G01R19/00 - G01R27/00
    • G01R29/18Indicating phase sequence; Indicating synchronism
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/34Testing dynamo-electric machines

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Manufacturing & Machinery (AREA)
  • Power Engineering (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

本发明公开一种电机调整霍尔传感器线序的方法、控制装置及BLDC电机。其中,电机调整霍尔传感器线序的方法包括:将电机转子的转动平面按照预设规则进行分区,以获得六个区域,并生成每一区域对应的预设霍尔传感器数据;将电机转子转动至预设的所述区域内,控制电机转子旋转一周,并获取电机转子经过每一区域时的霍尔传感器数据;根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序。本发明通过将电机转子旋转一周得到多个霍尔传感器数据,并通过调整各霍尔传感器的线序使得调整后的多个霍尔传感器数据与多个预设霍尔传感器数据相等,从而实现了在三相霍尔传感器线和三相动力线任意连接的情况下完成电机调试的目的。

The invention discloses a method for adjusting the line sequence of a Hall sensor for a motor, a control device and a BLDC motor. Among them, the method for the motor to adjust the Hall sensor line sequence includes: dividing the rotation plane of the motor rotor according to preset rules to obtain six areas, and generating preset Hall sensor data corresponding to each area; rotating the motor rotor to the preset area, control the motor rotor to rotate once, and obtain the Hall sensor data when the motor rotor passes through each area; based on the multiple Hall sensor data and multiple preset Hall sensor data obtained in sequence, Determine the line sequence of each Hall sensor. The present invention obtains multiple Hall sensor data by rotating the motor rotor once, and adjusts the line sequence of each Hall sensor to make the adjusted multiple Hall sensor data equal to multiple preset Hall sensor data, thereby achieving The purpose of motor debugging is completed when the three-phase Hall sensor line and the three-phase power line are connected arbitrarily.

Description

一种电机调整霍尔传感器线序的方法、控制装置及BLDC电机A method, control device and BLDC motor for adjusting the Hall sensor line sequence of a motor

技术领域Technical field

本发明涉及电机领域,特别涉及一种电机调整霍尔传感器线序的方法、控制装置及BLDC电机。The invention relates to the field of motors, and in particular to a method for adjusting the line sequence of a Hall sensor for a motor, a control device and a BLDC motor.

背景技术Background technique

三相BLDC(Brushless Direct Current Motor)电机为直流无刷电机,BLDC电机的转子是永磁体,通过改变周围的线圈所产生的磁场的方向使转子旋转,通过控制通向线圈的电流方向和大小来控制转子的旋转。BLDC电机经常采用六步换相控制,通过霍尔传感器检测转子的位置后控制各相产生磁场控制转子的旋转,其中三相动力线和三个霍尔传感器需要一一对应,从而正确驱动电路。The three-phase BLDC (Brushless Direct Current Motor) motor is a brushless DC motor. The rotor of the BLDC motor is a permanent magnet. The rotor rotates by changing the direction of the magnetic field generated by the surrounding coils, and by controlling the direction and size of the current to the coils. Controls the rotation of the rotor. BLDC motors often use six-step commutation control. After detecting the position of the rotor through the Hall sensor, each phase is controlled to generate a magnetic field to control the rotation of the rotor. The three-phase power lines and the three Hall sensors need to be in one-to-one correspondence to drive the circuit correctly.

在实际调试工作中,很多电机的动力线和霍尔传感器线的线序是未知的。现有技术采用不断调整动力线接线顺序或调整霍尔传感器线接线顺序的方式获得正确的线序。无论哪一种方式都需要不停地尝试,耗费的时间长。In actual debugging work, the line sequence of many motor power lines and Hall sensor lines is unknown. The existing technology adopts a method of continuously adjusting the wiring sequence of power lines or adjusting the wiring sequence of Hall sensor lines to obtain the correct line sequence. Either way requires constant trying and takes a long time.

发明内容Contents of the invention

本发明的主要目的是提供一种电机调整霍尔传感器线序的方法,旨在提升电机调试的效率。The main purpose of the present invention is to provide a method for adjusting the Hall sensor line sequence of a motor, aiming to improve the efficiency of motor debugging.

为实现上述目的,本发明提出的电机调整霍尔传感器线序的方法,所述方法包括:In order to achieve the above objectives, the present invention proposes a method for adjusting the line sequence of the Hall sensor for a motor, which method includes:

将电机转子的转动平面按照预设规则进行分区,以获得六个区域,并生成每一区域对应的预设霍尔传感器数据;其中,所述预设规则为:根据电机三相动力线确定与所述电机三相动力线对应的三相霍尔传感器线的预设线序,并将在电机转子转动时,霍尔传感器数据不变的位置划分为一个区域;The rotation plane of the motor rotor is partitioned according to preset rules to obtain six areas, and preset Hall sensor data corresponding to each area is generated; wherein, the preset rules are: determine and determine based on the three-phase power line of the motor. The preset line sequence of the three-phase Hall sensor lines corresponding to the three-phase power lines of the motor, and the position where the Hall sensor data does not change when the motor rotor rotates is divided into a region;

将电机转子转动至预设的所述区域内,控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据;Rotate the motor rotor to the preset area, control the motor rotor to rotate once, and obtain Hall sensor data when the motor rotor passes through each of the areas;

根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,调整各霍尔传感器的线序;Adjust the line sequence of each Hall sensor based on the multiple Hall sensor data and multiple preset Hall sensor data obtained in sequence;

所述根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序的步骤具体包括:The step of determining the line sequence of each Hall sensor based on the multiple Hall sensor data and multiple preset Hall sensor data obtained in sequence specifically includes:

确定所述多个霍尔传感器数据中的第一个霍尔传感器数据与所述多个预设霍尔传感器数据中的第一个预设霍尔传感器数据是否相等,得到第一确定结果;Determine whether the first Hall sensor data among the plurality of Hall sensor data is equal to the first preset Hall sensor data among the plurality of preset Hall sensor data, and obtain a first determination result;

根据第一确定结果调整各霍尔传感器的线序,并得到调整线序后的多个霍尔传感器数据,以使所述多个霍尔传感器中的第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等;Adjust the line sequence of each Hall sensor according to the first determination result, and obtain a plurality of Hall sensor data after adjusting the line sequence, so that the first Hall sensor data among the plurality of Hall sensors is consistent with the first Hall sensor data. A preset Hall sensor data is equal;

确定所述调整线序后的多个霍尔传感器数据中的第二个霍尔传感器数据与所述多个预设霍尔传感器数据中的第二个预设霍尔传感器数据是否相等,得到第二确定结果;Determine whether the second Hall sensor data among the plurality of Hall sensor data after adjusting the line sequence is equal to the second preset Hall sensor data among the plurality of preset Hall sensor data, and obtain the first 2. Determine the results;

根据所述第二确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等;或者,Adjust the line sequence of each Hall sensor according to the second determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the multiple Hall sensor data are consistent with the multiple preset Hall sensor data. The data are equal; or,

所述根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序的步骤具体包括:The step of determining the line sequence of each Hall sensor based on the multiple Hall sensor data and multiple preset Hall sensor data obtained in sequence specifically includes:

将所述多个霍尔传感器中的第一个霍尔传感器数据进行取反,并确定取反后的数据与所述多个预设霍尔传感器数据中的第一个预设霍尔传感器数据是否相等,得到第三确定结果;Invert the first Hall sensor data among the plurality of Hall sensors, and determine whether the inverted data is consistent with the first preset Hall sensor data among the plurality of preset Hall sensor data. Whether they are equal, the third determined result is obtained;

根据所述第三确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据中的第一个霍尔传感器数据进行取反后的值与所述第一个预设霍尔传感器数据相等;Adjust the line sequence of each Hall sensor according to the third determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the first Hall sensor data among the multiple Hall sensor data is processed The negated value is equal to the first preset Hall sensor data;

将所述更改线序后的多个霍尔传感器数据中的第二个霍尔传感器数据进行取反,并确定取反后的数据与所述多个预设霍尔传感器数据中的第二个霍尔传感器数据是否相等,得到第四确定结果;Invert the second Hall sensor data among the plurality of Hall sensor data after changing the line sequence, and determine whether the inverted data is consistent with the second of the plurality of preset Hall sensor data. Whether the Hall sensor data are equal, the fourth determination result is obtained;

根据所述第四确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等。Adjust the line sequence of each Hall sensor according to the fourth determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the multiple Hall sensor data are consistent with the multiple preset Hall sensor data. The data are equal.

可选地,所述生成每一区域对应的预设霍尔传感器数据的步骤具体包括:Optionally, the step of generating preset Hall sensor data corresponding to each area specifically includes:

将三个霍尔传感器的输出值按照所述预设线序组成一个三位二进制数;The output values of the three Hall sensors are formed into a three-digit binary number according to the preset line sequence;

分别得到转子在所述六个区域内时,所述三位二进制数的值,并将该值作为所在区域对应的预设霍尔传感器数据。When the rotor is in the six areas, the value of the three-digit binary number is obtained respectively, and this value is used as the preset Hall sensor data corresponding to the area.

可选地,所述将电机转子转动至预设的所述区域内的步骤具体包括:Optionally, the step of rotating the motor rotor into the preset area specifically includes:

导通电机三相动力线中的两相动力线,以使所述电机转子转动至对应的区域内。Two of the three-phase power lines of the motor are connected to make the motor rotor rotate to the corresponding area.

可选地,所述控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据的步骤具体包括:Optionally, the step of controlling the motor rotor to rotate once and obtaining Hall sensor data when the motor rotor passes through each of the regions specifically includes:

使用两两导通的方式按照预定顺序导通电机动力线,使转子旋转一周;Use the two-to-two conduction method to conduct the motor power lines in a predetermined sequence to make the rotor rotate once;

记录转子旋转一周期间电机转子分别经过每一所述区域时的霍尔传感器数据。Record the Hall sensor data when the motor rotor passes through each of the areas during one rotation of the rotor.

可选地,所述根据第一确定结果调整各霍尔传感器的线序的步骤具体包括:Optionally, the step of adjusting the line sequence of each Hall sensor according to the first determination result specifically includes:

当所述第一个霍尔传感器数据与所述第一个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等;When the first Hall sensor data is not equal to the first preset Hall sensor data, adjust the line sequence of each Hall sensor so that the first Hall sensor after adjusting the line sequence The data is equal to the first preset Hall sensor data;

当所述第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序;When the first Hall sensor data is equal to the first preset Hall sensor data, the line sequence of each Hall sensor is not adjusted;

所述根据所述第二确定结果调整各霍尔传感器的线序包括:The adjustment of the line sequence of each Hall sensor according to the second determination result includes:

当所述第二个霍尔传感器数据与所述第二个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第二个霍尔传感器数据与所述第二个预设霍尔传感器数据相等;When the second Hall sensor data is not equal to the second preset Hall sensor data, adjust the line sequence of each Hall sensor so that the second Hall sensor after adjusting the line sequence The data is equal to the second preset Hall sensor data;

当所述第二个霍尔传感器数据与所述第二个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序。When the second Hall sensor data is equal to the second preset Hall sensor data, the line sequence of each Hall sensor is not adjusted.

可选地,所述根据所述第三确定结果调整各霍尔传感器的线序包括:Optionally, adjusting the line sequence of each Hall sensor according to the third determination result includes:

当所述第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据相等;When the inverted data of the first Hall sensor data is not equal to the first preset Hall sensor data, adjust the line sequence of each Hall sensor so that the adjusted line sequence The inverted data of the first Hall sensor data is equal to the first preset Hall sensor data;

当所述第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序;When the inverted data of the first Hall sensor data is equal to the first preset Hall sensor data, the line sequence of each Hall sensor is not adjusted;

所述根据所述第四确定结果调整各霍尔传感器的线序包括:The adjusting the line sequence of each Hall sensor according to the fourth determination result includes:

当所述第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据相等;When the inverted data of the second Hall sensor data is not equal to the second preset Hall sensor data, adjust the line sequence of each Hall sensor so that the adjusted line sequence The inverted data of the second Hall sensor data is equal to the second preset Hall sensor data;

当所述第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序。When the inverted data of the second Hall sensor data is equal to the second preset Hall sensor data, the line sequence of each Hall sensor is not adjusted.

本发明还提出一种控制装置,所述控制装置包括:The invention also proposes a control device, which includes:

存储器;memory;

处理器;以及,processor; and,

存储在所述存储器上并被所述处理器执行的电机调整霍尔传感器线序程序,所述电机调整霍尔传感器线序的程序在被所述处理器执行时,实现所述的电机调整霍尔传感器线序的方法。The motor adjustment Hall sensor line sequence program is stored in the memory and executed by the processor. When the motor adjustment Hall sensor line sequence program is executed by the processor, the motor adjustment Hall sensor line sequence program is implemented. Er sensor line sequence method.

本发明还提出一种BLDC电机,所述BLDC电机包括所述的控制装置。The invention also proposes a BLDC motor, which includes the control device.

本发明提出了一种电机调整霍尔传感器线序的方法、控制装置及BLDC电机。该方法包括:将电机转子的转动平面按照预设规则进行分区,以获得六个区域,并生成每一区域对应的预设霍尔传感器数据;其中,所述预设规则为:根据电机三相动力线确定与所述电机三相动力线对应的三相霍尔传感器线的预设线序,并将在电机转子转动时,霍尔传感器数据不变的位置划分为一个区域;将电机转子转动至预设的所述区域内,控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据;根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序。本发明通过将电机转子旋转一周得到多个霍尔传感器数据,并通过调整各霍尔传感器的线序使得调整后的多个霍尔传感器数据与所述多个预设霍尔传感器数据相等,电机能够正确驱动,从而实现了提高三相霍尔传感器线和三相动力线任意连接的情况下完成电机调试的目的。The invention proposes a method, a control device and a BLDC motor for adjusting the Hall sensor line sequence of a motor. The method includes: dividing the rotation plane of the motor rotor according to preset rules to obtain six areas, and generating preset Hall sensor data corresponding to each area; wherein the preset rules are: according to the three phases of the motor The power line determines the preset line sequence of the three-phase Hall sensor line corresponding to the three-phase power line of the motor, and divides the position where the Hall sensor data does not change when the motor rotor rotates into a region; the motor rotor rotates to the preset areas, control the motor rotor to rotate once, and obtain the Hall sensor data when the motor rotor passes through each of the areas; based on the multiple Hall sensor data and multiple preset Hall sensors acquired in sequence data to determine the line sequence of each Hall sensor. The present invention obtains multiple Hall sensor data by rotating the motor rotor once, and adjusts the line sequence of each Hall sensor to make the adjusted multiple Hall sensor data equal to the multiple preset Hall sensor data, and the motor It can be driven correctly, thereby achieving the purpose of completing motor debugging when the three-phase Hall sensor line and the three-phase power line are connected arbitrarily.

附图说明Description of the drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on the structures shown in these drawings without exerting creative efforts.

图1为本发明电机调整霍尔传感器线序的方法一实施例的流程示意图;Figure 1 is a schematic flow chart of an embodiment of a method for adjusting the line sequence of a Hall sensor for a motor according to the present invention;

图2为本发明电机调整霍尔传感器线序的方法另一实施例的流程示意图;图3为本发明电机调整霍尔传感器线序的方法又一实施例的流程示意图;Figure 2 is a schematic flowchart of another embodiment of a method for adjusting the line sequence of a Hall sensor for a motor according to the present invention; Figure 3 is a schematic flowchart of another embodiment of a method for adjusting the line sequence of a Hall sensor for a motor according to the present invention;

图4为本发明电机调整霍尔传感器线序的方法再一实施例的流程示意图;Figure 4 is a schematic flow chart of a method for adjusting the line sequence of a Hall sensor for a motor according to another embodiment of the present invention;

图5为本发明电机调整霍尔传感器线序的方法还一实施例的流程示意图;Figure 5 is a schematic flowchart of a method for adjusting the line sequence of a Hall sensor for a motor according to another embodiment of the present invention;

图6为本发明电机调整霍尔传感器线序的方法一实施例的三相定子与三个霍尔传感器位置分布示意图;Figure 6 is a schematic diagram of the position distribution of a three-phase stator and three Hall sensors according to an embodiment of a method for adjusting the line sequence of Hall sensors in a motor according to the present invention;

图7为本发明电机调整霍尔传感器线序的方法一实施例的转子平面区域划分示意图。Figure 7 is a schematic diagram of the rotor plane area division according to one embodiment of the method for adjusting the line sequence of the Hall sensor of the motor according to the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present invention.

需要说明,本发明实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiment of the present invention are only used to explain the relationship between components in a specific posture (as shown in the drawings). Relative positional relationship, movement conditions, etc., if the specific posture changes, the directional indication will also change accordingly.

在本发明中,除非另有明确的规定和限定,术语“连接”、“固定”等应做广义理解,例如,“固定”可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly stated and limited, the terms "connection", "fixing", etc. should be understood in a broad sense. For example, "fixing" can be a fixed connection, a detachable connection, or an integral body; It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two elements or an interactive relationship between two elements, unless otherwise clearly limited. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

另外,在本发明中如涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, descriptions such as "first", "second", etc. in the present invention are for descriptive purposes only and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions in various embodiments can be combined with each other, but it must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that such a combination of technical solutions does not exist. , nor within the protection scope required by the present invention.

带霍尔传感器的BLDC电机,一般采用六步换相控制。其中,A,B,C三相动力线与HA,HB,HC三相霍尔线需要一一对应,否则就会出现电机驱动不正常的情况,而实际工作中,很多电机的动力线和霍尔传感线的线序是未知的,需要不断尝试获取与电机动力线匹配的霍尔传感器线的线序;此外,由于行业对线序的顺序是没有标准的,电机厂家对线序的定义,与驱动器的定义方式可能不一致。这种情况往往需要硬件连接上不断尝试不同的线序,或者修改软件驱动来适应不同的电机,效率低下。BLDC motors with Hall sensors generally use six-step commutation control. Among them, the three-phase power lines A, B, and C and the three-phase Hall lines HA, HB, and HC need to correspond one-to-one, otherwise the motor will drive abnormally. In actual work, the power lines of many motors and the Hall lines need to be in one-to-one correspondence. The line sequence of the Hall sensor line is unknown, and it is necessary to constantly try to obtain the line sequence of the Hall sensor line that matches the motor power line; in addition, because there is no standard for the line sequence in the industry, the definition of the line sequence by the motor manufacturer , may not be consistent with how the drive is defined. This situation often requires constantly trying different line sequences for hardware connections, or modifying software drivers to adapt to different motors, which is inefficient.

BLDC六步换相控制是根据三个霍尔传感器的电平高低来判断电机转子当前的位置,确定位置后导通三相动力线中的两相,以此使转子获得某个方向的转矩,同时通过两相的PWM占空比来控制转矩的大小,以此来控制BLDC电机按给定的目标运行,目标可以是位置,速度和力矩。The BLDC six-step commutation control determines the current position of the motor rotor based on the levels of the three Hall sensors. After determining the position, two phases of the three-phase power lines are turned on, so that the rotor obtains torque in a certain direction. , and at the same time, the torque is controlled through the two-phase PWM duty cycle to control the BLDC motor to run according to the given target, which can be position, speed and torque.

在实际使用中,三个霍尔传感器在电机转子的作用下输出的高低电平组成一个三位二进制数,该三位二进制数为电机转子在此位置的霍尔传感器数据。其中,所述三位二进制数中第零位、第一位和第二位分别与所述三个霍尔传感器一一对应,所述霍尔传感器的线序为所述三个霍尔传感器输出的高低电平与所述三位二进制数中数位的对应关系。需要说明的是,在电机中,三个霍尔传感器分别与电机的三个定子绕组对应,三个霍尔传感器的安装位置已固定。三根霍尔传感器的线接入电机的控制装置中,所述控制装置将所述三个霍尔传感器输出的高低电平组成一个三位二进制数,并可以根据该三位二进制数调整三相动力线的通电情况,运行所述电机;所述控制装置可以是电机的驱动器。在电机正常运行的情况下,所述三个霍尔传感器输出高低电平组成的三位二进制数正确反映电机转子的运行情况,即所述霍尔传感器数据正确反映转子的运行情况,以使所述电机能够正常运行。所述控制装置可以是通过三根霍尔传感器线分别接入的端口位置确定各霍尔传感器的线序,在三根霍尔传感器线与三个所述端口的所有连接状态中,只有一种连接状态使得所述霍尔传感器数据能够正确反映电机转子的运行情况,电机能够正常驱动;其他的连接状态中,电机不能正常驱动。In actual use, the high and low levels output by the three Hall sensors under the action of the motor rotor form a three-digit binary number. The three-digit binary number is the Hall sensor data of the motor rotor at this position. Wherein, the zeroth bit, the first bit and the second bit in the three-digit binary number respectively correspond to the three Hall sensors, and the line sequence of the Hall sensors is the output of the three Hall sensors. The corresponding relationship between the high and low levels and the digits in the three-digit binary number. It should be noted that in the motor, the three Hall sensors correspond to the three stator windings of the motor, and the installation positions of the three Hall sensors have been fixed. The lines of the three Hall sensors are connected to the control device of the motor. The control device combines the high and low levels output by the three Hall sensors into a three-digit binary number, and can adjust the three-phase power according to the three-digit binary number. The motor is operated according to the energization condition of the wire; the control device may be a driver of the motor. When the motor is running normally, the three-digit binary numbers composed of high and low levels output by the three Hall sensors correctly reflect the operation of the motor rotor, that is, the data of the Hall sensors correctly reflect the operation of the rotor, so that all The motor can operate normally. The control device may determine the line sequence of each Hall sensor through the position of the port to which the three Hall sensor lines are respectively connected. Among all the connection states of the three Hall sensor lines and the three ports, there is only one connection state. This enables the Hall sensor data to accurately reflect the operation of the motor rotor, and the motor can drive normally; in other connection states, the motor cannot drive normally.

由于所述霍尔传感器数据为三位二进制数,改变所述各霍尔传感器的线序可以改变所述霍尔传感器数据,从而使未正确连接的霍尔传感器线输出高低电平组成的霍尔传感器数据在线序改变后,正确反映所述电机转子的运行位置,进而可以在所述电机的三相动力线和三相霍尔传感器线任意连接的情况下,通过改变霍尔传感器的线序达到正确驱动电机的目的,提升电机调试效率。Since the Hall sensor data is a three-digit binary number, changing the line sequence of each Hall sensor can change the Hall sensor data, so that the Hall sensor lines that are not correctly connected output a Hall composed of high and low levels. After the line sequence of the sensor data is changed, it can correctly reflect the operating position of the motor rotor. This can be achieved by changing the line sequence of the Hall sensor when the three-phase power lines of the motor and the three-phase Hall sensor lines are arbitrarily connected. The purpose of driving the motor correctly is to improve the efficiency of motor debugging.

本发明提出一种电机调整霍尔传感器线序的方法。The invention proposes a method for a motor to adjust the line sequence of a Hall sensor.

参照图1,所述方法包括:Referring to Figure 1, the method includes:

步骤S100、将电机转子的转动平面按照预设规则进行分区,以获得六个区域,并生成每一区域对应的预设霍尔传感器数据;其中,所述预设规则为:根据电机三相动力线确定与所述电机三相动力线对应的三相霍尔传感器线的预设线序,并将在电机转子转动时,霍尔传感器数据不变的位置划分为一个区域;Step S100: Divide the rotation plane of the motor rotor according to preset rules to obtain six areas, and generate preset Hall sensor data corresponding to each area; wherein, the preset rules are: according to the three-phase power of the motor Lines determine the preset line sequence of the three-phase Hall sensor lines corresponding to the three-phase power lines of the motor, and divide the position where the Hall sensor data does not change when the motor rotor rotates into a region;

步骤S200、将电机转子转动至预设的所述区域内,控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据;Step S200: Rotate the motor rotor to the preset area, control the motor rotor to rotate once, and obtain Hall sensor data when the motor rotor passes through each of the areas;

步骤S300、根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,调整各霍尔传感器的线序。Step S300: Adjust the line sequence of each Hall sensor according to the plurality of Hall sensor data and the plurality of preset Hall sensor data obtained in sequence.

需要说明的是,所述三相动力线与所述电机三个定子绕组分别连接,三个霍尔传感器分别与所述三个定子绕组对应;可以对三相动力线进行划分,例如:在本发明一实施例中,参照图6,可以划分为A、B、C三根动力线,相对应的,与所述三相动力线分别对应的霍尔传感器线可以划分为HA、HB、HC;其中,所述A动力线与所述HA霍尔传感器线对应,所述B动力线与所述HB霍尔传感器线对应,所述C动力线与所述HC霍尔传感器线对应。所述相应动力线代表的定子绕组与其相应的所述霍尔传感器线代表的霍尔传感器对应,例如:A动力线代表的定子绕组与HA霍尔传感器线代表的霍尔传感器对应。在本发明另一实施例中,所述三相动力线可以表述为U、V、W三根动力线。It should be noted that the three-phase power lines are respectively connected to the three stator windings of the motor, and the three Hall sensors correspond to the three stator windings respectively; the three-phase power lines can be divided, for example: in this paper In one embodiment of the invention, referring to Figure 6, it can be divided into three power lines A, B, and C. Correspondingly, the Hall sensor lines corresponding to the three-phase power lines can be divided into HA, HB, and HC; where , the A power line corresponds to the HA Hall sensor line, the B power line corresponds to the HB Hall sensor line, and the C power line corresponds to the HC Hall sensor line. The stator winding represented by the corresponding power line corresponds to the Hall sensor represented by the corresponding Hall sensor line. For example, the stator winding represented by the A power line corresponds to the Hall sensor represented by the HA Hall sensor line. In another embodiment of the present invention, the three-phase power lines can be expressed as three power lines U, V, and W.

根据电机三相动力线确定与所述电机三相动力线对应的三相霍尔传感器线的预设线序。所述电机定子绕组间相隔120度分布,可以以任意一个定子绕组为作为基准,并选定所述霍尔传感器的线序,并将该霍尔传感器的线序作为预设线序;需要注意的是,控制装置参考所述预设线序,根据霍尔传感器数据控制所述动力线的通电;参照图7,在本发明一实施例中,所述控制装置中用于根据霍尔传感器数据控制动力线通电的程序中包括所述预设线序。当所述电机的转子旋转时,所述三个霍尔传感器根据转子旋转带动的磁场,分别输出高低电平;霍尔传感器可以在磁场强度强时输出高电平,在磁场强度弱时输出低电平;三个霍尔传感器输出的高低电平根据所述预设线序组成霍尔传感器数据。将在电机转子转动时,霍尔传感器数据不变的位置划分为一个区域;由于在所述电机中共存在三个定子绕组和三个霍尔传感器,所述霍尔传感器数据在电机转动时在六个固定的数据中轮流切换,故所述电机转子的转动平面可以划分为六个区域;其中,所述六个区域的面积相等。易于理解的是,三相动力线与三个定子绕组一一对应连接,可以使用其中任意一根动力线或其对应的定子绕组作为基准,选定所述霍尔传感器的线序,以确定所述六个区域对应的霍尔传感器数据,并可以将所述对应的霍尔传感器数据作为预设霍尔传感器数据。所述预设霍尔传感器数据代表在所述三相霍尔传感器线输出的高电电平根据预设线序组合时区域对应三位二进制数;所述预设霍尔传感器数据有六个。The preset line sequence of the three-phase Hall sensor lines corresponding to the three-phase power lines of the motor is determined according to the three-phase power lines of the motor. The stator windings of the motor are distributed 120 degrees apart. Any stator winding can be used as a benchmark, and the line sequence of the Hall sensor can be selected, and the line sequence of the Hall sensor can be used as the preset line sequence; it should be noted that What is more, the control device refers to the preset line sequence and controls the energization of the power line according to the Hall sensor data; referring to Figure 7, in one embodiment of the present invention, the control device is used to control the power supply according to the Hall sensor data. The preset line sequence is included in the program for controlling power line energization. When the rotor of the motor rotates, the three Hall sensors output high and low levels respectively according to the magnetic field driven by the rotation of the rotor; the Hall sensors can output a high level when the magnetic field intensity is strong and a low level when the magnetic field intensity is weak. Level; the high and low levels output by the three Hall sensors compose the Hall sensor data according to the preset line sequence. The position where the Hall sensor data does not change when the motor rotor rotates is divided into a region; since there are three stator windings and three Hall sensors in the motor, the Hall sensor data changes within six times when the motor rotates. Switching takes turns among fixed data, so the rotation plane of the motor rotor can be divided into six areas; where the areas of the six areas are equal. It is easy to understand that the three-phase power lines are connected to the three stator windings in a one-to-one correspondence. Any one of the power lines or its corresponding stator winding can be used as a reference to select the line sequence of the Hall sensor to determine the Hall sensor data corresponding to the above six areas, and the corresponding Hall sensor data can be used as preset Hall sensor data. The preset Hall sensor data represents a three-digit binary number corresponding to the area when the high level output by the three-phase Hall sensor line is combined according to the preset line sequence; there are six preset Hall sensor data.

将电机转子转动至预设的所述区域内,控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据。所述电机转子转动至预设的所述区域内;所述预设的区域为六个区域中的一个,该预设的区域对应的霍尔传感器数据为所述多个霍尔传感器数据中的第一个霍尔传感器数据。由于电机转子的转动平面有六个区域,所以将所述电机转子旋转一周,所述电机转子经过六个区域,能够获得所述六个区域分别对应的六个霍尔传感器数据。需要说明的是,所述电机的定子绕组相隔120度分布,分别与所述定子绕组对应的霍尔传感器也相隔120度分布,具体的,对应的所述定子绕组、所述转子的中心点和霍尔传感器的位置可以在一条直线上;当选定一根动力线或者其对应的定子绕组作为基准时,所述预设的区域为所述定子绕组所在的区域或者所述定子绕组对应的霍尔传感器所在的区域,并可以获得相应的预设霍尔传感器数据。在本发明一实施例中,可以选择一个霍尔传感器线序,其中,可以将所述定子绕组对应的霍尔传感器的输出值作为霍尔传感器数据的第二位,并可以按照在电子转子平面顺时针的顺序将另外两个霍尔传感器的输出值作为所述霍尔传感器数据的第一位和第零位;如此便得到了一个预设霍尔传感器数据。Rotate the motor rotor into the preset area, control the motor rotor to rotate once, and obtain Hall sensor data when the motor rotor passes through each of the areas. The motor rotor rotates into the preset area; the preset area is one of six areas, and the Hall sensor data corresponding to the preset area is one of the plurality of Hall sensor data. First Hall sensor data. Since the rotation plane of the motor rotor has six areas, when the motor rotor rotates once, the motor rotor passes through the six areas, and six Hall sensor data corresponding to the six areas can be obtained. It should be noted that the stator windings of the motor are distributed 120 degrees apart, and the Hall sensors corresponding to the stator windings are also distributed 120 degrees apart. Specifically, the corresponding stator windings, the center points of the rotor and The position of the Hall sensor can be on a straight line; when a power line or its corresponding stator winding is selected as a reference, the preset area is the area where the stator winding is located or the Hall corresponding to the stator winding. The area where the Hall sensor is located and the corresponding preset Hall sensor data can be obtained. In an embodiment of the present invention, a Hall sensor line sequence can be selected, in which the output value of the Hall sensor corresponding to the stator winding can be used as the second bit of Hall sensor data, and can be based on the electronic rotor plane. In clockwise order, the output values of the other two Hall sensors are used as the first and zeroth bits of the Hall sensor data; thus, a preset Hall sensor data is obtained.

关于将电机转子转动至预设的所述区域内的方式,参照图7,在本发明一实施例中,可以通过手动的方式将所述转子转动至预设区域内;易于理解的是,电机内部的转子和电机的电机轴存在机械连接关系,可以在电机外壳上做一标记,并在电机轴上标记,当转子转至三个定子绕组对应预设区域时,电机轴与所述电机外壳的标记对应的位置。如此便可在确定作为基准的动力线或者定子绕组后,将电子转子转动至其对应的预设区域内。在本发明另一实施例中,可以通过导通电机动力线的方式将电机转子转动至预设区域内;需要说明的是,由于三相动力线分别连接的定子绕组和三个霍尔传感器分别相隔120度分布,当选定一根动力线或者其对应的定子绕组作为基准时,按照电流从一根动力线输入,从另外一根动力线输出的方式导通另外两根动力线,便可以使转子转至作为基准的定子绕组所在的区域或者转至所述定子绕组对应的霍尔传感器所在的区域;其中,由于定子绕组方向是确定的,当改变用于通电的两根动力线的通电方向时,该两根动力线对应的定子绕组在流向不同的电流作用下,合成的磁场方向相反,以使所述电机转子的转至的区域不同,所述转子转至作为基准的定子绕组所在的区域或者转至所述定子绕组对应的霍尔传感器所在的区域。Regarding the method of rotating the motor rotor into the preset area, refer to Figure 7. In one embodiment of the present invention, the rotor can be manually rotated into the preset area; it is easy to understand that the motor There is a mechanical connection between the internal rotor and the motor shaft of the motor. You can make a mark on the motor casing and mark it on the motor shaft. When the rotor rotates to the preset area corresponding to the three stator windings, the motor shaft and the motor casing The location corresponding to the mark. In this way, after determining the power line or stator winding as the reference, the electronic rotor can be rotated to its corresponding preset area. In another embodiment of the present invention, the motor rotor can be rotated to a preset area by connecting the motor power lines; it should be noted that since the stator windings and three Hall sensors are respectively connected to the three-phase power lines, Distributed 120 degrees apart, when one power line or its corresponding stator winding is selected as the reference, the other two power lines can be connected in such a way that the current is input from one power line and output from the other power line. The rotor is rotated to the area where the reference stator winding is located or to the area where the Hall sensor corresponding to the stator winding is located; where, since the direction of the stator winding is determined, when the energization of the two power lines for energization is changed, direction, under the action of currents flowing in different directions, the stator windings corresponding to the two power lines will generate a magnetic field in opposite directions, so that the motor rotor rotates to different areas, and the rotor rotates to the location of the reference stator winding. area or go to the area where the Hall sensor corresponding to the stator winding is located.

关于控制电机转子旋转一周的方法,在本发明一实施例中,可以通过手动旋转所述电机轴从而带动所述转子旋转一周。在本发明另一实施例中,可以通过按照一定次序以两两导通的方式导通所述三相动力线中的其中两相,以使所述电机转子旋转一周,其中所述次序可以由研发人员进行确定,并写入电机控制程序中。需要注意的是,将电机转子旋转一周中,可以根据现实情况将所述转子按照顺时针旋转一周,或者将所述转子按照逆时针旋转一周。所述转子旋转的方向在此不做限定。Regarding the method of controlling the motor rotor to rotate once, in an embodiment of the present invention, the motor shaft can be manually rotated to drive the rotor to rotate once. In another embodiment of the present invention, two of the three-phase power lines can be connected in a two-by-two conduction manner in a certain order to cause the motor rotor to rotate once, wherein the order can be determined by The R&D personnel determine and write it into the motor control program. It should be noted that when the motor rotor is rotated once, the rotor can be rotated clockwise for one revolution or the rotor can be rotated counterclockwise for one revolution according to actual conditions. The direction of rotation of the rotor is not limited here.

需要明确的是,所述预设霍尔传感器数据可以根据所述三相动力线确定,所述预设线序为所述电机被正确驱动时各霍尔传感器的线序。在未对各霍尔传感器线序进行调节时,所述各霍尔传感器线序可能与所述预设线序不同,电机不能被正确驱动;本发明通过调整各霍尔传感器的线序直至霍尔传感器数据与所述预设霍尔传感器数据相同,使电机能够被正确驱动;其中所述线序可以与所述预设线序相同。It should be noted that the preset Hall sensor data can be determined based on the three-phase power lines, and the preset line sequence is the line sequence of each Hall sensor when the motor is correctly driven. When the line sequence of each Hall sensor is not adjusted, the line sequence of each Hall sensor may be different from the preset line sequence, and the motor cannot be driven correctly; the present invention adjusts the line sequence of each Hall sensor until the Hall The Er sensor data is the same as the preset Hall sensor data, so that the motor can be driven correctly; wherein the line sequence can be the same as the preset line sequence.

在电机转子经过每一所述区域分别获取区域的霍尔传感器数据后,可以根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序。需要说明的是,确定各霍尔传感器的线序后,所述多个霍尔传感器数据根据所述确定后的线序调整后得到的多个霍尔传感器数据与所述多个预设霍尔传感器数据相同。具体的,由于定子绕组之间相隔120度分布,且三个霍尔传感器相隔120度分布,并且对应的所述定子绕组、所述转子的中心点和霍尔传感器的位置可以在一条直线上。所以所述电机转子在其转动平面上的任意一个区域内,三个霍尔传感器中两个霍尔传感器输出同一电平信号,另一霍尔传感器输出与所述电平信号不一致的电平信号;例如:两个霍尔传感器输出高电平,一个霍尔传感器输出低电平。或者,两个霍尔传感器输出低电平,一个霍尔传感器输出高电平。After the motor rotor passes through each of the areas and obtains the Hall sensor data of the area, the line sequence of each Hall sensor can be determined based on the multiple Hall sensor data and multiple preset Hall sensor data acquired in sequence. It should be noted that after the line sequence of each Hall sensor is determined, the plurality of Hall sensor data adjusted according to the determined line sequence and the plurality of preset Hall sensor data are The sensor data is the same. Specifically, since the stator windings are distributed 120 degrees apart and the three Hall sensors are distributed 120 degrees apart, the corresponding positions of the stator windings, the center point of the rotor and the Hall sensors can be on a straight line. Therefore, in any area of the motor rotor on its rotation plane, two of the three Hall sensors output the same level signal, and the other Hall sensor outputs a level signal that is inconsistent with the level signal. ;For example: two Hall sensors output high level, and one Hall sensor outputs low level. Or, two Hall sensors output low level and one Hall sensor outputs high level.

易于理解的是,在所述三个霍尔传感器中两个霍尔传感器输出同一电平信号中,所述两个霍尔传感器输出的是高电平还是低电平与所述电机转子所在的预设区域相关。在本发明一实施例中,当所述电机转子在作为基准的定子绕组所在的区域时,所述两个霍尔传感器输出高电平,与所述作为基准的定子绕组相对应的霍尔传感器输出低电平,即另一霍尔传感器输出低电平。在本发明另一实施例中,当所述电机转子在作为基准的定子绕组对应的霍尔传感器所在的区域时,所述霍尔传感器输出高电平,另外两个霍尔传感器输出低电平。可以使用1表示高电平,使用0表示低电平;所述霍尔传感器数据的取值范围在1至6之间。在本发明一实施例中,当所述霍尔传感器数据的组成中存在两个高电平,一个低电平时;可以通过更改三个电平与霍尔传感器数据位数之间的对应关系,即改变所述各霍尔传感器的线序,从而改变霍尔传感器数据的值,该值可以在6、5、3中变化;其中,6对应的二进制数为110,5对应的二进制数为101,3对应的二进制数为011。在本发明另一实施例中,当所述霍尔传感器数据的组成中存在两个低电平,一个高电平时;可以通过更改三个电平与霍尔传感器数据位数之间的对应关系,即改变所述各霍尔传感器的线序,从而改变霍尔传感器数据的值,该值可以在1、2、4中变化;其中,1对应的二进制数为001,2对应的二进制数为010,4对应的二进制数为100。It is easy to understand that when two of the three Hall sensors output the same level signal, whether the two Hall sensors output a high level or a low level is related to the location of the motor rotor. Default area related. In an embodiment of the present invention, when the motor rotor is in the area where the reference stator winding is located, the two Hall sensors output a high level, and the Hall sensor corresponding to the reference stator winding Output low level, that is, the other Hall sensor outputs low level. In another embodiment of the present invention, when the motor rotor is in the area where the Hall sensor corresponding to the stator winding serving as the reference is located, the Hall sensor outputs a high level, and the other two Hall sensors output a low level. . You can use 1 to represent high level and 0 to represent low level; the value range of the Hall sensor data is between 1 and 6. In an embodiment of the present invention, when there are two high levels and one low level in the composition of the Hall sensor data, the corresponding relationship between the three levels and the number of bits of the Hall sensor data can be changed, That is, changing the line sequence of each Hall sensor, thereby changing the value of the Hall sensor data, which can change among 6, 5, and 3; among them, the binary number corresponding to 6 is 110, and the binary number corresponding to 5 is 101 , the binary number corresponding to 3 is 011. In another embodiment of the present invention, when there are two low levels and one high level in the composition of the Hall sensor data, the corresponding relationship between the three levels and the number of bits of the Hall sensor data can be changed. , that is, changing the line sequence of each Hall sensor, thereby changing the value of the Hall sensor data, which can change among 1, 2, and 4; among them, the binary number corresponding to 1 is 001, and the binary number corresponding to 2 is 010, the corresponding binary number of 4 is 100.

容易理解的是,由转动平面划分而来的六个区域中,相邻的两个区域,其中一个区域的霍尔传感器数据由两个高电平一个低电平组成,另外一个区域的霍尔传感器数据由两个低电平一个高电平组成;相邻的两个区域的霍尔传感器数据不能通过改变霍尔传感器的线序变换得到;但是,每相隔一个区域的两个区域的霍尔传感器数据的组成类型一致,该两个区域的霍尔传感器数据可以通过改变各霍尔传感器的线序变换得到。例如:将所述六个区域进行顺时针或者逆时针进行编号,在本发明一实施例中,可以以作为基准的定子绕组对应霍尔传感器输出电平作为霍尔传感器数据的第二位,并按照所述编号的顺序将另外两个霍尔传感器数据分别作为所述霍尔传感器数据的第一位和第零位。可以将所述六个区域按照顺时针编号;当以所述定子绕组对应的霍尔传感器所在的区域作为预设区域时,第一区域至第六区域的霍尔传感器数据的值可以分别为4,6,2,3,1,5;当以所述定子绕组所在的区域作为预设区域时,第一区域至第六区域的霍尔传感器数据的值可以分别为3,1,5,4,6,2。此外,还可以将所述六个区域按照逆时针编号;当以所述定子绕组对应的霍尔传感器所在的区域作为预设区域时,第一区域至第六区域的霍尔传感器数据的值可以分别为4,5,1,3,2,6;当以所述定子绕组所在的区域作为预设区域时,第一区域至第六区域的霍尔传感器数据的值可以分别为3,2,6,4,5,1。在本实施例中,所述每相隔一个区域的两个区域的霍尔传感器数据可以通过改变各霍尔传感器的线序变换得到;此外将一个区域的霍尔传感器数据进行取反后可以得到与该区域相隔两个区域的霍尔传感器数据,例如:3与4,2与5以及6与1。由上述实施例可知,所述第一区域至第六区域的霍尔传感器数据可以由下列数据链:3,2,6,4,5,1进行变化而成。其中,预设区域的霍尔传感器数据决定了第一区域的霍尔传感器数据,所述六个区域的编号顺序决定了上述数据链的变化选择方向,例如:当所述六个区域逆时针编号时,可以从左往右选择数据链中的数据,比如上述的4,5,1,3,2,6;当所述六个区域顺时针编号时,可以从右往左选择数据链中的数据,比如上述的3,1,5,4,6,2。It is easy to understand that among the six areas divided by the rotation plane, the Hall sensor data of two adjacent areas is composed of two high levels and one low level, and the Hall sensor data of the other area is composed of two high levels and one low level. The sensor data consists of two low levels and one high level; the Hall sensor data of two adjacent areas cannot be obtained by changing the line sequence of the Hall sensor; however, the Hall sensor data of the two areas separated by one area The composition type of sensor data is the same, and the Hall sensor data of the two areas can be obtained by changing the line sequence transformation of each Hall sensor. For example: the six areas are numbered clockwise or counterclockwise. In an embodiment of the present invention, the output level of the Hall sensor corresponding to the stator winding as the reference can be used as the second bit of the Hall sensor data, and The other two Hall sensor data are respectively used as the first and zeroth bits of the Hall sensor data in the order of the numbers. The six areas can be numbered clockwise; when the area where the Hall sensor corresponding to the stator winding is located is used as the preset area, the values of the Hall sensor data from the first area to the sixth area can be 4 respectively. , 6, 2, 3, 1, 5; when the area where the stator winding is located is used as the preset area, the values of the Hall sensor data from the first area to the sixth area can be 3, 1, 5, 4 respectively. ,6,2. In addition, the six areas can also be numbered counterclockwise; when the area where the Hall sensor corresponding to the stator winding is located is used as the preset area, the values of the Hall sensor data from the first area to the sixth area can be are 4, 5, 1, 3, 2, and 6 respectively; when the area where the stator winding is located is used as the preset area, the values of the Hall sensor data from the first area to the sixth area can be 3, 2, respectively. 6, 4, 5, 1. In this embodiment, the Hall sensor data of two areas separated by one area can be obtained by changing the line sequence transformation of each Hall sensor; in addition, after inverting the Hall sensor data of one area, the following can be obtained: This area is separated by two areas of Hall sensor data, for example: 3 and 4, 2 and 5, and 6 and 1. It can be seen from the above embodiment that the Hall sensor data of the first to sixth areas can be changed from the following data chain: 3, 2, 6, 4, 5, 1. Among them, the Hall sensor data of the preset area determines the Hall sensor data of the first area, and the numbering sequence of the six areas determines the change selection direction of the above-mentioned data link. For example: when the six areas are numbered counterclockwise When the six areas are numbered clockwise, you can select the data in the data chain from right to left, such as the above-mentioned 4, 5, 1, 3, 2, 6. Data, such as the above 3, 1, 5, 4, 6, 2.

需要注意的是,可以任意选择所述六个区域中的一个区域作为预设区域,不局限于作为基准的定子绕组所在的区域和其对应的霍尔传感器所在的区域;只需根据选取的预设区域的霍尔传感器数据在上述数据链中确定第一区域的霍尔传感器数据即可。例如:当改变作为预设区域的区域时,在本发明一实施例中,第一区域霍尔传感器数据可以为5,转子旋转一周,获得第一区域至第六区域的霍尔传感器数据可以是5,1,3,2,6,4。若是改变所述转子的旋转方向,所述第一区域至第六区域的霍尔传感器数据还可以是5,4,6,2,3,1。在电机中,定子绕组的方向有两种;当按照预定通电顺序进行通电时,绕组方向不同,定子绕组通电后产生的磁场方向相反。例如:定子绕组方向改变,从而改变通电后转子指向的区域,即改变第一区域的霍尔传感器数据的值。在本发明一实施例中,第一区域霍尔传感器数据可以为5,转子旋转一周,获得第一区域至第六区域的霍尔传感器数据可以是5,1,3,2,6,4。当绕组改变后,所述第一区域至第六区域的霍尔传感器数据可以是2,6,4,5,1,3。It should be noted that one of the six areas can be selected as the preset area, and is not limited to the area where the stator winding as the reference is located and the area where its corresponding Hall sensor is located; it only needs to be based on the selected preset area. Assume that the Hall sensor data of the area is determined by determining the Hall sensor data of the first area in the above data chain. For example: when changing the area as the preset area, in an embodiment of the present invention, the Hall sensor data of the first area may be 5, and the rotor rotates once, and the Hall sensor data obtained from the first area to the sixth area may be 5, 1, 3, 2, 6, 4. If the rotation direction of the rotor is changed, the Hall sensor data of the first to sixth areas may also be 5, 4, 6, 2, 3, 1. In the motor, there are two directions of the stator winding; when the stator winding is energized according to the predetermined order, the winding directions are different, and the magnetic field generated after the stator winding is energized is in the opposite direction. For example: the direction of the stator winding changes, thereby changing the area where the rotor points after power is applied, that is, changing the value of the Hall sensor data in the first area. In an embodiment of the present invention, the Hall sensor data in the first area may be 5. When the rotor rotates once, the Hall sensor data obtained from the first to sixth areas may be 5, 1, 3, 2, 6, and 4. After the winding is changed, the Hall sensor data of the first to sixth areas may be 2, 6, 4, 5, 1, 3.

需要说明的是,所述六个区域中的序号代表所述电机转子经过的第几个区域,例如,所述第二区域代表所述转子经过的第二个区域。所述六个区域的编号方向代表所述电机转子的旋转方向。当电机转子旋转一周得到的多个霍尔传感器数据后,只需要确定所述多个霍尔传感器数据中的第一个霍尔传感器数据和第二个霍尔传感器数据,便可确定整个所述多个霍尔传感器数据。其中,所述第一个霍尔传感器数据代表预设区域,所述第二个霍尔传感器数据代表上述数据链的变化选择方向。It should be noted that the serial numbers in the six areas represent which areas the motor rotor passes through. For example, the second area represents the second area the rotor passes through. The numbered directions of the six areas represent the rotation direction of the motor rotor. When the motor rotor rotates once and obtains multiple Hall sensor data, it is only necessary to determine the first Hall sensor data and the second Hall sensor data among the multiple Hall sensor data, and then the entire Hall sensor data can be determined. Multiple Hall sensor data. Wherein, the first Hall sensor data represents a preset area, and the second Hall sensor data represents the change selection direction of the above-mentioned data link.

在实际情况中,可能由于霍尔传感器线的接线等原因,控制装置接收到各霍尔传感器输出的数据,对其进行组合后得到的多个霍尔传感器数据与所述多个预设霍尔传感器数据不一致,致使所述电机不能被正确驱动;本发明调整各霍尔传感器的线序,以使调整后的多个霍尔传感器数据与所述多个预设霍尔传感器数据相等;电机能够正确驱动。此外,由于作为基准的电机定子绕组或其对应的动力线可以进行变化,不固定为某一特定的电机定子绕组或其对应的动力线;所以能够实现在三相霍尔传感器线和三相动力线任意连接的情况下完成电机调试,且不需要更改所述霍尔传感器线或者动力线的连接方式。In actual situations, due to reasons such as the wiring of Hall sensor lines, the control device receives the data output by each Hall sensor, and combines the multiple Hall sensor data obtained with the multiple preset Hall sensor data. The sensor data is inconsistent, causing the motor to be unable to be driven correctly; the present invention adjusts the line sequence of each Hall sensor so that the adjusted multiple Hall sensor data are equal to the multiple preset Hall sensor data; the motor can Drive correctly. In addition, since the motor stator winding or its corresponding power line as the reference can be changed and is not fixed to a specific motor stator winding or its corresponding power line, it can be realized between the three-phase Hall sensor line and the three-phase power line. Motor debugging can be completed when the wires are connected arbitrarily, and there is no need to change the connection method of the Hall sensor wire or power wire.

本发明提出了一种电机调整霍尔传感器线序的方法、控制装置及BLDC电机。该方法包括:将电机转子的转动平面按照预设规则进行分区,以获得六个区域,并生成每一区域对应的预设霍尔传感器数据;其中,所述预设规则为:根据电机三相动力线确定与所述电机三相动力线对应的三相霍尔传感器线的预设线序,并将在电机转子转动时,霍尔传感器数据不变的位置划分为一个区域;将电机转子转动至预设的所述区域内,控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据;根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序。本发明通过将电机转子旋转一周得到多个霍尔传感器数据,并通过调整各霍尔传感器的线序使得调整后的多个霍尔传感器数据与所述多个预设霍尔传感器数据相等,电机能够正确驱动,从而实现了提高三相霍尔传感器线和三相动力线任意连接的情况下完成电机调试的目的。The invention proposes a method, a control device and a BLDC motor for adjusting the Hall sensor line sequence of a motor. The method includes: dividing the rotation plane of the motor rotor according to preset rules to obtain six areas, and generating preset Hall sensor data corresponding to each area; wherein the preset rules are: according to the three phases of the motor The power line determines the preset line sequence of the three-phase Hall sensor line corresponding to the three-phase power line of the motor, and divides the position where the Hall sensor data does not change when the motor rotor rotates into a region; the motor rotor rotates to the preset areas, control the motor rotor to rotate once, and obtain the Hall sensor data when the motor rotor passes through each of the areas; based on the multiple Hall sensor data and multiple preset Hall sensors acquired in sequence data to determine the line sequence of each Hall sensor. The present invention obtains multiple Hall sensor data by rotating the motor rotor once, and adjusts the line sequence of each Hall sensor to make the adjusted multiple Hall sensor data equal to the multiple preset Hall sensor data, and the motor It can be driven correctly, thereby achieving the purpose of completing motor debugging when the three-phase Hall sensor line and the three-phase power line are connected arbitrarily.

参考图2,在本发明一实施例中,所述生成每一区域对应的预设霍尔传感器数据的步骤具体包括:Referring to Figure 2, in one embodiment of the present invention, the step of generating preset Hall sensor data corresponding to each area specifically includes:

步骤S110、将三个霍尔传感器的输出值按照所述预设线序组成一个三位二进制数;Step S110: Combine the output values of the three Hall sensors into a three-digit binary number according to the preset line sequence;

步骤S120、分别得到转子在所述六个区域内时,所述三位二进制数的值,并将该值作为所在区域对应的预设霍尔传感器数据。Step S120: Obtain the value of the three-digit binary number when the rotor is in the six areas, and use this value as the preset Hall sensor data corresponding to the area.

在本实施例中,所述将三个霍尔传感器的输出值按照所述预设线序组成一个三位二进制数;其中,所述三个霍尔传感器分别输出高低电平,所述高电平可以分别使用1和0进行表示。可以将三个霍尔传感器的输出值按照预设线序组成一个三位二进制数,所述三位二进制数中第零位、第一位和第二位分别与所述三个霍尔传感器一一对应,霍尔传感器的线序为所述三个霍尔传感器输出的高低电平与所述三位二进制数中数位的对应关系;所述预设线序可以由研发人员确定,并确定了在电机能够被正常驱动的情况下,所述三个霍尔传感器输出的高低电平与所述三位二进制数中数位的对应关系,所述三位二进制数为电机转子在该位置的霍尔传感器数据。可以得到转子在所述六个区域时,所述三个霍尔传感器分别的输出值。将所述三个霍尔传感器的输出值按照预设线序进行组合后,可以分别得到转子在所述六个区域内时,所述三位二进制数的值,即所述霍尔传感器数据的值;由于所述霍尔传感器数据的值是由三个霍尔传感器的输出值根据所述预设线序组合后的得到,可以将该值作为所在区域对应的预设霍尔传感器数据。In this embodiment, the output values of the three Hall sensors are composed into a three-digit binary number according to the preset line sequence; wherein the three Hall sensors output high and low levels respectively, and the high level Ping can be represented by 1 and 0 respectively. The output values of the three Hall sensors can be combined into a three-digit binary number according to the preset line sequence. The zeroth, first and second bits of the three-digit binary number are the same as those of the three Hall sensors respectively. Correspondingly, the line sequence of the Hall sensor is the corresponding relationship between the high and low levels output by the three Hall sensors and the digits in the three-digit binary number; the preset line sequence can be determined by the R&D personnel, and the When the motor can be driven normally, there is a corresponding relationship between the high and low levels output by the three Hall sensors and the digits in the three-digit binary number. The three-digit binary number is the Hall value of the motor rotor at that position. sensor data. The respective output values of the three Hall sensors when the rotor is in the six regions can be obtained. After combining the output values of the three Hall sensors according to the preset line sequence, the values of the three-digit binary numbers when the rotor is in the six areas can be obtained, that is, the value of the Hall sensor data. value; since the value of the Hall sensor data is obtained by combining the output values of three Hall sensors according to the preset line sequence, this value can be used as the preset Hall sensor data corresponding to the area.

在本发明一实施例中,所述将电机转子转动至预设的所述区域内的步骤具体包括:In an embodiment of the present invention, the step of rotating the motor rotor to the preset area specifically includes:

导通电机三相动力线中的两相动力线,以使所述电机转子转动至对应的区域内。Two of the three-phase power lines of the motor are connected to make the motor rotor rotate to the corresponding area.

在本实施例中,由于三相动力线分别连接的定子绕组和三个霍尔传感器分别相隔120度分布,当选定一根动力线或者其对应的定子绕组作为基准时,按照电流从一根动力线输入,从另外一根动力线输出的方式导通另外两根动力线,便可以使转子转至作为基准的定子绕组所在的区域或者转至所述定子绕组对应的霍尔传感器所在的区域;其中,由于定子绕组的方向是确定的,当改变用于通电的两根动力线的通电方向时,该两根动力线对应的定子绕组在流向不同的电流作用下,合成的磁场方向相反,以使所述电机转子的转至的区域不同,所述转子转至作为基准的定子绕组所在的区域或者转至所述定子绕组对应的霍尔传感器所在的区域。可以根据控制电机三相动力线中的两相动力线导通,以使所述电机转子转动至对应的区域内;所述对应的区域可以为所述预设的区域。当改变所导通的两相动力线后,所述电机转子转至的区域不同。In this embodiment, since the stator windings connected to the three-phase power lines and the three Hall sensors are distributed 120 degrees apart, when a power line or its corresponding stator winding is selected as the reference, the current flows from one The power line is input, and the other two power lines are connected through the output of another power line, so that the rotor can be rotated to the area where the stator winding as the reference is located or to the area where the Hall sensor corresponding to the stator winding is located. ; Among them, since the direction of the stator winding is determined, when the energizing direction of the two power lines used for energization is changed, the direction of the resulting magnetic field is opposite under the action of current flowing in different directions by the stator windings corresponding to the two power lines. So that the motor rotor rotates to different areas, the rotor rotates to the area where the reference stator winding is located or to the area where the Hall sensor corresponding to the stator winding is located. The conduction of two of the three-phase power lines of the motor can be controlled to cause the motor rotor to rotate into a corresponding area; the corresponding area can be the preset area. When the connected two-phase power lines are changed, the motor rotor rotates to a different area.

参照图3,在本发明一实施例中,所述控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据的步骤具体包括:Referring to Figure 3, in one embodiment of the present invention, the step of controlling the motor rotor to rotate once and acquiring Hall sensor data when the motor rotor passes through each of the areas specifically includes:

步骤S210、使用两两导通的方式按照预定顺序导通电机动力线,使转子旋转一周;Step S210: Use pairwise conduction to conduct the motor power lines in a predetermined sequence to make the rotor rotate once;

步骤S220、记录转子旋转一周之间电机转子分别经过每一所述区域时的霍尔传感器数据。Step S220: Record the Hall sensor data when the motor rotor passes through each of the regions during one rotation of the rotor.

在本实施例中,在实际使用中,通常使用依次按照预定导通顺序导通三相动力线中的两相,从而产生变化的磁场带到所述电机转子转动;所述两两导通的方式可以为依次按照预定导通顺序导通三相动力线的两相以旋转转子。所述导通顺序由研发人员确定。通过两两导通的方式使转子旋转一周,所述转子旋转一周经过六个区域,所述转子经过六个区域时,所述三个霍尔传感器输出值组成的霍尔传感器数据发生变化。需要说明的是,控制装置可以是通过三根霍尔传感器线分别接入的端口位置确定各霍尔传感器的线序,在三根霍尔传感器线与三个所述端口的所有连接状态中,只有一种连接状态使得所述霍尔传感器数据能够正确反映电机转子的运行情况,电机能够正常驱动;其他的连接状态中,电机不能正常驱动。此时可能由于霍尔传感器线的连接关系,所述霍尔传感器的线序不与所述预设线序相同,即此时所述三个传感器输出的高低电平组合成的霍尔传感器数据不与所述预设霍尔传感器数据相同。此时电机转子分别经过每一所述区域时所述三个霍尔传感器输出的高低电平组合成霍尔传感器数据后,记录该霍尔传感器数据。In this embodiment, in actual use, it is usually used to conduct two phases of the three-phase power lines in sequence according to a predetermined conduction sequence, thereby generating a changing magnetic field to bring the motor rotor to rotate; the two-to-two conduction The method may be to sequentially conduct two phases of the three-phase power line according to a predetermined conduction sequence to rotate the rotor. The conduction sequence is determined by the R&D personnel. The rotor rotates one revolution by connecting two to two, and the rotor rotates through six areas. When the rotor passes through the six areas, the Hall sensor data composed of the output values of the three Hall sensors changes. It should be noted that the control device can determine the line sequence of each Hall sensor through the position of the port to which the three Hall sensor lines are respectively connected. Among all the connection states of the three Hall sensor lines and the three ports, only one One connection state enables the Hall sensor data to accurately reflect the operation of the motor rotor, and the motor can drive normally; in other connection states, the motor cannot drive normally. At this time, it may be that due to the connection relationship of the Hall sensor lines, the line sequence of the Hall sensor is not the same as the preset line sequence, that is, the Hall sensor data composed of the high and low levels output by the three sensors at this time Not the same as the preset Hall sensor data. At this time, when the motor rotor passes through each of the areas, the high and low levels output by the three Hall sensors are combined into Hall sensor data, and then the Hall sensor data is recorded.

参照图4,在本发明一实施例中,所述根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序的步骤具体包括:Referring to Figure 4, in one embodiment of the present invention, the step of determining the line sequence of each Hall sensor based on the sequentially acquired multiple Hall sensor data and multiple preset Hall sensor data specifically includes:

步骤S310、确定所述多个霍尔传感器数据中的第一个霍尔传感器数据与所述多个预设霍尔传感器数据中的第一个预设霍尔传感器数据是否相等,得到第一确定结果;Step S310: Determine whether the first Hall sensor data among the plurality of Hall sensor data is equal to the first preset Hall sensor data among the plurality of preset Hall sensor data, and obtain the first determination. result;

步骤S320、根据第一确定结果调整各霍尔传感器的线序,并得到调整线序后的多个霍尔传感器数据,以使所述多个霍尔传感器中的第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等;Step S320: Adjust the line sequence of each Hall sensor according to the first determination result, and obtain multiple Hall sensor data after adjusting the line sequence, so that the first Hall sensor data among the multiple Hall sensors is consistent with the first Hall sensor data. The first preset Hall sensor data is equal;

步骤S330、确定所述调整线序后的多个霍尔传感器数据中的第二个霍尔传感器数据与所述多个预设霍尔传感器数据中的第二个预设霍尔传感器数据是否相等,得到第二确定结果;Step S330: Determine whether the second Hall sensor data among the plurality of Hall sensor data after adjusting the line sequence is equal to the second preset Hall sensor data among the plurality of preset Hall sensor data. , get the second determined result;

步骤S340、根据所述第二确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等。Step S340: Adjust the line sequence of each Hall sensor according to the second determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the multiple Hall sensor data are consistent with the multiple preset Hall sensor data are equal.

由上述实施例可知,电机定子绕组存在两种绕组方向,当所述定子绕组实际的绕组方向与定义的绕组方向相同时,所述动力线按照预设顺序通电后,所述转子的旋转方向与期望的旋转方向相同;当所述定子绕组实际的绕组方向与定义的绕组方向不相同时,所述动力线按照预设顺序通电后,所述转子的旋转方向与期望的旋转方向相反。在本实施例中,所述定子的绕组方式与定义的绕组方式相同。可以确定所述第一个霍尔传感器数据和所述第一个预设霍尔传感器数据是否相等,以及确定所述第二个霍尔传感器数据和所述第二个预设霍尔传感器数据是否相等;根据确定结果调整各霍尔传感器的线序,以使所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等,从而可以正确驱动电机。具体的,确定所述多个霍尔传感器数据中的第一个霍尔传感器数据与所述多个预设霍尔传感器数据中的第一个预设霍尔传感器数据是否相等得到第一确定结果,并根据所述第一确定结果调整线序,以使所述第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等。由上述实施例可知,所述第一个霍尔传感器数据代表预设区域的霍尔传感器数据。在所述调整线序后,确定调整线序后的多个霍尔传感器数据中的第二个霍尔传感器数据与所述多个预设霍尔传感器数据中的第二个预设霍尔传感器数据是否相等得到第二确定结果,并根据所述第二确定结果调整各霍尔传感器的线序,以使所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等,从而可以正确驱动电机。It can be seen from the above embodiments that there are two winding directions for the stator winding of the motor. When the actual winding direction of the stator winding is the same as the defined winding direction, after the power lines are energized according to the preset sequence, the rotation direction of the rotor will be the same as that of the defined winding direction. The desired direction of rotation is the same; when the actual winding direction of the stator winding is different from the defined winding direction, after the power lines are energized in a preset sequence, the rotation direction of the rotor is opposite to the desired direction of rotation. In this embodiment, the winding method of the stator is the same as the defined winding method. It may be determined whether the first Hall sensor data and the first preset Hall sensor data are equal, and whether the second Hall sensor data and the second preset Hall sensor data are equal. Equal; adjust the line sequence of each Hall sensor according to the determination result, so that the plurality of Hall sensor data and the plurality of preset Hall sensor data are equal, so that the motor can be driven correctly. Specifically, it is determined whether the first Hall sensor data among the plurality of Hall sensor data and the first preset Hall sensor data among the plurality of preset Hall sensor data are equal to obtain the first determination result. , and adjust the line sequence according to the first determination result, so that the first Hall sensor data is equal to the first preset Hall sensor data. As can be seen from the above embodiments, the first Hall sensor data represents Hall sensor data in a preset area. After the line sequence is adjusted, the second Hall sensor data among the plurality of Hall sensor data after the line sequence is adjusted and the second preset Hall sensor data among the plurality of preset Hall sensor data are determined. A second determination result is obtained as to whether the data are equal, and the line sequence of each Hall sensor is adjusted according to the second determination result, so that the plurality of Hall sensor data and the plurality of preset Hall sensor data are equal, so that The motor can be driven correctly.

根据上述实施例,所述六个区域中的序号代表所述电机转子经过的第几个区域,例如,所述第二区域代表所述转子经过的第二个区域。所述六个区域的编号方向代表所述电机转子的旋转方向。当电机转子旋转一周得到的多个霍尔传感器数据后,只需要确定所述多个霍尔传感器数据中的第一个霍尔传感器数据和第二个霍尔传感器数据,便可确定整个所述多个霍尔传感器数据。其中,所述第一个霍尔传感器数据代表预设区域,所述第二个霍尔传感器数据代表上述数据链的变化选择方向。由该实施例可知,通过更改线序将所述多个霍尔传感器数据中的第一个霍尔传感器数据和所述多个预设霍尔传感器中的第一个预设霍尔传感器数据相等,以及将所述多个霍尔传感器数据中的第二个霍尔传感器数据和所述第二个霍尔传感器数据相等。易于理解的是,当所述第一个霍尔传感器数据与所述第一个预设霍尔传感器数据对应,以及所述第二个霍尔传感器数据与所述第二个预设霍尔传感器数据对应后,所述多个霍尔传感器数据与所述多个预设霍尔传感器数据一一对应相等,所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等。According to the above embodiment, the serial numbers in the six areas represent which areas the motor rotor passes through. For example, the second area represents the second area the rotor passes through. The numbered directions of the six areas represent the rotation direction of the motor rotor. When the motor rotor rotates once and obtains multiple Hall sensor data, it is only necessary to determine the first Hall sensor data and the second Hall sensor data among the multiple Hall sensor data, and then the entire Hall sensor data can be determined. Multiple Hall sensor data. Wherein, the first Hall sensor data represents a preset area, and the second Hall sensor data represents the change selection direction of the above-mentioned data link. It can be seen from this embodiment that by changing the line sequence, the first Hall sensor data among the plurality of Hall sensor data and the first preset Hall sensor data among the plurality of preset Hall sensors are equal. , and equalize the second Hall sensor data among the plurality of Hall sensor data and the second Hall sensor data. It is easy to understand that when the first Hall sensor data corresponds to the first preset Hall sensor data, and the second Hall sensor data corresponds to the second preset Hall sensor After data correspondence, the plurality of Hall sensor data and the plurality of preset Hall sensor data are in one-to-one correspondence and equal, and the plurality of Hall sensor data are equal to the plurality of preset Hall sensor data.

在本发明一实施例中,所述根据第一确定结果调整各霍尔传感器的线序的步骤具体包括:In an embodiment of the present invention, the step of adjusting the line sequence of each Hall sensor according to the first determination result specifically includes:

当所述第一个霍尔传感器数据与所述第一个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等;When the first Hall sensor data is not equal to the first preset Hall sensor data, adjust the line sequence of each Hall sensor so that the first Hall sensor after adjusting the line sequence The data is equal to the first preset Hall sensor data;

当所述第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序;When the first Hall sensor data is equal to the first preset Hall sensor data, the line sequence of each Hall sensor is not adjusted;

所述根据所述第二确定结果调整各霍尔传感器的线序包括:The adjustment of the line sequence of each Hall sensor according to the second determination result includes:

当所述第二个霍尔传感器数据与所述第二个预设霍尔传感器数据相等时,调整所述各霍尔传感器的线序,以使调整线序后的第二个霍尔传感器数据与所述第二个预设霍尔传感器数据相等;When the second Hall sensor data is equal to the second preset Hall sensor data, adjust the line sequence of each Hall sensor so that the second Hall sensor data after adjusting the line sequence Is equal to the second preset Hall sensor data;

当所述第二个霍尔传感器数据与所述第二个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序。When the second Hall sensor data is equal to the second preset Hall sensor data, the line sequence of each Hall sensor is not adjusted.

参照图5,在本发明一实施例中,所述根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序的步骤具体包括:Referring to Figure 5, in one embodiment of the present invention, the step of determining the line sequence of each Hall sensor based on the plurality of Hall sensor data and the plurality of preset Hall sensor data acquired in sequence specifically includes:

步骤S350、将所述多个霍尔传感器中的第一个霍尔传感器数据进行取反,并确定取反后的数据与所述多个预设霍尔传感器数据中的第一个预设霍尔传感器数据是否相等,得到第三确定结果;Step S350: Invert the first Hall sensor data among the plurality of Hall sensors, and determine whether the inverted data is consistent with the first preset Hall sensor data among the plurality of preset Hall sensor data. Check whether the sensor data are equal and obtain the third determination result;

步骤S360、根据所述第三确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据中的第一个霍尔传感器数据进行取反后的值与所述第一个预设霍尔传感器数据相等;Step S360: Adjust the line sequence of each Hall sensor according to the third determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the first Hall sensor data in the multiple Hall sensor data The inverted value of the sensor data is equal to the first preset Hall sensor data;

步骤S370、将所述更改线序后的多个霍尔传感器数据中的第二个霍尔传感器数据进行取反,并确定取反后的数据与所述多个预设霍尔传感器数据中的第二个霍尔传感器数据是否相等,得到第四确定结果;Step S370: Invert the second Hall sensor data among the plurality of Hall sensor data after changing the line sequence, and determine whether the inverted data is consistent with the second Hall sensor data among the plurality of preset Hall sensor data. Whether the second Hall sensor data is equal, the fourth determination result is obtained;

步骤S380、根据所述第四确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等。Step S380: Adjust the line sequence of each Hall sensor according to the fourth determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the multiple Hall sensor data are consistent with the multiple preset Hall sensor data are equal.

在本实施例中,所述定子的绕组方向与定义的绕组方向相反。由于所述定子的绕组方式与定义的绕组方式相反,通过导通电机三相动力线中的两相动力线的方法使得所述电机转子转动至对应的区域时,定子产生的磁场使得转子转至与所述对应的区域相对的区域,所述对应的区域的为在定子绕组方向与定义方向相同时的预设区域,即预设霍尔传感器数据对应的区域;将所述相对的区域的霍尔传感器数据进行取反操作,取反后的数据与所述预设霍尔传感器的数据相等。In this embodiment, the winding direction of the stator is opposite to the defined winding direction. Since the winding method of the stator is opposite to the defined winding method, when the motor rotor rotates to the corresponding area by conducting two of the three-phase power lines of the motor, the magnetic field generated by the stator causes the rotor to rotate to The area opposite to the corresponding area, the corresponding area is the preset area when the stator winding direction is the same as the defined direction, that is, the area corresponding to the preset Hall sensor data; the Hall sensor of the opposite area is The sensor data is inverted, and the inverted data is equal to the data of the preset Hall sensor.

确定所述第一个霍尔传感器数据取反后的数据和所述第一个预设霍尔传感器数据是否相等,以及确定所述第二个霍尔传感器数据取反后的和所述第二个预设霍尔传感器数据是否相等;根据确定结果调整各霍尔传感器的线序,以使所述多个霍尔传感器数据经过取反后与所述多个预设霍尔传感器数据相等,从而可以正确驱动电机。具体的,确定所述多个霍尔传感器数据中的第一个霍尔传感器数据取反后的数据与所述多个预设霍尔传感器数据中的第一个预设霍尔传感器数据是否相等得到第三确定结果,并根据所述第三确定结果调整线序,以使所述第一个霍尔传感器数据取反后的数据与所述第一个预设霍尔传感器数据相等。由上述实施例可知,所述第一个霍尔传感器数据取反后的数据代表预设区域的霍尔传感器数据。在所述调整线序后,确定调整线序后的多个霍尔传感器数据中的第二个霍尔传感器数据取反后的数据与所述多个预设霍尔传感器数据中的第二个预设霍尔传感器数据是否相等得到第四确定结果,并根据所述第四确定结果调整各霍尔传感器的线序,以使所述多个霍尔传感器数据取反后的数据与所述多个预设霍尔传感器数据相等,从而可以正确驱动电机。Determine whether the inverted data of the first Hall sensor data is equal to the first preset Hall sensor data, and determine whether the inverted data of the second Hall sensor data is equal to the second preset Hall sensor data. Whether the data of the two preset Hall sensors are equal; adjust the line sequence of each Hall sensor according to the determination result, so that the data of the plurality of Hall sensors are equal to the data of the plurality of preset Hall sensors after inversion, so that The motor can be driven correctly. Specifically, it is determined whether the inverted data of the first Hall sensor data among the plurality of Hall sensor data is equal to the first preset Hall sensor data among the plurality of preset Hall sensor data. A third determination result is obtained, and the line sequence is adjusted according to the third determination result, so that the inverted data of the first Hall sensor data is equal to the first preset Hall sensor data. As can be seen from the above embodiments, the inverted data of the first Hall sensor data represents the Hall sensor data of the preset area. After the line sequence is adjusted, it is determined that the inverted data of the second Hall sensor data among the plurality of Hall sensor data after the line sequence is adjusted is the same as the second one of the plurality of preset Hall sensor data. Preset whether the Hall sensor data are equal to obtain a fourth determination result, and adjust the line sequence of each Hall sensor according to the fourth determination result, so that the inverted data of the multiple Hall sensor data is consistent with the multiple Hall sensor data. The data of the two preset Hall sensors are equal, so that the motor can be driven correctly.

根据上述实施例,当电机转子旋转一周得到的多个霍尔传感器数据后,只需要确定所述多个霍尔传感器数据中的第一个霍尔传感器数据和第二个霍尔传感器数据,便可确定整个所述多个霍尔传感器数据。其中,所述第一个霍尔传感器数据代表预设区域,所述第二个霍尔传感器数据代表上述数据链的变化选择方向。由该实施例可知,通过更改线序将所述多个霍尔传感器数据中的第一个霍尔传感器数据取反后的数据和所述多个预设霍尔传感器中的第一个预设霍尔传感器数据相等,以及将所述多个霍尔传感器数据中的第二个霍尔传感器数据取反后的数据和所述第二个霍尔传感器数据相等。易于理解的是,当所述第一个霍尔传感器数据取反后的数据与所述第一个预设霍尔传感器数据对应,以及所述第二个霍尔传感器数据取反后的数据与所述第二个预设霍尔传感器数据对应后,所述多个霍尔传感器数据取反后的数据与所述多个预设霍尔传感器数据一一对应相等,所述多个霍尔传感器数据取反后的数据与所述多个预设霍尔传感器数据相等。即完成了在定子绕组方向与定义的方向不一致的情况下,通过调整线序,使得电机能够正确被驱动。According to the above embodiment, when the motor rotor rotates once and obtains multiple Hall sensor data, it is only necessary to determine the first Hall sensor data and the second Hall sensor data among the multiple Hall sensor data. The entire plurality of Hall sensor data may be determined. Wherein, the first Hall sensor data represents a preset area, and the second Hall sensor data represents the change selection direction of the above-mentioned data link. It can be seen from this embodiment that by changing the line sequence, the first Hall sensor data among the plurality of Hall sensor data is inverted and the first preset Hall sensor among the plurality of preset Hall sensors is The Hall sensor data is equal, and the data obtained by inverting the second Hall sensor data among the plurality of Hall sensor data is equal to the second Hall sensor data. It is easy to understand that when the first Hall sensor data is inverted, the data after inversion corresponds to the first preset Hall sensor data, and the second Hall sensor data after inversion corresponds to After the second preset Hall sensor data is corresponding, the inverted data of the multiple Hall sensor data is equal to the one-to-one correspondence with the multiple preset Hall sensor data. The multiple Hall sensors The inverted data is equal to the plurality of preset Hall sensor data. That is to say, when the direction of the stator winding is inconsistent with the defined direction, the motor can be driven correctly by adjusting the line sequence.

在本发明一实施例中,所述根据所述第三确定结果调整各霍尔传感器的线序包括:In an embodiment of the present invention, adjusting the line sequence of each Hall sensor according to the third determination result includes:

当所述第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据相等;When the inverted data of the first Hall sensor data is not equal to the first preset Hall sensor data, adjust the line sequence of each Hall sensor so that the adjusted line sequence The inverted data of the first Hall sensor data is equal to the first preset Hall sensor data;

当所述第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序;When the inverted data of the first Hall sensor data is equal to the first preset Hall sensor data, the line sequence of each Hall sensor is not adjusted;

所述根据所述第四确定结果调整各霍尔传感器的线序包括:The adjusting the line sequence of each Hall sensor according to the fourth determination result includes:

当所述第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据相等;When the inverted data of the second Hall sensor data is not equal to the second preset Hall sensor data, adjust the line sequence of each Hall sensor so that the adjusted line sequence The inverted data of the second Hall sensor data is equal to the second preset Hall sensor data;

当所述第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序。When the inverted data of the second Hall sensor data is equal to the second preset Hall sensor data, the line sequence of each Hall sensor is not adjusted.

本发明还提出了一种控制装置,所述控制装置包括存储器和处理器,以及存储在存储器上并被处理器执行的电机调整霍尔传感器线序程序,所述电机调整霍尔传感器线序程序在被处理器执行时,实现如上述任一项的电机调整霍尔传感器线序的方法。The invention also proposes a control device. The control device includes a memory and a processor, and a motor adjustment Hall sensor line sequence program stored in the memory and executed by the processor. The motor adjustment Hall sensor line sequence program is When executed by the processor, the method for adjusting the Hall sensor line sequence of the motor as described above is implemented.

值得注意的是,由于本发明控制装置包括了上述电机调整霍尔传感器线序的方法所有实施例的全部技术方案,因此至少具有上述电机调整霍尔传感器线序的方法的技术方案所带来的所有有益效果,在此不再一一赘述。It is worth noting that since the control device of the present invention includes all the technical solutions of all the embodiments of the method for adjusting the line sequence of the Hall sensor by a motor, it at least has the technical solutions brought by the method of adjusting the line sequence of the Hall sensor by a motor. All beneficial effects will not be repeated here.

本发明还提出来一种BLDC电机,所述BLDC电机包括所述的控制装置或者所述的电机调整霍尔传感器线序的方法。The present invention also proposes a BLDC motor, which includes the control device or the method for adjusting the Hall sensor line sequence of the motor.

值得注意的是,由于本发明控制装置包括了上述电机调整霍尔传感器线序的方法和上述控制装置所有实施例的全部技术方案,因此至少具有上述电机调整霍尔传感器线序的方法和上述控制装置的技术方案所带来的所有有益效果,在此不再一一赘述。It is worth noting that since the control device of the present invention includes the above-mentioned method for the motor to adjust the Hall sensor line sequence and all the technical solutions of all embodiments of the above-mentioned control device, it at least has the above-mentioned method for the motor to adjust the Hall sensor line sequence and the above-mentioned control. All the beneficial effects brought by the technical solutions of the device will not be repeated here.

以上所述仅为本发明的可选实施例,并非因此限制本发明的专利范围,凡是在本发明的发明构思下,利用本发明说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本发明的专利保护范围内7。The above are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Under the inventive concept of the present invention, equivalent structural transformations can be made using the contents of the description and drawings of the present invention, or directly/indirectly. Application in other related technical fields is included in the scope of patent protection of the present invention7.

Claims (8)

1.一种电机调整霍尔传感器线序的方法,其特征在于,所述方法包括:1. A method for adjusting the Hall sensor line sequence of a motor, characterized in that the method includes: 将电机转子的转动平面按照预设规则进行分区,以获得六个区域,并生成每一区域对应的预设霍尔传感器数据;其中,所述预设规则为:根据电机三相动力线确定与所述电机三相动力线对应的三相霍尔传感器线的预设线序,并将在电机转子转动时,霍尔传感器数据不变的位置划分为一个区域;The rotation plane of the motor rotor is partitioned according to preset rules to obtain six areas, and preset Hall sensor data corresponding to each area is generated; wherein, the preset rules are: determine and determine based on the three-phase power line of the motor. The preset line sequence of the three-phase Hall sensor lines corresponding to the three-phase power lines of the motor, and the position where the Hall sensor data does not change when the motor rotor rotates is divided into a region; 将电机转子转动至预设的所述区域内,控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据;Rotate the motor rotor to the preset area, control the motor rotor to rotate once, and obtain Hall sensor data when the motor rotor passes through each of the areas; 根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,调整各霍尔传感器的线序;Adjust the line sequence of each Hall sensor based on the multiple Hall sensor data and multiple preset Hall sensor data obtained in sequence; 所述根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序的步骤具体包括:The step of determining the line sequence of each Hall sensor based on the multiple Hall sensor data and multiple preset Hall sensor data obtained in sequence specifically includes: 确定所述多个霍尔传感器数据中的第一个霍尔传感器数据与所述多个预设霍尔传感器数据中的第一个预设霍尔传感器数据是否相等,得到第一确定结果;Determine whether the first Hall sensor data among the plurality of Hall sensor data is equal to the first preset Hall sensor data among the plurality of preset Hall sensor data, and obtain a first determination result; 根据第一确定结果调整各霍尔传感器的线序,并得到调整线序后的多个霍尔传感器数据,以使所述多个霍尔传感器中的第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等;Adjust the line sequence of each Hall sensor according to the first determination result, and obtain a plurality of Hall sensor data after adjusting the line sequence, so that the first Hall sensor data among the plurality of Hall sensors is consistent with the first Hall sensor data. A preset Hall sensor data is equal; 确定所述调整线序后的多个霍尔传感器数据中的第二个霍尔传感器数据与所述多个预设霍尔传感器数据中的第二个预设霍尔传感器数据是否相等,得到第二确定结果;Determine whether the second Hall sensor data among the plurality of Hall sensor data after adjusting the line sequence is equal to the second preset Hall sensor data among the plurality of preset Hall sensor data, and obtain the first 2. Determine the results; 根据所述第二确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等;或者,Adjust the line sequence of each Hall sensor according to the second determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the multiple Hall sensor data are consistent with the multiple preset Hall sensor data. The data are equal; or, 所述根据依次获取的多个霍尔传感器数据和多个预设霍尔传感器数据,确定各霍尔传感器的线序的步骤具体包括:The step of determining the line sequence of each Hall sensor based on the multiple Hall sensor data and multiple preset Hall sensor data obtained in sequence specifically includes: 将所述多个霍尔传感器中的第一个霍尔传感器数据进行取反,并确定取反后的数据与所述多个预设霍尔传感器数据中的第一个预设霍尔传感器数据是否相等,得到第三确定结果;Invert the first Hall sensor data among the plurality of Hall sensors, and determine whether the inverted data is consistent with the first preset Hall sensor data among the plurality of preset Hall sensor data. Whether they are equal, the third determined result is obtained; 根据所述第三确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据中的第一个霍尔传感器数据进行取反后的值与所述第一个预设霍尔传感器数据相等;Adjust the line sequence of each Hall sensor according to the third determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the first Hall sensor data among the multiple Hall sensor data is processed The negated value is equal to the first preset Hall sensor data; 将所述更改线序后的多个霍尔传感器数据中的第二个霍尔传感器数据进行取反,并确定取反后的数据与所述多个预设霍尔传感器数据中的第二个霍尔传感器数据是否相等,得到第四确定结果;Invert the second Hall sensor data among the plurality of Hall sensor data after changing the line sequence, and determine whether the inverted data is consistent with the second of the plurality of preset Hall sensor data. Whether the Hall sensor data are equal, the fourth determination result is obtained; 根据所述第四确定结果调整各霍尔传感器的线序,并得到更改线序后的多个霍尔传感器数据,以使所述多个霍尔传感器数据与所述多个预设霍尔传感器数据相等。Adjust the line sequence of each Hall sensor according to the fourth determination result, and obtain multiple Hall sensor data after changing the line sequence, so that the multiple Hall sensor data are consistent with the multiple preset Hall sensor data. The data are equal. 2.如权利要求1所述的电机调整霍尔传感器线序的方法,其特征在于,所述生成每一区域对应的预设霍尔传感器数据的步骤具体包括:2. The method for adjusting the Hall sensor line sequence of a motor as claimed in claim 1, wherein the step of generating preset Hall sensor data corresponding to each area specifically includes: 将三个霍尔传感器的输出值按照所述预设线序组成一个三位二进制数;The output values of the three Hall sensors are formed into a three-digit binary number according to the preset line sequence; 分别得到转子在所述六个区域内时,所述三位二进制数的值,并将该值作为所在区域对应的预设霍尔传感器数据。When the rotor is in the six areas, the value of the three-digit binary number is obtained respectively, and this value is used as the preset Hall sensor data corresponding to the area. 3.如权利要求1所述的电机调整霍尔传感器线序的方法,其特征在于,所述将电机转子转动至预设的所述区域内的步骤具体包括:3. The method for adjusting the Hall sensor line sequence of a motor according to claim 1, wherein the step of rotating the motor rotor to the preset area specifically includes: 导通电机三相动力线中的两相动力线,以使所述电机转子转动至对应的区域内。Two of the three-phase power lines of the motor are connected to make the motor rotor rotate to the corresponding area. 4.如权利要求1所述的电机调整霍尔传感器线序的方法,其特征在于,所述控制电机转子旋转一周,并获取电机转子经过每一所述区域时的霍尔传感器数据的步骤具体包括:4. The method for adjusting the Hall sensor line sequence of a motor as claimed in claim 1, wherein the steps of controlling the motor rotor to rotate once and obtaining the Hall sensor data when the motor rotor passes through each of the areas are specifically described. include: 使用两两导通的方式按照预定顺序导通电机动力线,使转子旋转一周;Use the two-to-two conduction method to conduct the motor power lines in a predetermined sequence to make the rotor rotate once; 记录转子旋转一周期间电机转子分别经过每一所述区域时的霍尔传感器数据。Record the Hall sensor data when the motor rotor passes through each of the areas during one rotation of the rotor. 5.如权利要求1所述的电机调整霍尔传感器线序的方法,其特征在于,所述根据第一确定结果调整各霍尔传感器的线序的步骤具体包括:5. The method for adjusting the line sequence of the Hall sensor of a motor according to claim 1, wherein the step of adjusting the line sequence of each Hall sensor according to the first determination result specifically includes: 当所述第一个霍尔传感器数据与所述第一个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等;When the first Hall sensor data is not equal to the first preset Hall sensor data, adjust the line sequence of each Hall sensor so that the first Hall sensor after adjusting the line sequence The data is equal to the first preset Hall sensor data; 当所述第一个霍尔传感器数据与所述第一个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序;When the first Hall sensor data is equal to the first preset Hall sensor data, the line sequence of each Hall sensor is not adjusted; 所述根据所述第二确定结果调整各霍尔传感器的线序包括:The adjustment of the line sequence of each Hall sensor according to the second determination result includes: 当所述第二个霍尔传感器数据与所述第二个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第二个霍尔传感器数据与所述第二个预设霍尔传感器数据相等;When the second Hall sensor data is not equal to the second preset Hall sensor data, adjust the line sequence of each Hall sensor so that the second Hall sensor after adjusting the line sequence The data is equal to the second preset Hall sensor data; 当所述第二个霍尔传感器数据与所述第二个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序。When the second Hall sensor data is equal to the second preset Hall sensor data, the line sequence of each Hall sensor is not adjusted. 6.如权利要求1所述的电机调整霍尔传感器线序的方法,其特征在于,所述根据所述第三确定结果调整各霍尔传感器的线序包括:6. The method for adjusting the line sequence of Hall sensors in a motor according to claim 1, wherein the adjusting the line sequence of each Hall sensor according to the third determination result includes: 当所述第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据相等;When the inverted data of the first Hall sensor data is not equal to the first preset Hall sensor data, adjust the line sequence of each Hall sensor so that the adjusted line sequence The inverted data of the first Hall sensor data is equal to the first preset Hall sensor data; 当所述第一个霍尔传感器数据进行取反后的数据与所述第一个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序;When the inverted data of the first Hall sensor data is equal to the first preset Hall sensor data, the line sequence of each Hall sensor is not adjusted; 所述根据所述第四确定结果调整各霍尔传感器的线序包括:The adjusting the line sequence of each Hall sensor according to the fourth determination result includes: 当所述第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据不相等时,调整所述各霍尔传感器的线序,以使调整线序后的第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据相等;When the inverted data of the second Hall sensor data is not equal to the second preset Hall sensor data, adjust the line sequence of each Hall sensor so that the adjusted line sequence The inverted data of the second Hall sensor data is equal to the second preset Hall sensor data; 当所述第二个霍尔传感器数据进行取反后的数据与所述第二个预设霍尔传感器数据相等时,不调整所述各霍尔传感器的线序。When the inverted data of the second Hall sensor data is equal to the second preset Hall sensor data, the line sequence of each Hall sensor is not adjusted. 7.一种控制装置,其特征在于,所述控制装置包括:7. A control device, characterized in that the control device includes: 存储器;memory; 处理器;以及,processor; and, 存储在所述存储器上并被所述处理器执行的电机调整霍尔传感器线序程序,所述电机调整霍尔传感器线序的程序在被所述处理器执行时,实现如权利要求1-6任意一项所述的电机调整霍尔传感器线序的方法。A motor adjustment Hall sensor line sequence program stored in the memory and executed by the processor. When the motor adjustment Hall sensor line sequence program is executed by the processor, the program implements claims 1-6 The method for adjusting the Hall sensor line sequence of a motor according to any one of the above. 8.一种BLDC电机,其特征在于,所述BLDC电机包括如权利要求7所述的控制装置。8. A BLDC motor, characterized in that the BLDC motor includes the control device according to claim 7.
CN202311678762.2A 2023-12-08 2023-12-08 Method for adjusting line sequence of Hall sensor by motor, control device and BLDC motor Active CN117375335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311678762.2A CN117375335B (en) 2023-12-08 2023-12-08 Method for adjusting line sequence of Hall sensor by motor, control device and BLDC motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311678762.2A CN117375335B (en) 2023-12-08 2023-12-08 Method for adjusting line sequence of Hall sensor by motor, control device and BLDC motor

Publications (2)

Publication Number Publication Date
CN117375335A CN117375335A (en) 2024-01-09
CN117375335B true CN117375335B (en) 2024-02-20

Family

ID=89391461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311678762.2A Active CN117375335B (en) 2023-12-08 2023-12-08 Method for adjusting line sequence of Hall sensor by motor, control device and BLDC motor

Country Status (1)

Country Link
CN (1) CN117375335B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0412200A1 (en) * 1989-08-11 1991-02-13 Siemens Aktiengesellschaft Rotation detecting device
JP2001086787A (en) * 1999-09-13 2001-03-30 Hitachi Ltd Control device for brushless motor
CN102025305A (en) * 2010-12-07 2011-04-20 南京邮电大学 Hall phase sequence detecting method and device of brushless direct-current motor
CN107154756A (en) * 2017-06-07 2017-09-12 深圳市高德威技术有限公司 Brshless DC motor Hall phase sequence automatic identifying method
CN107181431A (en) * 2017-06-06 2017-09-19 上海三意电机驱动技术有限公司 Brshless DC motor commutation automatic testing method
CN108322103A (en) * 2018-02-08 2018-07-24 浙江国自机器人技术有限公司 A kind of permanent magnet synchronous motor phase sequence bearing calibration and its device
CN110311609A (en) * 2019-07-18 2019-10-08 广州思智科技有限公司 A kind of DC brushless motor Hall phase sequence discrimination method
CN110429874A (en) * 2019-08-23 2019-11-08 江苏科技大学 The method and system that brshless DC motor inversely drives under Hall random ordering
CN112087168A (en) * 2020-08-19 2020-12-15 北京自动化控制设备研究所 Method for automatically generating brushless direct current motor reversing meter and automatically identifying phase sequence

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0412200A1 (en) * 1989-08-11 1991-02-13 Siemens Aktiengesellschaft Rotation detecting device
JP2001086787A (en) * 1999-09-13 2001-03-30 Hitachi Ltd Control device for brushless motor
CN102025305A (en) * 2010-12-07 2011-04-20 南京邮电大学 Hall phase sequence detecting method and device of brushless direct-current motor
CN107181431A (en) * 2017-06-06 2017-09-19 上海三意电机驱动技术有限公司 Brshless DC motor commutation automatic testing method
CN107154756A (en) * 2017-06-07 2017-09-12 深圳市高德威技术有限公司 Brshless DC motor Hall phase sequence automatic identifying method
CN108322103A (en) * 2018-02-08 2018-07-24 浙江国自机器人技术有限公司 A kind of permanent magnet synchronous motor phase sequence bearing calibration and its device
CN110311609A (en) * 2019-07-18 2019-10-08 广州思智科技有限公司 A kind of DC brushless motor Hall phase sequence discrimination method
CN110429874A (en) * 2019-08-23 2019-11-08 江苏科技大学 The method and system that brshless DC motor inversely drives under Hall random ordering
CN112087168A (en) * 2020-08-19 2020-12-15 北京自动化控制设备研究所 Method for automatically generating brushless direct current motor reversing meter and automatically identifying phase sequence

Also Published As

Publication number Publication date
CN117375335A (en) 2024-01-09

Similar Documents

Publication Publication Date Title
US11228263B2 (en) Motor control apparatus and motor control apparatus control method
JP3416494B2 (en) DC brushless motor control device and DC brushless motor control method
JPH0998594A (en) Electric motor energization control method
US6400116B1 (en) Motor drive control apparatus
US8653870B2 (en) PWM signal output circuit
JP2021045039A (en) Highly reliable control of multi-rotor pole switched reluctance machine
CN108432122A (en) Motor control device and control method for motor control device
CN109863683B (en) Motor drive device and control method for motor drive device
US6512342B2 (en) Brushless motor driving device
CN117375335B (en) Method for adjusting line sequence of Hall sensor by motor, control device and BLDC motor
JP3697623B2 (en) Chopping current controller
JP3700106B2 (en) Sensorless switched reluctance motor drive circuit
JP5139229B2 (en) Switched reluctance motor controller
JP3803781B2 (en) Electric motor energization control device
JP3564582B2 (en) Switched reluctance motor energization control device
JP2017143612A (en) Sensorless starting method for three-phase brushless motor
JPH04308499A (en) How to drive a 3-phase stepping motor
JP2002354887A (en) Motor drive
JP2009165267A (en) Motor control device
JPH08116651A (en) Variable reluctance motor and control method thereof
US11515823B2 (en) Control of a single coil BLDC motor
JP7122917B2 (en) Brushless motor and brushless motor control method
JP2020137222A (en) Motor controller
JP2022010912A (en) Motor drive control device and fan unit
JP3309828B2 (en) Motor drive control device

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
GR01 Patent grant
GR01 Patent grant