Page 10 of 14
Re: VW - Beetle 2003
Posted: Fri Apr 21, 2023 8:45 am
by Alibro
Bigpie wrote: ↑Thu Apr 20, 2023 7:57 am
Cars been lowered
IMG_20230420_084940017.jpeg
Unfortunately it wasn't desired.
IMG_20230420_085010726_HDR.jpeg
I heard a clunk when I set off then the ride was pretty terrible.
Oops!
On a positive note, they're pretty cheap and easy to replace.

Re: VW - Beetle 2003
Posted: Sat Apr 22, 2023 11:55 am
by Bigpie
Springs replaced.
Re: VW - Beetle 2003
Posted: Sat Apr 22, 2023 2:17 pm
by Ev8
Love how easy they are to change on the back of those cars 2 jacks 2 bolts done in under 10 mins I bet! Probably even easier with no exhaust!
Re: VW - Beetle 2003
Posted: Sat Apr 22, 2023 2:20 pm
by Bigpie
Not quite, one nut was well buggered. Done in an hour though.
Re: VW - Beetle 2003
Posted: Sun Apr 23, 2023 11:14 pm
by johu
So coming to Farnborough now?
Re: VW - Beetle 2003
Posted: Mon Apr 24, 2023 8:23 pm
by Bigpie
Not likely, it's a five hour drive without charging stops, not managed to get extra battery in yet. Would have like to, but a bit far for a day trip with 17kwh.
Plus I've got the plague now, kids bring al sorts home from school
Re: VW - Beetle 2003
Posted: Sat May 06, 2023 12:11 pm
by Bigpie
Finally feeling a bit better after Covid again, so I got the 3rd and final pack in the car, mounted in the boot for now while I decide if I can be bothered to make a box to mount it in the old fuel tank space.
IMG_20230506_111056396_HDR.jpg
IMG_20230506_111002073.jpg
The HV and LV wiring isn't done yet, and then I'll make a new floor for the boot to finish off.
It leaves me with quite a small boot and they're not massive to begin with.
Re: VW - Beetle 2003
Posted: Sat May 06, 2023 12:51 pm
by Ev8
Nice job! I know all about loosing boot space to batteries! Does this mean spaceballs bms is imminent?
Re: VW - Beetle 2003
Posted: Sat May 06, 2023 12:58 pm
by Bigpie
No, not had time to get the code done. Will hack the simpbms some more.
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 2:48 pm
by Bigpie
Pete9008 wrote: ↑Tue May 09, 2023 1:02 pm
Did you ever try changing the resistor values or is that the next thing to try?
Continued here as to not barge in on nathaniel's project thread.
I've not, I've dug out this
https://github.com/damienmaguire/Prius- ... _curve.jpg suggesting the current sensors can read +-600V
Screenshot 2023-05-09 at 3.43.24 pm.png
Screenshot 2023-05-09 at 3.43.30 pm.png
I guess these are the values that need changing.
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 2:53 pm
by Pete9008
Sorry, just noticed back here
viewtopic.php?p=52911#p52911 that I offered to work out what needed changing but then forgot all about it
What current gain parameter values are you using at the moment?
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 2:55 pm
by Bigpie
4.56 and 4.5

Re: VW - Beetle 2003
Posted: Tue May 09, 2023 3:01 pm
by Pete9008
OK so just to check I'm not losing it a 12-bit adc gives 4096 codes or plus and minus 2048. 2048/4.5 = 455A which is roughly where you start to trip so the explanation of the ADC clipping at around 450A does make sense.
What current would you like to be able to read up to, 500, 550, 600A? The higher you go the poorer the measurement resolution, and the higher the noise, you actually get.
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 3:03 pm
by Bigpie
600A

