http://www.evalbum.com/2784
http://cruzware.com/peter/blog
Back when I was in college at UC Santa Cruz, I was a founding member of the FSAE Electric team there, Formula Slug. Peter the previous owner donated the car to the team and it ended up in my care. There were no batteries, but if I hooked up a high voltage power supply to where the battery + and - used to be and keyed on, I could spin the motor, so the car was mostly functional just needed a battery to get rolling again. The wiring in the back could use some touching up - high voltage was a bit exposed. The motor and inverter were from a company I had never heard of called Greatland Electric - if you search up the part numbers on that page, all you get is the motor in my car. The previous owner gave me a datasheet which had some useful information but not a whole lot. There was no communication interface that worked - it had CAN pins but nothing was on the bus no matter what speed I set, and no (documented) configuration interface either. The motor is mounted to the original transmission through a clutch, supposedly is capable of 250Nm, was RPM limited to 4000RPM with the existing controller, and limited to 80kW or so.
Other than picking up some batteries for it, I didn't really get to working on it until the pandemic struck, when I told myself I could get it running before society "resumed" again - so I set out to do that.
First step was to get the battery pack going. The batteries I had were 28s 29ah Farasis modules - the same as used in Zero Motorcycles. But, I had no BMS for them. The year after I graduated the FSAE team had built up their own BMS using LTC6811 chips over IsoSPI, and wrote the software. So I made my own BMS using the related LTC6813 chips, and used the Formula Slug software library to communicate with them. I was able to use this to spin up the motor and drive the car around a bit, around late February 2021. You can see the exposed main pack fuse here - there are some less obvious things that needed fixing as well. I was able to put the batteries in the original Electro Automotive battery box that the old iron phosphate cells were in before, which was quite handy. Next up, charging. The car came with a Manzanita Micro charger - many of the old EV conversions I've seen have them, it's the green box in the above photo. It didn't seem to work when I tried it, so I contacted the original manufacturer. Turns out, it will overvolt and fry itself if you power it on without a battery connected. So, I mailed mine in to be fixed, got it back, hooked it up to charge for a bit, it seemed to work but the current output was a bit spiky. I then opened my battery contactors, plugged it in again, and fried it again. So, I decided it was time for a better and more modern charger, preferably with built in J1772 negotiation. This is when I really first discovered openinverter and the Tesla Gen2 charger - got my hands on one from Ebay and a kit from the shop, was able to get it set up and running and start J1772 charging pretty easily. The main things that tripped me up were needing to desolder the connector from the Tesla board (this was peak supply chain shortages) and needing to set up the CAN termination.
I also set up a real high voltage junction box at this point to reduce the chances of death or at least dropped wrenches wreaking havoc, and to give the charger contactor a place to be. Once I fixed the sound system, getting the subwoofer working (very important) and added a display for battery voltages, pack current, and a power bar (top line of the display) the car was driveable. This was June 2021 or so, so I had basically accomplished my goal! I started just driving it as much as I could. Found out it had about 30 miles of range with the 7.5kwH or so the 3 Farasis modules had in them, which wasn't much but was enough. The controller did some regen but really not much - only up to 15ADC and only below 2000rpm. The motor was definitely plenty to get the car moving, the battery was definitely still the limiting factor - 80kW on these batteries can be nearly 10C, so you could only really do that for a second or two before it wasn't a good idea. But, was still able to chirp the tires a bit in second gear.
Next up was a sort of combo VCU/contactor control board. I had been running on a breadboard hanging out by my feet talking over IsoSPI and driving a little display in the dash, so I built that as well as contactor control, some 12V GPIOs for various outputs for the lights on the dash, etc into a PCB and installed that into the car. I was able to write up an SoC estimator and use that to drive the fuel gauge in the dash, as well as light up some of the LEDs for various faults (including the low 'fuel'/reserve light set for 15% SoC or below). I also set up a CAN interface on here for once I replaced the inverter so I could use data from it to drive the tachometer or send commands/limits to it from the BMS software. Next up was better batteries. I was able to get ahold of some fresher 32ah modules of the same form factor - the 29ahs were well used. I was able to swap these in for the original 3 pretty easily. I then set about building a second set to go in the front, they fit pretty much perfectly in the Electro Automotive battery box that took the space that the fuel tank used to occupy. I have no plans to fill the frunk with batteries - it's great to have that space. This allowed me to finally really put the pedal down and try to reach that real 80kW target. This is when I found that sometimes, you end up doing a 'clutch burnout'...you can hear the RPMs surge in this video when it happens. Generally it didn't happen though. With the 4000RPM limit and the gearing, 2nd gear only got you to 30mph (quite quickly though) so 3rd -> 4th was usually how I would pull onto the highway.
At this point the car was pretty sweet so I just started driving it around more. With 6 of the Farasis modules this got me about 18kWhr or so, which gave me about 70 miles of range, consumption was 210-240wh/mile depending on various factors (out of the battery, not including charger losses). For example, this was after about a 35 mile mostly 50-60mph drive starting at 4.15v/cell or so. But, the existing inverter was now the limiting factor of the car. The motor itself was fine - torquey, and I figured with a new inverter I could actually configure I could get a higher top speed out of it. After some investigating it became pretty clear that a Leaf inverter with the openinverter control board was the best option, so I bought one off Ebay and the kit from the shop. The inverter arrived with the busbars a bit busted up, which I figured wasn't an issue, until I opened it up (voiding any chance of returns) and found that the PCB and one of the modules was cracked. So I basically bought some spare inverter parts for $500. It did allow me to start figuring out how the inverter would fit in the car, and allowed me to get ahead on desoldering the unobtanium connector. The resolver interface on the openinverter board with one pin of sin and cos tied together is also perfect for me - since the resolver in the Greatland Electric motor somehow only has 5 wires coming out of it, sin and cos have a common somewhere within its windings. I then bought a whole Leaf gen2 drive unit from a junkyard - $1100 USD for the whole stack. I figure if I ever want to swap out the Greatland Electric motor for the Leaf motor I could just use the original control board and CAN control since I hadn't modified its matched control board. Also, it came in handy for bringup of the Leaf inverter, figuring out the intricacies of using it using the OEM harness and known motor control constants, before I tried using it with a motor that nobody else in the (Western) world seems to be aware of. I ended up having to set pinswap to 6 which it wasn't at originally - curious if anyone else had to do this for their Leaf inverters.
Just in the past week or so I finished integrating the Leaf inverter into the car. I ended up trimming one of the DC input busbars so I could have the cables exit sideways, and 3d printed shrouds for the DC input and phase output. Some initial guesses about motor control constants later and I had the motor spinning, and once I had corrected my reversed resolver constant (resulting in flux strengthening instead of flux weakening - thanks Pete), I was off and running. I drove the car around a bit honing in on some initial guesses of flux level and lqminusld which seem to be performing pretty well, still more tuning to do but I'm fairly close to where I was with the Greatland Electric inverter, except with much better regen, the higher redline I had always wanted of 5600 (matching the 914's original redline). It still feels a bit power limited, but I figure with some better tuning, perhaps running the log based parameter estimator I'll be able to get some better performance. Still very happy with how the openinverter Leaf inverter worked out - I figure any off the shelf inverter would've been more expensive and tougher to set up with a motor that came with no parameters. And now I finally have a functional tachometer.
What's next? In rough order...
- Optimize motor controls and raise power level - to the point I need to set up a power limit
- Swap throttle pedal (I have one of the BMW pedals already, just needed to get the new inverter in first)
- Either a knob to control regen level, or a sensor to blend with the regular brakes (Anyone have any tips as to which of these are better?)
- Third set of Farasis modules
https://github.com/nickyivyca/914-control
https://github.com/nickyivyca/lib-mbed-ltc681x