my simple ECU

Free Open Source Firmware project discussion forum. Post your Free Open Source firmware projects here!
User avatar
russian
LQFP112 - Up with the play
Posts: 154
Joined: Fri Feb 01, 2013 4:18 pm
Location: Jersey City, USA

Re: my simple ECU

Post by russian »

Added a features which might be pretty powerful potentially: FSIO, fanciest-schmanciest IO.

rusEfi now supports up to 16 user-configurable outputs, each of these could be either an on/off or PWM signal. In case of a PWM signal the frequency is defined in the configuration and the duty cycle is dynamically controlled by the evaluated expression.

Fuel pump is already using this mechanism as "(time_since_boot < 4) OR (rpm > 0)"
Coolant fan logic is (fan and (coolant > fan_off_setting)) OR (coolant > fan_on_setting)

When I say user-configurable, I mean that one can open the console and specify the expression text in RPN:

Code: Select all

set_fsio 1 "fan coolant fan_off_setting > & coolant fan_on_setting > OR"
the firmware would parse this expression, evaluate it constantly and drive an output pin according to the result. Non-zero would turn the pin on in case of digital mode, or the value would be used as the duty cycle in PWM mode. You are not re-compiling anything here - you are providing the expression and the rest is taken care of.

For example:

Code: Select all

set_fsio 1 "rpm 1000 - 5000 / 0.1 max 0.9 min"
commands the duty cycle to go from 10% @ 1000 rpm to 90% at 5000rpm

I am hoping that advanced users might potentially use this to control stuff like VVT/VICS etc as long as they speak RPN :)
User avatar
russian
LQFP112 - Up with the play
Posts: 154
Joined: Fri Feb 01, 2013 4:18 pm
Location: Jersey City, USA

Re: my simple ECU

Post by russian »

Finally everything on the same board :)

http://www.youtube.com/watch?v=B2BrQA63s48
User avatar
russian
LQFP112 - Up with the play
Posts: 154
Joined: Fri Feb 01, 2013 4:18 pm
Location: Jersey City, USA

Re: my simple ECU

Post by russian »

first rusEfi dyno run.

Stock ECU run: 121hp/127 lb-ft
1st rusEfi run ever - wooping 44hp/69 lb-ft. Right, 12 degrees advance does not work so cool
8 runs later: 123hp/128 lb-ft. More then stock ECU! better timing.

We did not tune fuel at all (Speed Density with default table), the plan for the day was to get close to stock values and just test everything. Mission accomplished :)

full logs

Image
afnid
TO220 - Visibile
Posts: 6
Joined: Wed Apr 01, 2015 6:39 pm

Re: my simple ECU

Post by afnid »

Cool project, I was just looking at those stm32 discovery boards today, I think I will order one to play with.
User avatar
russian
LQFP112 - Up with the play
Posts: 154
Joined: Fri Feb 01, 2013 4:18 pm
Location: Jersey City, USA

Re: my simple ECU

Post by russian »

User avatar
russian
LQFP112 - Up with the play
Posts: 154
Joined: Fri Feb 01, 2013 4:18 pm
Location: Jersey City, USA

Re: my simple ECU

Post by russian »

User avatar
Hentai
LQFP144 - On Top Of The Game
Posts: 302
Joined: Sun Jul 18, 2010 2:35 pm

Re: my simple ECU

Post by Hentai »

russian wrote:A bit of eye candy

https://www.youtube.com/watch?v=HsKoD4tMfOU
very nice. I see you have an airmass output

making me more interested, whats one cost to get a working baord setup going?
User avatar
russian
LQFP112 - Up with the play
Posts: 154
Joined: Fri Feb 01, 2013 4:18 pm
Location: Jersey City, USA

Re: my simple ECU

Post by russian »

Hentai wrote:whats one cost to get a working board setup going?
really depends on the amount of soldering you are looking for - http://rusefi.com/wiki/index.php?title= ... e:For_Sale
User avatar
Hentai
LQFP144 - On Top Of The Game
Posts: 302
Joined: Sun Jul 18, 2010 2:35 pm

Re: my simple ECU

Post by Hentai »

russian wrote:
Hentai wrote:whats one cost to get a working board setup going?
really depends on the amount of soldering you are looking for - http://rusefi.com/wiki/index.php?title= ... e:For_Sale
Thanks. I will buy the connector and pin board to finish up my current ecu install.
User avatar
russian
LQFP112 - Up with the play
Posts: 154
Joined: Fri Feb 01, 2013 4:18 pm
Location: Jersey City, USA

Re: my simple ECU

Post by russian »

Now with automatic warm-up fuel correction. Currently hard-coded to keep AFR at 13 while CLT is below 80C, will probably make it a curve to gradually get to 14.7 while engine gets warmer

https://www.youtube.com/watch?v=Mdyr1dbYeW8
Post Reply