Search found 177 matches

by mane2
Wed Apr 24, 2024 9:36 am
Forum: Battery Managment (BMS)
Topic: Simp BMS
Replies: 643
Views: 227378

Re: Simp BMS

these forks are not affiliated with simp or tom, we are doing out own thing, unless you know what you are doing i would recommend buying either a real simp bms or the newer evs-bms from toms suppliers. Yeah, well aware of that. Though, I would probably buy that evs-bms (or discontinued simpbms) if ...
by mane2
Tue Apr 23, 2024 9:24 pm
Forum: Battery Managment (BMS)
Topic: Simp BMS
Replies: 643
Views: 227378

Re: Simp BMS

There seems to be many forks and copies of Simpbms git repo for different Arduino platforms (eg teensy 4, esp32) and chargers that are not supported by the official software. I plan to use my Teensy 4.0 (as 3.2 is no longer available) with X5 pack and Outlander charger. I've seen outlander support o...
by mane2
Sun Apr 14, 2024 11:09 am
Forum: Hyundai/Kia
Topic: 800V Hyundai Ioniq 5 Battery
Replies: 14
Views: 6611

Re: 800V Hyundai Ioniq 5 Battery

I'm also pondering about buying 16x EV6 modules and having 400V pack. Any ideas how many amps those can push out?

Bad thermal stability .. so cooling is a must, I guess? I'm currently happily running Model S modules without cooling and they don't get hot at all.
by mane2
Wed Apr 03, 2024 6:54 pm
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

Ok. That looks simple and easy to understand. Good to get rid of that dead zone with the official firmware too :). Hopefully I made it bit easier for you :) I agree that my code was bit difficult to read and maybe not as simple as I would liked it to be, but it works very nicely. Thought, just found...
by mane2
Tue Apr 02, 2024 5:28 pm
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

That looks completely wrong. Also the acceleration looks off, as it should be linear. Are you sure it's the right code? How do you test? Can I replicate that test somehow? What maxregentravelhz have you set? How about what rotor hz are you passing? If rotor hz is 0, it calcThrottle will return the s...
by mane2
Thu Mar 28, 2024 9:45 pm
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

Snow & ice has finally melted from the roads so I was able to take the first drive and properly test that throttle/regen code (https://github.com/jsphuebner/stm32-sine/pull/42/files). It works beautifully! Didn't drive too many kilometers yet, but the feel is very good. I would even say it's bet...
by mane2
Mon Mar 25, 2024 5:44 am
Forum: Tesla
Topic: How hard is it to kill a Tesla LDU encoder?
Replies: 4
Views: 542

Re: How hard is it to kill a Tesla LDU encoder?

I have tested encoder with wires the wrong way and the right way. It survived :) Easy to test with just basic multimeter too. Give it 5V and put some metal against side of it. Reading the signal wire and ground will change when close to metal. Other channel shows 5V when you bring metal close and ot...
by mane2
Tue Jan 09, 2024 8:17 am
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

It has standard caster angle & trail, and on standard steering-box cars it returns to center very well. There is +8,14 degrees of caster, so that should not be the problem (ideal is 3-5). It's been aligned and adjusted many times, trying to find what's wrong. Not binding, struct bearings checked...
by mane2
Mon Jan 08, 2024 11:05 pm
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

