Making Diesel Controller

Your chance to introduce yourself and your vehicle
Post Reply
User avatar
kb1gtt
contributor
contributor
Posts: 3763
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Making Diesel Controller

Post by kb1gtt »

Great to see some TFSI interests http://en.wikipedia.org/wiki/Turbo_fuel_stratified_injection. I once created a QUCS simulation that showed how to generate an 80V kick to drive a DI injector. Picture found here http://sourceforge.net/p/daecu/code/HEAD/tree/wiki/simulations/QUCS_souce_files/picture_docs/DI_3.PNG?format=raw The QUCS source file is found one level higher. If I had a high pressure pump and injectors to play with, I'd be tempted to try that circuit in the real world instead of the simulation world.

I'm more of a hardware guy, who can read code, but can't generate it very well. Think of learning a foreign language off of audio books. I can hear, and understand it, but speaking it, that's a different story.

Do you have some interest and equipment for common rail stuff? I'd be happy to help with the electrical ends of it if you have interests.

[edit] updated link as google code is going away, moved link to SF.net [/edit]
Last edited by kb1gtt on Mon Apr 27, 2015 9:33 pm, edited 1 time in total.
Welcome to the friendlier side of internet crazy :)
jedediah_frey
contributor
contributor
Posts: 51
Joined: Tue Nov 05, 2013 1:43 pm

Re: Making Diesel Controller

Post by jedediah_frey »

kb1gtt wrote:I'm more of a hardware guy, who can read code, but can't generate it very well.
Good. I'm an ME that can code so I have the other half of the spectrum covered.

Here's some documents I found on driving a Piezo. Lots of graphs that will probably make more sense to you: http://www.dspace.com/files/pdf1/Appnote_PZAmp.pdf
Do you have some interest and equipment for common rail stuff? I'd be happy to help with the electrical ends of it if you have interests.
Interest but no equipment. I plan on doing VE -> PD -> CR. (Rotary Pump -> Unit Injector -> Common Rail) since those are increasing orders of complexity and timing critical stuff. And common rail is fuel inspecific. The same code should work on a diesel or gasoline (TDI or TSFI).
User avatar
AndreyB
Site Admin
Posts: 14381
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Making Diesel Controller

Post by AndreyB »

kb1gtt wrote:Do you have some interest and equipment for common rail stuff? I'd be happy to help with the electrical ends of it if you have interests.
Not sure how much this is relevant, but larger chain junk yards will have a 50% off sale for the Thanksgiving weekend.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
kb1gtt
contributor
contributor
Posts: 3763
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Making Diesel Controller

Post by kb1gtt »

I had once found that a 2012 Kia Soul has DI the pump that from a dealer cost something like $550, and the injectors were like $50. If found in a junk yard, that could be much more cost effective for a starting point. If the pump and injector can be obtained, it shouldn't be to hard to connect them to a Briggs and scrap iron lawn mower motor or equiv.
Welcome to the friendlier side of internet crazy :)
jedediah_frey
contributor
contributor
Posts: 51
Joined: Tue Nov 05, 2013 1:43 pm

Re: Making Diesel Controller

Post by jedediah_frey »

russian wrote:
kb1gtt wrote:Do you have some interest and equipment for common rail stuff? I'd be happy to help with the electrical ends of it if you have interests.
Not sure how much this is relevant, but larger chain junk yards will have a 50% off sale for the Thanksgiving weekend.
Unfortunately common rail pumps are 10k+
User avatar
kb1gtt
contributor
contributor
Posts: 3763
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Making Diesel Controller

Post by kb1gtt »

The price has come way down. I see this one from Hyundia has become available on the after market.

http://www.jimellishyundaiparts.com/showAssembly.aspx?ukey_product=8467908&ukey_assembly=1105808

