[DRIVING] - Z3(00)

Tell us about the project you do with the open inverter
Post Reply
arber333
Posts: 3265
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 80 times
Been thanked: 234 times
Contact:

Re: Z3(00)

Post by arber333 »

I think there is a possibility you will be able to tun it natively with Outlander inverter soon. There is a project of CAN controller for rear and front motors. Just command torque and some aux signals... I can't wait to see that in action.

I think 30kw is enough for 1t car level driving at highway speeds. Input a hill and power demand rises to 50kw which is still enough for this motor. It will not win any competition but it will drive. It will be easy on the battery...
Yes motors are 10pole so they have high torque on the left side of the curve. I think it would be good enough to drive up to 4000rpm when you would run out of voltage and have to shift or go into weakening.
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: Z3(00)

Post by bobby_come_lately »

That's really useful - thank you. I'm planning to keep the 5-speed box and just bolt the motor to the front of that so plenty of gearing. Weakening shouldn't be a problem at motorway speeds in high gear with little torque needed?

This reinforces my plan: get up and running in this configuration as a learning exercise then maybe come back to the Lexus set-up down the line.
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: Z3(00)

Post by bobby_come_lately »

Bit more on that motor re: orientation and cooling.

It wasn't immediately obvious to me which way the motor should be oriented, so back to the service manual I went. The diagram (below) was very helpful (forgive my atrocious drawing skills over the top of it). Once you realise which way the motor goes, it becomes pretty obvious: there's a lifting eye for craning it in and out at the top, and the oil pipes are fixed at the top and bottom.

It was while looking at the cooling system diagram that I realised why I couldn't match my motor to lots of the pictures very easily. What this shows is TWO motors (or a motor and a 'generator') mounted side by side into a gearbox. Hence the split inputs into the cooling system (9) and the pipe (14) that connects the cooling output of one motor to the input in another. Most of the diagrams in the service manual show everything as part of this larger assembly.

The good news is that the oil cooler here is pretty small. I count seven rows, so a nine or ten row cooler should give plenty of headroom, even if we're working the motor hard. We will need an electric oil pump (I picked up a used MOCAL unit for £50), and some pipes to hook it all up. The outside diameter (o/d) of the barbs on the motor is 10.4mm according to my cheap calipers. I'm guessing this means 10mm internal diameter (i/d) for the pipes for a snug fit. Plus some spring or jubilee clips to keep it all tight. There's no reservoir. As the diagram shows, you just top the level up straight into the filler plug...which is on the other motor to mine. So I'll need to rig some sort of filler neck with a t-connection and a non-return valve spliced in above the entry point in the top of the motor casing. At least I have the drain plug and the fill level plug.

Fluid-wise, it looks like the specification is for CVT fluid - "MITSUBISHI MOTORS GENUINE CVTF-J4". You can find a few CVT fluids that claim to meet this spec at around £7/litre.
Attachments
outlander-phev-motor-cooling.jpg
outlander-phev-motor-orientation.jpg
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: Z3(00)

Post by bobby_come_lately »

Bit of a motor update. I couldn't find any diagrams of the mounting points for the PHEV front motor. At least, not ones with measurements. So I set about making a simple CAD model of the motor face in order to map out the bolt pattern.

Without a 3D scanner (a hole in my toolkit I would very much like to fill), my best option (other than maybe a paper template) seemed to be to try to measure the rather uneven surface with calipers and a ruler and transfer those measurements into Fusion. I then 3D printed a simple template with a hole for the single dowel and plugs for the two M8 threaded holes and four 11mm holes. After about ten iterations of the 3D printed model, I finally had a model that fitted accurately - at least to within a few fractions of a millimetre (note - this is not the one in the picture below). Good enough for government work, as Mr Bauer would say.

I have a little more testing to do but then I'm happy share my template with others looking to use this motor. When the car arrives and we have removed the gearbox, I will map the motor mounting holes against the ones on the gearbox and design up a full adaptor plate. Then I can sort out the adaptor between the splined shaft and the BMW flywheel. Looking at places to get that machined at the moment.
Attachments
outlander-phev-motor-mounting-template.jpg
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Z3(00)

Post by Kevin Sharpe »

bobby_come_lately wrote: Wed May 20, 2020 6:12 am I have a little more testing to do but then I'm happy share my template with others looking to use this motor.
Thank you! :)
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
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: Z3(00)

Post by bobby_come_lately »

Finished soldering up test cables for the motor and throttle last night. Probably not necessary for testing, but using some of the shielded twisted pair I bought to use in the car where there will be lots of EMF noise. Replicating some of the stuff from the blog for posterity here.

##

I'm planning to use a BMW 1-Series Throttle Pedal, though I think they are fairly similar across a number of cars. This cost me £10.49 inc shipping from eBay, which seemed very reasonable. My unit came in good condition with the connector plug attached and some decent length tails on it.

