Thursday, February 28, 2013

Car Show

The car show that was scheduled last week on Wednesday was rained out, but luckily they pushed it to Wednesday this week.  I made it, and here's how I got there!


Two days before the show I decided I needed to fix the leaky heater core.  It's been leaking since I first put it in, but it's such a pain to get at I never bothered with it.  Well, since all my coworkers will give be crap about it and I'm tired of washing coolant out of the driveway it's time to get my hands dirty.  A few hours later I've got a paper gasket and some RTV in the flange and it's leak free!


I've driven the car around the neighborhood a bit, but not a whole lot.  The trip meter just rolled over to 0.1 miles.  It's still very sluggish and only seems to get up to about 5 mph (not enough to register on the speedometer).  There is a parameter in the controller that allows you to limit the maximum motor amps, and I'd set that parameter to 1 for initial testing (corresponds to about 104 amps) and later moved it up to 2 before I first drove it.  It seems worthwhile to bump it up to 3.  At 200 amps I figure I have 16 ft-lb of motor torque, and assuming friction, rolling resistance, hills, etc, I can see why that would be pretty slow.  Using the current squared rule, I should get 2.25x the torque by upping the amps to 300.  A friend is coming over with the car trailer soon so I don't have much time to try it out.  Acceleration is noticeably better, but top speed is hardly any better.  The trailer shows up the night before the show and we load the car.  To get up the ramps, my friend actually has to push a little.  Good thing there aren't any hills to climb at work!


The next day after a restless night, we drive in to work.  We unload the car and drive in (slowly).  Inside the campus there's a long stretch where I manage to accelerate to white knuckle speeds of 9 mph!  Good thing there's a 10 mph speed limit so I can pretend to have an excuse.  When I park the car I already have a crowd forming around me!  Too bad I had to shoo everyone away because I was already late for a meeting, but I get to breathe a sigh of relief that I'd actually made it!  0.5 miles on the odometer, my longest drive ever!

The show was a lot of fun.  60 different cars of all types: 3 Ferraris, a top fuel drag racer, a bunch of classic and modern muscle cars, a couple VW busses, and one electric car.  After 2 hours of answering questions I have to once again close up shop and go to a meeting.  


I'm disappointed in the driving performance.  With the way it's set up I should have plenty of torque to get around and with 80 volts I should be able to go at least 35 mph.  After work I pull out the laptop again and plan to take some real time data while we drive out.  Hopefully I can find something wrong that I can fix.  Of course it can't hurt to toggle the current setting up another notch to 4.  Acceleration is noticeably better, but this time I max out at 11-12 mph (the speedometer is barely above the first line!).  I timed my exit so I wouldn't have anyone waiting on me, but my dad (who also work here) zipps up in his TR4 and heckles me a bit for being a slow poke!  We loaded up the car and drive it safely home.  All in all it's a good day.  I'm fairly confident that there's something in the software that's severely limiting the performance.

On the drive back to the trailer, my friend took a couple screen shots of the data as it streams by.  The current commanded is about 60, which corresponds with about 100 amps, and the current feedback is the same.  So for some reason it doesn't seem to want to go above that. 
All these parameters have a max value of 512, so the value divided by 512 gives you the percent of max (except the thermistor).  The current readings are incorrect because we've tricked the controller by changing the current sensor and didn't change the software.
Green = Thermistor Reading (73 °F)
Red = Throttle position
Pink = PWM (about 17%)
Blue = Motor Current Feedback (controller thinks it's about 60 amps but it's really 100 Amps)
Light Blue = Battery Amps (controller thinks it's 10 amps but it's really 17 amps)


Luckily, after looking at this data, Joe figured out the problem the next morning!  When we tested the controller the first time back over the Thanksgiving weekend, we had it hooked up to some RC plane batteries and a treadmill motor.  In order to keep from ruining the batteries (which we probably did anyways), we changed one of the parameters to limit the current from the batteries to 10 amps.  We never removed this restriction, so I'm still limited to 10 amps coming out of the battery.  Since the current sensor is calibrated differently, it's actually 5/3 of 10 amps (or 17).  At 80 volts, that's only 1300 watts or 1.75 horsepower, so no wonder we could only go 12 mph!  Most hairdryers put out more power than that.