See item 35320B for the mechanically driven fuel pump $582, and 35310 the injector for $66. There is pipe connected to 4 injectors, so common rail. What I don't know for sure is the pressure. I believe it's around 100 bar, but don't know for sure.
Welcome to the friendlier side of internet crazy :)
jedediah_frey
contributor
contributor
Posts: 51
Joined: Tue Nov 05, 2013 1:43 pm

Re: Making Diesel Controller

Post by jedediah_frey »

kb1gtt wrote:See item 35320B for the mechanically driven fuel pump $582, and 35310 the injector for $66. There is pipe connected to 4 injectors, so common rail. What I don't know for sure is the pressure. I believe it's around 100 bar, but don't know for sure.
I wonder if the driving would be the same as a piezo Bosch diesel injector. Those are usually 1000bar+ with piezoelectric up through 3000 bar.
User avatar
kb1gtt
contributor
contributor
Posts: 3763
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Making Diesel Controller

Post by kb1gtt »

I think you are flipping PSI and bar. According to this youtube GDI produces between 40 and 200 bar. My daily driver is GDI, I see one of my VAGCOM logs shows between 60 bar and 110 bar. I think you flipped PSI and bar as 40 to 200 bars is 100 to 2900 PSI. You appear correct if you use PSI instead of bar. Also worth noting, 6061 aluminium has a yield strength of no more than 8000 PSI http://en.wikipedia.org/wiki/6061_aluminium_alloy If the pump had pressures that high, the metal would likely crumble.
Welcome to the friendlier side of internet crazy :)
jedediah_frey
contributor
contributor
Posts: 51
Joined: Tue Nov 05, 2013 1:43 pm

Re: Making Diesel Controller

Post by jedediah_frey »

kb1gtt wrote:I think you are flipping PSI and bar.
Nope. That's a gasoline engine. I'm talking about Diesel common rail engines where you need complete atomization near TDC.
Wiki wrote:On diesel engines, it features a high-pressure (over 1,000 bar or 100 MPa; 15,000 psi) fuel rail feeding individual solenoid valves, as opposed to low-pressure fuel pump feeding unit injectors (Pumpe/Düse or pump nozzles). Third-generation common rail diesels now feature piezoelectric injectors for increased precision, with fuel pressures up to 3,000 bar (300 MPa; 44,000 psi).
User avatar
AndreyB
Site Admin
Posts: 14381
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Making Diesel Controller

Post by AndreyB »

kb1gtt wrote:I had once found that a 2012 Kia Soul has DI the pump that from a dealer cost something like $550, and the injectors were like $50. If found in a junk yard, that could be much more cost effective for a starting point. If the pump and injector can be obtained, it shouldn't be to hard to connect them to a Briggs and scrap iron lawn mower motor or equiv.
Junk yards have all kinds of cars mostly in the 1990-2000 range. Kinda a little bit of up to 2004 but these would be Korean cars mostly. So, if any cars older than 2000 used them tell me which ones :)
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
kb1gtt
contributor
contributor
Posts: 3763
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Making Diesel Controller

Post by kb1gtt »

I knew there was a reason why I felt you were correct. I see from here http://en.wikipedia.org/wiki/Common_rail it notes "Third-generation common rail diesels now feature piezoelectric injectors for increased precision, with fuel pressures up to 3,000 bar (300 MPa; 44,000 psi)" That exceeds the yield strength of many materials. I wonder why GDI uses much lower pressures. I think they are all running the same general technology for the electrical drive of the injectors, however I have a lack of experience so I could be wrong. I believe even the GDI injectors are using around an 80V kick to open the injectors then holding with a continuous 12V. I also believe the pulse is actually opening a small pilot valve, which then opens the larger valve. I understand that piezio technology is often used to open the pilot, however other technologies can be used, and both have the same general electrical drive needs.

From fig 6 found here http://www-mat.ee.tu-berlin.de/research/sic_sens/sic_sen3.htm that gas engines cyl pressure under full load was up to 50 bar.

