Page 7 of 16
Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 4:07 pm
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.
Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 4:20 pm
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

Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 4:40 pm
by Bigpie
Might being dim, why is it undrivable?
Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 4:49 pm
by andybpowell
Because it cuts out when it hits max temp which is every run
Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 4:58 pm
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?
Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 5:05 pm
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

Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 6:07 pm
by Bigpie
PM'd you a bin
Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 7:04 pm
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.
Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 8:59 pm
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

Re: [WIP] BMW Z3
Posted: Tue Feb 13, 2024 9:18 pm
by rstevens81
andybpowell wrote: ↑Tue Feb 13, 2024 8:59 pm
I'll give it a try tomorrow
You're a star Jamie
Thanks
The pedestrians better watch out for the rocket powered BMW

Re: [WIP] BMW Z3
Posted: Wed Feb 14, 2024 3:11 pm
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

Re: [WIP] BMW Z3
Posted: Wed Feb 14, 2024 3:43 pm
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"

Re: [WIP] BMW Z3
Posted: Wed Feb 14, 2024 4:44 pm
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"
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
I can always do it tomorrow

Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 9:18 am
by Aragorn
Why are we logging to an image, rather than to a CSV file or something?
Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 9:44 am
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
Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 11:59 am
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
350Z air ride
Top mounting started off as a fire extinguisher in fact I was accused of ghetto rigging
Individual throttle bodies on my 350Z
rearmount turbo 350Z
it's not all car stuff
cnc cut speaker enclosure sounded amazing
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.

Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 12:41 pm
by bobby_come_lately
Jack of all trades and bloody good at some of them I'd say!
Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 2:24 pm
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"
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 )

Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 2:33 pm
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

Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 2:42 pm
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.
Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 3:09 pm
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.
Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 4:02 pm
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

Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 5:56 pm
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.
Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 6:08 pm
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
Re: [WIP] BMW Z3
Posted: Thu Feb 15, 2024 8:23 pm
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.