TWI723912B - Electric tool and its control method - Google Patents

Electric tool and its control method Download PDF

Info

Publication number
TWI723912B
TWI723912B TW109123032A TW109123032A TWI723912B TW I723912 B TWI723912 B TW I723912B TW 109123032 A TW109123032 A TW 109123032A TW 109123032 A TW109123032 A TW 109123032A TW I723912 B TWI723912 B TW I723912B
Authority
TW
Taiwan
Prior art keywords
frequency
control device
pulse
rotation
width modulation
Prior art date
Application number
TW109123032A
Other languages
Chinese (zh)
Other versions
TW202203576A (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 TW109123032A priority Critical patent/TWI723912B/en
Application granted granted Critical
Publication of TWI723912B publication Critical patent/TWI723912B/en
Publication of TW202203576A publication Critical patent/TW202203576A/en

Links

Images

Landscapes

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

Abstract

一種電動工具,包含一馬達、一第一電路板與一第二電路板,第一電路板設置有一第一控制裝置,第一控制裝置電性連接馬達;第二電路板透過一傳輸線組電性連接第一電路板,傳輸線組包含一命令傳輸線;第二電路板上設置有一第二控制裝置。電動工具的控制方法包含:利用第二控制裝置產生的脈衝寬度調變訊號之不同的脈衝訊號頻率代表為不同的轉動模式,並經由命令傳輸線傳輸脈衝寬度調變訊號,而由第一控制裝置解析脈衝寬度調變訊號之脈衝訊號頻率,並以對應的轉動模式控制馬達,如此,可減少傳輸線組之傳輸線的數量。An electric tool includes a motor, a first circuit board, and a second circuit board. The first circuit board is provided with a first control device. The first control device is electrically connected to the motor. The second circuit board is electrically connected through a transmission line. Connected to the first circuit board, the transmission line group includes a command transmission line; the second circuit board is provided with a second control device. The control method of the electric tool includes: using the pulse width modulation signal generated by the second control device to represent different pulse signal frequencies as different rotation modes, and transmitting the pulse width modulation signal through the command transmission line, which is analyzed by the first control device The pulse width modulates the pulse signal frequency of the signal, and controls the motor in the corresponding rotation mode. In this way, the number of transmission lines in the transmission line group can be reduced.

Description

電動工具及其控制方法Electric tool and its control method

本發明係與電動工具有關;特別是指一種利用脈衝寬度調變訊號改變轉動模式之電動工具及其控制方法。The present invention relates to electric tools; in particular, it refers to an electric tool that uses pulse width modulation signals to change the rotation mode and a control method thereof.

圖1與圖2所示為習用的電動工具1,包含一殼體10、一馬達14、一上電路板16與一下電路板18,其中,殼體10具有一傳動部102與一手持部104,傳動部102中設置有馬達14及驅動機構(圖未示),馬達14為三相直流無刷馬達;手持部104中設置有一操作界面12,操作界面12供人員操作,以產生一操作訊號。Figures 1 and 2 show a conventional electric tool 1, which includes a housing 10, a motor 14, an upper circuit board 16 and a lower circuit board 18. The housing 10 has a transmission portion 102 and a hand-held portion 104 , The transmission part 102 is provided with a motor 14 and a driving mechanism (not shown), the motor 14 is a three-phase DC brushless motor; the handheld part 104 is provided with an operation interface 12, the operation interface 12 for personnel to operate to generate an operation signal .

上電路板16設置於傳動部102,且上電路板16上設置有六個換相開關元件162,三個霍爾感測器164,換相開關元件162用以控制馬達的換相,霍爾感測器164感測馬達14之轉子的位置。The upper circuit board 16 is arranged on the transmission part 102, and the upper circuit board 16 is arranged with six commutation switch elements 162, three Hall sensors 164, and the commutation switch element 162 is used to control the commutation of the motor. The sensor 164 senses the position of the rotor of the motor 14.

下電路板18設置於殼體10的手持部104中,下電路板18電性連接電池連接埠20,以接收來自電池22的電力,且下電路板上設置有一控制器182。下電路板18電性連接操作界面12,以使控制器182接收來自操作界面12的操作訊號。下電路板18透過一傳輸線組24電性連接上電路板16,傳輸線組包含傳輸該些換相開關元件162之控制訊號的九條控制訊號傳輸線、傳輸傳些霍爾感測器164輸出訊號的五條位置訊號傳輸線。下控制器182接收到來自操作界面12的操作訊號後,依據操作訊號及來自五條位置訊號傳輸線的霍爾感測器輸出訊號產生控制該些換相開關元件162之控制訊號,並經由九條控制訊號傳輸線傳輸到上電路板16的該些換相開關元件162,以控制該些換相開關元件162進行換相,使馬達14之轉子轉動。The lower circuit board 18 is disposed in the handle 104 of the casing 10, the lower circuit board 18 is electrically connected to the battery connection port 20 to receive power from the battery 22, and a controller 182 is disposed on the lower circuit board. The lower circuit board 18 is electrically connected to the operation interface 12 so that the controller 182 receives operation signals from the operation interface 12. The lower circuit board 18 is electrically connected to the upper circuit board 16 through a transmission line group 24. The transmission line group includes nine control signal transmission lines that transmit the control signals of the commutation switch elements 162, and transmit and transmit the output signals of the Hall sensors 164. Five position signal transmission lines. After the lower controller 182 receives the operation signal from the operation interface 12, it generates a control signal for controlling the commutation switching elements 162 according to the operation signal and the output signals of the Hall sensors from the five position signal transmission lines, and passes the nine control signals. The signal transmission line is transmitted to the commutation switching elements 162 of the upper circuit board 16 to control the commutation switching elements 162 to perform commutation and make the rotor of the motor 14 rotate.

由於上電路板16與下電路板18之間的傳輸線組24至少需要14條傳輸線,而在殼體10有限的空間中配置14條傳輸線將會導致過於擁擠,不利於組裝時傳輸線組24的配線。Since the transmission line group 24 between the upper circuit board 16 and the lower circuit board 18 requires at least 14 transmission lines, the arrangement of 14 transmission lines in the limited space of the housing 10 will cause overcrowding, which is not conducive to the wiring of the transmission line group 24 during assembly. .

有鑑於此,本發明之目的在於提供一種可減少傳輸線組之傳輸線的數量。In view of this, the purpose of the present invention is to provide a transmission line group capable of reducing the number of transmission lines.

緣以達成上述目的,本發明提供的一種電動工具,包含一馬達、一第一電路板與一第二電路板,其中,該第一電路板設置有一第一控制裝置,該第一控制裝置電性連接該馬達;該第二電路板透過一傳輸線組電性連接該第一電路板,其中,該傳輸線組包含一命令傳輸線;該第二電路板上設置有一第二控制裝置,該第二控制裝置依複數個不同的轉動模式中的一者產生一脈衝寬度調變訊號,且經由該命令傳輸線傳輸該脈衝寬度調變訊號,其中,所產生的該脈衝寬度調變訊號之頻率為複數個不同的脈衝訊號頻率中的一者,且該些脈衝訊號頻率分別對應該些轉動模式;該第一控制裝置接收該脈衝寬度調變訊號,且解析該脈衝寬度調變訊號以取得對應的一該脈衝訊號頻率,並依所取得的該脈衝訊號頻率對應的一該轉動模式控制該馬達對應的作動。In order to achieve the above-mentioned object, the present invention provides an electric tool including a motor, a first circuit board and a second circuit board, wherein the first circuit board is provided with a first control device, and the first control device electrically Is electrically connected to the motor; the second circuit board is electrically connected to the first circuit board through a transmission line set, wherein the transmission line set includes a command transmission line; the second circuit board is provided with a second control device, the second control The device generates a pulse width modulation signal according to one of a plurality of different rotation modes, and transmits the pulse width modulation signal through the command transmission line, wherein the generated pulse width modulation signal has a plurality of different frequencies One of the pulse signal frequencies of, and the pulse signal frequencies respectively correspond to the rotation modes; the first control device receives the pulse width modulation signal, and analyzes the pulse width modulation signal to obtain a corresponding pulse Signal frequency, and control the corresponding action of the motor according to a rotation mode corresponding to the acquired pulse signal frequency.

本發明另提供一種電動工具的控制方法,包含下列步驟:The present invention also provides a control method of an electric tool, which includes the following steps:

選擇複數個不同轉動模式之中的一者;Choose one of a plurality of different rotation modes;

該第二控制裝置依所選擇的轉動模式產生一脈衝寬度調變訊號,且經由該命令傳輸線傳輸該脈衝寬度調變訊號,其中,所產生的該脈衝寬度調變訊號之頻率為複數個不同的脈衝訊號頻率中的一者,且該些脈衝訊號頻率分別對應該些轉動模式;The second control device generates a pulse width modulation signal according to the selected rotation mode, and transmits the pulse width modulation signal through the command transmission line, wherein the generated pulse width modulation signal has a plurality of different frequencies One of the pulse signal frequencies, and the pulse signal frequencies correspond to rotation modes respectively;

該第一控制裝置接收該脈衝寬度調變訊號,且解析該脈衝寬度調變訊號以取得對應的一該脈衝訊號頻率,並依所取得的該脈衝訊號頻率對應的一該轉動模式控制該馬達對應的作動。The first control device receives the pulse width modulation signal, analyzes the pulse width modulation signal to obtain a corresponding pulse signal frequency, and controls the motor corresponding to a rotation mode corresponding to the obtained pulse signal frequency Action.

本發明之效果在於,利用第二控制裝置產生的脈衝寬度調變訊號之不同的脈衝訊號頻率代表為不同的轉動模式,而由第一控制裝置解析脈衝寬度調變訊號之脈衝訊號頻率,並以對應的轉動模式控制該馬達,如此,可減少傳輸線組之傳輸線的數量,利於在殼體中傳輸線組的配線。The effect of the present invention is that the different pulse signal frequencies of the pulse width modulation signal generated by the second control device represent different rotation modes, and the first control device analyzes the pulse signal frequency of the pulse width modulation signal and uses The corresponding rotation mode controls the motor, so that the number of transmission lines in the transmission line group can be reduced, which is beneficial to the wiring of the transmission line group in the housing.

為能更清楚地說明本發明,茲舉較佳實施例並配合圖式詳細說明如後。請參圖3與圖4所示,為本發明第一較佳實施例之電動工具2,包含一殼體30及設置於殼體30中的一馬達32、一第一電路板36與一第二電路板40,其中:In order to explain the present invention more clearly, preferred embodiments are described in detail in conjunction with the drawings as follows. Please refer to Figures 3 and 4, which is a first preferred embodiment of the power tool 2 of the present invention. It includes a housing 30 and a motor 32 arranged in the housing 30, a first circuit board 36, and a first circuit board 36. Two circuit board 40, of which:

該馬達32之轉軸322連接一傳動件34,該傳動件34於本實施例中以一衝擊機構為例,但不以此為限,亦可為離合機構、減速機構等。該馬達於本實施例中為三相直流無刷馬達。The rotating shaft 322 of the motor 32 is connected to a transmission member 34. The transmission member 34 uses an impact mechanism as an example in this embodiment, but is not limited to this, and may also be a clutch mechanism, a deceleration mechanism, and the like. The motor is a three-phase DC brushless motor in this embodiment.

該第一電路板36上設置有一第一控制裝置38,該第一控制裝置38電性連接該馬達32。本實施例中,該第一控制裝置38包括複數個換相開關元件382、複數個霍爾感測器384與一第一控制器386,其中,該第一控制器386可為微控制器,該第一控制器386電性連接該些換相開關元件382與該些霍爾感測器384,該些換相開關元件382於本實施例中為六個MOSFET且電性連接馬達32的定子,該些霍爾感測器384為三個且分別用以感測馬達之轉子的位置,每一該霍爾感測器384的輸出係在一第一電壓準位與一第二電壓準位之間變換,該些霍爾感測器在轉子每轉120度時,分別依序輸出脈波,而形成脈波形式的一位置訊號。本實施例中第一電壓準位以低電壓準位為例,第二電壓準位以高電壓準位為例。A first control device 38 is provided on the first circuit board 36, and the first control device 38 is electrically connected to the motor 32. In this embodiment, the first control device 38 includes a plurality of commutation switching elements 382, a plurality of Hall sensors 384, and a first controller 386. The first controller 386 may be a microcontroller, The first controller 386 is electrically connected to the commutation switching elements 382 and the Hall sensors 384. In this embodiment, the commutation switching elements 382 are six MOSFETs and are electrically connected to the stator of the motor 32. , The Hall sensors 384 are three and each is used to sense the position of the rotor of the motor, and the output of each Hall sensor 384 is at a first voltage level and a second voltage level When the rotor rotates at 120 degrees, the Hall sensors output pulse waves in sequence to form a position signal in the form of pulse waves. In this embodiment, the first voltage level is taken as an example of a low voltage level, and the second voltage level is taken as an example of a high voltage level.

該第一控制裝置38包括一第一儲存單元388,本實施例中,該第一儲存單元388為第一控制器386內建的記憶體,該第一儲存單元388儲存複數個控制參數,第一控制器386依該些控制參數控制該些換相開關元件382,進而控制該馬達32之轉軸322轉動。每個控制參數用於控制馬達以複數個不同的轉動模式之一者轉動,轉動模式可例如為正轉模式、反轉模式。The first control device 38 includes a first storage unit 388. In this embodiment, the first storage unit 388 is a built-in memory of the first controller 386. The first storage unit 388 stores a plurality of control parameters. A controller 386 controls the commutation switching elements 382 according to the control parameters, thereby controlling the rotation of the shaft 322 of the motor 32. Each control parameter is used to control the motor to rotate in one of a plurality of different rotation modes. The rotation mode can be, for example, a forward rotation mode and a reverse rotation mode.

該第二電路板40電性連接一電池46與一操作界面48,且第二電路板40上設置有一第二控制裝置42與一顯示器44。電池46提供電力予第二電路板40,操作界面48電性連接該第二控制裝置42且包括一啟動開關482與一模式選擇器484,啟動開關482受使用者操作以輸出一啟動訊號至該第二控制裝置42,該模式選擇器484可為開關且受使用者操作而輸出一選擇訊號至該第二控制裝置42。該第二控制裝置42包括一第二控制器422與一第二儲存單元424,該第二控制器422可為微控制器且電性連接該顯示器44。本實施例中,該第二儲存單元424為第二控制器422內建的記憶體,該第二儲存單元424儲存複數個頻率參數,該些頻率參數分別對應複數個不同的脈衝訊號頻率。第二控制器422可依選擇訊號選擇對應的一該頻率參數,並依所選擇的頻率參數產生具有特定的一該脈衝訊號頻率之一脈衝寬度調變訊號。The second circuit board 40 is electrically connected to a battery 46 and an operation interface 48, and a second control device 42 and a display 44 are provided on the second circuit board 40. The battery 46 provides power to the second circuit board 40. The operation interface 48 is electrically connected to the second control device 42 and includes an activation switch 482 and a mode selector 484. The activation switch 482 is operated by the user to output an activation signal to the The second control device 42, the mode selector 484 can be a switch and is operated by the user to output a selection signal to the second control device 42. The second control device 42 includes a second controller 422 and a second storage unit 424. The second controller 422 can be a microcontroller and is electrically connected to the display 44. In this embodiment, the second storage unit 424 is a built-in memory of the second controller 422, and the second storage unit 424 stores a plurality of frequency parameters, and the frequency parameters respectively correspond to a plurality of different pulse signal frequencies. The second controller 422 can select a corresponding frequency parameter according to the selected signal, and generate a pulse width modulation signal having a specific frequency of the pulse signal according to the selected frequency parameter.

該第二電路板40透過一傳輸線組50電性連接該第一電路板36,該傳輸線組50的傳輸線包含一電源線501、一接地線502、一命令傳輸線503、一煞車訊號線504、一回饋訊號線505、一電流訊號線506、一轉速訊號線507。電源線501與接地線502用以將電力由第二電路板40傳送到第一電路板36。該第二控制裝置42與該第一控制裝置38之間透過該命令傳輸線503、該煞車訊號線504、該回饋訊號線505、該電流訊號線506、該轉速訊號線507進行溝通。The second circuit board 40 is electrically connected to the first circuit board 36 through a transmission line set 50. The transmission lines of the transmission line set 50 include a power line 501, a ground line 502, a command transmission line 503, a brake signal line 504, and a The feedback signal line 505, a current signal line 506, and a speed signal line 507. The power line 501 and the ground line 502 are used to transmit power from the second circuit board 40 to the first circuit board 36. The second control device 42 and the first control device 38 communicate through the command transmission line 503, the brake signal line 504, the feedback signal line 505, the current signal line 506, and the speed signal line 507.

該第二控制裝置42經由該命令傳輸線503傳輸脈衝寬度調變訊號至該第一控制裝置38,以作為控制馬達32之轉動模式的命令,前述之作動方式容後詳述。The second control device 42 transmits a pulse width modulation signal to the first control device 38 via the command transmission line 503 as a command for controlling the rotation mode of the motor 32. The aforementioned operation mode will be described in detail later.

該第二控制裝置42經由該煞車訊號線504傳送一煞車命令,該第一控制裝置38依該煞車命令控制該馬達32停止轉動。The second control device 42 transmits a braking command via the braking signal line 504, and the first control device 38 controls the motor 32 to stop rotating according to the braking command.

該第一控制裝置38經由該回饋訊號線505傳送對應的一回饋訊號,該回饋訊號是對應該傳動件34的作動狀態,例如衝擊機構作動時,該第一控制裝置38發送的該回饋訊號中以複數個脈波代表衝擊機構的衝擊次數。在一實施例中,亦可不設置回饋訊號線505。The first control device 38 transmits a corresponding feedback signal via the feedback signal line 505. The feedback signal corresponds to the actuation state of the transmission member 34. For example, when the impact mechanism is activated, the feedback signal sent by the first control device 38 is A plurality of pulse waves represent the number of impacts of the impact mechanism. In one embodiment, the feedback signal line 505 may not be provided.

該第一控制裝置38偵測該馬達32運轉時的電流,並經由該電流訊號線506傳送一馬達電流訊號。The first control device 38 detects the current when the motor 32 is running, and transmits a motor current signal through the current signal line 506.

該第一控制器386將三個霍爾感測器384所感測的位置訊號轉換為一轉速訊號,轉速訊號係透過轉速訊號線507傳送至該第二控制裝置42,供第二控制裝置42判斷馬達32的轉速。請配合圖5,本實施例中,第一控制器386在每一個霍爾感測器384的輸出由該第一電壓準位V1轉變為該第二電壓準位V2時,將該轉速訊號由一第三電壓準位V3改變為一第四電壓準位V4,並且該第一控制器386在每一該霍爾感測器384的輸出由該第二電壓準位V2轉變為該第一電壓準位V1時,將該轉速訊號由該第四電壓準位V4改變為該第三電壓準位V3。本實施例中第三電壓準位V3以低電壓準位為例,第四電壓準位V4以高電壓準位為例。換言之,轉子每轉動120度,轉速訊號即會具有一個週期的脈波變化,轉子每轉動一圈,轉速訊號具有三個週期的脈波,第二控制裝置42由轉速訊號的脈波週期即可計算轉子的轉速,藉此,將三個霍爾感測器384的輸出整合為一,可以有效減少傳輸線組50之傳輸線的數量。The first controller 386 converts the position signals sensed by the three Hall sensors 384 into a rotation speed signal. The rotation speed signal is transmitted to the second control device 42 through the rotation speed signal line 507 for the second control device 42 to determine The speed of the motor 32. Please cooperate with FIG. 5, in this embodiment, when the output of each Hall sensor 384 is changed from the first voltage level V1 to the second voltage level V2, the first controller 386 changes the speed signal from A third voltage level V3 is changed to a fourth voltage level V4, and the output of the first controller 386 at each Hall sensor 384 is changed from the second voltage level V2 to the first voltage At the level V1, the rotation speed signal is changed from the fourth voltage level V4 to the third voltage level V3. In this embodiment, the third voltage level V3 is taken as an example of a low voltage level, and the fourth voltage level V4 is taken as an example of a high voltage level. In other words, every time the rotor rotates 120 degrees, the speed signal will have a pulse wave of one cycle. Every time the rotor rotates, the speed signal has a pulse wave of three cycles. The second control device 42 can be determined by the pulse wave cycle of the speed signal. Calculating the rotation speed of the rotor, thereby integrating the outputs of the three Hall sensors 384 into one, can effectively reduce the number of transmission lines in the transmission line group 50.

在一實施例中,亦可由第一控制器386將該位置訊號中的其中一個霍爾感測器384的輸出作為轉速訊號,第二控制裝置42藉由一個霍爾感測器384輸出的脈波週期計算轉子的轉速。此外,若第二控制裝置42不需取得轉速,則可不設置轉速訊號線507。In an embodiment, the first controller 386 may also use the output of one of the Hall sensors 384 in the position signal as the rotational speed signal, and the second control device 42 uses the pulse output of a Hall sensor 384. The wave period calculates the speed of the rotor. In addition, if the second control device 42 does not need to obtain the rotational speed, the rotational speed signal line 507 may not be provided.

吾人可先定義各種轉動模式時,馬達32應如何轉動,為便於說明,以該些轉動模式包括一第一轉動模式與一第二轉動模式為例,其中,第一轉動模式用以控制該馬達32沿一第一轉動方向D1轉動,第二轉動模式用以控制該馬達32沿一第二轉動方向D2轉動,該第二轉動方向D2與該第一轉動方向D1相反。We can first define how the motor 32 should rotate in various rotation modes. For the convenience of description, take the rotation modes including a first rotation mode and a second rotation mode as an example. The first rotation mode is used to control the motor. 32 rotates in a first rotation direction D1, and the second rotation mode is used to control the motor 32 to rotate in a second rotation direction D2, the second rotation direction D2 is opposite to the first rotation direction D1.

轉動模式定義完成後,於第二控制裝置42中設定第二儲存單元424中的該些頻率參數分別對應該些不同的轉動模式。例如該些頻率參數包括一第一頻率參數與一第二頻率參數,第一頻率參數供產生具有脈衝訊號頻率為一第一頻率的脈衝寬度調變訊號,第二頻率參數供產生具有脈衝訊號頻率為一第二頻率的脈衝寬度調變訊號。After the definition of the rotation mode is completed, the frequency parameters in the second storage unit 424 are set in the second control device 42 to correspond to different rotation modes. For example, the frequency parameters include a first frequency parameter and a second frequency parameter. The first frequency parameter is used to generate a pulse width modulation signal with a pulse signal frequency of a first frequency, and the second frequency parameter is used to generate a pulse signal frequency with a pulse signal frequency. It is a pulse width modulation signal with a second frequency.

並於第一控制裝置38中設定該第一儲存單元388中的該些控制參數分別對應該些不同的脈衝訊號頻率。例如該些控制參數包括一第一控制參數與一第二控制參數,第一控制參數與第二控制參數分對應第一頻率與第二頻率,該第一控制參數供控制該馬達32沿該第一轉動方向D1轉動,該第二控制參數供控制該馬達32沿該第二轉動方向D2轉動。The control parameters in the first storage unit 388 are set in the first control device 38 to correspond to different pulse signal frequencies. For example, the control parameters include a first control parameter and a second control parameter. The first control parameter and the second control parameter correspond to the first frequency and the second frequency. The first control parameter is used to control the motor 32 along the first frequency. A rotation direction D1 rotates, and the second control parameter is used to control the motor 32 to rotate along the second rotation direction D2.

藉由上述電動工具2之架構,即可進行圖6所示之控制方法,其包含下列步驟:With the structure of the above-mentioned electric tool 2, the control method shown in FIG. 6 can be performed, which includes the following steps:

步驟S11:選擇該些不同的轉動模式之中的一者。本實施例中,使用者操作該操作界面48,以模式選擇器484選擇對應的一個轉動模式,模式選擇器484輸出對應的選擇訊號至該第二控制裝置42,第二控制器422透過該顯示器44顯示該轉動模式之資訊。在使用者壓下該啟動開關482後,進行以下步驟。Step S11: Select one of the different rotation modes. In this embodiment, the user operates the operation interface 48 to select a corresponding rotation mode with the mode selector 484, the mode selector 484 outputs the corresponding selection signal to the second control device 42, and the second controller 422 transmits through the display 44 displays the information of the rotation mode. After the user presses the start switch 482, the following steps are performed.

步驟S12:該第二控制裝置42依所選擇的轉動模式產生脈衝寬度調變訊號,且經由該命令傳輸線503傳輸該脈衝寬度調變訊號。Step S12: The second control device 42 generates a pulse width modulation signal according to the selected rotation mode, and transmits the pulse width modulation signal through the command transmission line 503.

本實施例中,第二控制器422依據選擇訊號由該些頻率參數中選擇對應的一該頻率參數,並依所選擇的頻率參數產生具有對應之脈衝訊號頻率的該脈衝寬度調變訊號。In this embodiment, the second controller 422 selects a corresponding frequency parameter from the frequency parameters according to the selection signal, and generates the pulse width modulation signal with the corresponding pulse signal frequency according to the selected frequency parameter.

舉例而言,第一頻率參數以「21K」為例,第二頻率參數以「10K」為例,請配合圖7,當模式選擇器484選擇第一轉動模式時,該第二控制器422依選擇的第一頻率參數產生具有第一頻率(21KHz)的脈衝寬度調變訊號。請配合圖8,當模式選擇器484選擇第二轉動模式時,該第二控制器422依選擇的第二頻率參數產生具有第二頻率(10KHz)的脈衝寬度調變訊號。For example, the first frequency parameter is "21K", and the second frequency parameter is "10K". Please refer to FIG. 7. When the mode selector 484 selects the first rotation mode, the second controller 422 follows The selected first frequency parameter generates a pulse width modulation signal with a first frequency (21KHz). Please cooperate with FIG. 8, when the mode selector 484 selects the second rotation mode, the second controller 422 generates a pulse width modulation signal with a second frequency (10KHz) according to the selected second frequency parameter.

步驟S13:該第一控制裝置38接收該脈衝寬度調變訊號,解析該脈衝寬度調變訊號之波形以取得該脈衝訊號頻率,並依所取得的該脈衝訊號頻率對應的一該轉動模式控制該馬達32。Step S13: The first control device 38 receives the pulse width modulation signal, analyzes the waveform of the pulse width modulation signal to obtain the pulse signal frequency, and controls the rotation mode according to a rotation mode corresponding to the obtained pulse signal frequency Motor 32.

本實施例中,該第一控制器386解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣,及下一個周期的一脈波的上升緣,並依二個脈波的上升緣之間的一時間差(即圖7與圖8中的第一時間差T1)之倒數獲得對應的一該脈衝訊號頻率。In this embodiment, the first controller 386 analyzes the rising edge of a pulse in one cycle of the pulse width modulation signal and the rising edge of a pulse in the next cycle, and according to the rising edges of the two pulses The reciprocal of a time difference (that is, the first time difference T1 in FIG. 7 and FIG. 8) between, obtains a corresponding pulse signal frequency.

在取得該脈衝寬度調變訊號的該脈衝訊號頻率後,該第一控制裝置38依取得的脈衝訊號頻率由該第一儲存單元388中的該些控制參數擇對應的一者,以控制馬達32對應的作動。After acquiring the pulse signal frequency of the pulse width modulation signal, the first control device 38 selects the corresponding one from the control parameters in the first storage unit 388 according to the acquired pulse signal frequency to control the motor 32 Corresponding actions.

舉例而言,該第一控制器386接收圖7之該脈衝寬度調變訊號,取得脈衝訊號頻率為第一頻率(21KHz),第一控制器386則依據第一頻率所對應的第一控制參數控制該些換相開關元件382,進而控制該馬達32沿該第一轉動方向D1轉動。同理,當第一控制器386接收圖8之該脈衝寬度調變訊號,取得脈衝訊號頻率為第二頻率(10KHz),第一控制器386則依據第二頻率所對應的第二控制參數控制該些換相開關元件382,進而控制該馬達32沿該第二轉動方向D2轉動。For example, the first controller 386 receives the pulse width modulation signal of FIG. 7 and obtains the pulse signal frequency as the first frequency (21KHz), and the first controller 386 is based on the first control parameter corresponding to the first frequency The commutation switching elements 382 are controlled to control the motor 32 to rotate along the first rotation direction D1. Similarly, when the first controller 386 receives the pulse width modulation signal of FIG. 8 and obtains the pulse signal frequency as the second frequency (10KHz), the first controller 386 controls according to the second control parameter corresponding to the second frequency The commutation switching elements 382 further control the motor 32 to rotate along the second rotation direction D2.

上述中,利用第二控制裝置42產生的該脈衝寬度調變訊號之不同的脈衝訊號頻率代表為不同的轉動模式並透過一個命令傳輸線503傳輸脈衝寬度調變訊號,而由第一控制裝置38解析脈衝寬度調變訊號之脈衝訊號頻率,並以對應的轉動模式控制該馬達32,如此,可減少傳輸線組50之傳輸線的數量,並有利於在殼體30中傳輸線組50的配線。In the above, the different pulse signal frequencies of the pulse width modulation signal generated by the second control device 42 represent different rotation modes, and the pulse width modulation signal is transmitted through a command transmission line 503, which is analyzed by the first control device 38 The pulse width modulates the pulse signal frequency of the signal and controls the motor 32 in a corresponding rotation mode. In this way, the number of transmission lines in the transmission line group 50 can be reduced, and the wiring of the transmission line group 50 in the housing 30 is facilitated.

圖9所示為本發明第二較佳實施例之電動工具3,其係以第一實施例為基礎,不同的是,該啟動開關482包括一轉速選擇器482a,使用者按壓啟動開關482時,依按壓的深度一併觸動轉速選擇器482a,以產生對應的轉速選擇訊號並傳送到第二控制裝置42。Figure 9 shows the power tool 3 of the second preferred embodiment of the present invention. It is based on the first embodiment. The difference is that the start switch 482 includes a speed selector 482a. When the user presses the start switch 482 , According to the depth of the pressing, the rotation speed selector 482a is also triggered to generate a corresponding rotation speed selection signal and transmit it to the second control device 42.

第二控制裝置42依按壓啟動開關482的深度不同,由轉速選擇器482a之轉速選擇訊號分別產生複數個不同的轉速值。在一實施例中,該轉速選擇器482a亦可獨立於啟動開關482之外,供使用者選擇轉速值,而輸出對應的轉速選擇訊號。The second control device 42 generates a plurality of different rotation speed values from the rotation speed selection signal of the rotation speed selector 482a according to the depth of pressing the start switch 482. In one embodiment, the speed selector 482a can also be independent of the start switch 482, allowing the user to select the speed value and output the corresponding speed selection signal.

第二控制裝置42的該第二儲存單元424儲存複數個比例值參數,該些比例值參數分別對應複數個不同的佔空比,於產生該脈衝寬度調變訊號時,可依據一該比例值參改變該脈衝寬度調變訊號的佔空比。The second storage unit 424 of the second control device 42 stores a plurality of proportional value parameters, and the proportional value parameters respectively correspond to a plurality of different duty ratios. When the pulse width modulation signal is generated, it can be based on a proportional value Refer to change the duty cycle of the pulse width modulation signal.

該第一儲存單元388儲存複數個轉速參數,各該轉速參數係供該第一控制裝置38控制馬達32轉動時的轉速,該些轉速參數分別對應馬達32的不同轉速。The first storage unit 388 stores a plurality of rotation speed parameters, each of the rotation speed parameters is used by the first control device 38 to control the rotation speed of the motor 32 when the motor 32 rotates, and the rotation speed parameters correspond to different rotation speeds of the motor 32 respectively.

吾人可先定義該第二儲存單元424的該些比例值參數分別對應該些轉速值,以及該第一儲存單元388的該些比例值參數分別對應該些佔空比且對應該些轉速值。佔空比愈高代表轉速愈快。We can first define that the proportional value parameters of the second storage unit 424 correspond to the rotation speed values, and the proportional value parameters of the first storage unit 388 correspond to the duty ratios and correspond to the rotation speed values. The higher the duty cycle, the faster the rotation speed.

圖10所示為本發明第二較佳實施例之電動工具3的控制方法,其具有大致相同於第一實施例之步驟,不同的是:Fig. 10 shows the control method of the electric tool 3 according to the second preferred embodiment of the present invention, which has substantially the same steps as the first embodiment, except that:

步驟S21:選擇複數個不同轉動模式之中的一者。本步驟與第一實施例之步驟S11相同。在使用者壓下該啟動開關482後,進行以下步驟。Step S21: Select one of a plurality of different rotation modes. This step is the same as step S11 of the first embodiment. After the user presses the start switch 482, the following steps are performed.

步驟S22:該第二控制裝置42依所選擇的轉動模式產生脈衝寬度調變訊號,且依據不同的轉速值調整該脈衝寬度調變訊號的佔空比為複數個不同的比例之一者,並經由該命令傳輸線503傳輸該脈衝寬度調變訊號。Step S22: The second control device 42 generates a pulse width modulation signal according to the selected rotation mode, and adjusts the duty cycle of the pulse width modulation signal to one of a plurality of different ratios according to different rotation speed values, and The pulse width modulation signal is transmitted via the command transmission line 503.

本實施例中,第二控制器422依據選擇訊號由該些頻率參數中選擇對應的一該頻率參數,且依據使用者按壓啟動開關482的深度不同,由轉速選擇訊號產生該些轉速值之中的一個轉速值,依所產生的轉速值由該第二儲存單元424選擇對應的一個比例值參數。而後,依所選擇的頻率參數產生具有對應之脈衝訊號頻率的該脈衝寬度調變訊號,且依選擇的比例值參數產生具有對應之佔空比的該脈衝寬度調變訊號。In this embodiment, the second controller 422 selects a corresponding one of the frequency parameters from the frequency parameters according to the selection signal, and according to the depth at which the user presses the start switch 482, the rotation speed selection signal generates among the rotation speed values According to the generated rotation speed value, the second storage unit 424 selects a corresponding proportional value parameter. Then, the pulse width modulation signal with the corresponding pulse signal frequency is generated according to the selected frequency parameter, and the pulse width modulation signal with the corresponding duty ratio is generated according to the selected ratio parameter.

以第一頻率參數以「21K」為例,其中一個比例值參數以「23」為例,請配合圖11,當模式選擇器484選擇第一轉動模式時,該第二控制器422依選擇的第一頻率參數產生具有第一頻率(21KHz)的脈衝寬度調變訊號,且依當下的轉速選擇訊號對應的轉速值選擇對應的比例值參數(例如「23」)並產生對應的佔空比為23%。請配合圖12,其中一個比例值參數以「60」為例,當按壓啟動開關的深度更深,達到對應比例值參數為「60」之轉速值時,第二控制器依當下的轉速選擇訊號對應的轉速值選擇對應的比例值參數(例如「60」),進而改變該脈衝寬度調變訊號的佔空比為60%。Taking the first frequency parameter "21K" as an example, one of the proportional value parameters is "23" as an example. Please refer to Fig. 11. When the mode selector 484 selects the first rotation mode, the second controller 422 selects The first frequency parameter generates a pulse width modulation signal with the first frequency (21KHz), and the corresponding proportional value parameter (such as "23") is selected according to the current rotation speed selection signal corresponding to the rotation speed value, and the corresponding duty cycle is generated as twenty three%. Please refer to Figure 12. One of the proportional value parameters is "60" as an example. When the depth of pressing the start switch is deeper and reaches the speed value of the corresponding proportional value parameter "60", the second controller corresponds to the current speed selection signal Select the corresponding proportional value parameter (such as "60") for the rotation speed value, and then change the duty cycle of the pulse width modulation signal to 60%.

同理,當模式選擇器484選擇第二轉動模式時,該第二控制器422依選擇的第二頻率參數產生具有第二頻率的脈衝寬度調變訊號,且依當下的轉速選擇訊號對應的轉速值選擇對應的比例值參數並產生佔空比。Similarly, when the mode selector 484 selects the second rotation mode, the second controller 422 generates a pulse width modulation signal with a second frequency according to the selected second frequency parameter, and selects the rotation speed corresponding to the signal according to the current rotation speed Value selects the corresponding proportional value parameter and generates the duty cycle.

步驟S23:該第一控制裝置38接收該脈衝寬度調變訊號,解析該脈衝寬度調變訊號之波形以取得該脈衝訊號頻率及該佔空比,並依所取得的該脈衝訊號頻率對應的一該轉動模式控制該馬達32,且依所取得的佔空比控制該馬達32的轉速。Step S23: The first control device 38 receives the pulse width modulation signal, analyzes the waveform of the pulse width modulation signal to obtain the pulse signal frequency and the duty ratio, and according to the obtained pulse signal frequency corresponding to The rotation mode controls the motor 32, and the rotation speed of the motor 32 is controlled according to the obtained duty ratio.

配合圖11、圖12,該第一控制器386解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣至下一個周期的一脈波的上升緣之取的第一時間差T1之倒數獲得對應的一該脈衝訊號頻率。該第一控制器386解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣至下降緣之間的一第二時間差T2,再依該第二時間差T2與該第一時間差T1的比例獲得佔空比。In conjunction with FIGS. 11 and 12, the first controller 386 analyzes the reciprocal of the first time difference T1 from the rising edge of a pulse in one cycle of the pulse width modulation signal to the rising edge of a pulse in the next cycle Obtain a corresponding pulse signal frequency. The first controller 386 analyzes a second time difference T2 between the rising edge and the falling edge of a pulse of one cycle of the pulse width modulation signal, and then according to the ratio of the second time difference T2 to the first time difference T1 Obtain the duty cycle.

該第一控制器386在取得該脈衝寬度調變訊號的該脈衝訊號頻率及佔空比後,該第一控制器386依取得的脈衝訊號頻率由該第一儲存單元388中的該些控制參數擇對應的一者以及依當下的佔空比選擇對應的一該轉速參數,以控制馬達依所選的轉動模式對應的作動且依所選擇的轉速參數控制該馬達32於轉動模式時產生對應的轉速。After the first controller 386 obtains the pulse signal frequency and duty cycle of the pulse width modulation signal, the first controller 386 obtains the pulse signal frequency from the control parameters in the first storage unit 388 Select the corresponding one and select the corresponding one of the rotational speed parameters according to the current duty cycle, so as to control the action of the motor according to the selected rotation mode and control the motor 32 to generate the corresponding rotation mode according to the selected rotational speed parameter. Rotating speed.

舉例而言,該第一控制器386接收圖11之該脈衝寬度調變訊號,取得脈衝訊號頻率為第一頻率(21KHz),佔空比為23%,第一控制器386則依據第一頻率所對應的第一控制參數及依據該佔空比為23%對應的一個轉速參數,控制該些換相開關元件382,進而控制該馬達32沿該第一轉動方向D1轉動並具有對應的轉速。For example, the first controller 386 receives the pulse width modulation signal of FIG. 11, and obtains the pulse signal frequency as the first frequency (21KHz) and the duty cycle is 23%. The first controller 386 is based on the first frequency The corresponding first control parameter and a rotation speed parameter corresponding to the duty ratio of 23% are used to control the commutation switching elements 382, thereby controlling the motor 32 to rotate along the first rotation direction D1 and have a corresponding rotation speed.

如圖13所示,在轉動的過程中,若使用者改變了按壓啟動開關482的深度,達到對應比例值參數為「60」之轉速值時,第二控制器422依當下的轉速選擇訊號對應的轉速值選擇比例值參數,並改變該脈衝寬度調變訊號的佔空比為60%,則第一控制器則依據第一頻率所對應的第一控制參數及依據該佔空比為60%對應的一個轉速參數,控制該些換相開關元件382,進而控制該馬達32沿該第一轉動方向D1轉動並具有對應的更高之轉速。As shown in Fig. 13, during the rotation process, if the user changes the depth of pressing the start switch 482 to reach the speed value corresponding to the proportional value parameter "60", the second controller 422 corresponds to the current speed selection signal Select the proportional value parameter for the speed value of, and change the duty cycle of the pulse width modulation signal to 60%, then the first controller will be based on the first control parameter corresponding to the first frequency and the duty cycle will be 60% A corresponding rotation speed parameter controls the commutation switching elements 382, and then controls the motor 32 to rotate along the first rotation direction D1 and have a correspondingly higher rotation speed.

同理,若該第一控制器所接收的脈衝寬度調變訊號之脈衝訊號頻率為第二頻率,則依第二控制參數及依據當下的佔空比對應的一個轉速參數,控制該些換相開關元件382,進而控制該馬達32沿該第二轉動方向D2且以對應的轉速轉動。Similarly, if the pulse signal frequency of the pulse width modulation signal received by the first controller is the second frequency, the commutation is controlled according to the second control parameter and a rotation speed parameter corresponding to the current duty cycle The switch element 382 further controls the motor 32 to rotate along the second rotation direction D2 and at a corresponding rotation speed.

據上所述,本發明第二實施例藉由命令傳輸線503傳輸脈衝寬度調變訊號同樣可減少傳輸線組50之傳輸線的數量,並且可同時利用脈衝寬度調變訊之佔空比調整轉速,無需以額外的轉輸線傳輸轉速命命。According to the above, the second embodiment of the present invention can also reduce the number of transmission lines in the transmission line group 50 by commanding the transmission line 503 to transmit the pulse width modulation signal, and can also use the duty cycle of the pulse width modulation signal to adjust the rotation speed at the same time. Use additional transmission lines to transmit speed life.

上述各實施例中之轉動模式更可包括其它轉動模式,不以第一轉動模式及第二轉動模式為限。The rotation modes in the foregoing embodiments may further include other rotation modes, and are not limited to the first rotation mode and the second rotation mode.

以上所述僅為本發明較佳可行實施例而已,舉凡應用本發明說明書及申請專利範圍所為之等效變化,理應包含在本發明之專利範圍內。The above are only the preferred and feasible embodiments of the present invention. Any equivalent changes made by applying the specification of the present invention and the scope of the patent application should be included in the patent scope of the present invention.

[習用] 1:電動工具 10:殼體 102:傳動部 104:手持部 12:操作界面 14:馬達 16:上電路板 162:換相開關元件 164:霍爾感測器 18:下電路板 182:控制器 20:電池連接埠 22:電池 24:傳輸線組 [本發明] 2, 3:電動工具 30:殼體 32:馬達 322:轉軸 34:傳動件 36:第一電路板 38:第一控制裝置 382:換相開關元件 384:霍爾感測器 386:第一控制器 388:第一儲存單元 40:第二電路板 42:第二控制裝置 422:第二控制器 424:第二儲存單元 44:顯示器 46:電池 48:操作界面 482:啟動開關 482a:轉速選擇器 484:模式選擇器 50:傳輸線組 501:電源線 502:接地線 503:命令傳輸線 504:煞車訊號線 505:回饋訊號線 506:電流訊號線 507:轉速訊號線 D1:第一轉動方向 D2:第二轉動方向 S11~S13, S21~S23:步驟 V1:第一電壓準位 V2:第二電壓準位 V3:第三電壓準位 V4:第四電壓準位[Traditional] 1: power tools 10: Shell 102: Transmission Department 104: Handheld 12: Operation interface 14: Motor 16: upper circuit board 162: Commutation switching element 164: Hall sensor 18: Lower circuit board 182: Controller 20: Battery port 22: battery 24: Transmission line group [this invention] 2, 3: Power tools 30: shell 32: Motor 322: Hinge 34: Transmission parts 36: The first circuit board 38: The first control device 382: Commutation switching element 384: Hall sensor 386: first controller 388: first storage unit 40: second circuit board 42: Second control device 422: second controller 424: second storage unit 44: display 46: battery 48: Operation interface 482: Start switch 482a: Speed selector 484: Mode selector 50: Transmission line group 501: Power cord 502: Ground Wire 503: command transmission line 504: Brake signal cable 505: feedback signal line 506: Current signal line 507: Speed signal line D1: The first direction of rotation D2: The second direction of rotation S11~S13, S21~S23: steps V1: the first voltage level V2: second voltage level V3: third voltage level V4: The fourth voltage level

圖1為習用的電動工具示意圖。 圖2為習用的電動工具之系統方塊圖。 圖3為本發明第一較佳實施例之電動工具示意圖。 圖4為上述較佳實施例之系統方塊圖。 圖5為上述較佳實施例三個霍爾感測器之輸出及轉速訊號之波形圖。 圖6為上述較佳實施例之電動工具的控制方法流程圖。 圖7為上述較佳實施例之電動工具的脈衝寬度調變訊號波形圖。 圖8為上述較佳實施例之電動工具的脈衝寬度調變訊號波形圖。 圖9為本發明第二較佳實施例之電動工具示意圖。 圖10為上述較佳實施例之電動工具的控制方法流程圖。 圖11為上述較佳實施例之電動工具的脈衝寬度調變訊號波形圖。 圖12為上述較佳實施例之電動工具的脈衝寬度調變訊號波形圖。 圖13為上述較佳實施例之電動工具的脈衝寬度調變訊號波形圖。 Figure 1 is a schematic diagram of a conventional electric tool. Figure 2 is a system block diagram of a conventional electric tool. Fig. 3 is a schematic diagram of the electric tool according to the first preferred embodiment of the present invention. Fig. 4 is a system block diagram of the above-mentioned preferred embodiment. FIG. 5 is a waveform diagram of the output and speed signals of the three Hall sensors in the above preferred embodiment. Fig. 6 is a flow chart of the control method of the electric tool in the above preferred embodiment. FIG. 7 is a waveform diagram of the pulse width modulation signal of the electric tool of the above-mentioned preferred embodiment. FIG. 8 is a waveform diagram of the pulse width modulation signal of the electric tool of the above-mentioned preferred embodiment. Fig. 9 is a schematic diagram of a power tool according to a second preferred embodiment of the present invention. Fig. 10 is a flow chart of the control method of the electric tool in the above preferred embodiment. FIG. 11 is a waveform diagram of the pulse width modulation signal of the electric tool of the above preferred embodiment. FIG. 12 is a waveform diagram of the pulse width modulation signal of the electric tool of the above-mentioned preferred embodiment. FIG. 13 is a waveform diagram of the pulse width modulation signal of the electric tool of the above preferred embodiment.

2:電動工具 2: power tools

30:殼體 30: shell

32:馬達 32: Motor

322:轉軸 322: Hinge

34:傳動件 34: Transmission parts

36:第一電路板 36: The first circuit board

38:第一控制裝置 38: The first control device

40:第二電路板 40: second circuit board

42:第二控制裝置 42: Second control device

44:顯示器 44: display

48:操作界面 48: Operation interface

D1:第一轉動方向 D1: The first direction of rotation

D2:第二轉動方向 D2: The second direction of rotation

Claims (16)

一種電動工具,包含: 一馬達; 一第一電路板,設置有一第一控制裝置,該第一控制裝置電性連接該馬達; 一第二電路板,透過一傳輸線組電性連接該第一電路板,其中,該傳輸線組包含一命令傳輸線;該第二電路板上設置有一第二控制裝置,該第二控制裝置依複數個不同的轉動模式中的一者產生一脈衝寬度調變訊號,且經由該命令傳輸線傳輸該脈衝寬度調變訊號,其中,所產生的該脈衝寬度調變訊號之頻率為複數個不同的脈衝訊號頻率中的一者,且該些脈衝訊號頻率分別對應該些轉動模式; 該第一控制裝置接收該脈衝寬度調變訊號,且解析該脈衝寬度調變訊號以取得對應的一該脈衝訊號頻率,並依所取得的該脈衝訊號頻率對應的一該轉動模式控制該馬達對應的作動。 An electric tool comprising: A motor A first circuit board is provided with a first control device, and the first control device is electrically connected to the motor; A second circuit board is electrically connected to the first circuit board through a transmission line group, wherein the transmission line group includes a command transmission line; the second circuit board is provided with a second control device, and the second control device is in a plurality of One of the different rotation modes generates a pulse width modulation signal, and transmits the pulse width modulation signal through the command transmission line, wherein the frequency of the pulse width modulation signal generated is a plurality of different pulse signal frequencies One of them, and the pulse signal frequencies correspond to the rotation modes respectively; The first control device receives the pulse width modulation signal, analyzes the pulse width modulation signal to obtain a corresponding pulse signal frequency, and controls the motor corresponding to a rotation mode corresponding to the obtained pulse signal frequency Action. 如請求項1所述之電動工具,其中該第二控制裝置所產生的該脈衝寬度調變訊號的每一周期具有一佔空比,該第二控制裝置依據複數個不同的轉速值調整該佔空比為複數個不同的比例之一者;該第一控制裝置解析該脈衝寬度調變訊號取得該佔空比,更依所取得的佔空比控制該馬達的轉速。The electric tool according to claim 1, wherein each cycle of the pulse width modulation signal generated by the second control device has a duty cycle, and the second control device adjusts the duty cycle according to a plurality of different rotation speed values. The duty ratio is one of a plurality of different ratios; the first control device analyzes the pulse width modulation signal to obtain the duty ratio, and further controls the rotation speed of the motor according to the obtained duty ratio. 如請求項2所述之電動工具,其中該些轉動模式包括一第一轉動模式與一第二轉動模式,該第一轉動模式所對應之脈衝訊號頻率為一第一頻率,該第二轉動模式所對應之脈衝訊號頻率為一第二頻率;該第二控制裝置依該第一轉動模式或該第二轉動模式產生對應的該脈衝寬度調變訊號,且依一該轉速值調整該脈衝寬度調變訊號的佔空比之比值;該第一控制裝置依據該脈衝寬度調變訊號的脈衝訊號頻率控制該馬達,其中,當該脈衝訊號頻率為第一頻率時,依該脈衝寬度調變訊號的佔空比,控制該馬達依該轉速值沿一第一轉動方向轉動;當該脈衝訊號頻率為第二頻率時,依該脈衝寬度調變訊號的佔空比,控制該馬達依該轉速值沿一第二轉動方向轉動,該第二轉動方向與該第一轉動方向相反。The electric tool according to claim 2, wherein the rotation modes include a first rotation mode and a second rotation mode, the pulse signal frequency corresponding to the first rotation mode is a first frequency, and the second rotation mode The corresponding pulse signal frequency is a second frequency; the second control device generates the corresponding pulse width modulation signal according to the first rotation mode or the second rotation mode, and adjusts the pulse width modulation signal according to a rotation speed value The ratio of the duty cycle of the variable signal; the first control device controls the motor according to the pulse signal frequency of the pulse width modulation signal, wherein, when the pulse signal frequency is the first frequency, the pulse width modulation signal The duty cycle is to control the motor to rotate in a first rotation direction according to the rotation speed value; when the pulse signal frequency is the second frequency, the duty cycle of the signal is modulated according to the pulse width, and the motor is controlled to rotate according to the rotation speed value. A second rotation direction rotates, and the second rotation direction is opposite to the first rotation direction. 如請求項1所述之電動工具,其中該些轉動模式包括一第一轉動模式與一第二轉動模式,該第一轉動模式所對應之脈衝訊號頻率為一第一頻率,該第二轉動模式所對應之脈衝訊號頻率為一第二頻率;該第二控制裝置依該第一轉動模式或該第二轉動模式產生對應的該脈衝寬度調變訊號;該第一控制裝置依據該脈衝寬度調變訊號的脈衝訊號頻率控制該馬達,其中,當該脈衝訊號頻率為第一頻率時,控制該馬達沿一第一轉動方向轉動;當該脈衝訊號頻率為第二頻率時,控制該馬達沿一第二轉動方向轉動,該第二轉動方向與該第一轉動方向相反。The electric tool according to claim 1, wherein the rotation modes include a first rotation mode and a second rotation mode, the pulse signal frequency corresponding to the first rotation mode is a first frequency, and the second rotation mode The corresponding pulse signal frequency is a second frequency; the second control device generates the corresponding pulse width modulation signal according to the first rotation mode or the second rotation mode; the first control device modulates according to the pulse width The pulse signal frequency of the signal controls the motor, wherein when the pulse signal frequency is a first frequency, the motor is controlled to rotate in a first rotation direction; when the pulse signal frequency is a second frequency, the motor is controlled to move along a first rotation direction Two rotation directions rotate, and the second rotation direction is opposite to the first rotation direction. 如請求項1所述之電動工具,其中該第二控制裝置具有一第二儲存單元,該第二儲存單元儲存複數個頻率參數,該些頻率參數分別對應該些脈衝訊號頻率且對應該些轉動模式; 該第一控制裝置具有一第一儲存單元,該第一儲存單元儲存複數個控制參數,該些控制參數分別對應該些脈衝訊號頻率且對應該些轉動模式; 該第二控制裝置依其中一該轉動模式選擇對應的頻率參數,且依選擇的頻率參數產生具有對應之脈衝訊號頻率的該脈衝寬度調變訊號; 該第一控制裝置依取得的一該脈衝訊號頻率,選擇對應的一該控制參數,且依選擇的控制參數控制該馬達對應的作動。 The electric tool according to claim 1, wherein the second control device has a second storage unit, the second storage unit stores a plurality of frequency parameters, and the frequency parameters correspond to the pulse signal frequencies and the rotations respectively mode; The first control device has a first storage unit, and the first storage unit stores a plurality of control parameters, the control parameters respectively corresponding to pulse signal frequencies and corresponding to rotation modes; The second control device selects the corresponding frequency parameter according to one of the rotation modes, and generates the pulse width modulation signal with the corresponding pulse signal frequency according to the selected frequency parameter; The first control device selects a corresponding control parameter according to an acquired pulse signal frequency, and controls the corresponding action of the motor according to the selected control parameter. 如請求項5所述之電動工具,其中該第二儲存單元儲存複數個比例值參數,該些比例值參數分別對應複數個不同的佔空比且對應複數個不同的轉速值; 該第一儲存單元儲存複數個轉速參數,且該些轉速參數分別對應該些佔空比且對應該些轉速值; 該第二控制裝置依據一該轉速值選擇對應的比例值參數,且依選擇的比例值參數產生具有對應之佔空比的該脈衝寬度調變訊號; 該第一控制裝置解析該脈衝寬度調變訊號取得佔空比,並更依據取得的佔空比選擇對應的一該轉速參數,且依選擇的轉速參數控制該馬達於作動時產生對應的轉速。 The electric tool according to claim 5, wherein the second storage unit stores a plurality of proportional value parameters, and the proportional value parameters respectively correspond to a plurality of different duty ratios and correspond to a plurality of different rotational speed values; The first storage unit stores a plurality of rotational speed parameters, and the rotational speed parameters correspond to duty ratios and rotational speed values; The second control device selects a corresponding proportional value parameter according to a rotation speed value, and generates the pulse width modulation signal with a corresponding duty cycle according to the selected proportional value parameter; The first control device analyzes the pulse width modulation signal to obtain a duty ratio, selects a corresponding rotation speed parameter according to the obtained duty ratio, and controls the motor to generate a corresponding rotation speed according to the selected rotation speed parameter. 如請求項2所述之電動工具,其中該第一控制裝置解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣,及下一個周期的一脈波的上升緣,並依二個脈波的上升緣之間的一第一時間差之倒數獲得對應的一該脈衝訊號頻率;其中該第一控制裝置解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣至下降緣之間的一第二時間差,並依該第二時間差與該第一時間差的比例獲得佔空比。The electric tool according to claim 2, wherein the first control device analyzes the rising edge of a pulse wave in one cycle of the pulse width modulation signal and the rising edge of a pulse wave in the next cycle according to two The reciprocal of a first time difference between the rising edges of the pulse wave obtains a corresponding pulse signal frequency; wherein the first control device analyzes the pulse width modulation signal from the rising edge to the falling edge of a pulse wave in one cycle A second time difference between the two, and the duty cycle is obtained according to the ratio of the second time difference to the first time difference. 如請求項1所述之電動工具,其中該第一控制裝置解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣,及下一個周期的一脈波的上升緣,並依二個脈波的上升緣之間的時間差之倒數獲得對應的一該脈衝訊號頻率。The electric tool according to claim 1, wherein the first control device analyzes the rising edge of a pulse wave in one cycle of the pulse width modulation signal and the rising edge of a pulse wave in the next cycle according to two The reciprocal of the time difference between the rising edges of the pulse wave obtains a corresponding pulse signal frequency. 一種電動工具的控制方法,其中,該電動工具包含一馬達、一第一電路板與一第二電路板,該第一電路板設置有一第一控制裝置,其中該第一控制裝置電性連接該馬達;該第二電路板透過一傳輸線組電性連接該第一電路板,其中,該傳輸線組包含一命令傳輸線;該第二電路板上設置有一第二控制裝置;該控制方法包含下列步驟: 選擇複數個不同轉動模式之中的一者; 該第二控制裝置依所選擇的轉動模式產生一脈衝寬度調變訊號,且經由該命令傳輸線傳輸該脈衝寬度調變訊號,其中,所產生的該脈衝寬度調變訊號之頻率為複數個不同的脈衝訊號頻率中的一者,且該些脈衝訊號頻率分別對應該些轉動模式; 該第一控制裝置接收該脈衝寬度調變訊號,且解析該脈衝寬度調變訊號以取得對應的一該脈衝訊號頻率,並依所取得的該脈衝訊號頻率對應的一該轉動模式控制該馬達對應的作動。 A control method of an electric tool, wherein the electric tool comprises a motor, a first circuit board and a second circuit board, the first circuit board is provided with a first control device, wherein the first control device is electrically connected to the Motor; the second circuit board is electrically connected to the first circuit board through a transmission line set, wherein the transmission line set includes a command transmission line; the second circuit board is provided with a second control device; the control method includes the following steps: Choose one of a plurality of different rotation modes; The second control device generates a pulse width modulation signal according to the selected rotation mode, and transmits the pulse width modulation signal through the command transmission line, wherein the generated pulse width modulation signal has a plurality of different frequencies One of the pulse signal frequencies, and the pulse signal frequencies correspond to rotation modes respectively; The first control device receives the pulse width modulation signal, analyzes the pulse width modulation signal to obtain a corresponding pulse signal frequency, and controls the motor corresponding to a rotation mode corresponding to the obtained pulse signal frequency Action. 如請求項9所述之電動工具的控制方法,其中該第二控制裝置所產生的該脈衝寬度調變訊號的每一周期具有一佔空比,該第二控制裝置依據複數個不同的轉速值調整該佔空比為複數個不同的比例之一者;該第一控制裝置解析該脈衝寬度調變訊號取得該佔空比,更依所取得的佔空比控制該馬達改變轉速。The control method of an electric tool according to claim 9, wherein each cycle of the pulse width modulation signal generated by the second control device has a duty cycle, and the second control device depends on a plurality of different rotation speed values The duty ratio is adjusted to one of a plurality of different ratios; the first control device analyzes the pulse width modulation signal to obtain the duty ratio, and further controls the motor to change the rotation speed according to the obtained duty ratio. 如請求項10所述之電動工具的控制方法,其中該些轉動模式包括一第一轉動模式與一第二轉動模式;該第二控制裝置依所選擇的轉動模式為該第一轉動模式或該第二轉動模式產生對應的該脈衝寬度調變訊號,且依一該轉速值調整該脈衝寬度調變訊號的佔空比之比值,其中,該第一轉動模式所對應之脈衝訊號頻率為一第一頻率,該第二轉動模式所對應之脈衝訊號頻率為一第二頻率;該第一控制裝置依據該脈衝寬度調變訊號的脈衝訊號頻率控制該馬達,其中,當該脈衝訊號頻率為第一頻率時,依該脈衝寬度調變訊號的佔空比,控制該馬達依該轉速值沿一第一轉動方向轉動;當該脈衝訊號頻率為第二頻率時,依該脈衝寬度調變訊號的佔空比,控制該馬達依該轉速值沿一第二轉動方向轉動,該第二轉動方向與該第一轉動方向相反。The control method of an electric tool according to claim 10, wherein the rotation modes include a first rotation mode and a second rotation mode; the second control device is the first rotation mode or the second rotation mode according to the selected rotation mode The second rotation mode generates the corresponding pulse width modulation signal, and adjusts the duty cycle ratio of the pulse width modulation signal according to a rotation speed value, wherein the pulse signal frequency corresponding to the first rotation mode is a first A frequency, the pulse signal frequency corresponding to the second rotation mode is a second frequency; the first control device controls the motor according to the pulse signal frequency of the pulse width modulation signal, wherein, when the pulse signal frequency is the first At the frequency, the duty ratio of the signal is modulated according to the pulse width, and the motor is controlled to rotate in a first rotation direction at the speed value; when the pulse signal frequency is the second frequency, the duty ratio of the signal is modulated according to the pulse width The idle ratio controls the motor to rotate in a second rotation direction according to the rotation speed value, and the second rotation direction is opposite to the first rotation direction. 如請求項9所述之電動工具的控制方法,其中該些轉動模式包括一第一轉動模式與一第二轉動模式;該第二控制裝置依所選擇的轉動模式為該第一轉動模式或該第二轉動模式產生對應的該脈衝寬度調變訊號,其中,該第一轉動模式所對應之脈衝訊號頻率為一第一頻率,該第二轉動模式所對應之脈衝訊號頻率為一第二頻率;該第一控制裝置依據該脈衝寬度調變訊號的脈衝訊號頻率控制該馬達,其中,當該脈衝訊號頻率為第一頻率時,控制該馬達依該轉速值沿一第一轉動方向轉動;當該脈衝訊號頻率為第二頻率時,控制該馬達依該轉速值沿一第二轉動方向轉動,該第二轉動方向與該第一轉動方向相反。The control method of an electric tool according to claim 9, wherein the rotation modes include a first rotation mode and a second rotation mode; the second control device is the first rotation mode or the second rotation mode according to the selected rotation mode The second rotation mode generates the corresponding pulse width modulation signal, wherein the pulse signal frequency corresponding to the first rotation mode is a first frequency, and the pulse signal frequency corresponding to the second rotation mode is a second frequency; The first control device controls the motor according to the pulse signal frequency of the pulse width modulation signal, wherein when the pulse signal frequency is the first frequency, the motor is controlled to rotate in a first rotation direction according to the rotation speed; When the pulse signal frequency is the second frequency, the motor is controlled to rotate in a second rotation direction according to the rotation speed value, and the second rotation direction is opposite to the first rotation direction. 如請求項9所述之電動工具的控制方法,其中該第二控制裝置依產生該脈衝寬度調變訊號的步驟包括: 依所選擇的轉動模式由複數個頻率參數中選擇對應的一者,其中,該些頻率參數分別對應該些脈衝訊號頻率且對應該些轉動模式;及 依選擇的頻率參數產生具有對應之脈衝訊號頻率的該脈衝寬度調變訊號; 其中,該第一控制裝置依所取得的該脈衝訊號頻率對應的一該轉動模式控制該馬達的步驟包括: 依取得的一該脈衝訊號頻率由複數個控制參數選擇對應的一者,其中,該些控制參數分別對應該些脈衝訊號頻率且對應該些轉動模式;及 依選擇的控制參數控制該馬達對應的作動。 The control method of an electric tool according to claim 9, wherein the step of generating the pulse width modulation signal by the second control device includes: According to the selected rotation mode, a corresponding one is selected from a plurality of frequency parameters, wherein the frequency parameters correspond to the pulse signal frequencies and correspond to the rotation modes; and Generate the pulse width modulation signal with the corresponding pulse signal frequency according to the selected frequency parameter; Wherein, the step of controlling the motor by the first control device according to a rotation mode corresponding to the acquired pulse signal frequency includes: According to an acquired pulse signal frequency, the corresponding one is selected from a plurality of control parameters, wherein the control parameters correspond to the pulse signal frequencies and the rotation modes respectively; and Control the corresponding action of the motor according to the selected control parameter. 如請求項13所述之電動工具的控制方法,其中該第二控制裝置依產生該脈衝寬度調變訊號的步驟更包括: 依據複數個轉速值之一者,由複數個比例值參數中選擇對應的一者,其中,該些比例值參數分別對應複數個不同的佔空比; 依選擇的比例值參數產生具有對應之佔空比的該脈衝寬度調變訊號; 其中,該第一控制裝置依所取得的該脈衝訊號頻率對應的一該轉動模式控制該馬達的步驟更包括: 解析該脈衝寬度調變訊號取得佔空比; 依據取得的佔空比由複數個轉速參數中選擇對應的一者; 依選擇的轉速參數控制該馬達於作動時產生對應的轉速。 The control method of an electric tool according to claim 13, wherein the step of generating the pulse width modulation signal by the second control device further includes: According to one of the plurality of speed values, the corresponding one is selected from the plurality of proportional value parameters, wherein the proportional value parameters correspond to a plurality of different duty ratios; Generate the pulse width modulation signal with the corresponding duty cycle according to the selected proportional value parameter; Wherein, the step of controlling the motor by the first control device according to a rotation mode corresponding to the acquired pulse signal frequency further includes: Analyze the pulse width modulation signal to obtain the duty cycle; Select the corresponding one from a plurality of speed parameters according to the obtained duty ratio; According to the selected speed parameter, the motor is controlled to produce the corresponding speed when it is actuated. 如請求項10所述之電動工具的控制方法,其中該第一控制裝置解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣,及下一個周期的一脈波的上升緣,並依二個脈波的上升緣之間的一第一時間差之倒數獲得對應的一該脈衝訊號頻率;其中該第一控制裝置解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣至下降緣之間的一第二時間差,並依該第二時間差與該第一時間差的比例獲得佔空比。The control method of an electric tool according to claim 10, wherein the first control device analyzes the rising edge of a pulse wave in one cycle of the pulse width modulation signal and the rising edge of a pulse wave in the next cycle, and A corresponding pulse signal frequency is obtained according to the reciprocal of a first time difference between the rising edges of the two pulses; wherein the first control device analyzes the rising edge of a pulse of one cycle of the pulse width modulation signal to A second time difference between the falling edges, and the duty cycle is obtained according to the ratio of the second time difference to the first time difference. 如請求項9所述之電動工具的控制方法,其中該第一控制裝置解析該脈衝寬度調變訊號其中一個周期的一脈波的上升緣,及下一個周期的一脈波的上升緣,並依二個脈波的上升緣之間的時間差之倒數獲得對應的一該脈衝訊號頻率。The control method of an electric tool according to claim 9, wherein the first control device analyzes the rising edge of a pulse wave in one cycle of the pulse width modulation signal and the rising edge of a pulse wave in the next cycle, and According to the reciprocal of the time difference between the rising edges of the two pulse waves, a corresponding pulse signal frequency is obtained.
TW109123032A 2020-07-08 2020-07-08 Electric tool and its control method TWI723912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109123032A TWI723912B (en) 2020-07-08 2020-07-08 Electric tool and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109123032A TWI723912B (en) 2020-07-08 2020-07-08 Electric tool and its control method

Publications (2)

Publication Number Publication Date
TWI723912B true TWI723912B (en) 2021-04-01
TW202203576A TW202203576A (en) 2022-01-16

Family

ID=76604641

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109123032A TWI723912B (en) 2020-07-08 2020-07-08 Electric tool and its control method

Country Status (1)

Country Link
TW (1) TWI723912B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI775482B (en) * 2021-06-10 2022-08-21 茂達電子股份有限公司 System of driving and controlling motor
TWI832658B (en) * 2023-01-05 2024-02-11 車王電子股份有限公司 Electric tools and control methods

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW502489B (en) * 2001-01-03 2002-09-11 Delta Electronics Inc Starting apparatus and method
TW513625B (en) * 2001-07-27 2002-12-11 Prolific Technology Inc Fan rotation speed control system
CN106464172A (en) * 2014-06-24 2017-02-22 松下知识产权经营株式会社 Compressor-driving device, compressor provided with same, and freezing cycle apparatus provided with compressor-driving device and with compressor
TW201918010A (en) * 2017-10-18 2019-05-01 日商日立江森自控空調有限公司 Power conversion device and refrigeration air conditioner
US10547266B2 (en) * 2016-09-02 2020-01-28 Mmt ag Mechatronic assembly controlled by a pulse-width modulation signal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW502489B (en) * 2001-01-03 2002-09-11 Delta Electronics Inc Starting apparatus and method
TW513625B (en) * 2001-07-27 2002-12-11 Prolific Technology Inc Fan rotation speed control system
CN106464172A (en) * 2014-06-24 2017-02-22 松下知识产权经营株式会社 Compressor-driving device, compressor provided with same, and freezing cycle apparatus provided with compressor-driving device and with compressor
US10547266B2 (en) * 2016-09-02 2020-01-28 Mmt ag Mechatronic assembly controlled by a pulse-width modulation signal
TW201918010A (en) * 2017-10-18 2019-05-01 日商日立江森自控空調有限公司 Power conversion device and refrigeration air conditioner

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI775482B (en) * 2021-06-10 2022-08-21 茂達電子股份有限公司 System of driving and controlling motor
TWI832658B (en) * 2023-01-05 2024-02-11 車王電子股份有限公司 Electric tools and control methods

Also Published As

Publication number Publication date
TW202203576A (en) 2022-01-16

Similar Documents

Publication Publication Date Title
TWI723912B (en) Electric tool and its control method
CN101391416B (en) Power tool
TWI676348B (en) electrical tools
JP5206084B2 (en) Electric tool
KR100220231B1 (en) An electric motor for portable machine tools
US11557991B2 (en) Control method of impact power tool
CN113949227B (en) Electric tool and control method thereof
US7741803B2 (en) Apparatus and method for driving 2-phase SRM
CN111564933B (en) Electric tool
WO2021095533A1 (en) Electric power tool, control method, coming-out detection method, and program
Syroka A controller for brushless direct current electric motors Part 1: electrical and electronic design
WO2021100368A1 (en) Impact tool, impact tool control method and program
US20140217939A1 (en) Apparatus and method of decreasing speed of sensorless brush less direct current (bldc) motor
CN111342712A (en) Electric drill with rotating speed control function
CN110571982B (en) Electric tool
US7923958B2 (en) Apparatus and method for driving 2-phase SRM motor
CN113941984B (en) Control method of impact type electric tool
CN112994540A (en) Motor control method and device, motor controller, motor and household appliance
WO2021095427A1 (en) Impact tool, and method and program for controlling impact tool
KR100335797B1 (en) Induction motor unified with inverter
CN2697932Y (en) Brush motor using induced electromotive force to adjust armature winding connection mode
CN111009990A (en) Power mechanism and handheld tool applying same
CN118694224A (en) Control method and device of electric tool and electric tool
CN116803620A (en) Electronic clutch for power tool
JP2003219674A (en) Controller of brushless motor