Fueling & Injection Fuel Pumps | Injectors | Rails | Regulators | Tanks

DIY PWM controller?

Thread Tools
 
Search this Thread
 
Old Apr 5, 2023 | 01:47 PM
  #1  
kipps's Avatar
Thread Starter
On The Tree
 
Joined: Jan 2019
Posts: 103
Likes: 3
From: north-central Virginia
Default DIY PWM controller?

How feasible is it to set up a PWM fuel system for one of these LS engines?

The theory, is to use a weld-in fuel ring in my existing steel baffled tank, a 2010 Tahoe pwm-capable fuel pump module, a GM fuel pressure sensor on the fuel line, a Cytron md20a pwm motor controller, and an arduino to control everything.

Is it as simple as wiring that up, and writing a simple program that adjusts the pwm signal to maintain a constant 58-psi on the fuel rail? I know there are off-the-shelf setups available for purchase, but I'm specifically wondering if something DIY like this has a decent chance of working or not.

Would the arduino program need to know the current throttle position so it can ramp up the pump speed a little in advance? Do the 2010-etc pwm fuel pump modules include a pressure accumulator?
Reply
Old Apr 5, 2023 | 02:46 PM
  #2  
TrendSetter's Avatar
TECH Addict
20 Year Member
Photogenic
Photoriffic
Shutterbug
 
Joined: Dec 2004
Posts: 2,173
Likes: 619
From: Florida
Default

are you talking about a closed loop system without a mechanical regulator? hypothetically, im sure its possible. getting the code right wont be easy.
i built my own DBW controller from scratch with a similar but smaller dc motor controller and a esp32. i spent more saturdays collecting and studying data curves than id like to admit but it mostly works well now.
hindsight from several pid related projects over the years though, i dont think a PID controller works for anything but controlling the temperature of liquids. every application ive used them in they suck ***.

also you can use any pump. i currently pwm a walbro 525 with my haltech and it works great. it is not a closed loop system without a mechanical regulator, it just runs the pump just slow enough at idle and cruise to maintain pressure and runs the duty cycle up with boost or tps (i dont remember which i set it up with)
Reply
Old Apr 5, 2023 | 03:47 PM
  #3  
kipps's Avatar
Thread Starter
On The Tree
 
Joined: Jan 2019
Posts: 103
Likes: 3
From: north-central Virginia
Default

The goal would be to skip the regulator entirely. Also, if the fuel pump module could be an off-the-shelf GM unit, that would be all the better. Thinking about it a little more -- I'm doubting I can regulate the pressure based on the pressure sensor alone. I would need to get some sort of info from the ECM about current expected fuel flow, control the pump based on that, and apply some learned correction factors and delay factors into the equation. The programming should be doable, at least for experimental purposes. I'm just really uncertain whether I can scavenge the GMLAN can bus for the necessary fuel flow info or not.

Edit: If a pressure accumulator in the system is large enough, than the pressure could likely be maintained within a few psi of optimal using the pressure sensor alone. But I don't know how large the built-in accumulator is in the GM fuel pump module, or if there's even one there at all.
Reply
Old Apr 5, 2023 | 07:34 PM
  #4  
TrendSetter's Avatar
TECH Addict
20 Year Member
Photogenic
Photoriffic
Shutterbug
 
Joined: Dec 2004
Posts: 2,173
Likes: 619
From: Florida
Default

Depending on how quickly the system reacts I’d think you could do it with just pressure alone.
Reply
Old Apr 6, 2023 | 05:01 PM
  #5  
02redchevy's Avatar
TECH Apprentice
5 Year Member
Liked
Loved
Community Favorite
 
Joined: Apr 2019
Posts: 301
Likes: 129
Default

Originally Posted by TrendSetter
Depending on how quickly the system reacts I’d think you could do it with just pressure alone.
That's how vaporworx system works.
Reply
Old Apr 6, 2023 | 06:05 PM
  #6  
kipps's Avatar
Thread Starter
On The Tree
 
Joined: Jan 2019
Posts: 103
Likes: 3
From: north-central Virginia
Default

Originally Posted by 02redchevy
That's how vaporworx system works.
I was just looking at their system. They specify to use a pwm-capable pump module, and like you mentioned, they do allow it to be operated on the pressure sensor alone. It all sounds doable enough, but will require learning a few new programming skills if I run it with an arduino and pwm driver.
Reply
Old Apr 7, 2023 | 11:25 AM
  #7  
TrendSetter's Avatar
TECH Addict
20 Year Member
Photogenic
Photoriffic
Shutterbug
 
Joined: Dec 2004
Posts: 2,173
Likes: 619
From: Florida
Default

let us know how it goes. this is the kind of project that im really interested in. good luck.
Reply
Old Apr 22, 2023 | 10:20 AM
  #8  
G Atsma's Avatar
TECH Senior Member
5 Year Member
Liked
Loved
Community Favorite
 