Stay tuned for an update on the performance after I monkey with the settings this weekend.  Including 0.8 miles at the car show I've now driven a total of 0.9 miles!



Sunday, February 17, 2013

It's alive!!!

That's right folks, I've brought life to my creation.  Today I actually drove my car!  Not very far, but it certainly moved on its own.  Here's how I got there.

I started Saturday morning and worked 14 hours until I didn't have any physical or brain power left.  By the end of the day Joe made the comment "yeah man, your mind is wasted."  I started the day by setting up more batteries to charge.  I got them all up to 3.41 volts, then strung them up in parallel so they could all top off exactly the same.  Here's my brother setting them all up.  Don't cross those wires, there's potential for 10's of thousands of amps here!


 It's also time to finish off the wiring.  Here I'm getting ready to make all the high voltage cables.  I've hooked up all the cable terminals where they need to go, and sheesh there's a lot of them!


And they're done!  Too bad there's a crucial error in here that I didn't realize until taking a last minute look at my schematic at 9 pm.  Luckily it's not a showstopper so I'll correct it when I pull the batteries again.


Here's the manual switch for the high voltage system.  When I flip this I'll get +230v to the controller through a precharge resistor.  When I turn the key, the B- contactor closes and completes the circuit to the controller and precharging starts (which takes about 1.5 seconds).  The B+ contactor closes when you first start to move the accelerator pedal, initially it does nothing.  In order to protect the controller and make sure it has a chance to precharge, you have to push a little red button on the dash that activates the switch hooked to the pedal.  Got it?  Okay, let's move on.



And here's the point where my mind started falling apart.  Joe showed up with his laptop and computer so we can test it out at high current.  Back over the Thanksgiving weekend we tested the controller at 80v and about 20 amps, but that's were we stopped.  There's basically no easy way to get higher current or voltage without hooking it up to a car.  It'd been so long I forgot how I we still had more to test on the controller.  At this point, Joe took out his phone to take a video of me starting it up for the first time.  I think his words were something along the lines of "If it works, we've got a great video of it.  If it's a spectacular failure, at least we'll have a cool video for all the effort!"  Luckily, "all" we heard when I hooked up power was the clack of the contactor closing.  After getting the motor to spin out of gear, we lifted the rear end, popped it in 4th, and spun up the tires.  Nice...


So that was Saturday.  Today I had a little tidying up to do before I was ready for a test drive.  All the cables were hanging out the bottom, a few things weren't screwed on very well, and I wanted to check over a few things I did in my frantic state the night before.

With everything in order I clear out all the tools, drop the hood, and hop in the car.  I start backing down the driveway (yeah!!!) and start turning so I can avoid running into my Jeep at the end of the driveway, and what??? why isn't the steering wheel turning???  I get to the end of the driveway and it feels like the steering column is locked.  I drive back up the driveway and shut everything off.  Ok, whew, it worked and nothing blew up.  But why the heck can't I steer?  Long story short, 7 months ago I made a major error that somehow didn't surface until this moment.  The motor mount bracket that cleverly snakes around the steering shaft isn't so clever after all.  If you turn if far enough, one of the clamping bolts on the shaft runs into the bracket.  Oh well, nothing that can't be overcome in and hour with a dremel, a die grinder, and a reciprocating saw.  I'll add that to the list of things to fix properly between now and taking it on a major road.

So back in the car, down the driveway, do a couple laps around the cul de sac, and it works!  I still have a bit to go to get it ready for the show, but overall I'm pretty happy.

Thursday, February 14, 2013

Time is running out...

Dang, I had a nice long update written out here and somehow it didn't get saved.  Oh well, you'll just have to deal with this.