I wonder if it's worth logging the raw ADC value to confirm if it's getting close to the boundary
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 3:09 pm
by Pete9008
OK, think I now understand how that circuit works. Three resistors need to change to get the new gain and keep 0A in the right place. Give me a few minutes to work out the equations.
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 3:34 pm
by Pete9008
I think you need to change R44 and R49 from 62k to 47k and R48 from 3.16k to 2.7k. That should keep 0A in the same place but give around an extra 33% range (450A to 600A). The current gains will then need to change to around 3.42 and 3.38 to compensate in software.
Spreadsheet used to calculate attached.
Note - first order only, it doesn't take account of the load of the R45 and R44 on the input potential divider (which should be pretty small and since I've aimed to keep zero and the end points in roughly the same place as the standard values it should cancel out).
Note2 - This does assume that the Prius CTs can cope, it will need the output to go to -1.67V and +11.66V which should be possible but only if the neg supply to the CT is really -5V (iffy if it's an early charge pump version of the logic board)!
Note3 - It's a slightly unusual circuit in the way the offset is removed. Wondering if it leads to a slightly non-linear transfer function?
Edit - The other possibility is that you are already getting 500A and it's the il gains that are wrong!! Might be worth checking how it was originally calibrated if you have any way of contacting Damien?
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 3:36 pm
by Pete9008
Bigpie wrote: ↑Tue May 09, 2023 3:03 pm
I wonder if it's worth logging the raw ADC value to confirm if it's getting close to the boundary
Wouldn't do any harm and would prove whether or not it's an issue.
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 3:53 pm
by Bigpie
Thanks
I'm suffering with the brain fog and exhaustion too since my recent covid so not sure when I'll get to the motivation of removing the board for modding but will put modifying the firmware for a raw il1 and il2 parameter for logging on my todo list.
I'll ask Damien on Discord. And it is the early board, first batch.
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 3:59 pm
by Pete9008
Sorry to hear that, hope it improves soon. There are actually some studies going on at the moment to see if B12 supplements help with long covid
link, early days but might be worth a try??
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 4:20 pm
by Bigpie
Thanks, I'll mention it, I need to go to docs anyway, lungs are in state and I've got 15k tough mudder in 8 weeks :S Glad to see the B12 seems to be working for you.
Damien's response: Dc first then ac rms x1.414 to peak values
Re: VW - Beetle 2003
Posted: Tue May 09, 2023 4:55 pm
by Pete9008
Bigpie wrote: ↑Tue May 09, 2023 4:20 pm
Thanks, I'll mention it, I need to go to docs anyway, lungs are in state and I've got 15k tough mudder in 8 weeks :S
You'll probably need blood tests before they could prescribe anything. If you want to try something sooner then sublingual methylcobalamin tablets seem to be the best option. My wife had covid about the same time as you, no fatigue but she's still trying to shift a persistent chest infection/cough too, not nice.
Had to look up what a 15k tough mudder was - not sure I could have ever managed one of those - good luck with it!
Bigpie wrote: ↑Tue May 09, 2023 4:20 pm
Damien's response: Dc first then ac rms x1.414 to peak values
Sounds like the current gains should be right then.
Don't suppose you know whether the MG fault lines from the inverter are active high or low? I've either misunderstood how they work or got a duff inverter here.
Re: VW - Beetle 2003
Posted: Sun May 14, 2023 5:19 pm
by Bigpie
I see you've got that fault signal figured out.
Finally got the 3rd pack wired in and setup with SimpBMS, though I have a bug somewhere in the balancing code/offsets, I now have 26.4 kWhs
Code: Select all
Modules: 24 Cells: 288 Strings: 3 Voltage: 365.602V Avg Cell Voltage: 3.808V Low Cell Voltage: 3.706V High Cell Voltage: 3.862V Delta Voltage: 156mV Avg Temp: 13.438C
Delta is larger than I'd like so will get the balancing code sorted next week.
The get this to work, I've got 1 can bridge changing a single module as I had duplicate IDs in the 3rd pack, then another can bridge for the entire pack, so quite a few places to check for the can messages to get messed up.
Last job is to get some wood cut and some boot carpet then I can move on to something else.
Re: VW - Beetle 2003
Posted: Mon May 15, 2023 4:24 pm
by Pete9008
That should help with the range

How many miles do you expect now?
Are the strings always paralleled or do you have separate contactors for each?
Also realised that the current input circuit block that you posted, and that I used for calculating the resistor values, was for MG1 so the component references I quoted will be wrong. It's the equivalent ones in MG2 that will need changing instead (assuming it is the MG2 CTs you are using?)
Re: VW - Beetle 2003
Posted: Mon May 15, 2023 6:13 pm
by Bigpie
I'm hoping for 80 miles maybe. Though I've got some issues with the can bridge code that I need to address.
I have contactors for each and a fuse for each, so when the car is off the packs are all isolated, ideally the BMS would decide if it's safe to parallel each pack, but at the moment this isn't the case.
I hope to drop in and show you the Beetle over summer if you're up for it. One time we go without the kids
Ahh right, good job you mentioned before I go removing resistors

Re: VW - Beetle 2003
Posted: Tue May 16, 2023 9:39 am
by Pete9008
Bigpie wrote: ↑Mon May 15, 2023 6:13 pm
I have contactors for each and a fuse for each, so when the car is off the packs are all isolated
That seems like the safest way to do it
Bigpie wrote: ↑Mon May 15, 2023 6:13 pm
I hope to drop in and show you the Beetle over summer if you're up for it. One time we go without the kids
Sounds good, drop me a PM when you want to sort something out.