How to control output based on input conditions

Post Reply
Suprazz
Posts: 12
Joined: Mon Mar 07, 2016 6:12 pm

How to control output based on input conditions

Post by Suprazz »

Hi,
I'm new to rusefi and I'm currently working on a Proteus.

I started to read the doc but can't figure out what is the best way to configure an output based on inputs.
Example
If map is over 130 kpa and rpm over 3300, enable this output (to trigger a vsv valve).

From what I read, I need to use the LUA Script?

is there an other better way to do this?
Thanks
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: How to control output based on input conditions

Post by mck1117 »

For simpler conditions like that, have a look at GPPWM.

For anything much more complicated like that, then Lua.
Suprazz
Posts: 12
Joined: Mon Mar 07, 2016 6:12 pm

Re: How to control output based on input conditions

Post by Suprazz »

yes that will do it. I didnt realized that the generic pwm have the option to be used in on/off mode too. Only downside is only 4 is available but I only need 3 right now so I'm ok!
Thanks!
Post Reply