I've got 5 days left before the car show, so it's definitely go time.  A week ago I even took a day of vacation to try and catch up because I was falling behind!  A few days ago I admitted to myself it was going to be too risky to try and drive the car all the way to work.  To get all the way in I'd have to have all the batteries in place.  The problem with that is my charger is weeks away from being ready, so I'm stuck with charging 10 at a time with a small charger.  And charging 10 at a time means I'd have to remove the rear batteries.  It's not really feasible to test the car at full voltage, then remove, charge, and replace them.  A friend at work said he could trailer me in to the show, so I think I'll do that and drive it in from the parking lot on 80v (the front battery pack).  That took a lot of pressure off finishing the rear racks and allowed me to switch to wiring.  So that's the plan, I won't drive it from home but should be able to drive in under my own power.

Speaking of batteries, I started charging them this evening.  The charger runs off 12 volts and needs 300 watts to run at max power, so that means I need to supply around 25 amps.  A regular car battery would be drained pretty fast at that rate, but I've got something way better.  The DC-DC converter I got for the car runs great on 120 Vac, and it puts out over 600 watts.  Just had to sacrifice an old PC cable and here you have it!

Only problem is the fan makes a fair amount of noise.  And that's actually an understatement because it sounds like a small vacuum cleaner is running in my kitchen!  Just 5 hours or so of this and I'll be ready for the next 14 batteries...

So to make up for last week, I can finally say it.  Nice rack!


I finally bolted this baby down and she's ready for batteries.  Though I've got a little more to do before that.  Here are a couple pics of the rear racks in process.  This one's all done except for paint.



And here I've got my liquid cooling pump.  I was sure glad to get this all hooked up and not see water leaking out of the controller!

I don't have the pictures yet, but I've got most of the 12v stuff wired up.  That includes the fans, pumps, etc.  All I have left are the contactors and power to the controller.  Once that's done I have the high power cables to build.  Next is putting in batteries, and after that...testing the controller on the real batteries!  Duh duh DUH!  Keep your fingers crossed for me, I'm hoping to do a test drive this weekend.

Saturday, February 2, 2013

Batteries!

A long awaited day has finally come.  I have my batteries!  I planned all along to wait until I'd finished everything that was feasible to finish before ordering the batteries in order to avoid losing out on warranty time.  The car show has pushed it somewhat faster, so I still have a little work to go, but with any luck I'll be ready to start fitting them in the battery racks after this weekend.

They actually arrived a lot faster than I thought.  I ordered them on Tuesday figuring they'd come in next week, but they were actually at the Phoenix UPS freight center by 10:30 Wednesday morning waiting to be picked up!


Ok, enough small talk, it's time to get technical!  A few weeks back, the 787 was grounded worldwide due to lithium battery fires on a couple planes.  Ever since then I've been fielding questions about when my car is going to "inevitably" burn itself into a smoldering hole in the ground.  Well the answer to that is hopefully never, but I have a few reasons to say that.  To start, there are a couple different varieties of Lithium-ion batteries out there.  For years I've been flying RC planes on what we always called Li-po (lithium polymer) packs.  I'm not sure if there really is a difference between the polymer or ion names, but I think they're pretty much the same thing.  These have a lithium cobalt oxide (LiCoO2) cathode and have the highest energy to weight capacity out there.  Each battery has a single cell nominal voltage of 3.7 volts.  Well, all the cell phones, laptops, and now planes that have caught fire also have this style of battery.  In the last 4 years or so, a new type of lithium ion battery has become economically viable, and that one has a lithium iron phosphate battery (LiFePO4) for the cathode.  If you look up LiFEPO4 on wikipedia you'll find some comparisons between the two.  The LiFePO4 battery is 14% heavier for a unit of energy storage, but is inherently much more stable then the LiCoO2 cells.  They have a nominal cell voltage of 3.2 volts, and are more environmentally friendly to their cousins without the cobalt.  I'll let you read more if you want, but it's supposed to be a superior technology.  So why didn't they use that on the 787?  Well, they probably picked out the battery 10 years ago before this type was really available.  Unfortunately, changing battery types at this stage would probably lead to a year's delay in getting the planes back in the air due to the lengthy process required to certify stuff on planes.  At any rate, enough about the aircraft industry, let's get back to my car!

