Tuesday, September 25, 2012

Starting to fill the engine compartment

The motor is in the car and I actually spun the rear wheels with a 12 volt battery!  The other good news is I think I'm winning the war with black widows since I took out 4 females and 2 males last night (shudder).  It's amazing I didn't have nightmares last night considering they're the basis for all my childhood fears.  

With the motor in, it's time to start filling the extra space under the hood.  The A/C compressor basically only has one place it can go unless I get all new hoses.  It needs to go to the right of the motor if you're looking from the front of the car.  I got a 1/4 inch plate of aluminum to mount to the front of the motor.  While I'm at it I was figuring out how to mount the blower fan.  Since I plan to run the A/C off the main motor, when I idle at a stop light it'll be going about 700 rpm.  The motor wants to go 1500-2500 rpm to properly cool, so it'll need some help.  I got this 12 volt blower fan and mounted it to the aluminum plate blowing through a hole in it.  

You can see the hole here.  I just have to make an angled duct to turn the airflow down into the motor and cover up all the extra inlet holes.

Here's the bracket I'm working on for the compressor.  I took the old compressor mount and chopped off a bunch of features I don't need.  Then I welded some angle iron to it so it can mount flush to the aluminum plate.  There's an extra "foot" that you can see on the right side.  That'll attach to the motor mount to stiffen the whole thing up a bit.


Fits perfectly!  And even better, the A/C hoses still reach the fittings.  


Pulleys line up? Check
For future reference, I'm thinking of a row of 8-9 batteries in front of the motor and behind the AC condenser, which is kind of below the fan in this pic.  Gotta clear the sway bar too.  So many things to think about!


Belt going to clear the fan?  Check


Next up I've made some cardboard boxes the shape of what I think my batteries will look like.  The original plan was to use 60 of the 70 Ah Calb cells (SE70) and put about 26 of them in the front for weight distribution.  Well, they just a few months ago came out with the CA line of batteries that are supposed to be superior.  Only down side is they don't come in the 70 Ah size!  Well maybe 192 volts wasn't enough and I should go for 70 of the 60 Ah SE cells for a nominal pack voltage of 224.

Either way, I'd like to fit 140 lb of batteries up front, and that will take a surprising about of space.  I'm starting to think I can only get about 20-21 cells in there (~100 lb) without really cluttering things up, but that'll probably be okay.

Next up I'll be making the inlet duct to route the fan air into the motor.  I'm also preparing to buy about 400 parts from mouser and digikey to build the controller board and IGBT drivers.  More on that later...

Thursday, September 20, 2012

Motor Controller Part 1: Design

In order to get power from the batteries to the motor without using a big on-off switch, you need a motor controller.  Since I'm using a higher than "average" battery pack voltage, I need a high voltage controller.  I could just buy one, but what's the fun in that?  Plus I get the chance to save a few bucks since the HV controllers start around $2500.  The concept of building your own controller comes from my friend Joe who's already built his car and controller.  Actually, it goes back earlier than that.  There's a couple called Paul and Sabrina who sell a kit that they've developed over a number of years, and that'll be be backbone for my controller.  "Unfortunately," I've taken the high voltage path, so the kit won't work for me as is.  It needs to be modified with high voltage parts and while I'm at it, might as well throw in some higher current capability, right?  I'm not sure who to give the credit to, but Joe started on this path a while back and already figured out a combination of IGBTs and capacitors that should do the trick.  I'm going to use these high power parts with the control board that Paul and Sabrina have developed to make a higher power version.  (If you want to skip the boring lecture of the day, this is a good spot to skip down to the pretty pictures...)

So what is an IGBT you ask?  It's a high power switch, kind of like a transistor if you know what that is.  To control the power going to the motor, the IGBTs are turned on and off really fast so the motor only sees some fraction of the voltage available from the batteries.  The pulses are sent at a specific frequency, and the time on and time off are varied to change the apparent voltage to the motor.  For example, if it takes 1 millisecond to turn on and off and it spends 70% of the time on, the motor will see an apparent DC voltage of about 70% of the battery pack voltage.

