[WIP] BMW Z3

Tell us about the project you do with the open inverter
Post Reply
User avatar
aot93
Posts: 198
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 6 times
Been thanked: 43 times

Re: [WIP] BMW Z3

Post by aot93 »

No not public, agree that unofficial code can cause a lot of headaches!

I always change the version number as well so it's easier to spot if these things get in to the wild.
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

aot93 wrote: Tue Feb 13, 2024 4:07 pm No not public, agree that unofficial code can cause a lot of headaches!

I always change the version number as well so it's easier to spot if these things get in to the wild.
I'm actually running a version of the latest software 2.04A modified by jamie to make the brake booster work so is not standard release yet but I could do without the brake booster for testing just to see if it solves the issue if you can help :)
User avatar
Bigpie
Posts: 1596
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 306 times

Re: [WIP] BMW Z3

Post by Bigpie »

Might being dim, why is it undrivable?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

Because it cuts out when it hits max temp which is every run
User avatar
Bigpie
Posts: 1596
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 306 times

Re: [WIP] BMW Z3

Post by Bigpie »

ah, there's some code in the gs450h

Code: Select all

if(temp_inv_water>120) temp_inv_water=120;//bodge to prevernt overtemp wrap until is fixed properly.
This has been added since the last release.
https://github.com/damienmaguire/Stm32- ... ba77c567b8

This is the inverter temperature used for GetInverterTemperature.

Code: Select all

   float GetInverterTemperature() { return temp_inv_water; }
What a build with this change and the brake vacuum?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

I'm not complaining in fact I'm Very grateful but you know you're too helpful for your own good 😂 but yes it would be much appreciated 👍🏼
User avatar
Bigpie
Posts: 1596
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 306 times

Re: [WIP] BMW Z3

Post by Bigpie »

PM'd you a bin
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
royhen99
Posts: 217
Joined: Sun Feb 20, 2022 4:23 am
Location: N. Wiltshire. UK
Has thanked: 17 times
Been thanked: 104 times

Re: [WIP] BMW Z3

Post by royhen99 »

As far as I can tell the bodge in lastest release is only in the prius inverter for some reason. Having looked at several posts here and on discord it appears that the temperatures are 8 bit signed value ( maybe it was just assumed to be 16 bit ) . The MTH value when read gets placed into an array of unsigned values that then gets converted to float. I think this Is why Damien was seeing 255 at negative temperatures ( this is also another clue that values are 8 bit and not 16 ). The unsigned value needs converting to integer before converting to float either like this, for 300H, temp_inv_water=int8_t(mth_data[20]); or by declaring temp_inv_water as int8_t in GS450.h.
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

Bigpie wrote: Tue Feb 13, 2024 6:07 pmPM'd you a bin
I'll give it a try tomorrow
You're a star Jamie
Thanks
:D
User avatar
rstevens81
Posts: 353
Joined: Sun Dec 22, 2019 10:36 am
Location: Bristol, UK
Has thanked: 23 times
Been thanked: 92 times

Re: [WIP] BMW Z3

Post by rstevens81 »

andybpowell wrote: Tue Feb 13, 2024 8:59 pm I'll give it a try tomorrow
You're a star Jamie
Thanks
:D
The pedestrians better watch out for the rocket powered BMW 😝
Rule 1 of EV Club is don't buy a rust bucket....
Which rule does everyone forget 🤪
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

It stopped raining for about an hour so I installed the new Bin from Jamie and ..........it's exactly the same except no hi temp fault
I have also noticed that power cuts (it comes in like an old school rev limiter really hard) more often than the temperature spikes and idc tops out at just over 110 Amps which ties in with the cutouts so maybe this is an internal cutout in the inverter hardware.
The first graph is from a few days ago and you can see the Current never exceeds 110A
Screenshot 2024-02-11 143002.png
Screenshot 2024-02-14 140240.png
Screenshot 2024-02-14 143830.png
:)
User avatar
Bigpie
Posts: 1596
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 306 times

Re: [WIP] BMW Z3

Post by Bigpie »

The gaffa on discord says "he needs to plot torque also to see if its zom or the inverter commanding the cut
and see what his revlim is set to" :D
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

Bigpie wrote: Wed Feb 14, 2024 3:43 pm The gaffa on discord says "he needs to plot torque also to see if its zom or the inverter commanding the cut
and see what his revlim is set to" :D
I did plot it against torque but didnt save it as the scaling I had made it too small so deleted it and didn't try again as it was pissing down :lol:
I can always do it tomorrow :)
Aragorn
Posts: 127
Joined: Wed Jan 04, 2023 10:23 am
Has thanked: 5 times
Been thanked: 53 times

Re: [WIP] BMW Z3

Post by Aragorn »

Why are we logging to an image, rather than to a CSV file or something?
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

Aragorn wrote: Thu Feb 15, 2024 9:18 am Why are we logging to an image, rather than to a CSV file or something?
the simple answer is I didn't know you could, I started using plot to get an idea of what was going on and haven't looked any further just yet
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