Joined: Jun 2016
Posts: 22,285
Likes: 3,613
From: Central Cal.
Default

Originally Posted by StephenMuncy
Have you found it?
Found WHAT?? Nothing above mentions looking for anything.
Reply
Old Apr 27, 2023 | 01:42 PM
  #9  
LSswap's Avatar
TECH Fanatic
10 Year Member
Liked
Loved
Community Favorite
 
Joined: Nov 2014
Posts: 1,300
Likes: 658
Default

Originally Posted by kipps
How feasible is it to set up a PWM fuel system for one of these LS engines?

The theory, is to use a weld-in fuel ring in my existing steel baffled tank, a 2010 Tahoe pwm-capable fuel pump module, a GM fuel pressure sensor on the fuel line, a Cytron md20a pwm motor controller, and an arduino to control everything.

Is it as simple as wiring that up, and writing a simple program that adjusts the pwm signal to maintain a constant 58-psi on the fuel rail? I know there are off-the-shelf setups available for purchase, but I'm specifically wondering if something DIY like this has a decent chance of working or not.

Would the arduino program need to know the current throttle position so it can ramp up the pump speed a little in advance? Do the 2010-etc pwm fuel pump modules include a pressure accumulator?
Cytron md20a pwm motor controller is a bi-directional driver. That means it has 4 times the number of drive components needed. A single direction driver with a higher current capability would be better. 20 amps is probably the ideal temperature rating. You need to derate that for higher temperatures and frequency of the pulses.
Reply
Old Nov 24, 2024 | 01:49 PM
  #10  
Nikuk's Avatar
Teching In
15 Year Member
Liked
 
Joined: Jan 2007
Posts: 12
Likes: 6
From: Western NY
Default

Originally Posted by kipps
The goal would be to skip the regulator entirely. Also, if the fuel pump module could be an off-the-shelf GM unit, that would be all the better. Thinking about it a little more -- I'm doubting I can regulate the pressure based on the pressure sensor alone. I would need to get some sort of info from the ECM about current expected fuel flow, control the pump based on that, and apply some learned correction factors and delay factors into the equation. The programming should be doable, at least for experimental purposes. I'm just really uncertain whether I can scavenge the GMLAN can bus for the necessary fuel flow info or not.

Edit: If a pressure accumulator in the system is large enough, than the pressure could likely be maintained within a few psi of optimal using the pressure sensor alone. But I don't know how large the built-in accumulator is in the GM fuel pump module, or if there's even one there at all.
Gonna drag this thread back up for this.

OEMs do it, have been doing it for a long while actually (Ford been doing it since the 1999 Mustang)... and now I'm trying to figure out how to do it one a swap car.

Any chance you followed through on this?
Reply
Old Nov 25, 2024 | 07:57 AM
  #11  
LSswap's Avatar
TECH Fanatic
10 Year Member
Liked
Loved
Community Favorite
 
Joined: Nov 2014
Posts: 1,300
Likes: 658
Default

I have a hybrid setup in my car, not what the OP is looking for, but I'll describe it anyway. I have a huge fuel pump that provides way more flow than I need for normal cruising and I have a traditional FPR that gets swamped when too much fuel is delivered to the engine. So I use a fan control module, that is slow to react in addition to a relay that supplies full power once boost goes up. So I can cruise around with low fuel pump current and have full delivery under boost.

If I were to try to DIY the system the OP asked about, I'd start with a single direction PWM motor controller and add an Arduino to control the pressure. The arduino would be running a PID (standard feedback control).
I'd start with something like this.



Keep in mind I don't have one of these. But it looks like it's a single direction drive with relays to reverse the direction. First thing I would do is get rid of the relays and solder a permanent jumper in place to set the direction, You never need to reverse it.
For speed control, it appears to have a pot that you can manually dial in the PWM, but we know that won't work right. So instead, I would connect a resistor and capacitor to one of the arduino PWM ports and have it become an D/A (digital to analog) signal replacing the potentiometer. Then add a pressure sensor that is input to the PID routine that changes the PWM to the D/A out.

Needless to say, the more of an accumulator in your fuel circuit, the smoother the fuel pressure should be.
You might also want to add a map sensor input to increase or decrease the target fuel pressure based on the map.

Some might think about using DC Solid State Relay (SSR) but I think they can't handle the high frequency switching needed.

I don't know the frequency that the motor driver above works at. If it's relatively low, then you might get a noisy fuel pump. That's why I went with the fan controller in mine, it runs at 20khz and is very quiet, which I like cause I cruise the car alot.

Last edited by LSswap; Jun 5, 2025 at 10:29 PM.
Reply
Old Nov 25, 2024 | 08:24 AM
  #12  
LSswap's Avatar
TECH Fanatic
10 Year Member
Liked
Loved
Community Favorite
 
