Megasquirt, enhanced
#1
Elite Member
Thread Starter
iTrader: (10)
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,990
Total Cats: 361
Megasquirt, enhanced
After living with my Megasquirt(s) for 4 years now, I've decided to correct some issues I want.
I made a custom circuit that does the following:
* Digital alternator control, trimmed using the IAT to charge depending on air temperature (IAT)
* Battery voltage light (steady on wjhen engine not running and voltage > 11V, blinking slowly when engine off and voltage <11V OR engine running and voltage < 13.5V, blinking rapidly when engine is running and voltage > 15.5V.
* A/C idle up
* A/C both fans turn on
* First fan turns on at 96C, second fan turns on at 101C
* CEL flashes slowly when coolant > 101C, flashes rapidly when coolant > 104C
* Power steering idle up (when parked and turning the steering wheel)
* Fans turn off when VSS>120Km/h, unless seriously overheating (coolant > 110C)
* Idle valve completely off unless speed < 15km/h (helps engine braking, avoids early overrun fuel cut ending)
Obligatory video showing the A/C idle up function (prevents stalling and idle oscillation). Note that the battery light is blinking - indicating low voltage while cranking:
Dimitris
I made a custom circuit that does the following:
* Digital alternator control, trimmed using the IAT to charge depending on air temperature (IAT)
* Battery voltage light (steady on wjhen engine not running and voltage > 11V, blinking slowly when engine off and voltage <11V OR engine running and voltage < 13.5V, blinking rapidly when engine is running and voltage > 15.5V.
* A/C idle up
* A/C both fans turn on
* First fan turns on at 96C, second fan turns on at 101C
* CEL flashes slowly when coolant > 101C, flashes rapidly when coolant > 104C
* Power steering idle up (when parked and turning the steering wheel)
* Fans turn off when VSS>120Km/h, unless seriously overheating (coolant > 110C)
* Idle valve completely off unless speed < 15km/h (helps engine braking, avoids early overrun fuel cut ending)
Obligatory video showing the A/C idle up function (prevents stalling and idle oscillation). Note that the battery light is blinking - indicating low voltage while cranking:
Dimitris
#3
Boost Czar
iTrader: (62)
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,729
Total Cats: 4,126
Must be a lot of load being drawn on the NB motors. I can run PID idle code without my a/c idle up function on and it has no issues recovering idle, it just dips down 100rpm, and slowly speeds back up. With the a/c idle up code, i have it set so it just blips the rpms up before the compressor triggers on and settles right back to my target rpms.
MS3 also add VSS triggers to the idle code as well.
MS3 also add VSS triggers to the idle code as well.
#5
Elite Member
Thread Starter
iTrader: (10)
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,990
Total Cats: 361
It uses a microcontroller, just like my VVT stim. Basically it runs a program in C, that checks certain conditions and reacts to them, much like the MS itself.
Oh, I get to dump the PWM board, as my circuit raises the idle valve frequency from 30.5Hz to 488Hz (which is a native hardware PWM frequency when running at 16MHz).
Dimitris
Oh, I get to dump the PWM board, as my circuit raises the idle valve frequency from 30.5Hz to 488Hz (which is a native hardware PWM frequency when running at 16MHz).
Dimitris
#6
Elite Member
Thread Starter
iTrader: (10)
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,990
Total Cats: 361
Must be a lot of load being drawn on the NB motors. I can run PID idle code without my a/c idle up function on and it has no issues recovering idle, it just dips down 100rpm, and slowly speeds back up. With the a/c idle up code, i have it set so it just blips the rpms up before the compressor triggers on and settles right back to my target rpms.
MS3 also add VSS triggers to the idle code as well.
MS3 also add VSS triggers to the idle code as well.
#10
DEI liberal femininity
iTrader: (8)
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 574
Jimitris,
Will the added functionality of the MS3X allow you to do some of these functions without offloading them to a separate board?
Or is it a question of configuring the outputs to do what you want?
Also for the AC idle up, could you have your board intercept the AC request signal from the switch and raise the RPM (idle duty) and then after a few hundred milliseconds engage the AC?
Will the added functionality of the MS3X allow you to do some of these functions without offloading them to a separate board?
Or is it a question of configuring the outputs to do what you want?
Also for the AC idle up, could you have your board intercept the AC request signal from the switch and raise the RPM (idle duty) and then after a few hundred milliseconds engage the AC?
#11
Elite Member
Thread Starter
iTrader: (10)
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,990
Total Cats: 361
Having a seperate target RPM with the A/C off (850rpm) and on (1000rpm) is not currently possible with the MS2, so I'm always idling at 1000rpm (the engine likes it better, too).
The reason why the RPMs actually fall by 100 and don't go back to 1000 is that I've set a hard limit (max) on the output duty cycle (40%) so that if some calculation is wrong somewhere, I won't be left with the idle valve stuck open. With the A/C and both fans on, I'm easily reaching that 40%, so I need to raise it up a bit, to 50-52%.
The only thing that's left now, is to first close the idle valve and then after a while, disengage the A/C and fans (otherwise the idle suddenly jumps to 1500 and stays there until the MS2 closed-loop idle code brings it down.
Dimitris
#12
Elite Member
Thread Starter
iTrader: (10)
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,990
Total Cats: 361
But really, it would be easier if I just removed the light bulbs in the gauge cluster.
Dimitris
#14
Elite Member
Thread Starter
iTrader: (10)
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,990
Total Cats: 361
This is what the first prototype I made looks like:
Initial design:
Some components placed on the board, you can see the microcontroller board on the top left:
Connected to the DIYPNP with a couple of wires:
This first prototype only has 7-8 wires because it doesn't do:
* IAT based voltage correction
* VSS-based fans and idle control
* Clutch and neutral-based idle control
* Main (coolant) fan control
It's far more crowded on my latest version!
Dimitris
Initial design:
Some components placed on the board, you can see the microcontroller board on the top left:
Connected to the DIYPNP with a couple of wires:
This first prototype only has 7-8 wires because it doesn't do:
* IAT based voltage correction
* VSS-based fans and idle control
* Clutch and neutral-based idle control
* Main (coolant) fan control
It's far more crowded on my latest version!
Dimitris
Thread
Thread Starter
Forum
Replies
Last Post
Zaphod
MEGAsquirt
47
10-26-2018 11:00 PM
StratoBlue1109
Miata parts for sale/trade
21
09-30-2018 01:09 PM
Johnny Tater
MSPNP
1
09-27-2015 12:38 AM