Archive for August, 2009

How much electric current does a truck really use?

So, a while back my truck was getting slow to start. I checked the battery voltage with the truck running, and it was only 11 volts or something. I started the troubleshooting process by replacing the alternator with one from the local parts store, but it didn’t fix the problem. I changed both batteries. Still didn’t fix the problem. So I did some diagnostics with an ammeter and a voltmeter and figured out that my brand-new alternator was bad. I took it back to the parts store, where they gave me another one. I had them test it, and it failed on their bench tester. So did the next one. They finally gave me my money back and I bought one from Ford. It worked just fine.

While I was looking for alternators, I found some high output models. This sounds cool, but do you really need it? I pull a trailer pretty regularly, and I imagined that the trailer lights and brakes would be a pretty good additional load on the electrical system. I had also read that people buying these “high output” alternators had been disappointed with their actual output, so I thought it might be good to find out.

I wasn’t sure how dirty the output of the alternator would be, or how quickly the output might fluctuate which ruled out the use of an inductive current clamp. So I looked around and found a hall-effect current sensor from Allegro Microsystems. The manufacturer’s part number is ACS758KCB-150B-PFF-T. This sensor has a maximum current rating of 150 Amps, and outputs a linear 0-5V signal proportional to the current that passes through the device. It’s fast enough to record transients and will faithfully reproduce both AC and DC currents. The output of the sensor was fed to an Atmel ATMega8, which did ADC duties and sent the data out it’s UART to a MAX232 level converter. I just picked up the data stream with hyperterminal on my laptop. Excel let me manipulate the raw data and make some pretty graphs. I made the circuit with my CNC machine. Here’s what it looks like.

CurrentSense

The output of the alternator was alot cleaner than I had expected. I thought there would be more of a rectified three phase look due to the phases generated inside the alternator. This picture of the scope shows the trace of the output of the sensor at idle.

Oscilloscope Display

Here is a graph of the data from an engine start up. The Y-axis values are actual current draw in Amps. Time is shown on the X-axis, but the numbers represent the conversion events of the ADC, which happen at approximately 15Hz. This equates to about 40 seconds. The noise is real as far as I can tell. I didn’t use a ground plane, but the trace from the sensor output to the Mega’s ADC input is only about a quarter of an inch. I added a large filter capacitor to the sensor’s output and the waveform didn’t change at all. *edit: I messed that up though, I wasn’t paying attention to where I put it.*

StartUp

Then I took the truck for about a ten minute drive. I had the lights on, but not the radio or anything extra.

DrivingTest

It’s interesting to note how much power the transmission consumes when it’s in gear. The first plot is idling in park, the second plot again shows the truck idling in park at the end of the plot. It’s a clear 20 Amp drop from when the truck was in drive.

I hooked up my horse trailer, but even with all the lights on and everything it only shifted the curve up 10 Amps. The trailer brakes (which I thought would be a significant load) didn’t even show up. I’m still curious about this, as the trailer brake control wiring is usually about 10-12 guage, which is almost the same gauge wire the alternator output has to connect it to the battery. Why bother to wire trailer brake wiring with wire that has an ampacity of 100 Amps or so if it only uses a few amps? There must be more to the story.

Here is the schematic. Sorry it’s not all labelled but I didn’t expect to be posting it at the time. Click on the image to view full size. Capacitors C1 and C2 are for the crystal, 22pF. Capacitors C3-C10 are decoupling capacitors or buffers for the power supply. C11-C14 are typically 1uF. Check the component datasheets for your application.

** I keep getting requests for values, so here is some more detail. The oscillator value is not important, I probably used 8MHz. This circuit doesn’t need high speed. C3 and C4 are decoupling capacitors, usually 0.1uF. C5 and C6 are not necessary, I just added them for flexibility since it was a prototype board. All you need there is C15 which is a bulk capacitor for the voltage regulator. I can’t remember what C7 is, it’s in the AVR datasheet. C9 and C10 aren’t necessary, I was trying to implement a low pass filter but it’s incorrect. All C9 and C10 will do is cause the sensor to drive the output harder. I needed an RC filter but only got the C. That should cover it.

Schematic

And here’s the layout.

Layout

I neglected to add a header for ISP. I was in a hurry to get it done and forgot. The target supply voltage in this application is 11-14V, but supply voltage could be extended to +45V with the appropriate version of the 7805.

Here’s the source code for the Mega8. Compiles with AVR Studio and AVR GCC. It’s a timer-driven interrupt, that starts an ADC conversion of the sensor output and then sends the result to the UART. It uses standard 9600 8N1. The result is left-adjusted so it’s only 8 bit. If you don’t need both positive and negative current measurements, then it would be best to remove the offset of the sensor and use the internal 2.5V ADC reference for better accuracy. The decimal to BCD routine at the end is something I figured out so I can just do a file capture in hyperterminal and import it directly into Excel.    › Continue reading

Tags: , , , , , ,

Monday, August 24th, 2009 Automotive, Electronics 40 Comments

Textile needle loom