Yes, I'm planning to use it on my non-Mini car. Currently I have Citroen C2 EPS in my bmw that I got working with can, with speed data sent to it. Mini R56 rack is narrow enough to fit that 70s car. My problem with Citroen rack is, that it won't return to center properly. (Everything is checked, ali...
by mane2
Mon Jan 08, 2024 8:29 pm
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

What are you trying to do? Telling people what to post or not? Tell that what they do, is not worth it? Blaming for spamming? I feel forums are the place to openly write your findings, that might help other people. I explained above what I'm trying to do - to find how checksum is calculated for spee...
by mane2
Mon Jan 08, 2024 5:10 pm
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

Now when playing with that, it can be simplified to just summing up the 7 bytes and subtracting 604 from that. It will give you correct checksum. Like this uint8_t calculate_checksum(const uint8_t data[7], uint8_t can_msg_id) { uint16_t sum = 0; // Sum the first 7 bytes of data for (int i = 0; i < 7...
by mane2
Mon Jan 08, 2024 3:23 pm
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

After hours of trying different checksum calculation methods, with varying parameters none of them worked. Then Googling for some more checksum calculations, I found one checksum solution hidden in bimmerforums. Formula was: (<sum of bytes 1 - 7> - (0xFF - <can message id>) ) % 0xFF I tried this and...
by mane2
Sun Jan 07, 2024 9:06 am
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

Oh, very nice that DBC file, so much data to use with the log!
image.png
I guess I just need to do some brute force calculation to find that checksum. Trying all different combinations of data and can id, with all possible CRC checks and see what matches :)
by mane2
Sun Jan 07, 2024 8:53 am
Forum: Projects
Topic: 1984 Voltswagen Rabbit Prius Gen 3 ZOMBIE
Replies: 381
Views: 26899

Re: 1984 Voltswagen Rabbit

Tesla small drive unit between rear wheels? Too much work?
by mane2
Sat Jan 06, 2024 11:00 pm
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

It’s assisting alright, but my point was just to figure out how the checksum is calculated, as I’m sending current speed to it. But I think it’s not needed, ecu does not care about the checksum.

Thanks for the dbc file. Need to check it out. Does it have checksum calculation explained?
by mane2
Sat Jan 06, 2024 10:03 pm
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

Actually, I think it works without checksum after all. I did another test, by sending just static uint8_t speedData[1] = {0xff}; .. I could barely turn it by hand.. then doing another test with just this static uint8_t speedData[1] = {0x00}; .. it was lighter. Maybe the difference is more clearer wh...
by mane2
Sat Jan 06, 2024 9:41 pm
Forum: General
Topic: electric power steering mini cooper (R56) [SOLVED]
Replies: 19
Views: 2439

Re: electric power steering mini cooper (R56) [SOLVED]

Heya! I'm experimenting with this Mini R56 steering unit. Here's some more info that wasn't previously posted here: Yellow cable is ignition. Yellow/black is can high. Yellow/brown is can low. Can speed is 500kbs. To have it working, send these: every 100ms : id: 0x130 data: 0x45 0x41 0x21 0x8F 0x24...
by mane2
Sat Jan 06, 2024 11:09 am
Forum: Honda
Topic: I bought a Honda CR-V iBooster Gen 1 - Now what?
Replies: 64
Views: 18976

Re: I bought a Honda CR-V iBooster Gen 1 - Now what?

What happened to this project? Were you able to get it to work? I'm wondering if I should swap my manual brakes to ibooster ones ..
by mane2
Fri Dec 29, 2023 11:22 am
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

Attached a plot from my test. Not related to code changes - but if you're wondering - wheel start rotating only when potnom is higher than 6%. I've tried to overcome this by increasing ampmin to 18. But increasing that closer to 20, it starts to accelerate by iteself .. so I had to tune it down from...
by mane2
Thu Dec 28, 2023 4:47 pm
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

Just flashed this to my LDU and tested it in garage. Car is sitting on jacks, but wheels turn, throttle commands and plot looks very good. It's working nicely! Road testing it more when this snow melts and roads dry up.

Created pull request here: https://github.com/jsphuebner/stm32-sine/pull/42
by mane2
Thu Dec 28, 2023 10:52 am
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

Same examples with graphs. Notice the yellow line (potnom) in speed based image, potnom grows pretty awkwardly and non-linear fashion. You will feel that at some point the acceleration picks up quite quickly, when regentravel has grown to full. Also notice the blue line (regentravel), for example ar...
by mane2
Thu Dec 14, 2023 8:15 pm
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

I was bothered by the fact of that non-linear acceleration - as increasing regentravel creates this slope. I think different OEM cars have done this differently. For example BMW seems to have done this "slope" way (non-linear) but I feel Tesla has linear. I combined the speed based regen w...
by mane2
Wed Dec 13, 2023 10:03 pm
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

I started playing with the idea of ramping down regentravel on "potnom2" -version, when rotor hz hits the regenrampstr hz. This way, you can utilize the regen area further than just speed based, and still have strong regen if wanted. I experimented few curves, like expoOut and results are ...
by mane2
Wed Dec 13, 2023 5:16 pm
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

Yes, that's true. Basically only two to choose from. My point was just to have an option to select implementations. I have that case covered, look at the bottom of the table. There you're going 3km/h without accelerator pressed and then next row shows situation when you press accelerator 5%. km/h: 3...
by mane2
Tue Dec 12, 2023 8:40 pm
Forum: Inverters / Motor Controllers
Topic: Accelerator pedal dead zone
Replies: 104
Views: 42337

Re: Accelerator pedal dead zone

Here's a side by side output for easier reading. potnom1 = "speed based regentravel" and potnom2 = "fixed (only increasing) regentravel until stopped". In this output, first line shows car doing 67kmh and lifting off the pedal slowly. When the speed slows down to 24kmh, you start...