ECU Temperature to LUA script
Posted: Fri Mar 17, 2023 8:12 pm
Hey guys,
I have my ECU positioned in a pretty tight and potentially warm area and would like to occasionally use a fan to get air circulating in that area as a precaution. I thought about using a Temp input, running a sensor and using a LUA script to switch on the fan if it gets too warm in there.
But then I realized Rusefi actually can show and log the MCU temp. So I thought about running a LUA script to activate the fan based on the MCU temp and not using up an extra Temp input and cut down on the bulk of wiring. It looks like I can't get Internal MCU temps with LUA using the getSensor function since it's not a defined sensor name.
I was wondering if there's another function that I can use to access this info. I plan to set it up with a basic script curve, or even if I just set it up as a switch in the LUA script, that would work too.
Alex
I have my ECU positioned in a pretty tight and potentially warm area and would like to occasionally use a fan to get air circulating in that area as a precaution. I thought about using a Temp input, running a sensor and using a LUA script to switch on the fan if it gets too warm in there.
But then I realized Rusefi actually can show and log the MCU temp. So I thought about running a LUA script to activate the fan based on the MCU temp and not using up an extra Temp input and cut down on the bulk of wiring. It looks like I can't get Internal MCU temps with LUA using the getSensor function since it's not a defined sensor name.
I was wondering if there's another function that I can use to access this info. I plan to set it up with a basic script curve, or even if I just set it up as a switch in the LUA script, that would work too.
Alex