These IGBTs are rated for 400 amps a piece and I'm using three of them.  The IGBTs don't share the load perfectly, so I wouldn't be able to drive 1200 amps without blowing something up.  The reason for this is that the resistance of each IGBT isn't exactly the same and they're run in parallel.  So if you ask for 1200 amps, you might get 350 amps through one, 400 amps through the second, and the third blows up with 450 amps.  There are a few other factors that affect how well they share the load that I won't get into, and my design is going to be far from perfect, so I'm tentatively planning to limit the max current to 833 amps.  There's another reason for that odd number.  The controller is designed to do 500 amps max, and it has a current sensor that it uses to narrow in on the current you are commanding.  By changing the sensor with another part number, the controller will think it's driving 500 amps when it's really driving 833.  That way I don't have to reprogram the microcontroller.

Okay, enough of the boring stuff.  Here are some pictures!  This is basically what it'll look like when it's done.  The big green things are huge capacitors.  The yellow things are the IGBTs.  The orange bars are copper bus bars that the big cables will connect to from the motor and battery pack.  The dark blue thing is a the current sensor.  The light blue block is the main controller board.  The red things are the IGBT drivers.
The capacitors connect to the bus bars using some sheets of copper.  The sheets need to be parallel to each other like that to reduce "stray inductance" (bad).  Having the posts of the capacitors up and down, and having an array of capacitors (instead of one big one) further reduces stray inductance.  The reason you don't want high inductance is that this causes voltage spikes.  Voltage spikes (if too large) will fry the electronics.  These capacitors and IGBTs are rated for 600 volts, so I'm hoping ~200 volts plus spikes are okay.

The IGBT drivers (red) have to be really close to the IGBTs.  If they have mismatched lengths, the IGBTs could turn on and off out of sync, which is really bad.  If one of them stays on longer than the others, it will sink the entire commanded current!  That's bad.


The plate on the bottom that the IGBTs are mounted to is a custom water plate.  The IGBTs aren't 100% efficient, so they create heat while they work.  I'm going to plumb liquid coolant through this block of aluminum to take that heat away.  A friend from work has a CNC mill who is going to help me machine it.  He's already got it coded, so I just need to get some time to go over there.  You can see a funny slot in the middle.  There's a temperature sensor that will fit in there and feed a signal back to the control board.  If, for some reason, it gets too hot, the microcontroller will back off on the power until it cools down.


The guy helping me mill out this water plate keeps telling me I'm going way overkill on the liquid cooling.  He happens to have built an electric car himself about 15 years ago out of an old Ford Fiesta.  His was significantly lower power/voltage than mine, so his controller was passively cooled (no fans).  All of the controllers on the market with this kind of power rating are liquid cooled, so that's what I'm going with.

I've got a lot of the pieces, so I'm hopefully going to start on the fabrication of all that structure you see in the pictures really soon.  I still need to order a control board kit and learn to solder, but that's for a post another day.

Wednesday, September 19, 2012

Dashboard Repair Part 2

We were treated to an unseasonably cool day a week ago (high of 80°) so I took the opportunity to work on my dashboard.  I hadn't finished this because it involves epoxying the edges of the vinyl cloth down to the dashboard and it smells too bad to do it inside and it's been way to hot to do outside (epoxy cures really fast).  But today was perfect.  I started on the windshield side that's hard to notice if I screw up.  I've got 4 small clamps, so I'm limited to about a foot at a time.


That worked out well so I started on the front side.  I'm using small balsa sticks to help distribute the load.


It's 8 minute epoxy so after 2 hours or so of going in and out, this is the final product!  Looks pretty good huh?  I'm not sure you can see, but there are two patches that need to be spliced in that I'll do another day.  I also have to cut out the defrost holes.  Soon I can put the interior back together!




Thursday, September 6, 2012

Good News and Bad News

The good news is the motor is finally installed in the Porsche and supported on it's own brackets!  Bad news is that something I hoped never would happen has happened.  During the monsoon season, a batalion of black widow spiders have moved in to lay claim to the undercarriage of the car.  I managed to blast a few with brake cleaner and clear out all the webs, but I'll have to check back soon to see who made it through the first assault.

