Abstract:
There are provided a motor driving apparatus and method. The motor driving apparatus includes: a speed detecting unit detecting a rotation speed of a motor according to an edge of a hall signal, and counting a preset clock signal while allocating a weighted value thereto according to a preset reference count value at the time of counting the clock signal based on the detected speed; a position calculating unit calculating a rotation position of the motor according to a count value of the speed detecting unit; and a driving unit driving the motor according to position information of the motor calculated by the position calculating unit.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application claims the priority of Korean Patent Application No. 10-2011-0139060 filed on Dec. 21, 2011, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference. 
       BACKGROUND OF THE INVENTION 
       [0002]    1. Field of the Invention 
         [0003]    The present invention relates to a motor driving apparatus and a method of controlling the driving of a motor by accurately detecting a rotation position of the motor. 
         [0004]    2. Description of the Related Art 
         [0005]    A brushless direct current (BLDC) motor generally refers to a DC motor changing a function of conducting current or adjusting a current direction using a non-contact position detector and a semiconductor element rather than using a mechanical contact such as a brush, a commutator, and the like, in a DC motor according to the related art. 
         [0006]    In order to drive this BLDC motor, a driving apparatus may be used. 
         [0007]      FIG. 1  is a configuration diagram of a general motor driving apparatus. 
         [0008]    Referring to  FIG. 1 , a general motor driving apparatus  10  may include a controlling unit  11  and a driving unit  12 . 
         [0009]    The controlling unit  11  may control driving of the motor, and the driving unit  12  may drive the motor by turning four field effect transistors (FETs) on or off in response to a driving signal of the controlling unit  11 . 
         [0010]      FIG. 2  is a diagram showing driving signals of the motor driving apparatus. 
         [0011]    Referring to  FIG. 2 , the driving signals transferred from the controlling unit  11  to the driving unit  12  may be divided into four kinds of signals, and be transferred in a sequence of identification numerals {circle around ( 1 )}, {circle around ( 2 )}, {circle around ( 3 )} and {circle around ( 4 )}. 
         [0012]    That is, a first PMOS FET P 1  and a second NMOS FET N 2  may be turned on by a driving signal represented by identification numeral {circle around ( 1 )}, and the first PMOS FET P 1  and the second NMOS FET N 2  may be turned off and a second PMOS FET P 2  and a first NMOS FET N 1  may be turned on by a driving signal represented by identification numeral {circle around ( 2 )}. 
         [0013]    Again, the second PMOS FET P 2  and the first NMOS FET N 1  may be turned off and the first PMOS FET P 1  and the second NMOS FET N 2  may be turned on by a driving signal represented by identification numeral {circle around ( 3 )}, and the first PMOS FET P 1  and the second NMOS FET N 2  may be turned off and the second PMOS FET P 2  and the first NMOS FET N 1  may be turned on by a driving signal represented by identification numeral {circle around ( 4 )}. 
         [0014]    As described above, the cases in which the first PMOS FET P 1  and the second NMOS FET N 2  are turned on and the second PMOS FET P 2  and the first NMOS FET N 1  are turned on are repeated, to change a direction of current flowing in the motor, whereby the motor may rotate. 
         [0015]    In this driving scheme, when the first PMOS FET P 1  or the second PMOS FET P 2  is turned on, a pulse width modulation (PWM) signal (oblique line portions of  FIG. 2 ) is generated, whereby a speed of the motor may be controlled. 
         [0016]    However, as disclosed in the Related Art Document, Korean Patent Laid-Open Publication No. 10-2005-0082607, the motor driving apparatus according to the related art may not accurately detect a rotation position of the motor, such that it maybe difficult to accurately control the motor. Further, in order to accurately control the rotation position of the motor, a number of hall sensors are required, such that manufacturing costs are increased. 
       SUMMARY OF THE INVENTION 
       [0017]    An aspect of the present invention provides a motor driving apparatus capable of driving a motor by allocating a weighted value to a count value according to a current speed of the motor according to a preset reference count value to accurately detect a current position of the motor. 
         [0018]    According to an aspect of the present invention, there is provided a motor driving apparatus including: a speed detecting unit detecting a rotation speed of a motor according to an edge of a hall signal, and counting a preset clock signal while allocating a weighted value thereto according to a preset reference count value at the time of counting the clock signal based on the detected speed; a position calculating unit calculating a rotation position of the motor according to a count value of the speed detecting unit; and a driving unit driving the motor according to position information of the motor calculated by the position calculating unit. 
         [0019]    The speed detecting unit may include: an edge detector detecting an edge of the hall sensor; a revolutions per minute (RPM) detector detecting the rotation speed of the motor according to a value detected by the edge detector; a counter allocating the weighted value to a count value of the clock signal according to the rotation speed detected by the RPM detector based on the reference count value; and a clock signal provider providing the clock signal. 
         [0020]    The counter may count the clock signal at a preset motor speed to set the reference count value. 
         [0021]    According to another aspect of the present invention, there is provided a motor driving method including: detecting a rotation speed of a motor according to an edge of a hall signal; counting a clock signal while setting a weighted value for a preset clock signal based on the detected speed; calculating a rotation position of the motor according to a count value; and driving the motor according to calculated motor position information. 
         [0022]    The counting may include allocating weighted value to the counted clock signal according to the detected rotation speed based on a preset reference count value. 
         [0023]    The counting may include counting the clock signal at a preset motor speed to set the reference count value. 
         [0024]    The counting may include confirming a previous position of the motor and counting a clock signal at a motor speed at the previous position to set the reference count value. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0025]    The above and other aspects, features and other advantages of the present invention will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which: 
           [0026]      FIG. 1  is a block diagram of a general motor driving apparatus; 
           [0027]      FIG. 2  is a graph showing a motor driving signal referred to in  FIG. 1 ; 
           [0028]      FIG. 3  is a graph showing a relationship between a motor speed and a clock signal; 
           [0029]      FIG. 4  is a schematic block diagram of a motor driving apparatus according to an embodiment of the present invention; 
           [0030]      FIG. 5  is a graph showing a clock signal in a turn-on period according to an embodiment of the present invention; 
           [0031]      FIG. 6  is a flow chart of a motor driving method according to an embodiment of the present invention; 
           [0032]      FIG. 7  is a flowchart of a motor driving method according to another embodiment of the present invention; 
           [0033]      FIG. 8  is a flowchart of a motor driving method according to another embodiment of the present invention; and 
           [0034]      FIG. 9  is a flowchart of a motor driving method according to another embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0035]    Hereinafter, embodiments will be described in detail with reference to the accompanying drawings so that they can be easily practiced by those skilled in the art to which the present invention pertains. 
         [0036]    However, in describing embodiments of the present invention, detailed descriptions of well-known functions or constructions will be omitted so as not to obscure the gist of the present invention. 
         [0037]    In addition, like or similar reference numerals denote parts performing similar functions and actions throughout the drawings. 
         [0038]    A case in which anyone part is connected with the other part includes a case in which the parts are directly connected with each other and a case in which the parts are indirectly connected with each other with other elements interposed therebetween. 
         [0039]    In addition, unless explicitly described otherwise, “comprising” any components will be understood to imply the inclusion of other components but not the exclusion of any other components. 
         [0040]    Embodiments of the present invention will now be described in detail with reference to the accompanying drawings. 
         [0041]      FIG. 3  is a graph showing a relationship between a motor speed and a clock signal. 
         [0042]    It may be appreciated from  FIG. 3  that the motor speed and the clock signal are in inverse proportion to each other. 
         [0043]    That is, as shown in  FIG. 2 , a length of a turn-on period of a driving signal for driving a motor may be changed according to a rotation speed of the motor. That is, when a revolutions per minute (RPM), a speed of the motor, increases, the length of the turn-on period may be relatively reduced. Here, since the length of the turn-on period is based on how many clock signals are present in the period, as the speed (RPM) of the motor increases, the number of clock signals in the turn-on period may be reduced, as shown in  FIG. 3 . 
         [0044]    For example, when one rotation of the motor is regarded as 100%, in the case of attempting to turn a driving field effect transistor (FET) on at a position of 10% thereof, it is required to recognize the 10% position of the motor. However, an accurate rotation position of the motor may not be recognized only with simple count of the clock signal. 
         [0045]    To this end, a motor driving apparatus according to an embodiment of the present invention is provided below. 
         [0046]      FIG. 4  is a schematic block diagram of a motor driving apparatus according to an embodiment of the present invention. 
         [0047]    Referring to  FIG. 4 , the motor driving apparatus  100  according to the embodiment of the present invention may include a speed detecting unit  120 , a position calculating unit  130 , and a driving unit  140 . 
         [0048]    The speed detecting unit  120  may receive a hall signal from a hall sensor  110 , detect a speed of the motor by detecting an edge of the hall signal, and allocate a weighted value based a preset reference count value to a count value of a clock signal at this time. 
         [0049]    To this end, the speed detecting unit  120  may include an edge detector  121 , an RPM detector  122 , a counter  123 , and a clock signal provider  124 . 
         [0050]    The edge detector  121  may detect an edge of the hall signal from the hall sensor  110 . 
         [0051]    The RPM detector  122  may detect the speed of the motor according to the edge of the hall signal detected from the edge detector  121 . 
         [0052]    The counter  123  may count the pulse number of the clock signal in the turn-on period of the driving signal for driving the motor according to the RPM of the motor, which is the speed of the motor detected by the RPM detector  122 .  FIG. 5  is a graph showing a clock signal in a turn-on period according to an embodiment of the present invention. Referring to  FIG. 5 , the pulse number of the clock signal in the turn-on period of the driving signal may be changed according to the speed. 
         [0053]    Here, the counter  123  may allocate a weighted value to a current count value based on a preset reference count value. The reference count value may be a count value of the pulse number of the clock signal in the RPM of the motor detected previously or a count value of the pulse number of the clock signal when the RPM of the motor is set to ‘1’. 
         [0054]    For example, when a time of a turn-on period of the driving signal is 7000 μs in a case in which the speed of the motor detected previously is 2000 RPM, and when the currently detected speed of the motor is 2500 RPM, a time of a turn-on period of the driving signal maybe 6000 μs. At this time, when a frequency of the clock signal is 1 MHz, the pulse number of clock signal in 7500 μs maybe 7500 and the pulse number of clock signal in 6000 μs maybe 6000. With regard to 10% of respective positions of the motor, the pulse number of the clock signal may each be 750 and 600. 
         [0055]    In a case in which the RPM of the motor increases from 2000 to 2500, that is, by 25%, since the pulse number of clock signal decreases from 750 to 600 (in the case of attempting to detect a position of 10% when the entire rotation of the motor is considered as 100%) , when the RPM of the motor is 2500, a weighted value of 1.25 may be allocated to one pulse of the clock signal. 
         [0056]    Therefore, when the pulse number of clock signal is 6000, the pulse number of clock signal, 7500, according to a preset weighted value may be regarded as a 100% position thereof. Accordingly, for example, the position calculating unit  130  may calculate a position when the pulse number is 600 in order to calculate a 10% position thereof, whereby an accurate 10% position may be recognized. The driving unit  140  may provide a corresponding driving signal to the motor according to the position calculated by the position calculating unit  130 , thereby driving the motor. 
         [0057]    As another example, when a count value in the case in which the RPM is ‘1’ is set to a reference count value, the pulse number when the clock signal has the frequency of 1 MHz may be 15000000. A case in which the pulse number is 15000000 may be regarded as a 100% position. Therefore, in a case in which the detected RPM of the motor is 1000 RPM, a weighted value may be set to 1000 times, such that a case in which the counted pulse number is 15000 may be regarded as a 100% position. 
         [0058]    A method of setting a weighted value as described above and a method of calculating a motor position through the setting of the weighted value may be various, which will be described with reference to the accompanying drawings. 
         [0059]      FIG. 6  is a flow chart of a motor driving method according to an embodiment of the present invention. 
         [0060]    Referring to  FIG. 6 , in the motor driving method according to the embodiment of the present invention, a hall edge may be detected (S 10 ), a counter may be initialized (S 20 ), and a speed of a motor may be detected (S 30 ). Then, a weighted value may be calculated (S 40 ), and the weighted value may be allocated to a count value (S 50 ), and a current position may be calculated (S 60 ). 
         [0061]      FIG. 7  is a flow chart showing a motor driving method according to another embodiment of the present invention. 
         [0062]    Referring to  FIG. 7 , in the motor driving method according to another embodiment of the present invention, a hall edge may be first detected (S 10 - 1 ), a current position of a motor may be confirmed in order to confirm whether a polarity of a hall sensor is changed (S 20 - 1 ), a weighted value may be set according to the confirmed current position of the motor (S 20 - 2 ), and a counter may be initialized (S 20 - 3 ), and a current speed of the motor may be detected (S 30 - 1 ). Then, a weighted value may be again calculated (S 40 - 1 ), and the weighted value may be allocated to the count value (S 50 - 1 ), and a current position may be calculated (S 60 - 1 ). 
         [0063]      FIG. 8  is a flow chart of a motor driving method according to another embodiment of the present invention. 
         [0064]    In the motor driving method according to another embodiment of the present invention, a hall edge may be first detected (S 10 - 2 ), a current speed of a motor may be detected (S 20 - 4 ), a weighted value may be set according to the detected speed of the motor (S 20 - 5 ), and a counter may be initialized (S 20 - 6 ), and a current position of the motor may be calculated (S 60 - 2 ). In a case in which the hall edge is not detected, a preset weighted value maybe allocated to a current count value (S 50 - 2 ) to calculate a current position of the motor (S 60 - 2 ). 
         [0065]      FIG. 9  is a flow chart showing a motor driving method according to another embodiment of the present invention. 
         [0066]    In the motor driving method according to another embodiment of the present invention, a hall edge may be first detected (S 10 - 3 ), a current position of a motor may be confirmed in order to confirm whether a polarity of a hall sensor is changed (S 20 - 7 ), a weighted value maybe set according to the confirmed current position of the motor (S 20 - 8 ), and a current speed of the motor may be detected (S 20 - 9 ). Then, a weighted value may be again calculated (S 20 - 10 ), and the count value may be initialized (S 20 - 11 ), and a current position may be calculated (S 60 - 3 ). In a case in which the hall edge is not detected, a preset weighted value may be allocated to a current count value (S 50 - 3 ) to calculate a current position of the motor (S 60 - 3 ). 
         [0067]    As set forth above, according to the embodiments of the present invention, a weighted value may be allocated to a count value based on the current speed of the motor according to a preset reference count value to accurately detect the current position of the motor, whereby the motor may be driven. 
         [0068]    While the present invention has been shown and described in connection with the embodiments, it will be apparent to those skilled in the art that modifications and variations can be made without departing from the spirit and scope of the invention as defined by the appended claims.