Search results

  1. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    I felt like I needed to do something fun, so I added reverse to my DYU D3F ;) (Yeah the code is slightly jank and there are some debug artifacts etc left, but it works, I have full interpolation etc also in reverse (and speed limit to 2 km/h))...
  2. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    Yeah the righthand display is consistent with it never being spun at all (the points at zero in the graph are at zero because the controller has not written to those points in the graph yet, because the motor has not been in those hall sensor orientations). Basically, if there's not a...
  3. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    I'm curious about how you went about remapping the output phases (mine rotated motor angle by -120, 0 or 120 degrees (-85,0,85 units) and optionally swapped phases A and C in the PWM output.) (EDIT: It's notable that phase B has the current sensor, and you cant move the sensor around, so ...
  4. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    FYI: currently "power based control" is frocked up: https://github.com/stancecoke/BMSBattery_S_controllers_firmware/blob/Master/ACAsetPoint.c#L306 It does not take into account that uint32_current_target has the cal_b offset added to it already. Example: cal_b of 300, a 36V nominal system, 10...
  5. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    Perhaps you should reduce the snark.... maybe me too... but i'll give you this one back: Have you read about static variables and the post-increment operator since 2017? ;) https://github.com/stancecoke/BMSBattery_S_controllers_firmware/blob/Master/pwm.c#L116 (I'm not sure if that disabled chunk...
  6. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    Ohhhhh, if you just installed sdcc from your linux distro, it likely (if they're up-to-date) is sdcc 4.2.0, which for some unknown reason (nobody has investigated deeply enough, i assume) miscompiles the firmware. You need 4.1.0 for now. EDIT: I'm editing to avoid double-posting; effectively...
  7. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    I'm sorry to ignore the problem Voron has (this is the problem with these megathreads), but an update on my issue: Okay so, I didn't have the hall wire order right 😅 - i realized this after having written a little hack to remap phase wires in software on the fly (with uart keypresses), and...
  8. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    Okay, so i went trying to ride the thing (just in circles on my yard, with a really haphazard wiring setup, lol) on sunday night, and like regardless of the motor angle or whether interpolation was enabled the torque was really ... grumbly?noisy? at low speeds. This made me realize that I never...
  9. Urja

    KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

    Hiya, I have a DYU D3F (a 14" mini-e-bike; the handlebar folds down), it has a direct drive motor in...really "as" the rear wheel (the magnets are basically directly part of the wheel, no gearing or freewheeling mechanism), and I'm trying to get this KT24/36ZWSRD-TS02G controller (rated 10A...
Back
Top