Joined: Nov 2014
Posts: 1,300
Likes: 658
Default

I'm going to buy one of those modules, just for ***** and giggles. I'm going to test it on my
I'll bypass the FPR and see if it can maintain a set fuel pressure when the injectors are off and when I throw some big ones in there like the 1000cc I have in my vette. I already have an Arduino that can generate an A/D and can run off 12 battery voltage.
.



Reply
Old Jun 5, 2025 | 07:39 PM
  #13  
RGSS's Avatar
Launching!
15 Year Member
Photogenic
Photoriffic
iTrader: (2)
 
Joined: Apr 2007
Posts: 299
Likes: 10
Default

Bringing this thread back!
I followed LSswap´s suggestion and hooked up the very same PWM controller from the picture above to an arduino UNO just like he said to do some initial testing. For now I am using my DIY fuel supply module with a 255lph pump and a needle valve at the end of a #6 hose to recreate different fuel demand scenarios. A pressure sensor supplies feedback for pump speed control.
Initial results are looking good.
The most time consuming part has been finding the correct PID controller parameters.




My fuel supply module.

Reply
Old Jun 5, 2025 | 10:27 PM
  #14  
LSswap's Avatar
TECH Fanatic
10 Year Member
Liked
Loved
Community Favorite
 
Joined: Nov 2014
Posts: 1,300
Likes: 658
Default

I totally forgot about this thread. I'm stoked that you actually went ahead and did it.

Did you happen to measure the PWM output frequency?

Are you controlling it with an analog output voltage like and R/C circuit, or just with a PWM?

Of course in the car, you will get rid of all those breadboards and solder everything. PM me, I've got something for you.

Reply
Old Jun 6, 2025 | 09:50 AM
  #15  
RGSS's Avatar
Launching!
15 Year Member
Photogenic
Photoriffic
iTrader: (2)
 
Joined: Apr 2007
Posts: 299
Likes: 10
Default

I did not measure the PWM frequency of the controller. The seller specified 15 Khz which should suffice. The pump operation is smooth.
I am using an RC circuit with a 10K resistor and 10 mfd capacitor as a D/A converter.
Reply
Old Jun 6, 2025 | 10:13 AM
  #16  
SparkyJJO's Avatar
TECH Senior Member
15 Year Member
Photogenic
Liked
Loved
iTrader: (11)
 
Joined: Aug 2007
Posts: 7,364
Likes: 85
From: Ohio
Default

What's the benefit of this vs a normal pump and FPR?
Reply
Old Jun 6, 2025 | 10:46 AM
  #17  
RGSS's Avatar
Launching!
15 Year Member
Photogenic
Photoriffic
iTrader: (2)
 
Joined: Apr 2007
Posts: 299
Likes: 10
Default

You can use a big pump and minimize fuel and pump overheating. Overheated fuel can lead to cavitation at the pump suction.
Reply
Old Jun 6, 2025 | 09:40 PM
  #18  
NSFW's Avatar
TECH Fanatic
5 Year Member
Liked
Loved
Community Favorite
 
Joined: Jan 2018
Posts: 1,045
Likes: 189
Default

That's a pretty cool idea.

FWIW, my other fun car is a Subaru, and they use a combination of regulator and PWM. Only three duty cycle options are used: 33%, 66%, or 100%. There is still a regular mechanical FPR, so the idea seems to be just to let the pump run cooler when high power isn't needed - which for a street car is the majority of the time. So you get the aforementioned benefits of PWM, but with a very simple control strategy for the electronics because the regulator does a precise enough job on its own.

I don't remember the details of how it's tuned but it's IIRC it's basically just a combination of thresholds that push it to higher PWM settings. Maybe RPM, MAP, and battery voltage? Something like that.
Reply
Old Jun 27, 2025 | 10:14 PM
  #19  
LSswap's Avatar
TECH Fanatic
10 Year Member
Liked
Loved
Community Favorite
 
Joined: Nov 2014
Posts: 1,300
Likes: 658
Default

Originally Posted by LSswap



.
So, I actually went ahead and bought this unit, but not for a car project. It's for a electric beach cart.

Since I'm running it off battery and there is never a need for going in reverse, I unsoldered the two relays and permanently set the direction one way only. That also leaves more space next to the heatsinks for cooling, win win.
I also got rid of the on/off switch, cause if the battery is plugged in, it's on. I also drive it with a PWM from an arduino R/C circuit that imitates the action of the potentiometer that I no longer use. Also I don't need the display so that's unplugged.

All in all, I'm impressed by this unit, something I don't say often for Chinese power stuff. I would use it for a fuel pump application. I would still shunt it with a relay at full power, just to make sure there are no losses and the pump gets every bit of the battery voltage. I also think it will work fine for controlling extra fans.

I'm going to buy one more of these to control the feed on my milling machine.
Reply




All times are GMT -5. The time now is 02:00 AM.