I didn't realize how long it was going to take to make this motor bracket.  The biggest issue is it involved putting the motor in and out and in and out to constantly keep checking dimensions, tacking parts together, etc.  Here it is installed in the car before I painted it.  You can see how careful I had to be of clearing the steering shaft, but I think I have at least 3/8 inch.


The next project was to finish up that flywheel adapter.  I never got around to making a pilot bushing, so now's the time since I can't put the motor in until that's done.  I bought a slug of phosphor bronze off ebay for a couple bucks and tackled it with the mini-lathe.  This is the perfect job for this little lathe.  I didn't realize that bronze turns to dust when you machine it, compared with curling off of aluminum or steel.  It's a lot easier to sweep up, you just have to try not to breathe it.


Here are the parts.  On the left is the flywheel adapter, in the middle is the bronze slug, and on the right is a tool I made to mimic the transmission input shaft.  


Here I've got it all chucked up and squared off.  I figured the ID would be the toughest part to do so I did that first.  As it turns out, the OD was a little harder.  It's supposed to be a light press fit into the coupler, and since an inner diameter is difficult to measure accurately without special tools, you're left to doing a lot of checking.  A good way to do it is to cut a short distance off the front until the part it fits in just barely slips over, then you know the rest needs to be slightly bigger.


Ok, the tool fits pretty good now.  I wasn't sure how loose or tight to make it.  You want it to do its job piloting the input shaft, but you also don't want it impossible to put the motor in.  Someone online was suggesting 1/32nd inch diametral clearance, but 0.032 inches seemed too much.  I think I ended with about 0.012 inches diametral clearance.  0.006 inches off center ought to be okay I think, and it was not easy or impossible to get the motor in later...just right.


The first try turned out to be a bust.  I must not have been paying attention and when I checked the fit in the flywheel adapter and it just barely slid in, but I'd machined the whole length of the bushing..  Since it's supposed to be a press fit, I'm hosed and have to try again.  Luckily I ordered enough bronze to get two tries out of it and I now I have a better starting point for the OD.  After slicing the end off, I machined the next one 0.0015 inches larger than the last and it was just right.  Here it is pressed into the adapter.


After this was done I mounted it on the motor and attached the flywheel.  A while back I'd rotated it around until I got the least vibration and marked it so I wouldn't forget later.  I also noticed it wasn't quite spinning flat, so now's the time to figure out what the problem is.  I bought a depth gauge and set it up to check the runout on the face of the flywheel.  If you don't know what that is, the total runout is how far up and down the surface goes when you spin it around (think of a warped record).  It turns out there was a 0.018 inch wobble from the highest to lowest spot.  Some quick action math tells me I need to put a 0.004 inch shim behind two of the bolt holes to fix it.  



Unfortunately, precision shims cost a whopping $25 for a pack of 10!  My 7 year old daughter reminded me that a soda can is like paper thin metal so I cut one up and found it's 0.0035 inches thick.  A lot cheaper, and I don't have to wait a few days for shipping.  I shave one to shape and fit it in there and now the runout is reduced to only 0.004 inches.  Good enough for me.  Next I hook up the pressure plate and see how the balance is.  It has three piloting pins, so three position options and there's definitely a preferred position.  I was surprised to see that some of the screws that were missing lockwashers were causing noticeable vibration.  With all the right pieces in place it hardly shakes at all!  Time to tear it all down, add loctite, lockwashers, and new fasteners to everything and put it all back together with the clutch disc.  A final spin up and I'm ready to put the motor in the car (hopefully for good).  It's a little more shaky after the rebuild, but it's not significant and hopefully it's just due to an imperfectly centered clutch disc.


I'm sure there will be plenty of time for a picture of the motor sitting in the car, and since I don't have on at the moment, that's all for now!  Next up will be making the clutch cable bracket and mounting the air conditioning compressor.  After that I need to make a shopping list of all the relays, contactors, potentiometers, fuses, shunts, DC-DC converters, etc. that will need to start filling the engine bay and get them on order.