ASME wants to change $25 for this image http://gasturbinespower.asmedigitalcollection.asme.org/data/Journals/JETPEZ/27202/082801_1_f1.jpeg found in this article http://gasturbinespower.asmedigitalcollection.asme.org/article.aspx?articleid=1430075 which seems to indicate that diesel is around 70 bar peak. I'd like to find a better diesel combustion pressure graph. I wonder why the need for such high pressures. I know diesel's detonate, and if not handled properly can cause erosion, so I would expect pressures that can exceed aluminium 8,000 psi yield strength. However I don't follow why the injectors need to be so much higher. Perhaps those higher pressure injectors are only for steal blocks and steal heads, or for when they do the multi pulses during combustion.
Welcome to the friendlier side of internet crazy :)
User avatar
kb1gtt
contributor
contributor
Posts: 3763
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Making Diesel Controller

Post by kb1gtt »

Following the thread name, I want to start some discussion about what the minimum allowable latency is for a diesel engine. For example with the PWM style and mechanically controlled injector pumps, it's likely OK for a signal to take 1/2 of a second from the time it takes to read the signals, to the time it takes to update the outputs. However if you are looking for the multi pulse during combustion thing, that's going to require a much lower latency.

From the above combustion pressure curve, it notes that the combustion pressures happen in around 90 degrees of rotation. At say 9kRPM, 90 degree's takes 1.6mS to pass. If you are looking for say 5 pulses to happen in that time, you are looking for an absolute min of .3mS. I would wager a guess people look to uphold .1 degree accuracy for when you can turn on and off the injector, so I would think a realistic min latency would be 2uS. So how do you setup yourself to have a platform that can uphold latency's in the 2uS to 300uS range? After all you don't want to setup a platform now, only to have to re-engineer the entire thing again when you change to a newer technology.

So I guess a question that should be asked early on, is what is a proper allowable latency? Once we come to a conclusion about that, we can start talking about how we uphold that latency. I tend to want an FPGA design as that latency is around 5nS, while IRQ's in software can get down under 1uS but are typically much longer. However what is a proper latency.
Welcome to the friendlier side of internet crazy :)
jedediah_frey
contributor
contributor
Posts: 51
Joined: Tue Nov 05, 2013 1:43 pm

Re: Making Diesel Controller

Post by jedediah_frey »

When does the GDI do injection? Is it near TDC like diesel engines?

Another thing is that gasoline will evaporate in air, diesel will just pool. You need to atomize the diesel fuel so you get it to a very high pressure so that at the injectors it atomizes. But that's more of a thermodynamic discussion. It is what it is. I just know the higher the pressure the better the combustion. You lower NOx because you don't have the flame front. It's at least a semester class in thermodynamics to understand the why. More == Better.

---------------

Fortunately we NEVER get to 9kRPM. My car red lines at 4700. Most Even the Audi R10 race car only goes to 6000 RPM or so. The advantages of high torque. And while the pressure pulse is 90 degrees you're actually only injecting a very small window of that (the rest is combustion). I'll have to do a sine sweep on my engine to figure out the phase delay between the signal and the response.

Given how the current system is setup I don't think any actual design/engineering is going to go into the current system. I just need to drive 2 PWM signals. The systems I've worked on in the past had a 1 uS resolution on everything. At which point I'm wondering if it's something a standard MCU can do (Without separate FPGA / TPU unit)
User avatar
kb1gtt
contributor
contributor
Posts: 3763
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Making Diesel Controller

Post by kb1gtt »

I believe GDI pulses during combustion. VW like to advertise ultralean operation, which can only happen during combustion. However I haven't measured it so I don't know for sure.

Most all of my OEM cars redline at 6kRPM. My truck redlines at something slower, I think it's still around 5.5KRPM. I tend to think of 6KRPM as the min, and 9KRPM as common on motor cycles, and race cars.