Probably the most complicated piece of equipment I’ve designed and built to date would have to be a textile needle loom for Goodrich. This machine is fully instrumented with position sensors, accelerometers, load cells, etc. for characterization of a textile needling process. Every parameter from speed and feed to force and distance is adjustable real time. This was definitely the most challenging mechanical design I have completed. I modeled the entire project in Solidworks to verify the design, and had over one hundred custom parts machined.

IMAG0126

IMAG0160

Monday, August 24th, 2009 Uncategorized No Comments

Cascade process heater

One of the first big projects I completed was a machine that supplied a variable heated flow of gas to a process. The temperature and flow of the process gas was controlled to a setpoint with PID loops, and the machine could switch between one of two different gases required by the process both manually or automatically. The process required the flow of gas to be switched automatically at a certain temperature, and had to recognize the change in temperature at any one of twelve thermocouples.

An immersion heater placed inside of a tube was used to heat the flow of gas. A frame was constructed around the heater to support it, and an electrical enclosure was mounted to the frame. The frame was mounted on wheels so that it could be removed when not needed, and full-flow quick disconnects were used for the gas lines.

IMG00062

This project was also my introduction to AutoCAD. I designed the whole thing in AutoCAD, including assembly prints and prints for the machine shop. Since then I’ve been using Solidworks, and I’ve never looked back. Solidworks makes designing and maintaining a design so much easier.

Monday, August 24th, 2009 Uncategorized No Comments

12 Volts on the trailer without a truck

Ever wanted to run the 12 volt stuff on your horse trailer or camper without the truck hooked up and running? I wanted to be able to run the 12 volt lighting in the back of my horse trailer and the water pump without draining the batteries on the truck or leaving it running all the time. The truck’s electrical system isn’t really designed for large charge/discharge cycles, so it’s best to keep the batteries charged. If you’re plugged in to AC power though, you can run your 12 volt stuff without a truck if you add a power supply.

I found a cheap 12 volt power supply from allelectronics that is actually a converted PC power supply. Allelectronics has all kinds of surplus electronic stuff, so you can probably find something that will work. Otherwise, you can buy a PC power supply anywhere and convert it yourself. The only other thing you need is a high-current diode to prevent the power supply sinking current when the truck is plugged in. Since the power supply puts out 12 volts and a properly operating automotive electrical system puts out 13-14 volts, having both operating at the same time isn’t a problem as long as you use the diode. If the truck is plugged in while the power supply is operating, the truck will supply current and the diode will be reverse-biased until the voltage drops below 12 volts, and then the diode will forward-bias and the power supply will take over. Make sure to fuse the output of your power supply to the 12 volt bus. Connect the output of the power supply to a fuse, and then the other side of the fuse to the anode of the diode (usually the non-stripe end. check the datasheet). Connect the cathode of the diode (stripe end) to the 12 volt bus.

The only problem you may have is that you will have to convert any strings of high-current 1156 and similar light bulbs to LED or the power supply will “protect” itself by shutting off when it sees the low and slowly rising resistance of the bulbs. Mine works fine with the single bulb of the porch light and fine with the motor of the water pump but dies when I turn on the bank of three bulbs in the back. I haven’t changed them to LED yet.

Sunday, August 23rd, 2009 Automotive No Comments

Diesel, sulfur, NOx, and EGR

I’ve heard alot of people complaining about the exhaust gas recirculation (EGR) system on Ford’s 6.0L Power Stroke engine. One in particular comes to mind, from a “conversation” I had with FK000@aol.com over at thedieselstop.com: “Is it really necc. to cool the EGR with hot coolant… NO”. Actually, it’s common in the industry at this point. Just because the coolant is “hot” doesn’t mean that it can’t remove heat from exhaust gas that happens to be anywhere from 2 to 7 times hotter. It’s simple thermodynamics. That same individual went on to describe engineers as incompetent because sometimes things break, and closed the thread so no one could respond.

A little background will show the challenges that have been presented to the auto industry, with cooled EGR being one of the methods developed by automakers to meet increasingly stringent emissions standards. This appeared in Amsoil’s Action News and is a good summary of the saga of diesel emission regulations:

“Diesel engine emissions have been an ongoing environmental concern for the past few decades. Particulates and nitrogen oxides (NOx) associated with health problems and damaging smog and acid rain have been targeted by governments globally, and the United States, Europe and Japan have responded to demands to reduce these harmful emissions. NOx forms when atmospheric nitrogen in the powercylinder oxidizes. Because peak cylinder temperature plays a key role in NOx formation, methods of reducing the temperature, including cooled exhaust gas recirculation (EGR) technology, have been employed in modern diesel engines as solutions to reducing NOx emissions. Diesel particulates are composed of solid carbon (soot), sulfate, bound water and unburned fuel and oil. Because sulfur is key to particulate formation, the sulfur level in diesel fuel has been gradually decreased over the years.
In the U.S., particulate and NOx levels were first regulated in 1988, with regulations becoming increasingly stringent through the years. In fact, 1988 standards set NOx and particulate levels at 14.4 g/kW-hr (grams/kilowatts-hour) and 0.8 g/kW-hr respectively, while 2010 standards have been set at 0.27 g/kW-hr and 0.013 g/kW-hr respectively.
Between the years 1988 and 1991, emission standards were met by improving in-cylinder combustion through the use of unit injectors, electronic controls, controlled air swirl, improved combustion bowl design, reduced piston crevice volume, turbo-charging, air inter-cooling and reductions in oil consumption. The year 1991 also saw the use of high top rings to lower particulate emissions. Fuel sulfur was successfully reduced by 90 percent in order to meet 1994 particulate targets, dropping from 5,000 ppm to 500 ppm in October 1993. The sulfur reduction had no harmful effects on diesel engines, and the API CG-4 oil category was established in 1994 using low-sulfur diesel fuel in all engine tests. By 1998, retarded fuel injection timing was introduced to meet increasingly stringent NOx emission standards. By displacing combustion until later in the expansion stroke, retarded fuel injection timing lowers the peak fl ame temperature and effectively reduces NOx formation. High top rings and retarded fuel injection timing increased soot-loading on the oil, leading to the introduction of API diesel oil category CH-4 in order to prevent viscosity increases and increased wear due to soot. In order to meet 2002 emission standards, most engine manufacturers introduced low levels (10-15%) of cooled EGR technology. EGR engines reduce NOx emissions by recirculating a portion of the exhaust to the engine’s combustion chamber, lowering peak combustion temperature and NOx formation. Although EGR engines effectively reduce emissions, they also run hotter and introduce higher levels of soot and acid into the oil, leading to increased wear, increased oil viscosity and shorter oil drain intervals. The API CI-4 diesel oil specifi cation was introduced in December 2001 to protect against the higher temperatures and increased levels of acids, soot and oxidation associated with EGR engines. API CI-4 oils were formulated with increased detergent levels to protect rings and liners and increased oxidation inhibitors to prevent bearing corrosion. API issued an upgrade to its CI-4 specifi cation, CI-4 PLUS, in September 2004 in order to provide improved oxidation resistance, shear stability, acid neutralization and soot dispersancy for EGR engines. Some manufacturers released their own diesel oil performance specifi cations in order to assure optimum protection for their equipment. For example, Mack released its stringent EO-N Premium Plus High Performance Diesel Engine Oil specifi cation in the spring of 2002 and upgraded it in April 2003 to EO-N Premium Plus 03 and again in June 2006 to EO-O Premium Plus. The latest round of emission standards went into effect in 2007, requiring even more stringent NOx and particulate emissions reductions. While low levels of EGR technology (10-15%) were successfully applied in diesel engines to meet 2002 NOx emissions standards, most manufacturers incorporated increased EGR rates of 25-35% in order to meet 2007 standards. Increased EGR rates mean 2007 and newer diesel engines run hotter than their predecessors, requiring diesel oils meeting the latest API CJ-4 specifi cation to be formulated with improved oxidation resistance properties to prevent thermal runaway and maintain engine protection. Decreasing the level of sulfur in diesel fuel has been determined to be the most cost-effective way to decrease particulate emissions. The introduction of ultra low sulfur diesel (ULSD) fuel in June 2006 dropped diesel fuel sulfur levels from 500 ppm to 15 ppm in order to meet 2007 particulate limits, provide compatibility with NOx after-treatment systems and enable high EGR rates.
In addition, in order to further reduce particulate emissions, diesel particulate filters (DPF’s) were  incorporated into all 2007 and newer American diesel engines, and CJ-4 diesel oils are faced with the challenge of balancing engine protection with DPF life. Increased EGR, although effectively decreasing NOx emissions, results in less effi cient combustion and increased levels of soot, and some of it fi nds its way into the engine oil. Detergents within the oil are responsible for preventing soot from accumulating on internal engine components and increasing friction and wear, as well as preventing soot particles from agglomerating into larger particles that increase oil viscosity and clog oil filters.”

Isuzu’s truck products website simply states the benefits of cooled EGR:
“Cooled EGR Adds a cooling device to the EGR path, helping to lower the combustion temperature, further reducing the amount of NOx formation”.
Many studies and experiments on EGR and EGR cooling can be found by searching google.

The real problem with the EGR system on the 6.0L is actually the oil cooler. When the oil cooler clogs up (I’m still investigating why this happens, it’s due to an undetermined particulate in the coolant system) there is not a sufficient flow of coolant to the EGR cooler, and it consequentially overheats. This stresses the fins of the heat exchanger, and they crack allowing coolant to pass into the EGR stream.
Both upgraded EGR coolers and oil coolers are available at BulletProofDiesel which will retain proper emissions functionality while surviving at higher temperatures. I haven’t tested these products personally, but just by looking at it it’s a more robust design than stock. The oil cooler is impressive, it looks like their own design machined from aluminum bar stock, not a modification of the stock unit.

In summary, don’t blame automotive engineers for adding an “unnecessary” device. It was the actions of the EPA and environmentally conscious individuals that created government regulations for using things like EGR. The automotive industry does extensive testing on their products, and it is presumptuous and ignorant to insinuate they are incompetent. Engineering, manufacturing, and estimating the effects of  a customer’s actions on your product may be more difficult than you assume.

Tags: , , , ,

Sunday, August 23rd, 2009 Automotive 2 Comments