![]() |
"Thinking Outside the Four-Wheeled Box" ebikes.ca |
Browser Compatibility: Anything modern except Firefox 6.0 (FF5, 4, and 3.X all fine).
Welcome to latest release of our online ebike simulator, now with full vehicle modeling, dual system comparisons, and a vertical cursor bar with text readout. Select your motor, controller, battery, and vehicle choices then hit Simulate. Click the mouse on the graph. Fool around, and if you have any questions please read the full explanation of the new features in the text below.
| Graph | Syst A | |
| Mtr Torque | ||
| Mtr Power | ||
| % Grade | ||
| Efficiency |
| Electrical | Syst A | |
| Mtr Amps | ||
| Batt Power | ||
| Batt Amps | ||
| Batt Volts |
| Performance | Syst A | |
| Acceleration | ||
| Consumption | ||
| Range | ||
| Overheat In |
| Chart Options |
| X Axis units |
| Blue Curve |
| Black Curve |
| Controller Parameters | ||
| Please specify the controller's current limit in amps and on resistance in ohms below | ||
| A | Ω | |
| Controller Parameters | ||
| Please specify the controller's current limit in amps and on resistance in ohms below | ||
| A | Ω | |
| Battery Parameters | ||
| Please specify the open-circuit voltage, internal resistance in ohms, and capacity in amp-hours below: | ||
| V | Ω | Ah |
| Battery Parameters | ||
| Please specify the open-circuit voltage, internal resistance in ohms, and capacity in amp-hours below: | ||
| V | Ω | Ah |
| Wheel Size: |
| Please specify the full wheel diameter in inches below: |
| Wheel Size (in) |
| Wheel Size: |
| Please specify the full wheel diameter in inches below: |
| Wheel Size (in) |
| Frame Parameters: | |
| Please specify the frame's coefficient of drag in air, and coefficient of rolling friction below: | |
| CdA | Cr |
| Frame Parameters: | |
| Please specify the frame's coefficient of drag in air, and coefficient of rolling friction below: | |
| CdA | Cr |
| Vehicle Weight: | |
| Please specify your vehicle's weight in kilograms or pounds below: | |
| kg | lbs |
| Vehicle Weight: | |
| Please specify your vehicle's weight in kilograms or pounds below: | |
| kg | lbs |
Use the drop-down menu to choose from the list one of the hub motors that we have modelled, the battery pack, wheel size, and motor controller current limit. Then select the type of bicycle that you ride as well as the gross vehicle weight (you plus the machine) and hit "Simulator". The program will then output 4 graphical plots against your speed (in kph or mph) on the horizontal axis.
By default, right after each calculation the simulator will draw a dashed vertical cursor that coincides with the point where the output power of the motor intersects the load line of the vehicle. This is the expected steady-state cruising speed for that particular arrangement with no human pedal input. The table underneath the simulator shows the numeric performance values of the system at this point.
You can move the cursor to any other location by clicking the graph with the left mouse button, and see the corresponding numeric results anywhere else on the graph instead. For instance, if you want to see the expected performance with 100 watts of human pedal input, then click the graph at a point where the load line of the vehicle is about 100 watts higher than the output power of the motor. You will see that you get better range, efficiency, and speed than with no human input.
The numeric data is grouped into 3 categories:
Many people overlook the fact that there is a throttle slider and only bother looking at the full throttle output, and come to incorrect conclusions related to 'efficiency' and 'sweet spot'. If you want to see how a system behaves at slower speeds, which is achieved in practice by backing off on the throttle, then move the throttle slider to less than 100%. The vertical cursor will automatically move to your expected cruising speed at the new throttle position.
If you would like to compare two setups side by side, then the link "Open System B->" will pull out a 2nd table from which you can select an entirely different system and have both plots show up together on the same graph. A second set of numeric data shows up in the tables as well.
It is possible to hide any of the plotted data to make for a cleaner graph. The circle beside each plot title in the legend is also a radio button, so you can click the dot to show or hide the associated line. This is particularly useful when you are comparing two systems and otherwise would have 8 plots to deal with on the graph.
We have provided dropdown selection for a range of typical battery packs, vehicle types, and motor controllers. At the bottom of each of these menus is a 'custom' option that brings a pop-up menu if you would like to simulate with different components.
With the direct drive motors this is easy. Once you move the cursor passed the unloaded motor speed, the graphs for motor torque and battery current both go negative, allowing you to see how much power will be required to turn the motor and how much electrical current and power would be generated. Even though the graphs don't display far into the negative region, you can use the numeric tables to see generated power deep into regen mode.
With the geared motors (eZee and BMC), we have modeled the freewheeling behaviour of the motor. Above the unloaded speed the motor is assumed to spin at the unloaded RPM regardless of the wheel RPM, and you cannot see the regen behaviour that would be possible if either the freewheel was locked or the motor was spinning in reverse.
Why is there a sharp peak in all of the graphs?The inflection point that you see occurs when the motor controller hits the current limit. At speeds above this point, the current from the battery gradually declines until it reaches 0 amps at the unloaded rpm (where the graph outputs intersect). At speeds slower than the inflection point, the motor controller regulates the power to the hub, restricting battery current draw to the motor controller current limit (20A, for example). In this region, from 0 rpm up to the inflection point, there is constant power input into the motor rather than a constant voltage, and so the nature of the curves is different.
How come the torque keeps going up at lower speeds even though the amps is fixed by the current limit?That is because even though the battery current is limited by the controller, the current through the motor is not. It is the motor current, not the battery current, that determines the torque output of the hub motor. When there is no Pulse-Width-Modulation (PWM) going on in the motor controller (full throttle and moving fast enough that the battery current is under the motor controller current limit) then the amps flowing out of the battery is effectively the same as the amps flowing through the motor. But when the controller is doing PWM, then the current through the motor is higher than the battery current by the inverse of the PWM duty cycle.
But how come the motor current is always a bit higher than the battery current even at 100% duty cycle?That is because of the inductance of the motor windings. At each commutation event, current in the phase winding that was just disconnected needs to decay through a freewheeling diode in the controller. While this current decays, it is still present in the motor leads and generating torque even though it is not drawing any current from the battery pack. So the net result is a somewhat higher phase current than battery current, even at full duty cycle. This effect is most pronounced in high speed geared motors (e.g. BMC, eZee), somewhat less noticeable in high pole count direct drive hubs (e.g. Nine Continent, Clyte HS/HT series), and barely discernable in low pole count direct drive motors (eg. Clyte 400 and 5300 series).
Can I license the simulator?While we appreciate the level of interest that has been shown in the simulator by other businesses who would like to have a copy of it on their site, the answer is that no, we are currently not interested in licensing this online software. It is first and foremost a tool that we have made freely available via our website to the ebike community.
Can you give me the data, like motor constants, resistance, etc.?The answer to this question is that we already have, it is contained within the output of these curves. If you know how to make use of this raw motor data, then you will be able to extract the motor and other parameters from the output graphs. It's what we had to do with a million times more work first building and calibrating our own dynamo and running endless real world tests to get discrete measured data points on all these different hub types. You've got it made being able to get those same curves at the click of a button.
Can you add motor XXX or YYY to the list?Doing a full characterization of a hub motor takes a lot of our time and also requires destructive testing to understand the thermal limits. To add a new motor we require a) that it is readily available as a motor only and without an integrated controller (so no BionX), and b) that we are given for keeping two samples of said motor, one for destructive test and the other to keep on hand as reference should we ever need to repeat tests, and c) that it is sufficiently popular amongst DIY ebike conversions to be of value to have listed.
The old simulator was based on the following circuit model for a battery-powered permanent magnet motor and controller setup:
The actual model in SimulatorV2 is substantially more complicated, taking into account the commutations that happen on a regular basis as a function of the speed and number of poles of the hub motor, and determining the resulting current waveforms that are produced when this is applied to the inductive motor windings.



Accuracy and Limitations
The parameter values that are chosen for the motor model are based on directly measured data that we have compiled from tests using a custom built dynamometer made for the task.
Our original 2005 dynamo setup pictured above was limited to a maximum loading of about 5 N-m, but we have since built two newer devices, one of which allows for continuous load testing of the hub motors of over 50 N-m of torque. This has enabled us to verify the mathematical model above to the measured output performance with a high degree of accuracy and over a wide speed and power range. The performance of a hub motor is dependant on the temperature of the windings, and even during the course of a short test the winding resistance can go up by 15-20%. The values used in our simulator assume a winding resistance that is about 15% higher than what is measured at room temperature.
The characteristics for the battery packs are also from our own independent testing, with the value for Rbatt calculated from the DC impedance from 1C - 2C loading, and with VOC chosen at the 50% state of charge. A freshly charged pack would be faster and more powerful than indicated, while a nearly flat pack would be slower.
Finally, the program does not simulate the low voltage rollback of the controller. If you have a setup with a particularly high impedance battery, like a 5Ah NiCd, it is possible that in real life it would hit the low voltage point at high loadings and have a lower power output than indicated.