So I just wanted to clear a few things up around my understanding of things in general I was always taking things apart as a kid, I got an electronics kit in the 70's and have done various electrical/electronic maintenance/repair jobs but never any formal qualification as having dysgraphia was not recognised in schools in the 70's and 80's one teacher actually told my parents that I was just a bit thick so all self taught and so I have many gaps in my understanding.
my programming journey started with programming basic on a zx80 in 1980 and probably stopped mid 80's when I got heavily into cars and only started again when I decided to build an air ride setup on my 350Z in 2018 and got into arduino's to make that happen and programming within the arduino IDE is all I know so please bear with me.
The mechanical and fabrication side is also self taught or comes from my Dad who was a mechanical engineer and fabricator, my 20 years in the wastewater industry and 10 years weapons testing has given me a good understanding of how to build things to withstand extreme mechanical stresses
my interests are eclectic to say the least but generally involve making things from scratch here's a little preview
my first engine conversion Rover V8 into Ford Capri
IMAG0367.jpg
350Z air ride
IMG_20180814_165209.jpg
Top mounting started off as a fire extinguisher in fact I was accused of ghetto rigging
IMG_20180808_155636.jpg
Individual throttle bodies on my 350Z
IMG_20170704_171528.jpg
rearmount turbo 350Z
20160828_174043_HDR.jpg
20160828_182011_HDR.jpg
it's not all car stuff
IMG_20191108_161210.jpg
cnc cut speaker enclosure sounded amazing
IMG_20190502_182019.jpg
So anyway my point is I'm a jack of all trades and pretty good at some of them but definitely master of none so if I do stuff that seems to be strange or an odd way to go about doing something it's because I'm winging it and making it up as I go along.
:lol:
User avatar
bobby_come_lately
Posts: 466
Joined: Sun May 03, 2020 5:39 am
Location: Manchester, UK
Has thanked: 37 times
Been thanked: 39 times
Contact:

Re: [WIP] BMW Z3

Post by bobby_come_lately »

Jack of all trades and bloody good at some of them I'd say!
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

Bigpie wrote: Wed Feb 14, 2024 3:43 pm The gaffa on discord says "he needs to plot torque also to see if its zom or the inverter commanding the cut
and see what his revlim is set to" :D
Screenshot 2024-02-15 140723.png
Any good ? tried using the data logger but the csv files kept coming up empty other than the timestamp and the headers (probably just me )
:)
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

bobby_come_lately wrote: Thu Feb 15, 2024 12:41 pm Jack of all trades and bloody good at some of them I'd say!
I think you're being overly generous but I'll take it :lol:
User avatar
PatrcioEV-ATX
Posts: 184
Joined: Sun Dec 13, 2020 5:25 pm
Location: Austin, TX, USA
Has thanked: 40 times
Been thanked: 54 times

Re: [WIP] BMW Z3

Post by PatrcioEV-ATX »

I think most of us are winging it. I have no programming, electronics, or fabrication skills beyond what is self taught. I've learned just enough of each thing to do the things I need to do. We totally get it.
1998 Ford ZX2 - DC EV conversion(sold) http://evalbum.com/2093
2012 Nissan Leaf (sold)
2016 Mercedes B250e (sold)
2023 Volvo C40

Current: 1964 Rambler Classic 660 w/ GS450h set up. 36kwh Tesla batteries from B250e.
https://www.instagram.com/rambler_660e/
User avatar
Bigpie
Posts: 1596
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 306 times

Re: [WIP] BMW Z3

Post by Bigpie »

So that's Zombie cutting, now to workout why.

*EDIT*

ok so the only things that can command a torque cut are : motor rpm, hs temp, motor temp, battery undervoltage, idcmax

Plot these to see if they're sane, and post your params?

Gaffa says he's happy to have a phonecall with you to debug if it'll help.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

Bigpie wrote: Thu Feb 15, 2024 3:09 pm So that's Zombie cutting, now to workout why.

*EDIT*

ok so the only things that can command a torque cut are : motor rpm, hs temp, motor temp, battery undervoltage, idcmax

Plot these to see if they're sane, and post your params?

Gaffa says he's happy to have a phonecall with you to debug if it'll help.
I know idc max is set at 300 and it hasn't gone over 120 and I've had the motor speed at only 1600rpm during one cut but I will check the other stuff tomorrow :)
as for the phone call with the Gaffa I'll exhaust other possibilities first I don't want to slow down his work but if it would aid him in his own projects I'm more than willing to be a test bed and supply any data he may need :)
User avatar
snelly
Posts: 38
Joined: Sun Dec 26, 2021 11:54 am
Has thanked: 2 times
Been thanked: 7 times

Re: [WIP] BMW Z3

Post by snelly »

great projects very interesting and see you did weapon testing did you use a high speed camera as been working on and with them for 20+ years.
Attachments
drag.JPG
User avatar
andybpowell
Posts: 306
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 196 times
Been thanked: 233 times
Contact:

Re: [WIP] BMW Z3

Post by andybpowell »

snelly wrote: Thu Feb 15, 2024 5:56 pm great projects very interesting and see you did weapon testing did you use a high speed camera as been working on and with them for 20+ years.
No not my department
tom91
Posts: 1322
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 106 times
Been thanked: 225 times

Re: [WIP] BMW Z3

Post by tom91 »

Can you please post the Zombieverter settings .json you currently are running?

As the GS450/IS300h code should be scaling the PotNom to 3500 it seems to not be scaling it alot for some reason.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
Post Reply