Search results

  1. hinxx

    EBiCS firmware on ecoride 2018 ebike

    I was riding my bike with it for a week or so. It worked but I did not like the fact that when freewheeling it would cause erratic current consumption (seen by the large changes in small bar on the C2 display). It could be that the problem is in field weakening code I took and plugged into the...
  2. hinxx

    EBiCS firmware on ecoride 2018 ebike

    Sorry for late reply. I was referring to the EBICS motor FOC repo. My fork that I'm working on now is here: https://github.com/hinxx/EBiCS_motor_FOC/tree/ecoride
  3. hinxx

    EBiCS firmware on ecoride 2018 ebike

    In my fork of the repo there is a branch called ecoride. Its been a while since I pushed anything to it and can’t quite remember what state is it in. My initial hacks with field weakening were showing good potential but were rough around the edges so to speak. I could reach higher speeds ~ 35...
  4. hinxx

    Number of magnets and gear reduction ratio for this motor

    I got the response from the seller about the magnet poles when asked if they meant 9 magnet pole pairs and not 9 magnet poles: Seems like actual number of magnet poles is therefore 12.. i don’t understand the rest of the text , though.
  5. hinxx

    Number of magnets and gear reduction ratio for this motor

    I appreciate the input! Actually I do not have a display; just using UART/SWO as a debug feature. I'm running the opensource EBiCS firmware (more specifically just the FOC motor control) to understand how flux weakening would work. For that to work motor speed is needed which is defined by the...
  6. hinxx

    Number of magnets and gear reduction ratio for this motor

    I'm trying to use the correct gear ratio and number of poles in the EBiCS code that calculate the speed. It used here EBiCS_Firmware/Src/main.c at 85616c417b49c5ecdf48abf151bfc47b43168226 · EBiCS/EBiCS_Firmware. I was reading Programming Ebikeling 750w Geared hub. Cannot find gear reduction...
  7. hinxx

    Number of magnets and gear reduction ratio for this motor

    I bought this hub motor: EBike Antrieb Motor hinten Pedelec Elektrofahrrad 36V 250W Hinterrad Zündapp Rad 4250845941839 | eBay. The seller says that there are 9 magnet poles. Does that make sense? Reading some posts here I learned that the number of magnets should be an even number. I guess the...
  8. hinxx

    EBiCS firmware on ecoride 2018 ebike

    I'm trying to understand this piece of code from EBiCS_firmware / EBiCS_motor_FOC projects. Where do the constants come from? int8_t tics_to_speed(uint32_t tics) { return WHEEL_CIRCUMFERENCE * 5 * 3600 / (6 * GEAR_RATIO * tics * 10); } Correct me if I'm wrong, the 'tics' are from TIM2, and...
  9. hinxx

    Motor Controller with Customizable Electronics, easy DIY and repair OpenSource

    @stancecoke I was tinkering with the code in the EBiCS_motor_FOC repo for the last couple of days and managed to get my ecoride to run "smooth" during the autodetect and with the throttle. There were some subtle differences in the TIM1 channel 4 between EBiCS_motor_FOC and EBiCS_Firmware that I...
  10. hinxx

    ebike LCD under the hood

    I wanted to open up the LCD on my bike and see if I could get to reprogram the firmware on the MCU it has. After getting rid of the plastic cover I could see that the LCD panel was glued to the rest of the plastic casing and the buttons surrounded with some kind of epoxy. Anyone tried something...
  11. hinxx

    EBiCS firmware on ecoride 2018 ebike

    Kudoz to stancecoke and his predecessors for the work on EBiCS!!! I'm very happy that I can play around with EBiCS firmware even though I barely understand anything about motor control :). I've been tinkering with the area where the flux weakening is applied yesterday. Just laying out some...
  12. hinxx

    EBiCS firmware on ecoride 2018 ebike

    Got it! I can see the spikes on the LCD, too. It uses a tiny bar to show the battery current level (assist level) that controller is applying and it is all over the place. Without field weakening it is steady increasing / decreasing. I was thinking about how the field weakening should not be...
  13. hinxx

    EBiCS firmware on ecoride 2018 ebike

    I wasn't doing anything in that video. That was the autodetect. I was a bit scared that it will fall off the stands though, lol. I've adopted the calculation of MS.Battery_Current in the M365 fork and changed master code to match what is there. I also took the part where MS.i_setpoint_abs is...
  14. hinxx

    EBiCS firmware on ecoride 2018 ebike

    Just tested the code as-is and this is how it looks like at the startup with debug build. About 2/3 into the the video the wheel speed goes into super speed mode :) Will do! Thanks for the help!!!!
  15. hinxx

    EBiCS firmware on ecoride 2018 ebike

    Following up on the field weakening code. I found this SmartESC_STM32_v3/Core/Src/main.c at 4bd351263779947dabdfd69c4bce9a643eabba9e · Koxx3/SmartESC_STM32_v3 (in v0.5 branch). Is this what you were referring to? I've copied the relevant lines to my fork of EBiCS seen here: trying out field...
  16. hinxx

    EBiCS firmware on ecoride 2018 ebike

    Great! Yes there is a little sticker saying: 36V/700 Yes it has. The display on the image is model C3, mine is C2 from 2016/2018 series.
  17. hinxx

    EBiCS firmware on ecoride 2018 ebike

    Thanks for the great work on the EBiCS stancecoke!! My bike now really runs better than it did with the stock firmware. I just did a longer ride for the first time with the EBiCS and I can see that the 25 km/h limit is not there anymore. Biking with battery fully charged it was easy to get it...
  18. hinxx

    EBiCS firmware on ecoride 2018 ebike

    It's the second case. The riding speed is 4-5 km/h lower than the offground. It's a front hub 250 W motor with 36V controller. I was hoping to get the bike go faster at least downhill and not to feel like it is "braking" as soon as it gets to 26 km/h. With what you said, I'm guessing that the...
  19. hinxx

    EBiCS firmware on ecoride 2018 ebike

    I've managed to build and load the GitHub - EBiCS/EBiCS_Firmware: Free FOC firmware for Lishui E-Bike-Controllers onto Ecoride 2018 ebike that has LSW1108-25-2F (PCB marking LSW6G-90B-FOC-160704) controller. My goal is to remove the speed limit that stock firmware has at 25 km/h. Stock firmware...
Back
Top