Skip to content
MartGB edited this page Jan 10, 2022 · 34 revisions

Welcome to OSEC, Open Source E-Bike Controller software

  • Read and understood chapter 7 and 8 before asking for help on the forum or opening a github issue

  • Newcomers read chapters 1 to 5 .... twice. Many "stupid" questions will be answered afterwards.

  • A tutorial in German is available at: German


FAQs

Q: Can I use a KT36/48 ZWS type controller

A: As the ZWS type has no phase current sensor, you can't use the simplified FOC with it. You can disable FOC in the setup by checking "Disable Interpolation", but the motor will not run with best efficiency in this case. Some energy will be wasted as heat. It's better to use KT36/48 SVP type. A phase current sensor can maybe be installed in your ZWS controller. This will not make it a sine wave controller immediately, but it will when uploading the firmware. Choose a logic amperage value of the sensor.


Q: Can I use the controller without a display?

A: Yes, you have to connect the red to the blue wire of the display connector to switch on the system. If you have no switch in your battery, you can install a little switch to the display connector, the current on the blue wire is quite small, so you don't need a big switch.


Q: The motor doesn't turn, just makes noise and draws current.

A: Make sure, that you have chosen the right hall- and phasewire combination. There are many possible combinations, only one works properly. If the motor still doesn't start, try different values for Motor specific angle. Try in both directions in steps of 5


Q: The command window shows errors while compiling and/or flashing.

A:

  1. Please make sure, that you've activated the option to set the path automatically during the SDCC installation process.

  2. Please check, if the STVP_CmdLine.exe is located in this path

C:\Program Files (x86)\STMicroelectronics\st_toolset\stvp

If not, please adapt the first line of the start_compiling.bat and write_optionbytes.bat according to your file system.


Q: Motor doesn't stop when releasing the throttle.

A:

  1. are you testing without load / with the wheel in the air? --> just brake the wheel, then the motor should stop!
  2. is the wheel accelerating again after breaking? Check the setting of "throttle min"

Q: the wheel speed is oscillating when testing with no load / wheel in the air

A: the motor runs into the speed limit (e.g. 6km/h, 25km/h depending on your settings). The speed control loop works without oscillating when riding. If needed, you can adjust values of "Gain P" an "Gain I"


Q: My Kunteng Display (LCD3, LCD5, etc.) is not working.

A: The Kunteng Displays are using XOR Checksums with various final XOR values. New values appear from time to time. You can check your used value with this little tool: https://onlinegdb.com/Bk9HMKP3I
click on fork and edit the array with your values.