I found the pin out information on a forum post on a racing simulator site (https://www.isrtv.com/forums/topic/2171 ... -throttle/) of all places:

Pin 1: GND 1 - Brown/Yellow (apparently brown and green on the E46 pedal)
Pin 2: GND 2 - Brown
Pin 3: VCC 2 - Yellow/Green
Pin 4: SIG 1 - White
Pin 5: VCC 1 - Yellow
Pin 6: SIG 2 - White (apparently white/green on the E46)

From this I could tell that the pedal probably has two position sensors that each take an input voltage and return a signal. But I wasn't sure if it was resistive or encoder-based at first. A bit of googling told me the electronics expect 5V on a modern BMW so I hooked the pedal up to the bench power supply and a multimeter and took some voltage readings (i.e. 5V to VCC 1, Ground and multimeter ground to GND 1, and multimeter to SIG 1, then repeat for SIG 2). My bench power supply is actually an old PC PSU (I do love to recycle) so it isn't adjustable and doesn't give me exactly 5V. Measured at 5.13V while testing.

Here are the results:

SIG 1
Throttle at rest: 0.73V
Throttle at full travel: 4.00V

SIG 2
Throttle at rest: 0.36V
Throttle at full travel: 2.02V

So, the output of SIG 1 has exactly twice the resolution of SIG 2. Guess there are two for safety reasons? [this website confirms that - https://www.picoauto.com/library/automo ... l-position]. Either way I now know how to get the output of my throttle and feed it to the inverter control board.

Note on the connector: It's a Tyco unit (expensive) but there are nice cheap clones available on AliExpress - search for 967616.
Attachments
bmw-throttle-pedal-connector-2.jpg
bmw-throttle-pedal-connector.jpg
bmw-throttle-pedal.jpg
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: Z3(00)

Post by bobby_come_lately »

Bit of an update. A counter to my relentless positivity and optimism!

Despite Damien's very good instructional videos I learned this week that I am not good enough at soldering to complete the Prius Gen 3 Kit. Between me and the guy I handed it over to to fix my mistakes, we managed to bork the board completely so a second one is winging its way to him now. At least I feel like I have contributed to Damien's purse, even if he doesn't make much on them.

Means a bit of a delay to the project and particularly that I won't be able to get the motor and inverter running before I start on the mechanicals, which had been my plan. Going to have to take the slightly higher risk approach of pushing ahead with the adapter and plate while I wait on the electronics.

In the meantime, the car is on its way and will arrive Wednesday or Thursday. We have about a 40-point plan worked up for its inspection, repairs, and then disassembly. Looking forward to getting my newly-assembled ESP8266 CAN sniffer on it so that I can start to get my head around that and what it will take to keep the dash instruments and ABS etc happy. Also have an old serial diagnostics cable for the 20-pin BMW connector which I'm hoping to be able to tie into for other diagnostics.

Meanwhile I'm trying to restrain myself from buying some of the bits for my option 2 approach to play with: GS450h parts. Lots on eBay right now and I now have three different people locally offering to do the fine soldering for me. So I may be throwing a little more money Damien's way before long...
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Z3(00)

Post by Jack Bauer »

Good to hear you're getting some help. The new kit went out with ups yesterday morning so should be with you shortly.
I'm going to need a hacksaw
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: Z3(00)

Post by bobby_come_lately »

Great - thanks Damien. Looking forward to getting this motor turning!

Things looked up today in any case: the project car arrived. It's pretty much what I was hoping for at £600: cosmetically crap but that doesn't matter as planning to replace most of the body panels. Doors only need a skim of filler before they are repainted. New sills are only £30 a side.

Mechanically and structurally seems - at least on first inspection - to be really sound. Not got under it yet due to pressures of work, but planning to take some time off after next week to really get into it.

Only EV snag I may have hit is how high the bellhousing comes into the engine bay. Was hoping it would sit a little lower so there would be room for the 330e battery pack to sit over the top of the motor. It will fit length and width-wise, just might be too tight in depth. May be able to fit it underneath (which would sit the weight lower - all good) and may be able to re-orient the motor. Lots of investigating to do. But was hoping to be able to avoid having to build a new battery box to save time and money.

Anyway, if anyone wants a BMW fourpot with 'only' 174,000 miles on it, let me know!
Attachments
IMG_20200604_071945.jpg
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: Z3(00)

Post by bobby_come_lately »

Right, update time. Has been a busy couple of weeks work-wise but still managed to make some progress. And I'm taking the rest of this week off to work on the car.

Have fixed the main issues with the car itself. Central locking and power hood just seemed to be bad earth/connection issues and both now function fine. Got diagnostics onto the engine and it confirmed what the high-pitched whistle told me: vacuum leak was the reason for the warning light on the dash. Plus the secondary air pump is knackered and detached from its mountings. And there's a split in the air intake hose that connects to the MAF. All standard stuff and not really worth fixing before I pull the lump out. Engine is high mileage but hoping to get a few quid back for the it and the accessories I don't need.

Have been trying to get my head around the car's use of CAN and I can't really find that I'm going to need to worry much about it. Only concerns are with engaging the active stability control and the ABS, but I can't see that either actually need CAN messages. And neither use CAN to communicate with the dash. In fact the dash seems to be largely old-school with lots of mostly 12v signals for various faults. If anyone knows different I would love to hear (it's a 99 Z3 1.9) but at the moment the plan is to pull the engine next week when the driveway is clear (builders in this week).

In the meantime we're cracking on with the drive unit. The inverter is back from my electronics saviour, soldered up, tested and working. Only one thing seemed a bit off - only getting 26 volts where I believe I should be getting 36 according to the Wiki? But web interface comes up fine.

Test board with all the HV components (including contactors from Jaanus - ta) is mostly wired up - should get that finished today. Have designed some little brackets to hold key switch, direction switch and brake button. One done and one on the printer now.

Talking of 3D printing, I've designed up a new two-part plate to hold Damien's AMPSEAL connector daughterboard onto the Prius Gen3 inverter (attached). This clamps the board and seals against the white silicone on the plug. It draws on Konstantin's initial design but I had to choose between making the plate much thicker or ditching the red sealing ring from the original plug. I went for the latter and will probably put a skim of silicone on when it is fitted finally. There's enough slack in my IDC cable to allow the top of the inverter to be removed with the plate in place. Maybe need a separate thread for 3D printed parts for this inverter?

Few more blanking plates to design and print, including something to seal around the battery connections. I have a pair of Damien's brass standoffs for the battery connections and hoping I can make something to go around those. Resistance of PETG seems to be higher than my multimeter can measure so only issue I can see would be is moisture was trapped around the connectors. Again, if anyone knows different I'd love to hear.
Attachments
ampseal-plate.zip
(36.5 KiB) Downloaded 125 times
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: Z3(00)

Post by bobby_come_lately »

Quick update: turns out the inverter wasn't quite working properly. While the board fires up I couldn't get a sine wave out of it and my dc voltage readings were all over the shop. Damien confirmed via the forum what I feared: it was that 50 pin connector that has been the bane of my project so far.

Now on the hunt for a real electronics professional who can clean up the work of my willing but clearly not-quite-good-enough friendly helper who originally came to my aid. Have found a couple of options locally and just waiting for them to come back to me. If I find I good one, I'll share their details in case anyone else faces the same issues as me.

Meanwhile I may have found a good trade over on the ZRoadster forums from someone who is willing to offer me cash and a 1-series electric steering rack for my old engine, which may solve a problem I hadn't even gotten around to thinking much about yet. If the measurements look within my fabrication ability, that could be a good deal.

So, frustrating week as I hoped to have the motor spinning by now. But I feel like I now know the UI for the software pretty well even if I did learn by the medium of swearing at it. And my pre-charge set-up is working beautifully with my Panasonic pre-charge resistor and Gigavac contactors in place. So once I can get the inverter up and running it should be a matter of plugging it all back in and configuring.

Also made progress on 3D printed parts for the Gen 3 inverter. Have posted current set on a separate thread and am ready to test a three part shroud for Damian's brass battery standoffs. If that test goes well I should be posting that next week.
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: Z3(00)

Post by bobby_come_lately »

Have been a bit slack updating here on the rollercoaster that this project has been over the last few weeks. In short, I'm still having issues with my control board and after investigating many other options and there being many false hopes, it appears the issue remains with the 50 pin connector where the is an intermittent short between pin 10 and ground.

It's only intermittent now thanks to @Bigpie who offered to test my board in his rig and rule out human error, and then went on to tidy up some of the soldering on the relevant contacts. The result is that in the periods it has been working I've got as far as getting the motor to vibrate, if not spin.

Back to the repair shop tomorrow to see if they can remove, clean and replace the 50 pin connector, perhaps with one from the stock board.

In the meantime I gave up on my original intention to get the electric drive train running before dismantling the Z3. Most of the front end is off (just waiting on a spot-weld drill) to ease engine removal, and most of the ancillaries are out. Today will get the remaining fluids drained and some other bits removed as long as the weather holds out.

Have ordered the remaining parts for the HV junction box - standoffs/bobbins, copper bar for connections, and the box itself. Not including anything for charging yet but hopefully leaving space to add that in. Also will need glands, conduit and HV cables to finish hooking it all up.

Pedal fitting is pretty much finished. Designed and 3D printed an adaptor to allow me to mount the 1-Series electronic pedal to the old Z3 mounting bracket and really pleased with how that has turned out.
Attachments
IMG_20200708_192431.jpg
IMG_20200708_191106.jpg
IMG_20200711_092450.jpg
IMG_20200711_154549.jpg
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: Z3(00)

Post by bobby_come_lately »

Lots of progress in the last couple of weeks. Then motor runs! The engine is fully out, I've tried two different steering racks, I've changed my plans for the coupler, some of the wiring is in, and the steel for all the adaptors and mounts is ordered.

Let me break that down a bit.

Motor
Thanks to the help of @Bigpie and my local electronics shop, I now have a fully working inverter and a spinning motor using the FOC firmware. LOTS of tuning to do but I don't think it's worth trying to do it with my dodgy old car batteries, so that can wait until I have some real batteries.

Engine Removal
With only one minor mistake (I missed a pin on the gearbox so ripped the shifter out with the transmission - fortunately nothing damaged) and two minor breakages (the plastic heater pipes both got cracked), the engine and transmission came out. Was a fantastic day working with my daughter on everything, who proved she has excellent instincts for all things mechanical. Over the next few days we stripped out the remaining parts like the steering rack (more below) and gave the whole engine bay a really good clean. This uncovered a few spots of rust but nothing serious. Though the X-frame under the engine is not in good shape. Suspect I will have some welding to do there.

Plan is to give it another clean and a coat of paint before reassembling everything. Not original colour and not expecting a perfect finish. Just something to protect it and keep it looking fairly clean.

Anyone want an engine? Only 174,000 miles on it. But can share a video of it running nicely. Includes all ancillaries, ECU and EWS.

Steering Rack
The idea of putting a hydraulic steering rack in an electric car, when there are electric steering racks, just seems odd to me. But it may be what I end up doing. I tried a 1-series steering rack first but it was just too big in every dimension. So I thought I'd try a Mini steering rack, which looked a lot closer to what I needed. This will actually fit really nicely and I'm holding on to this option. But, the motor did protrude up into the middle of the engine bay where I will want to be putting batteries. Plus, the fewer parts I change the easier it is going to be to get this car through an MOT.

So I went back to the drawing board, or rather eBay, and bought an electric power steering pump from a Vauxhall Zafira. This seems to be the one everyone in the DIY EV community uses. We'll clean up the old rack and cooling loop and see if we can get it all hooked up.

Anyone want a 1-series steering rack?

Coupler
I'm at the stage of needing to connect my electric motor to my gearbox. I have had a plan for this from the start: design something in 3D, send it off to a company called Protolabs, and with their incredible CNC machinery they'll just knock it up for about £300 (based on a rough quote I got in the early days of the project). So, once I had the engine and gearbox out, and had separated the two, and extracted the flywheel, I finished up the design I had started around the motor splines. One thing gave me cause for concern though: the weight of that dual mass flywheel. That was going to put a lot of load on the motor bearings. Hmmm.

I cracked on and 3D printed a couple of test versions of my coupler before sending it off to Protolabs for a quote. They came back the next day with a quote of £350. I could live with that. Until I examined the quote more carefully and realised that it showed me their machines couldn't cut the splines for my motor more than about ten millimetres into the shaft. OK, so maybe it just needs manufacturing a different way. They did tell me they could 3D print metal. Sure enough, they could. For £1400.

Back to the drawing board again. While I was pondering, a chat with a fellow DIY EVer got me thinking about the quick and dirty option: find something that has the same spline pattern and weld that to one end of a tube, and the clutch centre to another. This would a) be very cheap and b) weigh a lot less, albeit with the loss of a clutch. But I won't be changing gear very often anyway...

Question was, what has the same spline pattern as a Mitsubishi Outlander electric motor. I stuck "19mm 17 spline" into Google and what comes up? A Fiesta clutch. Driving past my local garage a couple of days later (the one that has agreed to MOT my EV), I asked if I could have a dig around in their recycling bin for old clutches. Top of the pile was one marked 'FoMoCo' and sure enough, it had a 19mm bore and 17 splines. I got home and dropped it on the motor: perfect fit.

So, amongst the steel I have ordered (below) is a couple of pieces of thick walled tube. I've got a plan for how I might be able to do this at home. Obviously the ideal would be to get someone to make it up and balance it. But I have a few ideas. We shall see...

Fabricating
After a good chat with a steel stockholders nearby, I'm off to pick up a load of pieces tomorrow in return for a very large round of bacon sarnies. I'm getting a selection of box, tube, and plate that should be sufficient to make up the adaptor plate, mounts (possibly welded direct to the adaptor plate, and a frame for mounting the inverter and high voltage junction box. With a bit of luck we'll start putting that together on Friday and get a good chunk done over the weekend.

Wiring
With my daughter's help, I traced the routes from the ECU into the cabin and ran two shielded 7-way industrial cables. These now run across the ECU enclosure and out where the coil pack connections use to exit. This brings them out very close to where the 35-way connection on the inverter should sit.

One cable will carry the 5V signals from the throttle to the inverter. This is now terminated in the appropriate plug for the 1-series throttle pedal. The other routes around the driver's footwell and into the centre console where it will be connected to a forward and reverse switch that I've mounted in one of the blanking plates. It would all be soldered in but it turns out the switch I bought doesn't like heat very much. A replacement is on the way.

Lots more to tell but that will have to do for now.
Attachments
processed-2.jpeg
IMG_20200725_131048.jpg
IMG_20200725_123009.jpg
IMG_20200721_213817.jpg
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: Z3(00)

Post by bobby_come_lately »

Another week or so of big progress. Tomorrow (sore muscles permitting) I will test fit the motor and gearbox for the first time.

Adaptor Plate
The steel stockholders were great. They provided two 8mm thick steel plates, cut to size (400mm sq), 2m of 40mm box section, 2m of 20mm box section, a metre of 37mm i/d thick walled tube and a metre of 28mm i/d tube. Amazingly, I managed to squeeze all this into my Alfa GTV!

The plates are thicker than I was intending - it was a case of what they had. And I've had to crank my welder to the max to get a decent joint. But actually the measurements with the two plates and the box section in between turned out to be absolutely perfect to give the space I needed for the motor spindle.

Over the last week my daughter and I have measured and drilled the holes in each plate (marking them out with a transfer punch), bolted them up to the motor and gearbox respectively, welded on some captive nuts, then welded the two plates together with a square made from the box section in the middle. It took two hole saws and a lot of sharpening of bits but we got there in the end. As of today the whole assembly can be bolted together and it is ready to go into the car for test fitting.

There's still lots of work to do on the adaptor plate. It will need cutting down to save a bit of weight. Some of the holes need adjusting. A few more welds wouldn't go amiss. And then it needs painting. But first we need to make sure it all fits, and work out how the engine mounts will bolt up. Plan is to use some of the 40mm box cantilevered off the motor plate to bolt up to the existing engine mounts. The two circles of steel cut out from the centre of the plates are actually a perfect fit for the mounts. So those will be welded on underneath. It will all make sense when you see it.

Coupler
The steel tube was for the coupler to link the gearbox and the motor. Turns out I only needed the 37mm as both clutch centres will sit inside it if turned the right way around. The BMW clutch is a really nice tight fit so getting that square was fairly easy. The Fiesta clutch less so. It has funny little stepped splines that take a little balancing to get them square. And when I say 'balancing', I mean welding it, spinning it, cutting one of the welds off, hitting it with a big hammer, welding it again, until it looked pretty straight.

This just left me with the outside of the clutch centre to sort out. There's a few rough bits from where I cut it out with the angle grinder. I'd been looking for a local company to turn it down in a lathe. But then I got chatting to my neighbour from three doors down and it turns out he has three lathes in his basement workshop! It's with him now.

Before I dropped it round to him, we used it to make sure everything aligned properly before putting in the final welds on the adaptor plate. Sticking the box into gear I could rotate the prop end and watch the motor turn through the hole left by the clutch cylinder. Despite the rough way in which the coupler was put together it all seems to spin pretty smoothly. Hoorah.

CANbus
While I've been working on the hardware in the day time (when I can get away from work), I've been working on the software in the evenings.

So far, I have hacked together a little sketch for an Arduino Mega clone - one with loads of easily accessible i/o pins - that can read the CANbus data from the inverter and change its state or trigger actions based on what it sees. The first thing it does is switch between a series of states: Off/On/Charging/Run etc. Each of these states will require a different set of actions. e.g in run, I have two thermostatic switches coded that will turn on the cooling pumps for the motor and the inverter when they reach a defined temperature. These will be triggered by relays connected to the Arduino.

Next step is to start reading in the shunt data and then mount it all in the car so I can begin interacting with the ABS/ASC. Fortunately, all the devices seem to run at the same bus speed (500kbps).

I also need to knock up a mount for the Arduino, CANbus interface, and various sundries. I bought an old ECU/DME off a BMW forum and I plan to harvest the connector so that I can re-use the existing loom and connectors. The stuff I want to fit in won't go in the old case so I'll 3D print something that will slot into the old cradle.

Right, that's enough for tonight.
Attachments
IMG_20200807_154035.jpg
IMG_20200806_162005.jpg
IMG_20200806_161946.jpg
IMG_20200806_114020.jpg
IMG_20200805_193914.jpg
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: Z3(00)

Post by bobby_come_lately »

Right, refreshed after a week off and time for a bit of an update. Forgive me if some of this is either repeated or a bit noddy. I'm writing these updates in three different places and have decided just to copy and paste rather than writing it multiple times or doing lots of editing.

Test-fit
After the last update I did indeed get the motor and gearbox into the car where they remain now. It wasn't as hard as I expected and it all slotted in beautifully as you can see from the pics below. A bit of 2x4 was used to level it up over the x-frame, ready for engine mounts to tack it in place.

This obviously isn't the final fitting. Some holes need opening up to fit larger bolts, the welds need reinforcing (I may need a different welder - mine struggled with the 8mm steel), and it all needs trimming and painting. But this is good enough for us to begin the big game of Tetris that comes next: fitting all the components into the engine bay and making up brackets to hold them.

Fuel-line removal
Before we got a welder anywhere near the front end, we needed to clear out the fuel lines. I jacked the car up onto stands again and my daughter and I got very mucky draining (not very well it turns out) the fuel lines and removing them along with the filter and any other gubbins (what even is that black cylinder next to the fuel tank?) This creates some nice space for running the future high voltage lines from the packs I hope to install in place of the fuel tank.

We haven't removed the tank itself yet, just clamped the lines. But we did soak all the key nuts and bolts on the rear frame in penetrating oil in preparation. When it comes off, the whole lot is going to need a good clean up and a coat of paint at minimum. Diff mounts looked OK though on initial inspection, which I wasn't expecting.

Engine mounts
We need to finish the mounting of the motor with a couple of struts to tie in to the old mounts on the cross member. Originally, I had planned to just do single struts at a diagonal from the front of the adaptor plate. But once the motor was in it became clear these might be quite awkward and uneven. Instead, having test fitted the inverter my daughter and I settled on a U-shaped bracket coming around the engine from the front plate that would allow us to do a couple of simple struts down to the engine mounts from its corners. Picture might make more sense.

This has the advantage of forming the base for the mounting brackets for the inverter and the high voltage junction box and maybe some of the cooling pumps. We set the height of the U to be right for the base of the inverter, allowing relatively easy access to the various connections - 35-way connector for i/o, AC input for charging, AC output for the motor, and DC input from the batteries, plus cooling in and out.

My daughter measured up and we cut three lengths out of 40mm box, as well as two plates from a length of 3mm strip that may once have been the mounting bracket for an IKEA float shelf. I don't have a metal blade for my mitre saw yet so this was done slightly unevenly with the angle grinder. I think that might be a smart purchase. We tacked this all together but putting it up against the adaptor plate realised it was all a bit skewed. So instead we tacked the sides of the U to the adaptor plate as straight as we could and then welded the base piece across them. That worked a lot better.

Eventually the U will be bolted rather than welded on, but a few tacks will hold it for now while we measure everything else up.

The two circles I drilled out of the 8mm plate will form the base of the final two struts. Just need to mock up the struts themselves now to get the angles right. More cardboard engineering.

Coupler
Our neighbour, Doug, dropped the coupler back round having machined down the rough nubs left from my cutting the centre out from the BMW clutch. Looks nice now. I'll probably leave it with just a couple of welds for initial testing and then if it spins smoothly, put a seam on all the way around. If it isn't straight enough he has offered to help me align the two clutch centres as he has the kit to do it on his lathe.

Heater
I chanced across a 2kw, 220v engine heater on Wish (later found it even cheaper on eBay) that might be a good alternative to my plan of sticking an electric heater core into the BMW unit. Certainly a lot less work! Does mean more water sloshing around but it will do for now and it might also be a way of warming up the batteries on a cold day. Plumbing will be interesting. Will have to step down the 350+ volts from the battery to drive it though. At least if I am to run it within specifications. Expect the heater element would be fine with a bit more juice but doubt the integrated pump would be happy.

HV Junction Box
I've been working on finalising the HV junction box. This is where the contactors sit that switch the DC supply from the battery to the inverter (and vice versa for charging). I have probably laid this thing out about 20 times before I finally took the plunge and started drilling holes in the mounting plate. Still it was only after I had drilled three holes that I realised the polarity matters on the contactors (they're not just big switches) and so my planned arrangement wouldn't work. So, two holes in the wrong places. It's only cosmetic and I'm the only one who will see it but still annoying.

The other tricky bit about making up the junction box is connecting everything together. I figured I would have to make my own bus bars and so bought a load of 20mm x 2mm copper strip. Anyone with basic maths will realise this has slightly higher cross sectional area than the 35mm2 cables I'm using to hook everything up.

The only problem with this approach is that the contactors I bought are horizontally mounted while everything else is vertical, so my bus bars have to go through 90 degrees. I started by measuring out neat diagonals, scoring lines and trying to fold the bars along a couple of 45 degree lines to make a 90 degree bend, with a couple of other vertical/horizontal bends bringing it all back into a straight line. This worked OK but the finished result didn't look great and it took a long time.

So, on my third attempt I just stuck the bar in the vice and tried twisting it with a big pair of pliers. The result: a beautiful smooth curve with hardly any work. You live and learn.

Only seven more to make...

Engine: sold
The engine went off to Scotland this week to replace one with a terminal oil leak. Didn't get that much for it (£110) but after it being listed for nearly a month I just wanted it off the drive. The buyer left me with some of the ancillaries to sell so that will get a few more ££s in towards the project. Still have the exhaust to go as well. If nothing else the cat should be worth a bit.

Even at that low price, the car now only owes me less than £500 plus transport, so I can't really complain.

Next steps
While on holiday I updated my todo list for the project which spanned two pages before I got scared and stopped. But mostly focused on the big game of Tetris now: getting all the other components laid out in the engine bay and brackets/mounts made up for them all. I'd like to have that done this week so that I can pull it all out again for finishing and painting. While it's out we'll clean and paint the engine bay and probably give the front suspension a spruce up. Think one of the front springs is knacked so that will need replacing at the same time.

The big unknown remains batteries. I have an order in as part of a big group buy but it is not clear when or even if that will deliver. And I'm running out of time to get this car at least functional before my self-imposed deadline of the end of the month. So might just have to take the plunge next week and buy a small pack to get me going...
Attachments
IMG_20200818_193915.jpg
IMG_20200818_182147.jpg
IMG_20200818_182140.jpg
IMG_20200818_182136.jpg
IMG_20200817_163113.jpg
IMG_20200817_144148.jpg
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Z3(00)

Post by Bigpie »

Coming along nicely, can't wait to see it spinning the wheels.
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
celeron55
Posts: 776
Joined: Thu Jul 04, 2019 3:04 pm
Location: Finland
Has thanked: 28 times
Been thanked: 110 times
Contact:

Re: Z3(00)

Post by celeron55 »

Be careful with the 220VAC engine heater. It's probably designed for AC all the way, including any thermostats, protections and the pump. With DC the non-resistive parts quickly arc and turn into black smelly lumps of undetermined material. Don't ask how I know.

Finding a way to generate 220VAC for it might be best.

The other option is to make sure the pump works on DC and to replace the non-DC rated switching parts with something else. If necessary, use an external pump.
arber333
Posts: 3265
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 80 times
Been thanked: 234 times
Contact:

Re: Z3(00)

Post by arber333 »

celeron55 wrote: Wed Aug 19, 2020 9:11 pm Be careful with the 220VAC engine heater. It's probably designed for AC all the way, including any thermostats, protections and the pump. With DC the non-resistive parts quickly arc and turn into black smelly lumps of undetermined material. Don't ask how I know.
I agree. My experience was AC heater wire was touching the pipe wall and it created small short through water. I spent a month searching for it.
This is why I rather use fuel heater.
But maybe you would also want to consider PTC heater element. It is way safer, but you must have space to mount it in the air duct or near the intake.
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: Z3(00)

Post by bobby_come_lately »

arber333 wrote: Wed Aug 19, 2020 11:03 pm
celeron55 wrote: Wed Aug 19, 2020 9:11 pm Be careful with the 220VAC engine heater. It's probably designed for AC all the way, including any thermostats, protections and the pump. With DC the non-resistive parts quickly arc and turn into black smelly lumps of undetermined material. Don't ask how I know.
I agree. My experience was AC heater wire was touching the pipe wall and it created small short through water. I spent a month searching for it.
This is why I rather use fuel heater.
But maybe you would also want to consider PTC heater element. It is way safer, but you must have space to mount it in the air duct or near the intake.
My plan is to take out the switch and pump and use an external one as you say. The VW/Audi clones are dirt cheap. This just makes for a nicely-enclosed heating element basically and that was worth the money.
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: Z3(00)

Post by bobby_come_lately »

Two updates tonight because I never got around to posting the first one about five days ago...

###

The project progresses apace...or at least it was progressing. Now hitting the limits of what I can do without some batteries. But here is where we're at:

Engine Bay Tetris
With the engine mounted, we could start working out where everything else goes. Through a process of trial and error, and lots of tack welding, we got the inverter and the high voltage junction box mounted in the engine bay, using a combination of 40x40, 40x20, and 20x20 steel profiles. The 40x40 might seem a bit excessive, especially since it is the thick walled stuff we made the adaptor plate from. But this will be the mounting point for the motor mounts that drop down to the rubber bobbins below. These are all now cut and waiting to be welded...

Welding Woes
Our skip-dived welder hasn't been performing brilliantly for the last week and needed a little TLC. A new earth clamp, some more gas (this time from Hobbyweld), along with the relevant adaptors and some new shrouds have all either been ordered and collected, or are due to arrive in the next day or so. This should allow us to do some much better quality welds when we take the motor back out and finalise it all before painting.

Cooling systems
In what has been an expensive week for little bits, I bought a load of elbows for the 10mm and 19mm pipe that will make up the two cooling loops for the inverter and the motor. I also ordered a very cheap but slightly battered motorbike radiator with 19mm fittings to go into the inverter loop. This has a filling cap so should work fine as a small reservoir. For the oil loop I will use the old power steering reservoir.

Plan is to mount each radiator and pump roughly in front of the things they are cooling. Some little plates and strips welded onto the rest of the mounting cage should hold them nicely.

Wiring
When I sold the combustion engine, I hung on to the loom, thinking I could re-use lots of it. The plan was to keep the original plugs on it and salvage the sockets from an old ECU. In reality this is looking like less of a good idea. It just leaves me with awkward shaped connectors and a load of wire that doesn't quite go where I want. So I'll keep some of the old loom and butcher some of it for the relevant wiring and hook it all up with new connectors.

I still haven't totally established what the intelligence at the heart of this loom is going to look like. Right now I'm playing with a Teensy 3.2 (for the battery management system), an ESP8266 (for an interface back to my home automation system and perhaps some WiFi-based diagnostics), and a Mega2560 Pro (for managing things like cooling pumps and ancillaries - all of which could be done in analogue fashion and may yet be).

Batteries
From the start of this project I have had my heart set on the BMW hybrid batteries. Watching the research into these on the OpenInverter forum they looked niccely designed and ideally specified for what I wanted. I did hope the whole pack from the BMW 330e would just drop in to the engine bay for a while but my tape measure soon told me that wouldn't (quite) work. It might have done if I had gone for the Lexus motor option.

I've been tracking lots of different units for sale on eBay but they seem to have gone up since I started looking. Whereas before there were a number for sale for around £8-900, now they're all up at £1350-1800.

Then, this week Jamie, a fellow forum member who has helped me lots on this project, spotted a pack going for just £500 on Facebook Marketplace. I contacted the seller and thought I'd agreed to purchase it, only to be gazumped when someone else could collect before me.

So, the search continues...
Attachments
inverter-and-hvjb.jpg
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: Z3(00)

Post by bobby_come_lately »

It feels like an incredible amount has happened since the last update just five days ago. I have batteries. The car is stripped again. And most of the welding and fabrication is complete.

Battery wrangles
So, I couldn't quite let the well-priced battery pack on Facebook go. So the morning my gazumper was due to collect, I messaged the seller and offered him 50% more. He relented and after a little back and forth, we agreed (again) I would collect on Friday after putting down a deposit. After all the mucking around I wasn't confident I would see my deposit again or the batteries. But figured it was worth a punt.

In the end the seller was a lovely guy. Just sick of being mucked around by buyers. I had an easy journey over to Bradford and back, given how bad the M62 can be. And returned with a battery pack in the boot.

The following day we craned it out of the car but didn't get any further as we were focused on the car (below). The day after, we got to work stripping it down.

These packs are something else. Beautifully designed. Five shoe-box-sized modules are mounted in the pack along with a high voltage switch box and refridgerant cooling system. Strip the five modules out and the rest of it is incredibly light.

I got the packs out along with high voltage cables and the battery management loom. I have subsequently stripped and separated this to leave only the CANBus and power wiring for the individual modules.

This loom will plug in to a CAN transceiver and from there into a Teensy 3.2 running the SimpBMS software. Teensy is up and running and I'm just waiting on the right CAN transceiver module, which is due to arrive in a couple of days.

Battery box
Now that we have batteries we can think about how to mount them. A little shuffling around and I realised that three side by side running with the long edge parallel to the car would fit perfectly. I can stack the other two on top - leaving room for a third if I want to up the pack voltage at a later date.

The measurements for this is about 56cm by 40cm. It just so happens I have been hanging on to the frame of our old washing machine in case the steel came in useful. Its dimensions? 60cm by 43cm. Guess I'll be using that as the basis for my battery box!

More fabrication
The other thing we did on the day the batteries were craned out of the back of the car (my wife's: they wouldn't fit in my Alfa GTV), was finish our game of engine bay Tetris. We worked out the location for the oil cooler and pump for the electric motor, the radiator and pump for the inverter, and the power steering pump. When I say 'we', what I mean is my daughter came up with good idea after good idea, proving once again that her spatial intelligence is greater than my own.

Having scribbled various instructions to ourselves in Sharpie on the existing metal, we set about removing the motor and gearbox again, along with the whole steel cage that now includes the engine mounts (I had tack welded those on at some point after the last update), as well as the mounting points for the inverter and junction box. This almost worked: it turns out the the engine mounts make the cage fractionally too wide to be lifted straight up out of the engine bay on the crane, and I didn't notice soon enough. Therefore a few of my crappy tack welds from when the welder was misbehaving were ripped apart, leaving me a little steel jigsaw puzzle to reassemble off the car.

Starting very early this morning, I first (quietly) cleaned the engine bay down again ready for reassembly. We've decided not to paint it for now but instead wait until the whole car gets a respray, once it has its new body. Then as soon as it was decent to start making noise on a Bank Holiday, I started welding and grinding. I turned all the spot welds into seams at the joints and capped most of the open ends of the steel box and filled in the sections I had cut out to add captive nuts. I added (my daughter being busy today) brackets for the radiator, water pump, oil pump, oil cooler, and vacuum pump (another new arrival). I straightened up some of the brackets that had been tacked on before a bit skewed. I drilled out some of the holes for the transmission mount that were too small before (I didn't have a decent 12mm bit). And I started making a bracket for the power steering pump (which I didn't quite finish). Finally I gave the steel cage three coats of zinc primer and coated one side of the adaptor plate - now also a mounting point for various other brackets.

I still want to trim away some excess material from the adaptor plate as it is ridiculously heavy. And I need to beef up the welding on the coupler, which only has a couple of tacks on it at the moment. But then with a few coats of paint, the major fabrication is done and we can start to put the engine bay back together for good (or until something goes wrong or we decide to do it all differently.

Incidentally the upgrades to my welder were a partial success. I managed some half decent welds (pictured below), which seemed to be impossible before. But some were still absolute poop (not pictured below to save my shame). I think it's probably a combination of wrong settings and poor surface preparation now. But the welds are now strong at least, even if they aren't always pretty.

Junction box
Perhaps the most unexpectedly time-consuming part of this whole build has been the high voltage junction box. I finally completed the mounting of all the components this week, setting the resistor down on the mounting plate with thermal compound, trimming all the mounting screws to the right length, and routing the wiring through some 3D-printed retainers. I also drilled the case and fitted the glands for the 35mm2 cables, and mounted a 16-way locking connector for all the control signals. Oh, and I also made up the cable to connect up the ISA shunt, an additional monitoring device that will give me detailed information about battery performance. Last job is to solder up the 16-way connector. Fortunately, I hadn't yet done this when Jamie corrected my understanding of the way the inverter control board drives the contactors and relays in the junction box. Turns out I can do away with the relays I was using to switch these connections and run them straight off the board, simplifying things greatly.

And that will do for today's update. Especially since I've just realised that in spite of all of the above, I have hardly taken any photos!
Attachments
one-decent-weld.jpg
lid-off-bmw-330e-battery-pack.jpg
bmw-hybrid-battery-modules.jpg
bmw-330e-high-voltage-junction-box.jpg
bmw-330e-battery-pack.jpg
330-pack-close-up.jpg
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: Z3(00)

Post by bobby_come_lately »

The problem with starting an EV conversion on an MOT failure is that you also have to address all the reasons it failed in the first place. And with a 174,000 mile car, there can be a few of them. Obviously there are no issues with the engine or emissions now. But somewhat predictably, the more I have dug around in this car, the more issues I have found.

Front corners
I noticed a few weeks ago that one of the front suspension springs was broken, so knew that would need replacing before we put the car in for a test. When I took the shock absorber off I found this was also in a pretty rotten state, with the bump stop completely mashed and split. So I figured I probably ought to replace this as well. If you're going to do one corner, you really should do the other, and suddenly you're looking at quite a bit of money. If you go OEM that is...

Trawling around for replacements though I noticed some absurdly cheap sets of coilovers to fit this vehicle. And when I say absurdly cheap, I mean I put in an offer of £195 - new, including shipping - and had it accepted. Now are these coilovers going to be any good? Absolutely not. Eventually I will have to replace them with some decent ones. But, for less than the price of doing both front shocks and springs, I get shink new components all round with - critically - adjustable ride height so that I can balance out the weight differences from the conversion.

While I was at the corner I decided I really ought to strip off and clean up the incredibly crusty front knuckles and calipers. The bolts all came off surprisingly easily with a short breaker bar, but splitting the taper at the bottom was another matter. Again, somewhat predictably, I managed to split the boot surrounding the ball joint on the lower suspension arm. I was a bit cross about this until I realised that both suspension arms were so rusty that they too were probably going to be an MOT failure at some point. Out came the credit card again for some budget parts. Incredibly, droplinks, bushes, and full suspension arms for both sides were just £75.

That only leaves the knuckle, caliper and brakes as the original components. If I had more money I would probably replace all of the above. The knuckles are very rusty, albeit mostly just on the surface. But the tinware around them is totally shot. And the flexi pipes are completely seized on the calipers. Not sure how I am going to get those off for a proper clean-up yet.

Finally, while I'm taking the front end to pieces, I noticed some fairly serious corrosion on the X-frame brace. I took this off and hit it with the wire wheel and it is pretty bad: great big holes. It's not distorted though, and between the holes there is some solid metal. I'm going to have a go at welding this back up once the rust I can't get to has been treated.

I picked up some Hammerite today so plan for this weekend is to remote the remaining suspension and brake components (if I can), give everything a thorough clean and a coat of paint ready for refitting. Will need a new wire wheel for this though: wore mine down to the metal cleaning up the brake rotors and the X-frame.

Battery Box
Meanwhile in the evenings I've been doing a lot more planning of the battery box. The washing machine case sadly won't provide all the steel sheet I need. But its top and bottom frames will give me a great starting point. Plan is to cut all the way around the frame just below the door, giving me about a 30cm tall box. I'll then drill out the spot welds from the other end of the frame and weld that frame into the top for support.

Inside this box will fit two rails. I have some thick rectangular steel bar, about 14mmx8mm that will work well for this. I will drill and tap M6 holes into this bar to hold threaded rods that will rise up through the pairs of holes at the end of each of the battery modules. This will allow me to stack them up on top of each other with some space in between.

Cooling is an interesting question. I had thought I would just go with air cooling at first, but this opens up the possibility (perhaps likelihood) of moisture getting into the battery box: not ideal. Shall have to mock it up and keep an eye on tempratures.

Wiring Loom
Final part of this update: I've been continuing with the wiring loom. Getting rid of most of the old loom was the right plan. The new loom is actually relatively simple by comparison with all the sensors the old ICE required. Mostly just power and CANbus flowing around. I plan to daisychain the CANbus connections: car (ABS/dash), to VCU, to inverter, to charger (part of inverter but has separate CANbus interface), to high voltage junction box, to battery box. I've decided to handle any step down to 5V inside each component, so that I'm only routing 12V power. That should reduce the chance of stupid mistakes and make wiring easier.

Where it gets a bit more involved is routing switching and control for the various pumps - water, oil, vacuum, power steering. Will handle that once they're all in the car though.
Attachments
z3-front-knuckle.jpg
nearside-wheelarch.jpg
cleared-engine-bay.jpg
bmw-z3-x-frame-close-up.jpg
bmw-z3-x-frame.jpg
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: Z3(00)

Post by bobby_come_lately »

Two steps forward, two steps back...

Right now, I wouldn't begrudge the authorities denying to approve my car for the roads, and possibly taking my licence, given that my spatial awareness is so bad I seem to have believed that two different components could occupy the same space in the engine bay. Let's rewind...

Front-end rebuild
Somehow it has been over a fortnight since my last update so this one is a bit of a monster. During that time there has been lots of activity, but work has been ramping up and in my infinite optimism, I also signed up for a course in something completely different earlier this year which requires lots of reading. Suffice to say I'm not exactly flush for time right now, so while things are getting done I'm getting worse at documenting them.

Also, with my daughter now back at school and clubs, most of the work has fallen to me now. So with only occasional help, I finished stripping all the components off the front end, wire wheeled everything, repaired some rust (notably on the X-frame that ties the front end together), and gave everything good coat of Hammerite.

Then, I did it all in reverse, this time with new lower suspension arms, bushes, track rod ends, and drop links. Oh, and a new set of coilovers. This has not all gone smoothly. Firstly, I couldn't get the new bushes into their mounts. I didn't want to spend £60 on a cheap press, not because I didn't want one but because I didn't want to have to store it. And none of my local garages would take the job on - or even had a press. In the end I bought some new mounts with the bushes already fitted. I'll either keep the spare parts or sell them on.

For a measly £195 I'm very happy with the new suspension, including rear shocks and springs and coilovers for the front. I got the coilovers compressed down and fitted to the old top hats without too much issue. Except for the massive scratches I seem to have put in the dining room table. Whoops. I even managed to cut out some new gaskets from a sheet of gasket paper on my wife's CNC paper cutter (see pics)

The problem came when I got them on the car: the springs rub on the tires. Reading the forums it seems this is a fairly common problem. I'm going to be changing the wheels anyway, so I'll think about this properly down the line. But for the time being I have kept the front end jacked up and ordered a very cheap set of 10mm spacers. I'm hoping this is enough and that the original wheel bolts are long enough.

Headlamps
One quick job was restoring some very milky headlamp covers. I could get them much better with a little more time, but I good going over with metal polish and a microfibre cloth worked absolute wonders. Good enough for now, since they won't be on the final car after the body conversion.

Battery Box
One thing that was a little more interesting was the battery box. My daughter and I started executing my cunning plan to turn an old washing machine into a battery box not long after the last post. We sliced out the middle third, around the door, then began welding the top and bottom sections together to create a box with enough space for 6 BMW cells in a 3x2 configuration. We need some more steel to finish it but it is now pretty solid, and great for mocking up (below) as it is pretty light still.

The original plan had been to mount the six batteries onto two thick pieces of steel bar I had lying around, with threaded rods coming up through the holes at each end. But then I had a bit of a brain wave. The original case already has perfectly spaced threaded holes sunk into it in the right orientation. Why not just cut that bit out of the box and bolt it into the bottom of my battery box? We shall see how that goes.

I also plan to re-use the original lid, cut down to the same size as the battery box. It has holes in the top that will match up to the threaded rods.

Battery Management System
I'd written most of this blog post before I remembered I'd done this. I stuck the SimpBMS software on a Teensy 3.2 microcontroller and hooked it up to the BMW cells via a CANBus Transceiver. Incredibly, it worked first time giving my nice clear readings of the voltages across all my cells. They're all sitting pretty low at 3.6-something (it was a couple of weeks ago now) but with very little delta, which is a good sign. As soon as I get a charging system hooked up I'll give them some juice.

I have stripped down the loom from inside the battery box and remade it with just the bits I need and then re-wrapped the lot in cloth tesa tape. The BMS itself is now mounted in a custom 3D-printed case. It's not amazing (there are still a load of jumper wires in there), but it will do for now.

The battery box came with both high and low voltage connectors, including a locking ampseal plug on the outside with all the tails just cut off. I plan to re-use this and have 3D-printed a shround to cover the wire exits. I'll just splice my own cables into this rather than starting from scratch. I've also knocked out a little clamping plate so that it can be fitted to a cut out of the sheet steel in my new battery box.

For the high voltage connection I have designed something similar to the shroud I made for HV connections on the inverter. It's not totally finished yet but only needs a little polishing. What I don't yet have is an emergency disconnect. Still thinking about that.

Charger
My plan for now is to use the charging capability of the hacked Prius Gen 3 inverter. The only problem being that it doesn't come with this capability out of the box. No-one has written the software yet and I've had no joy getting the Atmega chip that runs it to take code. So, I've ordered one pre-loaded with a bootloader and will get my local soldering genius to swap the chips when I can get over there.

Heater
Another thing I almost forgot before I looked at the photos from the last fortnight: I have modified the cheap Russian AC water heater module I got to disconnect and remove the pump from it, leaving just a nicely encased 2kw heating element with 19mm barbs for inlet and outlet. See pic below (I need to take more photos!).

I've removed the final pipework and solenoid from the heater matrix, leaving just two 19mm barbs sticking out of the firewall. I just need a reservoir, another pump, and a temperature sensor now and I should be able to set up a nice little heater loop.

I'm planning to power this off the full battery voltage, so will likely need an extra contactor. Considering using one of the ones from the BMW battery pack.

Assembly
With the front end back together and looking all clean and shiny, it was time to start adding all the good stuff in. While everything was back out of the car I had welded brackets or at least captive nuts for various ancillaries on to the adaptor plate or the combined motor mounts/mounting brackets for inverter and high voltage junction box.

My daughter and I first bolted the transmission to the adaptor plate, using a mixture of the original BMW bolts and fresh ones. We might go back and add some threadlock once it is all working. We then added in the coupler, which I'd done some welding on while it was out of the car. I've added a couple of weld around the press fit between the gearbox splines and the tube, and around the Ford clutch centre that mates with the motor splines. I then filed all this back as neatly as I could. Is it balanced? Only one way to find out. I sort of wish I had done a full seam between the BMW centre and the tube but it does seem very solid. Maybe next time it comes out I'll do that and see if someone can balance it.

Next step was the motor, which slotted on and bolted up surprisingly easily. Getting the splines to line up has been a bit of a pig in the past.

With the unit altogether I looped some straps around it all and we craned it into place. After a bit of shuffling back and forth we managed to get the propshaft aligned, the front mounts in place, and the gearbox sat back on its mounts. An hour or so under the car and I had all this bolted up as well as the bolts between gearbox, giubo (check out the spelling! No, me either) and propshaft in loosely. Everything will need torquing up at some point. Maybe some more threadlock too.

First thing I noticed: the motor mounts (and so everything riding on them) have come out a little skewed. It's not major and it won't prevent the car running. But I think it's going to annoy me eventually. This was the least of our problems though...

Where to begin? The oil cooler mounts for the engine cooling circuit are a fraction - maybe a centimetre - too high. So the output from the motor and the input of the cooler don't line up. And they're too close together for a curved bit of pipe. The idea was I could just use a straight short to connect them. Since I really don't want to take the adaptor plate to which they are welded out again, this is probably going to require some brute force engineering as I bend the mounts to make it all fit.

The oil pump mounts require some shorter bolts. This is fine, but it meant I need to get some more or cut some down. Either way, it didn't get attached today.

I had made a mount for the PAS pump. I knew this one needed some finessing so I left it in two parts that could be welded together once I tested the fit. Unfortunately, leaving these two parts separate only allowed for adjustment in one dimension and I need to adjust it in two. So more fabrication to do.

Then we get to the real problem: the inverter mounts and everything that hang off it (coolant pump, radiator) will foul where the battery box should fit. How I didn't realise this I have no idea, but it became pretty obvious when I fitted it all this time. The inverter needs to move up, left, and back to clear the battery box. And the ancillaries need relocating completely. To where, I'm not yet sure.

So, out came the grinder. I masked off as much off the engine bay as possible with carboard before cutting, but the dust and particles still get everywhere. I'll need to grind back some of my nice new paint to weld in some new mounts but this can all be done in situ now - especially now my welder is working better. On top of new gas and a new earth clamp, I have now rebuilt the torch, resulting in much less play in the swan neck and much better control of gas and wire flow.

Next steps
So (this has been a very "So..." blogpost. Sorry.), instead of just wiring and plumbing it all now, I obviously have a fair but more fabrication to do. I'll probably start with sorting out the PAS pump and the cooling loop for the motor, since those are all in the least accessible places. I forgot to mention above that the vacuum pump mount was actually perfect, so I just need to work out how the pressure switch I secured works and hook all that up.

Then I will move on to the battery box and get that finished up. Will be great to get the batteries actually into the car, though I might want to test charging them outside of it to start with! With the batteries in I can adjust the coilovers to get a decent ride height.

Finally, once the battery box is made up and mounted, I will remount the inverter. In the meantime I'll likely eke out some hours to get cracking with the wiring now that the position of everything is pretty much finalised. I still need to make a case for the vehicle control unit was well, something I have been going around in circles on the design for.

That all done, I still need to get around to the back of the car, changing the rear suspension, dropping out the fuel tank, and seeing if any remedial welding is needed at that end (I didn't even mention that I had patched one of the sills - needs redoing more tidily but it has stopped the rot for now).

Until next time...
Attachments
battery_box_2.jpg
battery_box_1.jpg
battery_box_3.jpg
gasket_design.jpg
top_hat_gasket.jpg
headlight_before.jpg
front_knuckle.jpg
coilover.jpg
headlight_after.jpg
bms.jpg
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: Z3(00)

Post by bobby_come_lately »

Photos I couldn't attach to the last post...
Attachments
engine_bay_layout.jpg
engine_mounts_painted.jpg
modified_heater.jpg
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: Z3(00)

Post by bobby_come_lately »

It has been three weeks since my last update. The pace of this project has definitely slowed as work has picked up and the weather has worsened. Nonetheless, there is plenty of progress to report. Unfortunately I haven't been great at taking photos this time around so forgive the paucity of pictures.

Battery Box
After my disastrous spatial miscalculations of the last update, I decided I wouldn't try fitting anything else until the battery box was actually done. This has taken a lot longer than expected. For a start, I needed more steel than I thought to get a properly sealed box all the way around. One of the washing machine panels I was going to use bowed out at the top and trying to rejoin it to the frame in a way that made sense was just too much work. So I cut it off and replaced it with a fresh piece of steel, as well as adding one to the bottom, and a patch to the back to make it nice and square all round. The welding isn't exactly pretty but I'm slowly getting more consistent and only occasionally forgetting to turn the gas on.

Before I put all the new panels on though, I needed to fit the base plate from the original BMW box. This being aluminium, I couldn't weld it, so instead I welded in four standoffs to the base of the box and drilled them to accept rivets. Having trimmed and neatened the base plate up with the grinder, I dropped it in, drilled through, and test-riveted it. It worked beautifully.

So, the flat panels were welded on, and the whole lot was given a coat of zinc primer. Next up: mounting it in the car.

This was a little complicated. The box had to sit above the steering rack and protrude out almost to the radiator where there was nothing obvious on which to mount it. At the back, I concocted an arrangement of 40x20mm box section welded to two circular standoffs that straddle the steering rack bolts into the front cross member. Two pieces of plate then extend towards the back of the car from these standoffs with holes to line up with unused 8mm holes in the cross member. This took a lot of measuring and tacking in-situ before it could all be welded up and ultimately, welded to the bottom of the battery box.

At the front I decided to re-use the radiator mounts, since these will no longer be used. They're inn pretty good shape and tie directly to the front frame so should be strong enough, though I can always reinforce them if needed. Another piece of 40x20mm box spans the gap between them with little lips sticking up, drilled with two more 8mm holes that pass through the radiator mounts. Again, with it all in situ I tacked it to the bottom of the battery box then removed it for some proper welds.

Given the way this has been constructed, it's far from water tight, so I've bought some brush-on seam sealer to go over all the welds, joints and gaps. Once this is applied, I'll be adding a layer of EVA foam (OK, yoga mat) insulation all the way around before refitting the base plate.

This leaves two final jobs: the high voltage connector and the lid.

I prototyped a design for the HV connector on my 3D printer which showed up all the flaws: I'd over-sized the spaces for captive nuts and undersized the holes for the connectors. But version two is well on its way. In fact it is two thirds printed but my printer decided to throw one of its periodic tantrums half way through the third component and I haven't had time to sort it yet. I may also need some more PETG. Once I have tested the design I will share it like all the others.

For the lid, I plan to reuse the lid of the original battery box, cut down to fit. This will need a little modification on the underside to create a good seal (probably bonding on some flat strips of aluminium and using more EVA foam). But it looks great. It's all marked up and just needs cutting now. I plan to rivet an aluminium panel to the front of the box with holes that match up to those on the lid so that it can be bolted down.

Inverter Mount
About five times over the last three weeks I have dug out the inverter, balanced it in various positions in the engine bay, muttered swearily, and put it away again. On the sixth attempt, I had not exactly an epiphany but at least an idea of how it could be mounted.

I found some fairly thick (maybe 2.5mm? I should probably check) bar in the cellar and decided I could make a U-shaped cradle from that to pick up the Prius inverter's three mounting points. I mocked this up in cardboard before cutting some strips to length with the handsaw - limited time now means earlier starts on the weekend when using the grinder might see my neighbours turn violent. Fortunately the welder is relatively quiet so I tacked the pieces together before checking the fit, then welded it up properly along with some captive nuts. It's not as stiff as the 20x20 box that the HV junction box frame is made from. But once it is welded in it will be stiff enough. A diagonal of 40x20 at the back and two 20x20 uprights will tie it into the rest of the mounting frame.

Cooling
This just leaves the cooling for the inverter and motor. With the battery box in place, I can now see that there should actually be space in front of it for both radiator and oil cooler. This will mean longer pipes than I planned but it will make mounting nice and easy as I can just tie into the slam panel. Plenty of room to route the pipes around the side of the battery box.

Now I just need some time and some decent weather - ideally decent weather precisely when I have some time!
Attachments
hv-connector-printing.jpg
battery-box-under-construction.jpg
battery-box-mounts.jpg
battery-box-in-situ.jpg
battery-box-complete.jpg
Post Reply