Speeduino is now on Github Sponsors (Rather than Patreon): https://github.com/sponsors/noisymime
Any general discussion around the firmware, what is does, how it does it etc.
By Timus
#45095
Well, in arduino max PWM is 255(100% output), sadly speeduino is using its own custom code to generate pwm which max value is only 100(100% output), anything above 100(101-255) is limited to 100. So TS config is ok.

Closed loop wmi was not as much tested as different modes, its depend on fuel injector PW to calculate wmi PW.

Lets see what number we should put in wmi table to get some reasonable results.

Closed loop is calculated like that:
wmiPW = (PW + wmiOffset) * 10 * wmiTable(MAP, RPM) / 100

Lets assume that:
RPM = 6000
Map = 150 kpa
PW = 20ms
wmiOffset = 0ms

And we want to find table cell value that will give as wmi max pwm value of 100:
wmiPW = 100

100 = (20 + 0) * 10 * wmiTable(MAP, RPM) / 100
100 = 20 * 10 * wmiTable(Map, RPM) / 100
100 * 100 = 20 * 10 * wmiTable(Map, RPM)
(100 * 100) / (20 * 10) = wmiTable(Map, RPM)
wmiTable(Map, RPM) = 50
wmiTable(150, 6000) = 50

That's mean that to achieve 100% wmi PWM at 6000RPM, 1.5Bar load and injector PW of 20ms you need to have value 50 in table, anything below that will limit wmi PWM, anything above will still be 100%.

My advice would be to use open loop, which is much easier to tune and use. :)
Last edited by Timus on Tue Sep 01, 2020 3:39 pm, edited 1 time in total.
User avatar
By Jaap Struyk
#45144
Timus wrote:
Sat Aug 29, 2020 10:02 am
Well, in arduino max PWM is 255(100% output), sadly speeduino is using its own custom code to generate pwm which max value is only 100(100% output), anything above 100(101-255) is limited to 100. So TS config is ok.
Clear and understood, not nice from coding POV but I'm sure there is a reason for why they did it like that.
To make WMI more clear on this I changed the ini file to limit cell value to 100 instead of 255:
Code: Select all
        wmiTable    = array,  U08,    0,[8x8],    "%",        1.0,        0.0,   0.0,       100.0,      0
Timus wrote:
Sat Aug 29, 2020 10:02 am
Closed loop is calumniated like that:
wmiPW = (PW + wmiOffset) * 10 * wmiTable(MAP, RPM) / 100
Thanks Timus, I will have a look at all variables involved, open loop works very well but can't stand it that closed doesn't work as I expected. The idea that fuel pulse width is in control is something I like very much so will try to figure out what's going wrong.
Timus wrote:
Sat Aug 29, 2020 10:02 am
My advice would be to use open loop, which is much easier to tune and use. :)
Doing that for the moment and working very very well! Nice work man!
By vandea05
#45456
At risk of derailing this thread, what control scheme are y'all using for WI? Controlling pump speed via PWM, or running the pump at full noise and pulsing the solenoid?
By vandea05
#45490
I may be gravely mistaken, but it appears the bulk of this thread is about water injection using PWM, possibly using the VVT output. Further, my query regards not the Speeduino aspect of WI but the physical hardware, the pump and valve.

So.. are the guys running WMI controlling pump speed or valve opening time?
By Timus
#45576
It seem like no one is using it yet. So you should do some testing on your own and see whats works best for you. If your pump is not using more than 10amps you can start with pump only setup.
User avatar
By Jaap Struyk
#45580
vandea05 wrote:
Tue Sep 22, 2020 4:08 am
I may be gravely mistaken, but it appears the bulk of this thread is about water injection using PWM, possibly using the VVT output. Further, my query regards not the Speeduino aspect of WI but the physical hardware, the pump and valve.

So.. are the guys running WMI controlling pump speed or valve opening time?
I am building my engine with a mechanical (methanol) pump for water and Bosch EV14 injectors controlled by the PWM signal, copied the injector driver part from the speeduino PCB for that.
Planning on starting it up en Februari so no clue if it works until then ;-)
  • 1
  • 5
  • 6
  • 7
  • 8
  • 9
Saving the code after adjustments

Once I have the initial file loaded and setup in t[…]

76 Triumph TR6 to TBI

I've been trying to decide where to put the O2 sen[…]

Modified 3 cylinder

+1 to the other opinions. Run it as 2-cylinder od[…]

+1, that is a popular coil pack with built-n modul[…]

Still can't find what you're looking for?