The present invention relates to motor driving control.
With an electrically assisted bicycle for example, a motor is driven in accordance with a pedal pedaling force and an assist ratio that has been set beforehand. In a simple example, there are cases where assist torque, obtained by multiplying a pedal input torque corresponding to pedal pedaling force by an assist ratio according to pedal pedaling force. However, control is also performed to gradually reduce the assist ratio in accordance with vehicle speed when a predetermined vehicle speed or higher is reached, in order to prevent the assist from suddenly cutting out in cases where using the assist for high-speed riding is legally forbidden.
Note that Japanese Patent No. 3955152 discloses a technology in which riding and driving can be performed with an optimal assist ratio constantly being decided, in speedy following response to change in riding environment and change in detected manpower driving force, whereby natural and smooth riding can be realized without giving the operator an unnatural sensation regarding the comfort of the ride of the vehicle. Specifically, a control device of a vehicle with an assisting driving device is a control device of a vehicle with an assisting driving device which provides a vehicle driving unit for performing driving with manpower driving force which pulsates in accordance with rotational operation of a pedal crank and assisting power from an assisting force driving unit, the control device including a detecting unit for detecting manpower driving force; a calculating unit for calculating the amount of work due to the manpower driving force during a period where the detected manpower driving force is at or above a threshold value for restricting assisting force; a correcting unit for obtaining assisting force by, after a point where the manpower driving force is at or below the threshold value, correcting the output current corresponding to the detected manpower driving force, so as to obtain assisting force; and a control unit for effecting control so as to output the corrected assisting force. With such control, there is a problem in that restriction is applied even at the point of starting to pedal, when great torque is desired.
Further, Japanese Unexamined Patent Application Publication 8-295285 describes technology for improving drivability when climbing hills and the like. Specifically, in a case of configuring a driving device for a power assisted vehicle including a manpower driving mechanism for driving a wheel by pedal pedaling force, and an assisting driving mechanism which provides assisting driving force corresponding to the magnitude of the pedaling force to the wheel, included are a pedaling cycle detecting unit for detecting a cycle tn (t1 through t5) of the pedal pedaling force, and a delay time control unit which makes a provided delay time of the assisting driving force (tn*constant C) to be proportionate to the pedaling force cycle tn. According to this technology, providing of the assisting driving force is delayed such that the time of the maximum assisting driving force approximates the minimum pedaling force, so a uniform and constant combined force can be supplied wherein the valleys in pedaling force have been supplemented by assisting driving force. Accordingly, fluctuations in the combined force is suppressed, the loss in speed due to values in combined force when climbing hills and so forth is reduced, and stable riding can be achieved. However, the assisting driving force is added in a delayed manner, and accordingly cannot handle starting from a stopped state. In the same way, cases other than cases where great assistance is necessary, such as when climbing hills and so forth, cannot be suitably handled.
Further, Japanese Patent No. 3301811 discloses technology for increasing the amount of electricity which the battery can discharge in a case of controlling motor output in accordance with pedaling force, so as to extend the battery life. Specifically, a bicycle with an electric motor, in which output of an electric driving system is controlled in accordance with change in human pedaling force, includes a pedaling force detecting unit for detecting pedaling force, a motor output calculating unit, configured of a CPU, for deciding constant electric motor output over a next cycle, based on measured values of pedaling force within one cycle obtained each predetermined time dt, and an output control unit configured to generate the obtained motor output. However, in the case of performing processing every predetermined time, suitable assistance which tracks fluctuating medal pedaling force cycles is not necessarily performable.
Accordingly, it is an object of the present invention to provide a technology enabling sufficient assistance when starting pedaling an electrically assisted bicycle from a stop.
It is another object of the present invention to provide a technology enabling suitable target torque calculation tracking torque requests with varying cycles.
A motor driving control apparatus according to a first mode of the present invention includes (A) a smoothing processing unit that execute smoothing processing using values of pedal input torque at plural points to calculate a first smoothed torque value; (B) an insufficiency output unit that obtains a rate of points at which input of the pedal input torque is insufficient among the plural of points; (C) an assist torque calculating unit that performs calculation processing of mixing the first smoothed torque value calculated by the smoothing processing unit and the pedal input torque in accordance with output of the insufficient output unit to calculate assist torque; and (D) a driving processing unit that performs processing to drive a motor using the assist torque calculated by the assist torque calculating unit.
The rate is a high value at the time of starting out the pedaling or the like, and consequently a great rate of the pedal input torque is added to the first smoothed torque value, so sufficient assistance is enabled at the time of starting out the pedaling or the like.
The aforementioned smoothing processing unit may include a filter that calculates a moving average or weighted moving average of the values of the pedal input torque at the plural points within a variable period corresponding to one cycle (including, in addition to one cycle, a case of approximately one cycle) of the pedal input torque whose cycle is variable as the first smoothed torque value. Thus, the smoothed torque value can be calculated suitably tracking the pedal input torque of the variable cycle.
Further, the filter may be a FIR (Finite Impulse Response) filter. In this case, values of tap coefficients of the FIR filter, which correspond to both edge portions of the variable period, may be set so as to smoothly change to values of tap coefficients, which correspond to other portions of the variable period. Even in the event that synchronization with the pedal input torque is somewhat off, a suitable first smoothed torque value can be calculated.
Further, the aforementioned assist torque calculating unit may include a torque adding unit that performs addition of the first smoothed torque value, which is an addition result of the first smoothing torque value and a value calculated by multiplying the pedal input torque by the rate outputted by the insufficiency output unit, and the value of the pedal input torque, with weighting with a positive or negative arbitrary smoothing coefficient value. By introducing such a torque adding unit, it becomes possible to calculate suitable assist torque values according to various situations.
Also, the aforementioned assist torque calculating unit may include a torque adding unit for calculating an inverse ripple torque by subtracting a value of the pedal input torque from a second smoothed torque value, which is an addition result of the first smoothed torque value and a value calculated by multiplying the pedal input torque by the rate outputted by the insufficiency output unit, multiplies the inverse ripple torque by a positive or negative arbitrary smoothing coefficient value, and adds a result of the multiplying and the second smoothed torque value. By also employing such an implementation method, it is possible to calculate the suitable assist torque value according to various situations.
The smoothing coefficient value may be set so as to increase as an assist ratio being set rises.
A motor driving control device according to a second mode of the present invention includes (A) a smoothing processing unit that calculates, for a period corresponding to a cycle of torque request whose cycle is variable, a moving average or weighted moving average of the torque request; (B) a calculating unit that performs calculation processing using a processing result of the smoothing processing unit and the torque request to calculate a target torque corresponding to the torque request, and (C) a driving processing unit that performs processing to drive a motor using the target torque calculated by the calculating unit.
By suitably smoothing the torque request while following phase transition of the torque request whose cycle is variable, and further calculating the target torque using the torque request, it becomes possible to perform suitable motor driving as to the torque request. Note that the smoothing processing unit may change the sampling timing of the torque request in accordance with pulse signals that are generated in accordance with rotations of the motor.
Note that the aforementioned smoothing processing unit may be a FIR filter. In this case, values of tap coefficients for the FIR filter, which correspond to both edge portions of the variable period, may be set so as to smoothly change to values of tap coefficients, which correspond to other portions of the variable period. Thus, it becomes possible to perform suitable smoothing even in a case where phase transition of the torque request in the variable cycle cannot be completely tracked.
Further, the smoothing processing unit may be a FIR filter. In this case, the aforementioned calculating unit may include an insufficiency calculating unit that calculates a rate of the torque requests whose value inputted to the FIR filter is zero; and a smoothed torque calculating unit that mixes an output of the FIR filter and the value of the torque request, in accordance with the rate to calculate a smoothed torque value. Thus, even in a state where the torque request is not sufficiently input yet, such as at the time of starting out the pedaling, sufficiently great target torque is outputted in the event that the torque request value is great.
Also, the aforementioned calculating unit may include a torque adding unit that performs addition of a processing result of the smoothing processing unit and the value of the torque request with weighting a positive or negative arbitrary smoothing coefficient value. Thus, it becomes possible to set suitable target torque in accordance with various situations.
Also, the aforementioned calculating unit may include a torque adding unit that calculates an inverse ripple torque by subtracting the value of the torque request from a processing result of the smoothing processing unit, multiplies the inverse ripple torque by a positive or negative arbitrary smoothing coefficient value, and adds a processing result of the multiplying and the smoothed torque value or a value obtained by multiplying the smoothed torque value by a predetermined value. With such an implementation method, it is possible to set suitable assist torque values according to various situations.
Further, the motor driving control apparatus according to the second mode may further include a detector that detects a lower side envelope of a vehicle speed which changes over time; and a determining unit for determines the coefficient value in accordance with the value of the lower side envelope detected by the detector. Because it is possible to grasp the driving state by the level of the lower side envelope of the vehicle speed, it becomes possible to calculate suitable target torque value according to the various situations, when determining a coefficient value according to the driving state.
Further, the motor driving control apparatus according to the second mode may further include a detector that detects a lower side envelope and an upper side envelope of a vehicle speed which changes over time; and a determining unit that determines the aforementioned coefficient value in accordance with value of the lower side envelope and the upper side envelope, which are detected by the detector. When not only the lower side envelope but also the upper side envelope are used, it is possible to grasp further suitable situations, and also calculate suitable target torque accordingly.
Also, the motor driving control apparatus according to the second mode may include a detector that detects a lower side envelope of a vehicle speed which changes over time; and a determining unit that determines at least one of the smoothing coefficient value and the predetermined value, in accordance with the value of the lower side envelope detected by the detector.
Further, the motor driving control apparatus according to the second mode may include a detector that detects a lower side envelope and an upper side envelope of a vehicle speed which changes over time; and a determining unit that determines at least one of the smoothing coefficient value and the predetermined value in accordance with value of the lower side envelope and upper side envelope, which are detected by the detector.
Further, a program to execute the previously described processing using a microprocessor may be created, and the program is stored on a computer-readable recording medium or recording device such as, for example, a flexible disk, an optical disc such as a CD-ROM, a magneto-optical disc, semiconductor memory (ROM for example), or a hard disk. Further, the data during the processing may be temporarily held in a storage device such as RAM (Random Access Memory) or the like.
According to the present invention, sufficient assistance can be realized at the time of starting out and so forth with an electrically assisted bicycle.
Also, according to another aspect of the present invention, suitable target torque can be calculated, tracking torque request of which the cycle is variable.
a) through (l) are waveform diagrams describing basic operation of a motor drive;
The secondary battery 101 may be, for example, a lithium ion secondary battery with a maximum supply voltage of 24 V (when fully charged), but other types of batteries such as a lithium ion polymer secondary battery, or a nickel hydride chargeable battery may be used.
The torque sensor 103 is provisioned on the wheel which is installed on the crankshaft, detects pedal force from the rider, and this detection result is output to the motor drive control mechanism 102.
The brake sensor 104 is configured from a magnet and a common lead switch. The magnet is fixed to a brake wire connected to a brake lever in housing to which the brake lever is fixed and the brake wire transmits. The brake lever changes the lead switch to an on state when gripped by hand. Also, the lead switch is fixed to the housing. A conduction signal from this lead switch is sent to the motor drive control mechanism 102.
The motor 105 is, for example, a common three-phase direct current brushless motor, and mounted on the front wheel of the electrically assisted bicycle 1. The motor 105 rotates the front wheel, and also a rotor is connected to the front so as to rotate corresponding to the rotation of the front wheel. Further, the motor 105 is equipped with a rotation sensor such as a hall effect sensor to output rotation information of the rotor (i.e., a hall signal) to the motor drive control mechanism 102.
The operation panel 106 receives instruction input related to the presence of assist, and outputs the applicable instruction input to the motor drive control mechanism 102. Further, the operation panel 106 may receive assist ratio setting input from the user, and output the applicable setting input to the motor drive control mechanism 102.
Also, the control mechanism 1020 includes a calculating unit 1021, a temperature input unit 1022, a current detection unit 1023, a vehicle speed input unit 1024, a variable delay circuit 1025, a motor drive timing generator 1026, a torque input unit 1027, a brake input unit 1028, and an AD input unit 1029.
The calculating unit 1021 performs calculations described later using input from the operation panel 106 (i.e., on/off or operation mode such as an assist ratio), input from the temperature input unit 1022, input from the current detection unit 1023, input from the vehicle speed input unit 1024, input from the torque input unit 1027, input from the brake input unit 1028, and input from the AD input unit 1029, and performs an output to the motor drive timing generator unit 1026 and the variable delay circuit 1025. Further, the calculating unit 1021 includes a memory 10211, and the memory 10211 stores various data used in calculations, data currently in processing, and other data. Further, the calculating unit 1021 may be realized by executing a program with a processor, and in this case the applicable program may be stored in the memory 10211.
The temperature input unit 1022 digitizes the input from the thermistor 108, and outputs this to the calculating unit 1021. The current detection unit 1023 digitizes voltage values corresponding to current via a detection resistor 107 that detects current flowing to the FETs in the FET bridge 1030, and outputs this to the calculating unit 1021. The vehicle input unit 1024 calculates the current speed from the hall signal output by the motor 105, and outputs this to the calculating unit 1021. The torque input unit 1027 digitizes the signal equivalent to the pedal effort from the torque sensor 103, and outputs this to the calculating unit 1021. The brake input unit 1028 digitizes the signal equivalent to the brake input from the brake sensor 104, and outputs this to the calculating unit 1021. The AD (Analog-Digital) input unit 1029 digitizes the output voltage from the secondary battery 101, and outputs this to the calculating unit 1021. Also, the memory 10211 may be provisioned separately from the calculating unit 1021.
The calculating unit 1021 outputs an advance value, which is the calculating result, to the variable delay circuit 1025. The variable delay circuit 1025 adjusts the phase of the hall signal based on the advance value received from the calculating unit 1021, and outputs this to the motor drive timing generator unit 1026. The calculating unit 1021 outputs a PWM code equivalent to the PWM duty cycle, for example, to the motor drive timing generator unit 1026. The motor drive timing generator unit 1026 generates switching signals and outputs these to each FET included in the FET bridge 1030, based on the hall signal after adjustment from the variable delay circuit 1025 and the PWM code from the calculating unit 1021.
The basic operation of the motor drive configured as illustrated in
Further, a hall signal cycle 1, as a 360 degree electrical angle, is divided into 6 phases.
Also, as illustrated in
In this way, the U phase FET (Suh and Sul) are a first phase and a second phase performed by PWM switching, and the U phase of the low side FET (Sul) is turned on by a fourth phase and a fifth phase. Also, the V phase FET (Svh and Svl) are a third phase and a fourth phase performed by PWM switching, and the V phase of the low side FET (Svl) is turned on by a sixth phase and the first phase. Also, the W phase FET (Swh and Swl) are the fifth phase and the sixth phase performed by PWM switching, and the W phase of the low side FET (Swl) is turned on by the second phase and the third phase.
By outputting such signals and controlling the duty cycle to a preferable state, the motor 105 may be driven at the desired torque.
Next,
The vehicle speed value from the vehicle speed input unit 1024 and the pedal torque value from the torque input unit 1027 are input into the drive torque target calculating unit 1203, where the assist torque value is calculated. The calculation content of the drive torque target calculating unit 1203 will be described later in detail.
Also, the regenerative brake target torque calculating unit 1201 calculates the regenerative brake target torque value according to a preset curve, for example, in accordance with the vehicle speed value from the vehicle speed input unit 1024. This curve is a curve representing a relation a value which is of inverse polarity and is an absolute value less than or half of the first value (less than or half could also mean, for example, a few percentage points over half the value). This enables the performance of a reasonably efficient regeneration at any speed. This processing is not the primary purport of the present embodiment, so further description will be omitted.
According to the present embodiment, when an input signal signifying that the brake is present is input from the brake input unit 1028, the regeneration enabling unit 1202 outputs the regeneration target torque value from the regenerative brake target torque calculating unit 1201 to the adding unit 1206. In any other case, a zero is output. In contrast, when an input signal signifying that the brake is not present is input from the brake input unit 1208, the assist enabling unit 1204 outputs the assist torque value from the drive torque target calculating unit 1203. In any other case, a zero is output.
The adding unit 1206 inverses the polarity of and outputs the regeneration target torque value from the regeneration enabling unit 1202, or outputs the polarity of the assist torque value from the assist enabling unit 1204 as it is. The description below will refer to both the assist torque value and the regeneration target torque value as the target torque value for simplification of the description.
The first duty cycle conversion unit 1211 calculates a torque duty code by multiplying the output from the adding unit 1206 with the conversion coefficient dt, and outputs this to the torque slew rate restricting unit 1212. The torque slew rate restricting unit 1212 executes a well-known slew rate restriction processing on the output from the first duty cycle conversion unit 1211, and outputs the processing result to the adding unit 1216.
Also, the second duty cycle conversion unit 1213 calculates the vehicle speed duty code by multiplying the vehicle speed value with the adjusted conversion coefficient ds, and outputs this to the speed slew rate restricting unit 1215. The speed slew rate restricting unit 1215 executes a well-known slew rate control processing on the output from the second duty cycle conversion unit 1213, and outputs the processing result to the adding unit 1216.
The adding unit 1216 adds the torque duty code from the torque slew rate restricting unit 1212 and the vehicle speed duty code from the speed slew rate restricting unit 1215, calculates the duty code, and outputs this to the PWM code generator unit 1217. The PWM code generator 1217 generates the PWM code by multiplying the duty code with the value of the battery voltage from the AD input unit 1029 divided by the reference voltage (for example, 24 V). The PWM code is output to the motor drive timing generator unit 1026.
The drive torque target calculating unit 1203 according to the present embodiment has a configuration such as illustrated in
The zero detecting unit 3001 outputs a detection signal, which goes on when zero appears in the pedal input torque value from the torque input unit 1027, to the insufficiency output unit 3003, and outputs a detection signal, which goes off when other than zero appears in the pedal input torque value from the torque input unit 1027, to the insufficiency output unit 3003. Also, the stop detecting unit 3002 determines whether or not the electrically assisted bicycle 1 has stopped, based on the vehicle speed value from the vehicle speed input unit 1024, and in the event that determination is made that the electrically assisted bicycle 1 has stopped, outputs a stop signal to the insufficiency output unit 3003.
The insufficiency output unit 3003 has a counter, and upon receiving a detection signal which is on, from the zero detecting unit 3001, decrements the count value of the counter by 1. Further, upon receiving a stop signal from the stop detecting unit 3002, the insufficiency output unit 3003 loads “32” to the counter. The counter value is then divided by “32” to calculate the loss rate, which is output to the initial calibration unit 3004. Note that “32” is but an example of the number of samples for one cycle of pedal input torque (equivalent to half a turn of the pedals), and may be another value instead.
The initial calibration unit 3004 calculates an initial calibration torque value by multiplying the pedal input torque value by the loss rate from the insufficiency output unit 3003, and outputs this to the adding unit 3006.
Further, the wheel-rotation-linked LPF unit 3005 performs smoothing processing as to pedal input torque t0. While there are various ways of performing smoothing processing, moving average or weighted moving average of medal input torque in a variable cycle equivalent to one cycle of pedal input torque of a variable cycle. In the event that pedal input torque such as illustrated by curve a in
The adding unit 3006 adds an initial calibration value t2 from the initial calibration unit 3004 and a smoothing value t1 from the wheel-rotation-linked LPF unit 3005, and outputs a corrected smoothing value t3. Also, the adding unit 3007 performs calculation to subtract the pedal input torque t0 from the smoothing value t3, thereby calculating an inverse ripple torque value t4, which is output to the inverse ripple torque processing unit 3008. The inverse ripple torque processing unit 3008 multiplies a smoothing rate α1 output by the smoothing rate determining unit 3014 by the inverse ripple torque value t4, and calculates an adjusted inverse ripple torque value t5. The smoothing rate α1 may be set to either a positive or negative value.
On the other hand, the assist ratio upper limit derating unit 3012 performs processing to restrict the assist ratio in accordance with the vehicle speed value. For example, (24 km/h−vehicle speed value)/7 is calculated. Further, the post-limitation assist ratio output unit 3013 compares the output value from the assist ratio upper limit derating unit 3012, and assist ratio (e.g., a value from 0 to 2) that is either present or set from the operation panel 106 or the like, and outputs the smaller value.
The smoothed torque processing unit 3009 multiples the corrected smoothing value t3 from the adding unit 3006 by an output value α2 from the post-limitation assist ratio output unit 3013, and calculates an adjusted smoothing value t6.
The adding unit 3010 adds the adjusted inverse ripple torque value t5 from the inverse ripple torque processing unit 3008 and the adjusted smoothing value t6 from the smoothed torque processing unit 3009, and outputs to the shift processing unit 3011. The shift processing unit 3011 divides the output t7 of the adding unit 3010 with a preset gear ratio, thereby calculating the assist torque value. In the event that the current gear ratio can be obtained from sensors or the like, that value may be used.
To summarize the above-described is as follows.
corrected smoothing value t3=smoothing value t1+initial calibration value t2
inverse ripple torque value t4=corrected smoothing value t3−pedal input torque t0
adjusted inverse ripple torque value t5=inverse ripple torque value t4*α1
adjusted smoothing value t6=corrected smoothing value t3*α2
t
7
=t
5
+t
6
Also, calculating at the inverse ripple torque processing unit 3008 and adding unit 3010 will be described with reference to
The average assist power by the motor 105 is proportionate to the average driving torque regardless of torque rippling while traveling at the same speed, i.e., is proportionate to the average motor driving current. However, the power consumption is proportionate to the effective value of the current, and in the event that there is rippling, i.e., AC component, current equivalent to that amount is consumed by the motor coil resistance and loss increases, but current equivalent to the rippling is cancelled out and does not contribute to mechanical output as assist power output. Accordingly, the average efficiency of the motor is the highest when driven so that there is not ripple torque and DC torque is output on the average, so driving the motor at an assist torque value such as with curve d1 is efficient.
On the other hand, if we say that smoothing rate α1=−1, this means that the inverse ripple torque value t4 is to be subtracted from the adjusted smoothing value t6, so as indicated by curve d3, an assist torque value similar to the original pedal input torque t0 is obtained. Further, if we say that smoothing rate α1=+1, this means that the inverse ripple torque value t4 is to be added to the adjusted smoothing value t6, so a curve d2 is obtained where inverse polarity rippling to the pedal input torque t0 is added to the adjusted smoothing value t6 while the initial torque value is still great.
Thus, appropriately setting the smoothing rate α1 allows various assist torque values to be output.
Note that the above-described calculates are but exemplary, and that results similar to those described above can be obtained by providing a torque mixing unit which performs weighting addition of the pedal input torque and corrected smoothing value by optional coefficients (positive or negative).
For example, if a smoothed assist torque value such as with curve d1 in
On the other hand, when climbing hills, an assist torque value such as illustrated in
In this way, when climbing hills, in the event that there is ripples in driving torque in the total of pedaling force and assist torque, backward force of gravity attempting to pull the bicycle back down the hill is added thereto, so speed rippling occurs in addition to torque rippling. Accordingly, in the event there is torque ripping, the minimum speed is slower even with the same driving being performed on the average, as compared with a case where there is no rippling. A lower minimum speed means that the handlebar stability will drop, the pedals stay around the bottom dead center longer, and since the bicycle is very hard to pedal, the rider tires. Accordingly, an assist torque value undulating such as with curve g2 in
Next, the details of the wheel-rotation-linked LPF unit 3005 will be described with reference to
The counter 3031 starts counting a clock CLK from the leading edge of a hall signal from the motor 105 and counts the clock until the next leading edge, and outputs the count value to the register 3032. The register 3032 also hold the count value which the counter 3031 output the predicting time, and outputs the predicting count value to the pulse ratio calculator 3033 at the leading edge of the hall signal for example, and saves the output value from the counter 3031.
With the present embodiment, 64 pulses are generated for two cycles of pedal input torque, and 32 pulses for one cycle. On the other hand, the revolutions of the wheel is pedal revolutions*gear ratio g, and further, the motor makes 20 revolutions with one rotation of the wheel. One rotation of the motor means four pulses (hall pulses) for the hall signals, which means one revolution of the pedal gives g*20*4=80 g hall pulses. Accordingly, the pedal pulse frequency to be generated is a 64/80 g hall pulse frequency. Also, the pedal pulse frequency is a 64/80 g hall pulse frequency. The hall pulse cycle is counted at the counter 3031, so the pedal pulse cycle is obtained by the pulse ratio calculator 3033 multiplying the count value by 80 g/64. Note that in the event that the current gear ratio can be obtained by sensors or the like, that value may be used.
AS described above, the pulse ratio calculator 3033 multiplies the count value by 80 g/64, and the smallest determination unit 3036 compares the output from the pulse ratio calculator 3033 with the longest shift period permitted for the FIR filter 3035 that has been set beforehand, and outputs the smaller to the down-counter 3034. The down-counter 3034 then decrements the pedal-pulse-equivalent-cycle output from the pulse ratio calculator 3033 in clocks. Upon decrementing the pedal-pulse-equivalent-cycle the down-counter 3034 outputs the carry to the FIR filter 3035 as a pedal-equivalent-pulse. Also, the carry output from the down-counter 3034 is loaded and input to the down-counter 3034, so the pedal-pulse-equivalent-cycle which the pulse ratio calculator 3033 has newly output is acquired and decrementing is started.
Note that the longest shift period permitted for the FIR filter 3035, that is input to the smallest determination unit 3036, is set as a pedal-pulse-equivalent-cycle which is markedly slower than a normal driving speed, such as equivalent to 1 km per hour, for example. When driving at a faster speed that this in a normal situation the smallest determination unit 3036 passes through the output from the pulse ratio calculator 3033 without change. However, in a case of low speed of 1 km per hour or slower, a pedal-pulse-equivalent-cycle equivalent to the 1 km per hour is selectively output, and pedal-equivalent-pulses of 1 km per hour or faster are constantly output from the down-counter 3034. This prevents cases of the FIR filter 3035 holding or abnormally great delay being generated particularly when stopped or near to stopped.
Repeating such operations results in 32 pulses at one cycle of the pedal being input in accordance with rotations of the wheel, i.e., of the motor 105, as the shift clock of the FIR filter 3035.
The shift register 30351 right-shifts the value of each tap for each pedal-equivalent-pulse, and also outputs the value of each tap to the multiplying unit 30352, where the multiplying unit 30352 multiples by a preset tap coefficient and outputs to the adding unit 30353. The adding unit 30353 adds all values of the multiplying unit 30352, and outputs to the multiplying unit 30354. The multiplying unit 30354 multiples the addition results by 1/32, thereby calculating a moving average. That is to say, the moving average of one cycle worth of pedal input torque can be calculated following phase transition of the pedal input torque.
While the basic operations are the same as with that illustrated in
Thus, weighted moving average for one cycle worth of pedal input torque can be calculated following the phase transition of the pedal input torque.
Note that similar functions may be realized with another filter such as an IIR (Infinite impulse response) filter or the like, instead of a FIR filter.
Further, the smoothing rate determining unit 3014 may set the above-described smoothing rate, in accordance with the assist ratio set from the operation panel 106, for example. As described with reference to
On the other hand, with the example in
Note that here, there may be cases of using the lower side envelope detecting unit 1222 alone, or of using the upper side envelope detecting unit 1221 and the lower side envelope detecting unit 1222.
Next, processing according to the configuration illustrated in
For example when the electrically assisted bicycle 1 is driving on flat terrain, the vehicle speed is fast, and the ripples are small curves, as indicated by curve s1. On the other hand, when climbing, the vehicle speed is lower than when on flat terrain, and the ripples exhibit greater curves, as indicated by curve s2. For steep climbs, the vehicle speed is even lower, and the ripples are greater.
Thus, the driving state is manifested in vehicle speed change, so the driving state can be estimated by extracting vehicle speed change appropriately. Accordingly, assist ratio and smoothing rate can be set according to driving state.
Specifically, as illustrated in
On the other hand, as can be seen in
In the event of using the lower side envelope alone, the parameter deciding unit 1223 calculates a smoothing rate and assist ratio corresponding to the lower envelope value, following a curve such as illustrated in
In the example in
Thus, the assist increases when climbing, and further as illustrated in
Further, in the event of using both the upper side envelope and lower side envelope, the parameter deciding unit 1223 calculates the smoothing rate and assist ratio following a curve such as illustrated in
This curve is only an example, and other curves may be used.
Also, at the time of starting out as described above, only the lower side envelope is detected, so an arrangement may be made wherein, for example, the value calculated in
While an example has been illustrated above where the drive torque target calculating unit 1203 is applied to feed forward control, but the drive torque target calculating unit 1203 can be used with feedback control as well. A functional block diagram of the calculating unit 1021 in such as case is illustrated in
The calculating unit 1021 according to the present embodiment includes a regenerative braking target torque calculating unit 11201, a regeneration enabling unit 11202, a driving torque target calculating unit 11203, an assist enabling unit 11204, an adding unit 11206, a torque slew rate control unit 11255, an equivalent torque converting unit 11251, an adding unit 11252, a loop filter unit 11253, and a PWM code generator unit 11254.
The vehicle speed value from the vehicle speed input unit 1024 and pedal torque value from the torque input unit 1027 are input to the driving torque target calculating unit 11203, and the assist torque value is calculated. The calculation contents of the driving torque target calculating unit 11203 is the same as with the drive torque target calculating unit 1203.
Also, the regenerative braking target torque calculating unit 11201 calculates a regenerative braking target torque value following a preset curve for example, in accordance with the vehicle speed value from the vehicle speed input unit 1024. This curve is a curve representing a relation indicating an inverse polarity from the vehicle speed value and an absolute value less than or half of the absolute value of the vehicle speed value (less than or half could also mean, for example, a few percentage points over half the value). In this way enables the performance of a reasonably efficient regeneration at any speed. This processing is not the primary purport of the present embodiment, so further description will be omitted.
With the present embodiment, upon an input signal representing that braking is present is input from the brake input unit 1028, the regeneration enabling unit 11202 outputs the regenerative target torque value from the regenerative braking target torque calculating unit 11201 to the adding unit 11206. Otherwise, a zero is output. On the other hand, in the event that an input signal indicating no braking is input from the brake input unit 1028, the assist enabling unit 11204 outputs an assist torque value from the driving torque target calculating unit 11203. Otherwise, a zero is output.
The adding unit 11206 either inverts the polarity of the regenerative target torque value from the regeneration enabling unit 11202 and outputs, or outputs the assist torque value from the assist enabling unit 11204 without change. Hereinafter, the assist torque value and regenerative target torque value will be referred to simply as “target torque value” to simplify description.
The torque slew rate control unit 11255 subjects the target torque value from the adding unit 11206 to well-known slew rate restricting processing, and outputs the processing results to the adding unit 11252.
On the other hand, the equivalent torque converting unit 11251 subjects a value equivalent to the motor current from the current detection unit 1023, to processing to convert to a torque equivalent value, and outputs the processing results to the adding unit 11252. The adding unit 11252 subtracts the output from the equivalent torque converting unit 11251 from the output from the torque slew rate control unit 11255, and outputs the calculation results to the loop filter unit 11253. The loop filter unit 11253 subjects the output from the adding unit 11252 to integration processing, and outputs the processing results to the PWM code generator unit 11254. The PWM code generator unit 11254 multiples the output from the loop filter unit 11253 by a battery voltage/reference voltage (e.g., 24 V) from the AD input unit 1029, and generates PWM code. The PWM code is output to the motor drive timing generator unit 1026.
Thus, the advantages of the drive torque target calculating unit 1203 described above with feedback control can be obtained in the same way.
While embodiments of the present invention have been described above, the present invention is not restricted to these. For example, the functional block diagrams described above have functional blocks divided for the sake of description, so actual circuit configurations may be different, and may not match program module configurations when being realized by a program. Further, specific calculation methods to realize the functions previously described are many in number, and any of these may be implemented.
Also, a portion of the calculating unit 1021 may be realized with a specialized circuit, and the functions described previously may also be realized by executing a program with a microprocessor.
Also, with the above-described embodiments, an example of calculation has been illustrated where the pedal input torque is multiplied by the loss without change, but an arrangement may be made where the pedal input torque is multiple by a function f(x) of the loss x. Further, a modification may be made where the output of the wheel-rotation-linked LPF unit 3005 is multiplied by a function g(x) of the loss x.
Number | Date | Country | Kind |
---|---|---|---|
2010-285549 | Dec 2010 | JP | national |
This application is a U.S. national stage application of PCT/JP2011/078760 filed Dec. 13, 2011 and claims foreign priority benefit of Japanese Application No. 2010-285549 filed Dec. 22, 2010 in the Japanese Intellectual Property Office, the contents of both of which are incorporated herein by reference.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2011/078760 | 12/13/2011 | WO | 00 | 10/3/2013 |