[go: up one dir, main page]

TW202433845A - Motor soft phase switching method and control circuit thereof - Google Patents

Motor soft phase switching method and control circuit thereof Download PDF

Info

Publication number
TW202433845A
TW202433845A TW112103930A TW112103930A TW202433845A TW 202433845 A TW202433845 A TW 202433845A TW 112103930 A TW112103930 A TW 112103930A TW 112103930 A TW112103930 A TW 112103930A TW 202433845 A TW202433845 A TW 202433845A
Authority
TW
Taiwan
Prior art keywords
phase
motor
soft
target value
pwm signal
Prior art date
Application number
TW112103930A
Other languages
Chinese (zh)
Other versions
TWI861704B (en
Inventor
李飛群
陳文濱
Original Assignee
應廣科技股份有限公司
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 應廣科技股份有限公司 filed Critical 應廣科技股份有限公司
Priority to TW112103930A priority Critical patent/TWI861704B/en
Publication of TW202433845A publication Critical patent/TW202433845A/en
Application granted granted Critical
Publication of TWI861704B publication Critical patent/TWI861704B/en

Links

Images

Landscapes

  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

A motor is controlled by a PWM signal, and there are two phases according to the direction of the motor current. According to the soft phase switching method of this invention, each phase period includes (1) a soft on period wherein the duty of the PWM signal increases by plural pulses from 0 to a target value; (2) a target conduction period wherein the duty of the PWM signal is maintained at the target value; (3) a soft off period wherein the duty of the PWM signal decreases by plural pulses from the target value to 0; and (4) a fully off period wherein the duty of the PWM signal is maintained at 0. In addition, the method determines how to adjust the time length of the target conduction period by judging whether a hall signal toggles at a time point at which the motor current is zero, and judging whether the soft off period is completed.

Description

馬達換相軟切換方法與其控制電路Motor phase-commutation soft switching method and control circuit thereof

本發明係有關一種馬達換相軟切換方法與其控制電路,能以較為精簡的方式,達成馬達換相軟切換,減少反電動勢對馬達運轉的干擾,而不需要透過實際偵測反電動勢。The present invention relates to a motor phase-changing soft switching method and a control circuit thereof, which can achieve motor phase-changing soft switching in a relatively simple manner, reduce the interference of back electromotive force on motor operation, and do not need to actually detect the back electromotive force.

請參閱第1A與1B圖,第1A圖顯示馬達M與控制馬達M的H橋式驅動電路,其中H橋式驅動電路工作於正負電源VDD與VSS之間,並包含四個開關PA, NA, PB, NB。第1B圖顯示馬達M的等效電路,包含電阻R、電感L以及反電動勢e。H橋式驅動電路驅動馬達M的方式是:對應於馬達M的轉子磁極,H橋式驅動電路變換電流的方向,即所謂「換相」。如圖所示,在其中一個相位中,開關PA與NB導通、開關NA與PB關閉,電流路徑如實線所示;而在另一個相位中,開關NA與PB導通、開關PA與NB關閉,電流路徑如虛線所示。Please refer to Figures 1A and 1B. Figure 1A shows the motor M and the H-bridge driver circuit that controls the motor M. The H-bridge driver circuit works between the positive and negative power supplies VDD and VSS and includes four switches PA, NA, PB, and NB. Figure 1B shows the equivalent circuit of the motor M, including the resistor R, the inductor L, and the back electromotive force e. The way the H-bridge driver circuit drives the motor M is that the H-bridge driver circuit changes the direction of the current corresponding to the rotor pole of the motor M, which is called "commutation". As shown in the figure, in one phase, switches PA and NB are turned on, switches NA and PB are turned off, and the current path is shown as a solid line; while in the other phase, switches NA and PB are turned on, switches PA and NB are turned off, and the current path is shown as a dotted line.

請參閱第2圖,因反電動勢會造成抗力,因此,要達成較佳的換相,使功耗降為最低,理想的換相時間點是在反電動勢為零的時候,以及電流為零的時間點。針對如何達成理想換相,先前技術如台灣專利申請案第107116276號中,所採用的方式是偵測反電動勢的變化,以期得知換相的最佳時間點。然而,反電動勢的偵測較為複雜,且反電動勢是帶有許多雜訊的訊號,因此,根據反電動勢來控制換相時間,一來電路較為複雜,二來精確度也難以理想。Please refer to Figure 2. Back EMF will cause resistance. Therefore, in order to achieve better commutation and minimize power consumption, the ideal commutation time is when the back EMF is zero and the current is zero. In order to achieve ideal commutation, the previous technology, such as Taiwan Patent Application No. 107116276, uses the method of detecting the change of back EMF in order to know the best time for commutation. However, the detection of back EMF is more complicated, and back EMF is a signal with a lot of noise. Therefore, controlling the commutation time based on back EMF will make the circuit more complicated and the accuracy is difficult to be ideal.

本發明即是針對上述問題,提出解決方案,以不需要偵測反電動勢的方式,來得知馬達換相的較佳時間點,此外並提出一種軟切換的方式。The present invention is aimed at the above-mentioned problem and proposes a solution to know the best time point for motor switching without detecting back electromotive force. In addition, a soft switching method is proposed.

就其中一觀點言,本發明提供了一種馬達換相軟切換方法,其中該馬達受控於一PWM訊號,且根據馬達電流的方向而具有兩個相位,該方法包含:在每一相位的控制週期中,根據以下步驟來控制馬達:在軟啟動階段中,以複數個PWM脈波,將該PWM訊號的工作比自0遞增到一目標值;接著在目標值導通階段中,維持該PWM訊號的工作比於該目標值;接著在軟關閉階段中,以複數個PWM脈波,將該PWM訊號的工作比自該目標值遞減到0;以及接著進入完全停止階段,維持該PWM訊號的工作比於0;以及進行以下判斷,以決定如何調整目標值導通階段的長度:判斷一霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點是否重疊,其中該霍爾感測訊號係以一霍爾感測器感測該馬達之運轉而得;以及判斷該軟關閉階段是否完成。In one aspect, the present invention provides a motor commutation soft switching method, wherein the motor is controlled by a PWM signal and has two phases according to the direction of the motor current. The method comprises: in each phase control cycle, the motor is controlled according to the following steps: in a soft start phase, the duty ratio of the PWM signal is increased from 0 to a target value by a plurality of PWM pulses; then in a target value conduction phase, the duty ratio of the PWM signal is maintained at the target value; then in a soft shut-down phase, the duty ratio of the PWM signal is maintained at the target value. In the on-stage, a plurality of PWM pulses are used to reduce the duty ratio of the PWM signal from the target value to 0; and then the complete stop stage is entered to maintain the duty ratio of the PWM signal at 0; and the following judgments are made to determine how to adjust the length of the target value conduction stage: judging whether the time point at which a Hall sensing signal changes level overlaps with the time point at which the motor current is zero, wherein the Hall sensing signal is obtained by sensing the operation of the motor with a Hall sensor; and judging whether the soft closing stage is completed.

在其中一種較佳的實施型態中,當霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點不重疊、且軟關閉階段未完成,則縮短目標值導通階段時間;當霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點重疊、且軟關閉階段已完成,則延長目標值導通階段的時間。In one preferred implementation, when the time point of the Hall sensing signal changing level does not overlap with the time point of the motor current being zero and the soft closing phase is not completed, the target value conduction phase time is shortened; when the time point of the Hall sensing signal changing level overlaps with the time point of the motor current being zero and the soft closing phase is completed, the target value conduction phase time is extended.

在其中一種較佳的實施型態中,該完全停止階段的時間長度為可變。In one preferred embodiment, the duration of the complete stop phase is variable.

在其中一種較佳的實施型態中,在軟啟動階段中,該PWM訊號的工作比線性或非線性遞增,且在軟關閉階段中,該PWM訊號的工作比線性或非線性遞減。In one preferred embodiment, in the soft start phase, the duty ratio of the PWM signal increases linearly or nonlinearly, and in the soft shut-off phase, the duty ratio of the PWM signal decreases linearly or nonlinearly.

在其中一種較佳的實施型態中,該決定如何調整目標值導通階段的長度之步驟,更包含:參考該馬達之轉子的磁極數目。In one preferred embodiment, the step of determining how to adjust the length of the target value conduction phase further includes: referring to the number of magnetic poles of the rotor of the motor.

就另一觀點言,本發明提供了一種執行馬達換相軟切換方法的控制電路,用以產生一PWM訊號驅動一馬達,其中該馬達根據馬達電流的方向而具有兩個相位,且該馬達的轉動由一霍爾感測器感測而產生一霍爾感測訊號,該控制電路包含:一脈波產生電路,用以產生該PWM訊號以驅動該馬達;一判斷電路,用以提供一指標給該處理器,一處理器,根據外部傳來的一控速命令而控制該脈波產生電路產生該PWM訊號,並根據該指標而調整對該脈波產生電路之控制;以及其中,在每一相位的控制週期中,包括以下階段:在軟啟動階段中,以複數個PWM脈波,將該PWM訊號的工作比自0遞增到一目標值;接著在目標值導通階段中,維持該PWM訊號的工作比於該目標值;接著在軟關閉階段中,以複數個PWM脈波,將該PWM訊號的工作比自該目標值遞減到0;以及接著進入完全停止階段,維持該PWM訊號的工作比於0;且其中,該判斷電路判斷該霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點是否重疊,以及判斷該軟關閉階段是否完成,以提供與判斷結果相對應的指標給該處理器。From another perspective, the present invention provides a control circuit for executing a motor phase-commutation soft switching method, for generating a PWM signal to drive a motor, wherein the motor has two phases according to the direction of the motor current, and the rotation of the motor is sensed by a Hall sensor to generate a Hall sensing signal, the control circuit comprises: a pulse generating circuit, for generating the PWM signal to drive the motor; a judgment circuit, for providing an indicator to the processor, a processor, according to a speed control command transmitted from the outside to control the pulse generating circuit to generate the PWM signal, and adjust the control of the pulse generating circuit according to the indicator; and wherein, in the control cycle of each phase, The method comprises the following stages: in a soft start stage, the duty ratio of the PWM signal is increased from 0 to a target value by using a plurality of PWM pulses; then in a target value conduction stage, the duty ratio of the PWM signal is maintained at the target value; then in a soft shut-down stage, the duty ratio of the PWM signal is decreased from the target value to 0 by using a plurality of PWM pulses; and then entering a complete stop stage, maintaining the duty ratio of the PWM signal at 0; and wherein the judgment circuit judges whether the time point of the Hall sensing signal switching level overlaps with the time point of the motor current being zero, and judges whether the soft shut-down stage is completed, so as to provide an indicator corresponding to the judgment result to the processor.

底下藉由具體實施例詳加說明,當更容易瞭解本發明之目的、技術內容、特點及其所達成之功效。The following detailed description is based on specific embodiments to make it easier to understand the purpose, technical content, features and effects of the present invention.

本發明中的圖式均屬示意,主要意在表示各電路組成部分或訊號波形間之相互關係,至於形狀與尺寸則並未依照比例繪製。The drawings in the present invention are schematic diagrams, which are mainly intended to show the relationship between various circuit components or signal waveforms, and the shapes and sizes are not drawn according to scale.

請參閱第3圖,第3圖說明本發明的馬達換相軟切換方法是根據霍爾感測器的輸出,而非根據對反電動勢的偵測。由於反電動勢對應於馬達轉子磁極的改變,也就是磁通量的峰值與谷值之處,因此,從霍爾感測器的輸出(即霍爾感測訊號),可以得知有關反電動勢變化時間點的相關訊息。不過,由於霍爾感測器產生輸出會有時間延遲(如圖中Td所示),因此,從霍爾感測器輸出得知的換相時間點,會稍微落後於實際反電動勢為零的時間點,但此一落後值是固定的,而且,從馬達轉速的控制需求來看,此落後值是可忽略的。相對來說,在根據對反電動勢偵測來決定換相時間的先前技術中,反電動勢所帶有的雜訊有各種來源,且並不一定為固定值或具有慣性,因此,會難以精確保持在固定的容忍值範圍內。Please refer to Figure 3, which illustrates that the motor commutation soft switching method of the present invention is based on the output of the Hall sensor, rather than on the detection of the back electromotive force. Since the back electromotive force corresponds to the change of the motor rotor magnetic pole, that is, the peak and valley of the magnetic flux, the output of the Hall sensor (i.e., the Hall sensing signal) can be used to obtain relevant information about the time point of the back electromotive force change. However, since the Hall sensor generates an output with a time delay (as shown by Td in the figure), the commutation time point obtained from the Hall sensor output will lag slightly behind the time point when the actual back electromotive force is zero, but this lag value is fixed, and from the perspective of the motor speed control requirement, this lag value is negligible. In contrast, in the prior art that determines the switching time based on back EMF detection, the noise brought by the back EMF has various sources and is not necessarily a fixed value or inertial. Therefore, it is difficult to accurately maintain it within a fixed tolerance range.

請參閱第4圖,第4圖顯示本發明之執行馬達換相軟切換方法的控制電路實施例。如圖所示,馬達模組20內包含控制電路21、驅動電路23、馬達M、霍爾感測器25;控制電路21內包含處理器211、判斷電路212、脈波產生電路213。當外部傳來控速命令時,處理器211根據控速命令控制脈波產生電路213產生PWM訊號,經驅動電路23控制馬達M,在控速命令所指示的轉速下轉動。驅動電路23例如但不限於可為H橋式驅動電路。馬達M的轉動由霍爾感測器25感測,並回授給控制電路21,以進行回授控制。本發明中,判斷電路212根據相關訊號,產生導通時間調整指標,以調整脈波產生電路213所產生之PWM訊號的導通時間長度,藉此控制換相的較佳時間點;有關判斷電路212的細節,將於後詳述。Please refer to FIG. 4, which shows an embodiment of the control circuit for executing the motor phase-changing soft switching method of the present invention. As shown in the figure, the motor module 20 includes a control circuit 21, a drive circuit 23, a motor M, and a Hall sensor 25; the control circuit 21 includes a processor 211, a judgment circuit 212, and a pulse generating circuit 213. When a speed control command is transmitted from the outside, the processor 211 controls the pulse generating circuit 213 to generate a PWM signal according to the speed control command, and controls the motor M through the drive circuit 23 to rotate at the speed indicated by the speed control command. The drive circuit 23 can be, for example but not limited to, an H-bridge drive circuit. The rotation of the motor M is sensed by the Hall sensor 25 and fed back to the control circuit 21 for feedback control. In the present invention, the judgment circuit 212 generates an on-time adjustment index according to the relevant signal to adjust the on-time length of the PWM signal generated by the pulse generating circuit 213, thereby controlling the optimal time point of the switching. The details of the judgment circuit 212 will be described in detail later.

請參閱第5圖與第6圖,更進一步說明本發明的馬達換相軟切換方法實施例。根據本發明,在每一相位的控制週期中,包含四個階段T1~T4,其意義如下: T1:軟啟動階段 T2:目標值導通階段 T3:軟關閉階段 T4:完全停止階段 Please refer to Figures 5 and 6 for further explanation of the motor phase-changing soft switching method embodiment of the present invention. According to the present invention, in each phase control cycle, there are four stages T1~T4, which have the following meanings: T1: soft start stage T2: target value conduction stage T3: soft shutdown stage T4: complete stop stage

舉例而言,假設根據轉速需求,開關(在電流路徑上的任一開關皆可,在本實施例中以開關PA為例,參閱第1A或1B圖)的PWM(脈寬調變)工作比目標值為50%,則在軟啟動階段T1,PWM工作比以複數個PWM脈波來自0遞增到50%,例如可以線性或非線性遞增。與此對應地,馬達電流也緩升至對應的電流目標值,對應於控速命令所指示的轉速。接著進入目標值導通階段T2,在這個階段,開關根據工作比目標值(本實施例中為50%)來操作,而馬達電流也維持在對應的電流目標值。接著進入軟關閉階段T3,在這個階段,PWM工作比以複數個PWM脈波來自50%遞減到0,例如可以線性或非線性遞減,其中,軟啟動階段T1與軟關閉階段T3的時間長度、或是所使用的PWM脈波數,可以相同或不同(本實施例中為相同)。接著進入完全停止階段T4,在這個階段,PWM工作比為0。上述各階段中,目標值導通階段T2的長度為可變,以調整使得換相時間點,恰為或盡可能地接近零電流發生的時間點。此外,在另一實施例中,除了目標值導通階段T2的長度為可變外,完全停止階段T4的長度亦為可變。For example, assuming that the PWM (pulse width modulation) duty ratio target value of the switch (any switch on the current path is acceptable, in this embodiment, switch PA is used as an example, see Figure 1A or 1B) is 50% according to the speed requirement, then in the soft start phase T1, the PWM duty ratio increases from 0 to 50% with a plurality of PWM pulses, for example, it can increase linearly or nonlinearly. Correspondingly, the motor current also rises slowly to the corresponding current target value, corresponding to the speed indicated by the speed control command. Then enter the target value conduction phase T2, in which the switch operates according to the duty ratio target value (50% in this embodiment), and the motor current is also maintained at the corresponding current target value. Then, the soft-off phase T3 is entered. In this phase, the PWM duty ratio decreases from 50% to 0 with a plurality of PWM pulses, for example, it can decrease linearly or nonlinearly, wherein the time length of the soft-start phase T1 and the soft-off phase T3, or the number of PWM pulses used, can be the same or different (the same in this embodiment). Then, the full stop phase T4 is entered. In this phase, the PWM duty ratio is 0. In the above phases, the length of the target value conduction phase T2 is variable to adjust the switching time point to be exactly or as close as possible to the time point when zero current occurs. Furthermore, in another embodiment, in addition to the length of the target value conduction phase T2 being variable, the length of the complete stop phase T4 is also variable.

請參閱第7圖,第7圖顯示本發明之判斷電路的實施例。在本實施例中,判斷電路212 根據零電流指標和軟關閉指標,經邏輯運算而產生導通時間調整指標;此外,如果同一電路可能應用於不同型式的馬達轉子,則判斷電路212可另外再接收有關磁極數目的資訊,參考此數目來進行判斷。Please refer to FIG. 7, which shows an embodiment of the judgment circuit of the present invention. In this embodiment, the judgment circuit 212 generates the on-time adjustment indicator through logical operation according to the zero current indicator and the soft closing indicator; in addition, if the same circuit may be applied to different types of motor rotors, the judgment circuit 212 can also receive information about the number of magnetic poles and make judgments based on this number.

詳言之,零電流指標表示霍爾感測訊號變換位準的時間點與零電流的時間點是否重疊;其中,零電流的資訊可自感測電流而得,感測電流的方法為類比電路業界的常識,故在此不予贅述。軟關閉指標表示前述軟關閉階段T3是否完成。當霍爾感測訊號變換位準的時間點與零電流的時間點不重疊、且軟關閉階段T3未完成,則表示應縮短縮短目標值導通階段T2的時間,才能給軟關閉階段T3足夠的時間並使霍爾感測訊號變換位準的時間點與零電流的時間點重疊,因此這時導通時間調整指標表示應縮短目標值導通階段T2的時間。當霍爾感測訊號變換位準的時間點與零電流的時間點重疊、且軟關閉階段T3已完成,則表示軟關閉階段T3可以延後結束,亦即表示應延長目標值導通階段T2的時間,以使霍爾感測訊號變換位準的時間點與零電流的時間點重疊,因此這時導通時間調整指標表示應延長目標值導通階段T2的時間。In detail, the zero current indicator indicates whether the time point of the Hall sensing signal switching level overlaps with the time point of zero current; the information of zero current can be obtained from the sensing current, and the method of sensing current is common knowledge in the analog circuit industry, so it will not be elaborated here. The soft closing indicator indicates whether the aforementioned soft closing stage T3 is completed. When the time point of the Hall sensing signal level change does not overlap with the time point of zero current, and the soft closing phase T3 is not completed, it means that the time of the target value conduction phase T2 should be shortened to give enough time for the soft closing phase T3 and make the time point of the Hall sensing signal level change overlap with the time point of zero current. Therefore, the conduction time adjustment indicator indicates that the time of the target value conduction phase T2 should be shortened. When the time point of the Hall sensing signal switching level overlaps with the time point of zero current and the soft closing phase T3 has been completed, it means that the soft closing phase T3 can be delayed, that is, it means that the time of the target value conduction phase T2 should be extended so that the time point of the Hall sensing signal switching level overlaps with the time point of zero current. Therefore, the on-time adjustment indicator indicates that the time of the target value conduction phase T2 should be extended.

根據以上操作,控制電路21可以以自適應(adaptive)的方式,調節到盡可能最佳的換相時間點,並藉著軟啟動與軟關閉,減少反電動勢對操作帶來的負面效應。According to the above operation, the control circuit 21 can be adjusted to the best possible switching time point in an adaptive manner, and reduce the negative effect of back electromotive force on the operation through soft start and soft shutdown.

以上已針對較佳實施例來說明本發明,唯以上所述者,僅係為使熟悉本技術者易於了解本發明的內容而已,並非用來限定本發明之最大權利範圍。在本發明之相同精神下,熟悉本技術者可以思及各種等效變化。例如,本發明不只可應用於單相四磁極的馬達,亦可應用於其他類型的馬達;或是,圖示為兩個以上的電路,可以合併製作成單一電路;或是,圖示為一個的電路,可以拆解製作成兩個以上的電路;此外,在所示實施例的電路中,還可以增加其他電路來提供其他功能,例如但不限於提前或延後導通馬達轉子控制開關(未示出),等等。本發明的範圍應涵蓋上述及其他所有等效變化。The present invention has been described above with respect to the preferred embodiments. However, the above description is only for those familiar with the art to easily understand the content of the present invention, and is not used to limit the maximum scope of the present invention. Under the same spirit of the present invention, those familiar with the art can think of various equivalent changes. For example, the present invention can be applied not only to single-phase four-pole motors, but also to other types of motors; or, more than two circuits shown in the figure can be combined to form a single circuit; or, a circuit shown in the figure can be disassembled to form more than two circuits; in addition, in the circuit of the embodiment shown, other circuits can be added to provide other functions, such as but not limited to early or delayed conduction of the motor rotor control switch (not shown), etc. The scope of the present invention should cover the above and all other equivalent changes.

20:馬達模組 21:控制電路 211:處理器 212:判斷電路 213:脈波產生電路 23:驅動電路 25:霍爾感測器 M:馬達 NA,NB:開關 PA,PB:開關 T1:軟啟動階段 T2:目標值導通階段 T3:軟關閉階段 T4:完全停止階段 Td:時間延遲 VDD:正電源 VSS:負電源 20: Motor module 21: Control circuit 211: Processor 212: Judgment circuit 213: Pulse generation circuit 23: Drive circuit 25: Hall sensor M: Motor NA, NB: Switch PA, PB: Switch T1: Soft start phase T2: Target value conduction phase T3: Soft shutdown phase T4: Complete stop phase Td: Time delay VDD: Positive power supply VSS: Negative power supply

第1A圖顯示馬達M與控制馬達M的H橋式驅動電路。 第1B圖顯示馬達M的等效電路。 第2圖顯示最佳換相時間點對應於反電動勢為零的時間點。 第3圖說明本發明的馬達換相軟切換方法是根據霍爾感測器的輸出,而非根據對反電動勢的偵測。 第4圖顯示本發明之執行馬達換相軟切換方法的控制電路實施例 第5-6圖更進一步說明本發明的馬達換相軟切換方法實施例。 第7圖顯示本發明之判斷電路的實施例。 FIG. 1A shows a motor M and an H-bridge drive circuit for controlling the motor M. FIG. 1B shows an equivalent circuit of the motor M. FIG. 2 shows that the optimal switching time corresponds to the time point when the back electromotive force is zero. FIG. 3 illustrates that the motor switching soft switching method of the present invention is based on the output of the Hall sensor rather than on the detection of the back electromotive force. FIG. 4 shows an embodiment of the control circuit for executing the motor switching soft switching method of the present invention. FIG. 5-6 further illustrate an embodiment of the motor switching soft switching method of the present invention. FIG. 7 shows an embodiment of the judgment circuit of the present invention.

馬達模組 Motor module

21:控制電路 21: Control circuit

211:處理器 211: Processor

212:判斷電路 212: Judgment circuit

213:脈波產生電路 213: Pulse generating circuit

23:驅動電路 23: Driving circuit

25:霍爾感測器 25: Hall sensor

M:馬達 M: Motor

Claims (10)

一種馬達換相軟切換方法,其中該馬達受控於一PWM訊號,且根據馬達電流的方向而具有兩個相位,該方法包含: 在每一相位的控制週期中,根據以下步驟來控制馬達: 在軟啟動階段中,以複數個PWM脈波,將該PWM訊號的工作比自0遞增到一目標值; 接著在目標值導通階段中,維持該PWM訊號的工作比於該目標值; 接著在軟關閉階段中,以複數個PWM脈波,將該PWM訊號的工作比自該目標值遞減到0;以及 接著進入完全停止階段,維持該PWM訊號的工作比於0;以及 進行以下判斷,以決定如何調整目標值導通階段的長度: 判斷一霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點是否重疊,其中該霍爾感測訊號係以一霍爾感測器感測該馬達之運轉而得;以及 判斷該軟關閉階段是否完成。 A motor commutation soft switching method, wherein the motor is controlled by a PWM signal and has two phases according to the direction of the motor current, the method comprising: In each phase control cycle, the motor is controlled according to the following steps: In the soft start phase, the duty ratio of the PWM signal is increased from 0 to a target value with a plurality of PWM pulses; Then in the target value on phase, the duty ratio of the PWM signal is maintained at the target value; Then in the soft off phase, the duty ratio of the PWM signal is decreased from the target value to 0 with a plurality of PWM pulses; and Then entering the full stop phase, maintaining the duty ratio of the PWM signal at 0; and Making the following judgment to determine how to adjust the length of the target value on phase: Determine whether the time point at which a Hall sensing signal changes level overlaps with the time point at which the motor current is zero, wherein the Hall sensing signal is obtained by sensing the operation of the motor with a Hall sensor; and Determine whether the soft closing stage is completed. 如請求項1所述之馬達換相軟切換方法,其中,當霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點不重疊、且軟關閉階段未完成,則縮短目標值導通階段時間;當霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點重疊、且軟關閉階段已完成,則延長目標值導通階段的時間。A motor phase-changing soft switching method as described in claim 1, wherein when the time point of the Hall sensing signal changing level does not overlap with the time point of the motor current being zero and the soft closing phase is not completed, the target value on-phase time is shortened; when the time point of the Hall sensing signal changing level overlaps with the time point of the motor current being zero and the soft closing phase is completed, the target value on-phase time is extended. 如請求項1所述之馬達換相軟切換方法,其中,該完全停止階段的時間長度為可變。A motor commutation soft switching method as described in claim 1, wherein the duration of the complete stop phase is variable. 如請求項1所述之馬達換相軟切換方法,其中在軟啟動階段中,該PWM訊號的工作比線性或非線性遞增,且在軟關閉階段中,該PWM訊號的工作比線性或非線性遞減。A motor commutation soft switching method as described in claim 1, wherein in the soft start phase, the duty ratio of the PWM signal increases linearly or nonlinearly, and in the soft shutdown phase, the duty ratio of the PWM signal decreases linearly or nonlinearly. 如請求項1所述之馬達換相軟切換方法,其中該決定如何調整目標值導通階段的長度之步驟,更包含:參考該馬達之轉子的磁極數目。The motor commutation soft switching method as described in claim 1, wherein the step of determining how to adjust the length of the target value conduction phase further includes: referring to the number of magnetic poles of the rotor of the motor. 一種執行馬達換相軟切換方法的控制電路,用以產生一PWM訊號驅動一馬達,其中該馬達根據馬達電流的方向而具有兩個相位,且該馬達的轉動由一霍爾感測器感測而產生一霍爾感測訊號,該控制電路包含: 一脈波產生電路,用以產生該PWM訊號以驅動該馬達; 一判斷電路,用以提供一指標給該處理器, 一處理器,根據外部傳來的一控速命令而控制該脈波產生電路產生該PWM訊號,並根據該指標而調整對該脈波產生電路之控制;以及 其中,在每一相位的控制週期中,包括以下階段: 在軟啟動階段中,以複數個PWM脈波,將該PWM訊號的工作比自0遞增到一目標值; 接著在目標值導通階段中,維持該PWM訊號的工作比於該目標值; 接著在軟關閉階段中,以複數個PWM脈波,將該PWM訊號的工作比自該目標值遞減到0;以及 接著進入完全停止階段,維持該PWM訊號的工作比於0; 且其中,該判斷電路判斷該霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點是否重疊,以及判斷該軟關閉階段是否完成,以提供與判斷結果相對應的指標給該處理器。 A control circuit for executing a motor phase-changing soft switching method is used to generate a PWM signal to drive a motor, wherein the motor has two phases according to the direction of the motor current, and the rotation of the motor is sensed by a Hall sensor to generate a Hall sensing signal, the control circuit comprises: A pulse generating circuit, used to generate the PWM signal to drive the motor; A judgment circuit, used to provide an indicator to the processor, A processor, according to a speed control command transmitted from the outside to control the pulse generating circuit to generate the PWM signal, and adjust the control of the pulse generating circuit according to the indicator; and In each phase control cycle, the following stages are included: In the soft start phase, the duty ratio of the PWM signal is increased from 0 to a target value by using a plurality of PWM pulses; Then, in the target value conduction phase, the duty ratio of the PWM signal is maintained at the target value; Then, in the soft shutdown phase, the duty ratio of the PWM signal is decreased from the target value to 0 by using a plurality of PWM pulses; and Then, the full stop phase is entered, and the duty ratio of the PWM signal is maintained at 0; And wherein, the judgment circuit judges whether the time point of the Hall sensing signal switching level overlaps with the time point of the motor current being zero, and judges whether the soft shutdown phase is completed, so as to provide an indicator corresponding to the judgment result to the processor. 如請求項6所述之執行馬達換相軟切換方法的控制電路,其中,當霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點不重疊、且軟關閉階段未完成,則該指標指示應縮短目標值導通階段時間;當霍爾感測訊號變換位準的時間點與該馬達電流為零的時間點重疊、且軟關閉階段已完成,則該指標指示應延長目標值導通階段的時間。A control circuit for executing a motor phase-changing soft switching method as described in claim 6, wherein, when the time point of the Hall sensing signal changing level does not overlap with the time point of the motor current being zero and the soft closing phase is not completed, the indicator indicates that the target value on-phase time should be shortened; when the time point of the Hall sensing signal changing level overlaps with the time point of the motor current being zero and the soft closing phase is completed, the indicator indicates that the target value on-phase time should be extended. 如請求項6所述之執行馬達換相軟切換方法的控制電路,其中,該完全停止階段的時間長度為可變。A control circuit for executing a motor commutation soft switching method as described in claim 6, wherein the duration of the complete stop phase is variable. 如請求項6所述之執行馬達換相軟切換方法的控制電路,其中在軟啟動階段中,該PWM訊號的工作比線性或非線性遞增,且在軟關閉階段中,該PWM訊號的工作比線性或非線性遞減。A control circuit for executing a motor commutation soft switching method as described in claim 6, wherein in a soft start phase, the duty ratio of the PWM signal increases linearly or nonlinearly, and in a soft shutdown phase, the duty ratio of the PWM signal decreases linearly or nonlinearly. 如請求項6所述之執行馬達換相軟切換方法的控制電路,其中該判斷電路更根據該馬達之轉子的磁極數目而進行判斷產生該指標。A control circuit for executing a motor phase-changing soft switching method as described in claim 6, wherein the judgment circuit further judges and generates the indicator based on the number of magnetic poles of the motor's rotor.
TW112103930A 2023-02-03 2023-02-03 Motor soft phase switching method and control circuit thereof TWI861704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112103930A TWI861704B (en) 2023-02-03 2023-02-03 Motor soft phase switching method and control circuit thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112103930A TWI861704B (en) 2023-02-03 2023-02-03 Motor soft phase switching method and control circuit thereof

Publications (2)

Publication Number Publication Date
TW202433845A true TW202433845A (en) 2024-08-16
TWI861704B TWI861704B (en) 2024-11-11

Family

ID=93260378

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112103930A TWI861704B (en) 2023-02-03 2023-02-03 Motor soft phase switching method and control circuit thereof

Country Status (1)

Country Link
TW (1) TWI861704B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5731755B2 (en) * 2009-06-08 2015-06-10 ローム株式会社 Motor drive circuit
TWI540825B (en) * 2010-03-25 2016-07-01 Rohm Co Ltd Motor drive circuit, cooling device, electronic machine
CN103269194A (en) * 2013-05-06 2013-08-28 德清县金宇达电气有限公司 Drive circuit of two-phase half-wave direct current brushless temperature control fan
EP3425790B1 (en) * 2017-07-04 2021-01-27 Melexis Bulgaria Ltd. Current sensing based commutation control
JP7050519B2 (en) * 2018-02-16 2022-04-08 ローム株式会社 Fan motor drive circuit and cooling devices and electronic devices using it
TWI766577B (en) * 2021-02-08 2022-06-01 茂達電子股份有限公司 Current limit protecting system and method of motor pre-driver

Also Published As

Publication number Publication date
TWI861704B (en) 2024-11-11

Similar Documents

Publication Publication Date Title
JP4987119B2 (en) Brushless motor device and control device
US7259531B1 (en) Speed control of brushless DC motors
JP5697320B2 (en) Driver circuit
US11038448B2 (en) Motor driving circuit and method thereof
CN106411193B (en) Control method of switched reluctance motor
US10978974B2 (en) Motor starting device and method
KR100408053B1 (en) Torque ripple reduction method for srm
CN114503424A (en) Drive circuit for stepping motor, drive method for stepping motor, and electronic device using the same
WO1987000705A1 (en) Motor controller
JP2013070468A (en) Drive unit of brushless motor
CN100420143C (en) control method and control circuit of brushless DC motor
US7141945B2 (en) Method and apparatus for controlling motor drive
Bhuiyan et al. Design, code generation and simulation of a bldc motor controller usuuing pic microcontroller
TWI861704B (en) Motor soft phase switching method and control circuit thereof
TWI749948B (en) Motor controller
Shao et al. A digital control for switched reluctance generators
JP5591508B2 (en) Driver circuit
JP2007174778A (en) Single-phase brushless dc motor
Shanmugasundram et al. Low-cost high performance brushless dc motor drive for speed control applications
JP5591507B2 (en) Driver circuit
CN106953556B (en) Sensorless three-phase motor driving system and method thereof
EP3832879B1 (en) Control of a single coil bldc motor
Ray et al. Torque ripple reduction of BLDC motor introducing delay in the gate firing circuits
WO2020104765A1 (en) A method of controlling a brushless permanent magnet motor
Xin et al. Sensorless position estimation of switched reluctance motors based on gradient of phase current