In the last post I listed all the stuff I need to get done in order to be ready for the car show on the 20th.  Since then I've finished 60% of the battery racks, mounted the heater core (for cooling the controller), removed the motor and modified the flywheel adapter (it now has a runout of a mere 0.0004 inches), and reinstalled the motor.  This weekend I need to finish the battery racks, get the liquid cooling system all set up, and mount the vacuum pump.  I also out to tie up some loose ends with the controller.  If I can get that all done, I'll be on a good path to do a first test drive in 2 weeks!  Just in the nick of time to make the show.  Let's cross our fingers that I don't run into any insurmountable snags.

Alright, here's the part you've been waiting for...pictures of the progress.  Here's the interior almost all put together.  Still quite a few things to touch up here, but way better than before.


Here's a single cell for my battery pack.  I also got a bag of stainless fasteners and bus bars to hook them all together.  


Here's the heater core turned into a motor controller cooler.  Took me forever to figure out where to put this, (I've been thinking about it for literally months) and finally figured it out.  It's hung in the perfect place right in front of the AC condenser.


I've got a lot of work done on the racks but apparently I didn't take any pictures yet.  Too bad, I was hoping to work in the line "nice rack" somewhere.

Wednesday, January 23, 2013

Exciting Day and a New Challenge


It’s an exciting day today!  I've passed 5,000 pageviews on my blog (5,146 to be exact).  That means if I’d let Google put ads on there they would have paid me about $1 so far!  I also found out I've been working on the car so long that the people at Ace Hardware know me by name.  I'm not sure that's a good thing.  More interesting though is that the place I work for just announced they’ll have their third “Bring Your Ride to Work” day 4 weeks from today.  I've dreamed about bringing a vehicle in since the 1st annual BYRTW day (which was about 6 years ago), but always ran into problems actually getting my vehicle in to work.  The first year I was planning to take my 64 CJ6 in but a nut stripped out inside the transfer case 100 feet from my house the day of the event.  The second time I planned to bring in the CJ again after finishing the power steering conversion on it, but the steering wobble I was trying to correct with the conversion reappeared 5 days prior to the event.  So now I’m faced with a new challenge: getting my Porsche roadworthy in less than 28 days!  Here’s what I’m up against.  We’ll start with stuff I've recently finished.

Months ago I completely took apart the interior with the intent of restoring the dashboard.  Well, I got the dash 98% complete and never finished it off or put anything together.  Two days ago I decided it was time to put it all back, and amazingly it only took 4-5 hours to do!  And it looks fantastic with the new dash in place.  What the heck was I waiting for?!  Now all I’m missing is the passenger seat.  Sorry, no pics...

Another outstanding part of the system is the vacuum needed to work the brake booster.  For those of you that don’t know, a normal gas engine provides vacuum when it sucks air into the intake.  Historically, this vacuum has been used for all sorts of things like emissions control, crankcase ventilation, cruise control, wiper blade operation, and of course, brake assist.  Since the engine is long gone, I need a dedicated pump.  A lot of EVers use a piston pump because they must be already commercially available.  My friend, Joe, has one of these on his car and the only gripe about it is it’s so dang loud!  In fact, it’s the loudest thing on the whole car. 

