Author Topic: pedal "assist"  (Read 15055 times)

Offline stevo

  • Confirmed
  • New Member
  • *
  • Posts: 21
pedal "assist"
« on: September 02, 2008, 03:54:30 PM »
I have a question about how electric bike motors work.  As background, I don't have an electric bike conversion kit yet.

I would like to know how electric bike motors work in conjunction with pedaling.  For example, assume I have a motor that can propel me (and my bike) at 32km/hr at full throttle.  Say I start with the throttle at half-power without pedaling- so I would get up to 16km/hr.  Then I start to pedal such that I bring the bike up to 20 km/hr, keeping the throttle at half.  Would the motor then "speed up" to match its RPM to 20km/hr? (i.e. the bike speed would be a combination of my pedaling power + the motor's power).  Or would the motor itself continue to spin at an RPM that matched 16km/hr? (i.e. the 4km/hr increase from 16 to 20 was completely my own power).  If this is the case, then the power input to drive the bike is really binary - either the motor or myself but not both.  In other words, whenever I pedal faster than the throttle speed, I might as well turn the throttle off because it will be all my own pedaling power driving the bike.  I suppose if I pedal at exactly the throttle speed, I would reduce the amperage drawn from the battery by the motor.

Thanks,
Steve

Offline muzza.au

  • Confirmed
  • Bachelor of Magic
  • ****
  • Posts: 156
Re: pedal "assist"
« Reply #1 on: September 03, 2008, 12:22:24 AM »
G'day Stevo

Its more to do with power than speed and the power is not contant over the speed range, if you suddenly went up a hill at half throttle your speed would decrease but power would increase to keep you going up hill, see the picture below (grabbed from http://www.ebikes.ca/simulator/ for a GM 36v 12ah, 26" and 20a controller). Power or torque is greatest at lower speeds and then reduces as you go faster. To answer your question, if you hold the throttle at half and start pedalling, yes the motor would "speed up", or the rpm of the whole wheel, as you are adding power from your own legs, then yes "the bike speed would be a combination of my pedaling power + the motor's power". Lets take a tandem bike for example. If you were going up a slight incline which necessitated some effort from both riders to maintain a certain speed and then one rider stopped pedalling, you would probably lose half your speed or the first rider would have to pedal twice as hard to maintain the same speed. So when you say "In other words, whenever I pedal faster than the throttle speed, I might as well turn the throttle off because it will be all my own pedaling power driving the bike." it depends on the load, ie if you are on a flat or a hill.  From the above mention site: "The average power that a typical cyclist will deliver is on the order of 150 watts, or 1/5th of a horsepower. A fit individual can sustain 350 watts for about 10 minutes and up to 600 watts for a few seconds, but for continuous riding between 100-200 W is typical. You might think then that 150 watts would be all you need for an ebike, but if you ever ride a 150 watt bike it will feel unimpressive. When a cyclists hits a hill, they switch to an easy gear and the speed drops to 10-15 km/hr as they work hard and move at a slow pace. However when an electric bike does the same thing and slows to walking speed on the hills it seems way under powered. To maintain nice speeds over 30 kph while going uphill requires on the order of 400-500 watts or more. On the flat, 400 watts (about 1/2 horsepower) will move a typical bicycle about 40 km/hr."

I hope my explanation was clear enough and helpfull.

Muzza.au

Offline stevo

  • Confirmed
  • New Member
  • *
  • Posts: 21
Re: pedal "assist"
« Reply #2 on: September 03, 2008, 03:29:34 AM »
Thanks Muzza.  That sounds good.  However, despite the statement in your post that "On the flat, 400 watts (about 1/2 horsepower) will move a typical bicycle about 40 km/hr.", my understanding is that in order to be street legal, electric bike motors are designed to have a maximum unassisted speed of 32km/hr.  So does this mean that they are somehow "mechanically governed" such that the motors will not spin faster than X RPM (where X is whatever RPM translates into 32 km/hr for the size of the wheel).  I'm hoping not but I wanted to confirm this. 

To give context to this question, I tried out an e-bike recently (Crystalyte, 400W, 36V 10 Ah Battery) and I noticed that at full throttle, after the bike reached its top speed (presumably around 32 km/hr) it "seemed" that when I started to pedal, it was all my own power (I'm hoping I was mistaken).

Offline muzza.au

  • Confirmed
  • Bachelor of Magic
  • ****
  • Posts: 156
Re: pedal "assist"
« Reply #3 on: September 03, 2008, 04:13:02 AM »
Thanks Muzza.  That sounds good.  However, despite the statement in your post that "On the flat, 400 watts (about 1/2 horsepower) will move a typical bicycle about 40 km/hr.", my understanding is that in order to be street legal, electric bike motors are designed to have a maximum unassisted speed of 32km/hr.  So does this mean that they are somehow "mechanically governed" such that the motors will not spin faster than X RPM (where X is whatever RPM translates into 32 km/hr for the size of the wheel).  I'm hoping not but I wanted to confirm this. 

To give context to this question, I tried out an e-bike recently (Crystalyte, 400W, 36V 10 Ah Battery) and I noticed that at full throttle, after the bike reached its top speed (presumably around 32 km/hr) it "seemed" that when I started to pedal, it was all my own power (I'm hoping I was mistaken).
Yes I do believe that some brands in some markets are governed to be legal (not sure about GM), but most likely electrically in the controller. You could probably get around this by finding a kit where they say its for off road use only. Have a look at what you can get for off road use only here (in Aus): http://www.emtb.com.au/  The above quote I got from the website I mentioned in my last post was probably refering to ungoverned theoretical top speed.

Muzza.au

Offline Lanchon

  • Confirmed
  • Magic Undergrad
  • ***
  • Posts: 99
Re: pedal "assist"
« Reply #4 on: September 03, 2008, 07:18:14 AM »
hi stevo,

your question can be answered with a few simple equations. are you looking for that kind of answer?

the system is equivalent to a brushed DC motor directly driven by a voltage source (modulated by the throttle input and with a constant-current current limiter). and the non-regen equivalent circuit has a series diode.

Offline stevo

  • Confirmed
  • New Member
  • *
  • Posts: 21
Re: pedal "assist"
« Reply #5 on: September 03, 2008, 01:35:42 PM »
Thanks again Muzza.

Hi Lanchon,
Re your reply, I wasn't really looking for equations (at least, not at this time).  I was just wanted to understand conceptually how the motors work.  So assuming an electric motor is "un-governed" (in terms of maximum rpm), if I lifted the bike off the ground and held it in place (ie no wind/rolling resistance) and put the throttle at full, the wheel should be able to spin at incredibly high speed - it would be limited only by its own internal mechanical resistance.  Is this correct?

Offline stevo

  • Confirmed
  • New Member
  • *
  • Posts: 21
Re: pedal "assist"
« Reply #6 on: September 03, 2008, 01:59:51 PM »
By the way Muzza, I am having difficulty interpreting the graph you attached in your earlier post (the one called torqeugraph).  For example, why do all 3 lines drop to 0 at 45 km/hr?  Also, re your statement "Power or torque is greatest at lower speeds and then reduces as you go faster", this makes sense for the torque line.  However, the power line seems to start low and rise and peak at about 29 km/hr then start dropping.

Offline muzza.au

  • Confirmed
  • Bachelor of Magic
  • ****
  • Posts: 156
Re: pedal "assist"
« Reply #7 on: September 03, 2008, 11:12:15 PM »
G'day Stevo,

go to http://www.ebikes.ca/simulator/ and have a play with it. There is an explanation of how it works and what the plot lines mean. Other sections of the site also have alot of useful information.

Muzza.au

Offline stevo

  • Confirmed
  • New Member
  • *
  • Posts: 21
Re: pedal "assist"
« Reply #8 on: September 04, 2008, 12:14:21 AM »
cool.  thanks Muzza

Offline Lanchon

  • Confirmed
  • Magic Undergrad
  • ***
  • Posts: 99
Re: pedal "assist"
« Reply #9 on: September 04, 2008, 01:10:08 AM »
> So assuming an electric motor is "un-governed" (in terms of maximum rpm), if I lifted the bike off the ground and held it in place (ie no wind/rolling resistance) and put the throttle at full, the wheel should be able to spin at incredibly high speed - it would be limited only by its own internal mechanical resistance.  Is this correct?

no.

sorry, I need equations to explain. assume an open loop controller in which the throttle directly controls the modulation width of the PWMed FETs (valid for my 2006 GM controller). ignoring transients, the steady state is something like this:

call the actual rotational speed of the wheel "w".

there's also a rotational speed target "wt" that linearly depends on battery voltage "vbat" and modulation index "x" (0 to 1, controlled by throttle position):

wt=k1*(x*vbat)

(the proportionality constant k1 is a parameter of the motor.) think of it as if the throttle regulated the batt voltage from 0 to max batt voltage. so the throttle regulates target speed from 0 to max target speed (if vbat is constant).

the torque exerted by the motor depends on the difference between target and actual speed:

tu=k2*(wt-w)   ("unlimited" version of torque)
t=tmin, if tu<tmin
t=tmax, if tu>tmax
t=tu, if tmin<tu<tmax

this means that the torque is proportional to the speed difference, but within limits. the motor current is proportional to torque:

imotor=k3*t

and so tmax and tmin are implemented as simple motor current limits (except tmin in nonregen mode, which is zero and is implemented by FET diodes that come to bare due to the noncomplementary PWM switching strategy used). FYI, the batt current is:

ibat=x*imotor   (so ibat<=imotor)

note that k1, k2, k3, tmin and tmax are constants depending on motor and controller. (actually if you idealize vbat as constant, k2 also depends on the batt's internal resistance, which you could consider constant on your setup.)

so, back to your question, full throttle with wheel lifted up means:
-t=0 (zero torque on wheel)
-thus w=wt
-wt is the max speed attainable (since x=1)
-wt depends only on vbatt (linearly)
-imotor=0 and ibatt=0

of course there are various losses (electronic, magnetic, friction and drag) and the currents are not really zero, but they are low. this situation corresponds to the origin of the torque graph in the pdf published at GM's website. this graph corresponds to full throttle (x=1), so:
-you can verify the low ibat at the origin
-you can compute k1 from max speed and vbatt
-you can compute k2 from how the increase in torque results in a decreasing real speed "w" (wt is constant and is the max speed, since vbatt and x are (mostly) constants).
-you can compute k3 from the total current "ibat" (since x=1, imotor=ibat)
-with k3 and the controller current limit you can calculate tmax (in my controller, imotormax is around 22A or 23A).


so,

> I would like to know how electric bike motors work in conjunction with pedaling.

pedaling reduces the torque requested from the motor

> Say I start with the throttle at half-power without pedaling- so I would get up to 16km/hr.  Then I start to pedal such that I bring the bike up to 20 km/hr, keeping the throttle at half. Would the motor then "speed up" to match its RPM to 20km/hr?

of course, otherwise the tire would be burning rubber and neither you nor the motor have enough power to do that.

> Or would the motor itself continue to spin at an RPM that matched 16km/hr? (i.e. the 4km/hr increase from 16 to 20 was completely my own power).

neither of these sentences make sense.

since you're reducing the difference between w and wt, the torque output of the motor will be reduced. if the current angular speed target wt (according to batt and throttle) corresponds to a bicycle linear speed target higher than 20kph, then the motor would still be putting in some torque and power.

otherwise torque would be zero and you'd be doing all the work. or in regen mode torque would be  negative and you'd be doing all the bicycle work plus you'd also be charging the battery.

> If this is the case, then the power input to drive the bike is really binary - either the motor or myself but not both.

assuming non-regen: no, the transition speed range is governed by k2. (note that k2 decreases with increasing batt internal resistance.)

> In other words, whenever I pedal faster than the throttle speed, I might as well turn the throttle off because it will be all my own pedaling power driving the bike.

this is valid only if you are passed wt, the current target speed, and in non-regen mode.

> my understanding is that in order to be street legal, electric bike motors are designed to have a maximum unassisted speed of 32km/hr.

limiting vbat limits the speed. so a street legal 36V kit ceases to be such if operated at 48V. it seems many kits are underspecified to make them compliant (I suspect there's no difference between the GM 36V and 48V motors, yet they are marked differently).

> I tried out an e-bike recently (Crystalyte, 400W, 36V 10 Ah Battery) and I noticed that at full throttle, after the bike reached its top speed (presumably around 32 km/hr) it "seemed" that when I started to pedal, it was all my own power (I'm hoping I was mistaken).

assuming no feedback loop (my first assumption in this post), then this just means a large k2, which is a good thing for reasons not spelled here.


EDIT: some implementation caveats...

note that if w>k1*vbat, many non-regen controllers effectively start acting as if they were regen (due to the FET diodes changing the effective switching strategy away from noncomplementary). so,

> I noticed that at full throttle, after the bike reached its top speed (presumably around 32 km/hr) it "seemed" that when I started to pedal, it was all my own power

in this case, when past wt (the point at which you provide all the power), you may start to charge the batt even with a non-regen controler.

plus, when entering this "mode" there's really no current limiting in force. so if you short-circuit the power input to the controller when the wheel is turning fast... kaboom!


also, I said:

> tu=k2*(wt-w)   ("unlimited" version of torque)
> t=tmin, if tu<tmin
> t=tmax, if tu>tmax
> t=tu, if tmin<tu<tmax

> imotor=k3*t

> and so tmax and tmin are implemented as simple motor current limits

but note that due to limitations in common controller implementations, the controller loses its ability to accurately measure imotor as x approaches zero. in particular, it tends to underestimate it. so when using low modulation indexes (low throttle) it is possible that imotor, and thus torque, both exceed their limits (but not ibat, since x is low). all sorts of problems could arise...
« Last Edit: September 04, 2008, 02:35:30 AM by Lanchon »

Offline stevo

  • Confirmed
  • New Member
  • *
  • Posts: 21
Re: pedal "assist"
« Reply #10 on: September 04, 2008, 02:02:16 PM »
OMG!  Lanchon, although I recognize the terms that you are using from my introductory university physics classes, I have to admit that you lost me in the equations (but that's ok).   You obviously understand how these motors work in great detail.

From what I did understand from your explanation, I have a question about your statement "note that if w>k1*vbat, many non-regen controllers effectively start acting as if they were regen".  I plan to buy a kit that is non-regen.  If I pedal fast enough such that w>k1*vbat, (and/or I am going down a really steep hill) would turning the throttle off prevent the controller from acting as if it were regen?  Or would it start to regen regardless?

Offline Lanchon

  • Confirmed
  • Magic Undergrad
  • ***
  • Posts: 99
Re: pedal "assist"
« Reply #11 on: September 04, 2008, 09:37:02 PM »
> I recognize the terms that you are using from my introductory university physics classes

well you asking physics questions! I hope I made it more or less clear though.

> would turning the throttle off prevent the controller from acting as if it were regen?

no, it would regen. the controller software can't do a thing to prevent it, and the throttle is just a input to the software. you can disconnect the motor from the controller. you could also disconnect the controller from the batt, but some losses will remain and you could zap the controller if you overvolt it.

Offline stevo

  • Confirmed
  • New Member
  • *
  • Posts: 21
Re: pedal "assist"
« Reply #12 on: September 05, 2008, 03:47:57 PM »
thanks Lanchon

Offline stevo

  • Confirmed
  • New Member
  • *
  • Posts: 21
Re: pedal "assist"
« Reply #13 on: September 09, 2008, 02:46:22 PM »
Hi Lanchon,
I've got a few more questions if you don't mind:

1) Re your note "the proportionality constant k1 is a parameter of the motor", is there any way to modify k1 for a motor? For that matter, is there any way for me to find out what the k1 is for a particular motor?
2) Re your notes about un-intended regen when w>k1*vbat, assuming I am pedaling fast enough such that w>k1*vbat, if I wanted to "limit" the un-intended regen, would it be better to keep the throttle on full rather than turning the throttle off?  (ie to reduce the difference between target and actual speed).  Conversely, if I wanted to "maximize" the un-intended regen, would it better to turn the throttle off?
3) re your note "when entering this 'mode' there's really no current limiting in force", I find it odd that controllers are not made to be able to limit current in "regen" mode (even if they aren't regen controllers) because I'm sure it's quite common for riders to exceed k1*vbat e.g. on steep downhills.  Is the risk of "short-circuiting the power input to the controller when the wheel is turning fast" a risk that people should be concerned about?

Offline Leslie

  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 2,047
Re: pedal "assist"
« Reply #14 on: September 10, 2008, 05:30:34 AM »
I love these threads where everyone puts a math equasion to every living breathing thing...  :D

I think it also depends on the riders strength and fitness, it would even depend on how much the rider had to drink the night before.

Dont forget to use La in the constance of your equasions.


-1La = how much sitting you been doing over the last 20 odd years.
-1Fi = how much smoking and drinking you do inyour spare time
-Fat = how fat you are.
-St = strength, how much elbow grease you put into life.

To me these tend change the final figure in a massive way. 

Sorry it had to be said... :-|

I get 30 kms with 36v 18ah sla's and they weigh a 15kgs, I ride on flats most of the time and find I can over double my distance with a little pedal on the take offs and keep my max speed up. 

I really don't see much differance in speed on my setup as I seem to use more power to keep the speed constant as mentioned before,

I honestly see more advantage with distance and power not the speed when pedaling...

I find if im feeling fit the distance figure increases logarithmic upwards on decreasing slope with wind resistance factor.  I think the fitness thing can not be ignored or else you are waisting your time.  you need to be able to measure the torque "you" can apply on your cranks and how long you can sustain this for in relation to your battery size, power disipation of the motor and efficiency of the controller, total wind resistance, also the size of the wheel, type of tyre (knobby or slick) Air pressure in relation to the total weight of the bike and rider can make is a huge difference and the list goes on ....

My PWM controller seems to have a speed fix on it as I don't go faster when I add pedals I go further...  Controllers shmaloalas.

You really have taken on a a huge task making a formula for all this....
« Last Edit: September 10, 2008, 06:08:58 AM by Smeee »

Bring it on