About IRQ latency that varies for a large variety or reasons. If you have a 10MHz clock, each clock cycle will take .1uS, however to react to an IRQ there are lots of tasks like pushing things onto the stack, such that you can return to your normal processing when you are done the IRQ. Then followed by IRQ prioritization and maintenance handler, eventually you get to the actual IRQ routine. It's common you have a hundreds to thousands of clock cycles before the routine has a chance to start processing the IRQ. Then of course the IRQ processing has latency itself. This often puts the latency over 300uS.

There are some ways to get the latency down, for example if you highly optimize the IRQ handler(s) by writing them in assembly, or if you have a multi-core chip you can simplify the IRQ handler on the sub processor, so it doesn't have to push stuff to the stack, and can fast track you to the IRQ code in short order. Those chips also typically use 100MHz clocks or greater, so 1uS latency is fairly easy to obtain. We have low cost options that allow for a very large variety of latency's, however what latency is tolerable?
Welcome to the friendlier side of internet crazy :)
User avatar
Poseidon
Posts: 66
Joined: Mon Sep 01, 2014 2:46 pm
Location: Melbourne, Australia

Re: Making Diesel Controller

Post by Poseidon »

Just a little sidebar GDI (or any petrol) vs Diesel...
The fuel on GDI is still being injected during intake stroke, atomising, then compressing.

Diesel on the other hand is compressing air 40+ bar normally aspirated engine, then in accordance with rpm timing injecting fuel at the correct time and due to the pressure and heat caused by the pressure combusting. Increased advancement in boost systems to increase air in the chamber mean higher pressure at injection time. Kinda like trying to take a piss at the bottom of the Marinara Trench vs petrol engine pissing in outer space... Lol just sayin

And that's without the thermal dynamics, lecture, pollution control, and pre, post & variable injection theory as I learned it on the global design platform :D

So why the high injection pressure, global design platform engines nearing euro 5-6 standards need every last optimisation. Peak pre, post, variable injection time is the only way to get to burn efficiency lowering add on Enviromental packages like the archaic EGR systems, or new expensive adBlue catalytic systems.

I hope that helps someone/anyone since this is my main area of expertise....

And if anyone can get a diesel injector to do this stuff you'll be on par with the big guys!!!



Sent from my iPhone using Tapatalk
Nothing is ever broken, it's just a mater of patience, resources and persistence to fix it!!! Oh yeah and knowing when it's worth it or not!!!
User avatar
kb1gtt
contributor
contributor
Posts: 3763
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Making Diesel Controller

Post by kb1gtt »

Seems common that gas job don't like to use the term diesel. Instead they like to call it TFSI or something similar. http://en.wikipedia.org/wiki/Turbo_fuel_stratified_injection Also there are many variations, some simply inject into the cyl, and spark very similar to how it's done with manifold / port injection. Then others inject fuel similar to how it's done with diesel. A key problem for the gas jobs is that the high pressure pumps are very difficult to manufacture relative to manifold / port injection pumps. Turns out diesel is very much a lubricant, while gas is a solvent. So it becomes kind of hard to keep things sliding smoothly while generating high pressures. Any how, the TFSI engines will switch between traditional gas, and traditional diesel. Basically the turbo can boost such that you have detonation pressures or non-detonation pressures. Then it can spark as required.

A friend recently sent me this link http://www.myhero.ws/hero.asp?hero=Envirofit_Tech_2005 if we could find a way to make small engines work with these high pressures, I think we'd have something of interest. Picture being able to safely add a high boost turbo with out changing the pistons. AKA you prevent detonation by limiting the fuel dispensed, slowing down the flame front and decreasing the cyl pressure such that it's at safe levels. That would be really interesting, and small engines are cheap to blow up. Once it's done on a small engine, it would be a natural progression to a larger engine.

Yup, would be interesting, but I have no idea how to make it happen.
Welcome to the friendlier side of internet crazy :)
Post Reply