By chance, I ran across a rotary vane pump on www.surpluscenter.com that may do the trick.  The benefit of a rotary vane pump is they tend to be quieter.  After finding the product data sheet on it, it appears to have very similar characteristics to Joe’s piston pump, so I’m gonna give it a try.  I also found an automotive fan motor in there and a jaw coupling for a grand total of about $50 (which is about $200 less than any piston pumps I've found) that I just need to mount together.  And here it is!

Now I get to find out if this $50 was a waste or not.   I hooked it up to the brake booster and let it run for a few seconds before pumping the brake pedal.  And it’s definitely working!  After turning it off, I can tell the force to push the pedal is going up after 2 pumps or so.  Only problem is I’m not sure it’s any quieter than Joe’s is.  But luckily when I’m showing it off to Joe, by chance we figure out that if you baffle the inlet it’s actually super quiet!  Win win.

Okay, so here’s what I have left to do:
-      Mount the vacuum pump
-      Mount the coolant pump
-      Mount the coolant reservoir
-      Mount the coolant heat exchanger (heater core)
-      Plumb the coolant lines
-      Finish the battery racks
-      Adjust the motor coupler
-      Order batteries
-      Do a heck of a lot of wiring
-      New tires
-      Alignment
-      Get Insurance and temp registration
-      Complete the charger

Doh!  The charger is not mature at all.  In fact, it’s still in schematic mode.  That’s certainly going to be the long pull, but luckily I have a backup plan.  Joe has a mini-charger that I can use.  It’d be a huge pain to recharge since I’d probably have to disassemble the whole battery pack, but that may be my only option.

Well, what am I doing here wasting time on the computer?  I’d better get out there and start working!  Only 27 days left and a lot to do!

Friday, January 11, 2013

That's where it's all gonna go

Ok, maybe not everything, but I got a lot of stuff to fit under the hood.  Lots of tangible progress since the last post.  The next two pics are of the entire engine compartment.  You can see the motor controller on the left, the potentiometer in the front, the DC-DC converter on the firewall, and the water coolant tank up front as well.  Ok, that coolant tank isn't actually mounted yet, but its got a home.


I made a mount for the vacuum tank, but when I got the controller in I realized they ran into each other.  Not a big deal to move it but whoops!  I'm also not sure I'll need a tank.  After hearing Joe's noisy piston vacuum pump I've decided to try and make a rotary vane pump work.  It's also relatively cheap, but we'll see...vacuum tank, if I use it, is that big black PVC tube.


Here you can see both of my contactors.  They connect and disconnect the battery pack from the motor and controller and are two stages of safety in case I need to disconnect quick for some reason.  you can also see where the big cables are going to hook up to the controller.


Here is the converter that takes the 225v from the main battery pack and steps it down to 12v to operate all the regular stuff in the car.


Here is the potentiometer that tells the controller how hard I'm pushing down on the pedal.  Everything is hooked up and calibrated, I just need to weld one bracket in place that's currently held on with a clamp.


And here's my first clamp casualty.  Normally I clamp parts together, then tack weld them (very small welds just to hold the pieces together), then take the clamp off and do the rest of the welding.  Well this time I figured it was such a small weld I'd just do it with the clamp in place.  When I went to take the clamp off I noticed there was a puddle of liquid metal on one end.  I think these are made of tin or aluminum.  Oh well!


Friday, December 21, 2012

Motor Controller Part 4: More Testing

On the forum where the control board I'm using was developed, there are quite a few stories of people doing very bad things to their car because they didn't properly test their controller before hooking it up.  One guy even instantly destroyed 1000's of dollars worth of batteries because things weren't set up right.  I'm trying to avoid that with a lot of small steps as I test it.

Of course, that doesn't mean I don't have a touch of redneck to my setup.  I've gotta make sure this isn't what it looks like when it's hooked up in the car.

I started off hooking up a very small 12v lead acid battery and a small motor used for starting RC plane engines.  After getting the motor hooked up the right way it works!  Next step, a 120v DC treadmill motor and a car battery.  Still no smoke!  Now that I'm confident things are working it's time to boost the voltage.  I have a bunch of 3 cell lithium batteries for electric RC planes, so Joe and I string them together to boost the voltage.  One at a time we raise it up until we're out of alligator clips and reach 70 volts.  Still working well!

We also checked a few other things along the way.  First, I want to see if all three drivers are turning on and off at the same time.  If one turns on or off before the others, that means for a certain amount of time all the current has to flow through 2 IGBTs instead of just one, or worse, all through one IGBT.  If that happens when I'm commanding 800 amps, something is bound to blow up.  The oscilloscope tells us that all three are synchronized to within about 20 nanoseconds (0.00000002 sec).  I'm going to assume that's good enough.

Next, I want to see how long it takes for the IGBTs to turn on and off.  This is important because the time between the on and off state creates heat. You can adjust this time by changing the gate resistor.  Right now I have 5 ohm resistors for both on and off directions.  If you reduce the resistance, it will draw more current and switch faster, of course, that has its limitations.  The driver can only provide so much current, so you are limited there.  Also, the faster you turn off, the higher the voltage spikes you will see (that's bad).   If memory serves, they currently turn on in 80 ns and turn off in about 150 ns.  The driver provides 15v to turn on and -8 volts to turn off, so that makes sense with the same resistance. 

So that brings us to the next thing to look at: how high are the voltage spikes?  All my parts are rated for 600v.  That means the highest battery pack voltage plus any voltage spikes need to be well clear of 600v.  My battery pack will be about 235 volts and I'm seeing 10-15v spikes so far.  Sounds good except I'm only able to drive about 20 amps so far.  The voltage spikes go up with more current and I want to eventually get to 800+ amps.  Unfortunately, I forgot to take some o-scope pictures of this.  We had a fun time trying to get the current higher.  Joe held a block on the output shaft of the motor to try and slow it down.  Almost immediately we smell something burning and freak out.  Luckily (after about 5 minutes of sniffing around) it turned out to be the wood block!

Next step...hook it up to Joe's 150v battery pack in his electric car and try and spin a Warp 9 motor!  But that'll be another day.

All the testing I listed was actually done over two different days.  After the 12 volt tests I was happy enough that I decided to "finalize" the build of the controller a bit more.  I tore it down completely and tin plated the copper parts to keep them from corroding.  Here are some pictures as I put it all back together again.

Here's my awesome water plate.  You can see I've epoxied the thermal sensor in the milled out channel.

Here's the other side with the thermal probe wire coming out.  Notice all the heat shrink for strain relief.


Flipped back over, now I've added some RTV gasket maker.  Please, please, please keep the coolant on the inside!

After 20 minutes with a screwdriver I've got 22 screws holding it down.  That's 22 of the over 50 tapped (threaded) holes I put in this thing!

Flipped back over, now we've got thermal grease to keep the IGBTs in good contact with the water plate so it can take the heat away.  (Apologies to my thermodynamics teacher who is crying right now due to the wording of that last statement.)

IGBTs are screwed on.  One screw in the upper left corner actually penetrates into the liquid passages because I didn't realize how deep the pipe thread hole would have to be.  To seal that off, I just filled the hole with RTV before putting the screw in.  Hopefully that holds or this puppy will fill with antifreeze!

Now I've got the bus bars attached.  See those vertical plates?  Those attach to the capacitors.  Making them flat and close to each other like that's supposed to reduce "stray inductance" which make more (bad) voltage spikes.  Bad voltage spikes!  Now you can see how crappy the tin plating came out.  I think the claims that it covers 600 sq inches was super optimistic.  As a result I've got really splotchy coverage, but I think it'll be fine.

Now I've got those huge capacitors hooked up.  All the bolts, washers, and nuts I used to hook this stuff up was stainless to reduce the risk of corrosion.  To make it worse, they're all metric, so there's probably $20 of fasteners right there!  I didn't keep track, and don't even want to know how much I spent on screws and washers on this controller...

 Alright, now we have the IGBT driver board mounted and all the clips hooked up.

Almost there, but it's time to play Settlers of Catan over Skype with Todd and Amy in Seattle...

Too much pumpkin porter while playing Settlers, so picking things up the next morning.  Here we've got the Paul and Sabrina control board mounted to the outer wall of the controller.  I omitted the MOSFET driver parts and just tapped into the inverted PWM signal.  Split that three ways and that goes into the IGBT drivers.  Everything plugged in?  Doh, forgot the thermal sensor.

Woo hoo!  All hooked up and screwed together.  Lost of wires in there...hope it all still works!

I've already tested it and it does work, so you can rest easy tonight.  And it's done!  I put some nifty labels on the bus bars so I don't hook up the battery wrong and melt down my battery pack.  Thanks dad-in-law for lending me this label maker!

Whew, that's it for today.  Hopefully I'll get a lot done over the Christmas break.  And that reminds me, Merry Christmas!!!