MEGAsquirt A place to collectively sort out this megasquirt gizmo

Megasquirt, enhanced

Thread Tools
 
Search this Thread
 
Old 07-02-2010, 12:50 PM
  #1  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default 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
Reverant is offline  
Old 07-02-2010, 03:47 PM
  #2  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

yet again nice!
richyvrlimited is offline  
Old 07-02-2010, 03:50 PM
  #3  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,493
Total Cats: 4,080
Default

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.
Braineack is offline  
Old 07-02-2010, 03:54 PM
  #4  
Senior Member
iTrader: (14)
 
lordrigamus's Avatar
 
Join Date: Aug 2008
Location: Tinley Park, IL
Posts: 1,482
Total Cats: 0
Default

Tell us more about the circuit.
lordrigamus is offline  
Old 07-02-2010, 04:01 PM
  #5  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

Originally Posted by lordrigamus
Tell us more about the circuit.
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
Reverant is offline  
Old 07-02-2010, 04:38 PM
  #6  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

Originally Posted by Braineack
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.
For the record, when it idles without A/C at 1000rpm, the MAP is 28-30kPa and the idle valve is running at 32% duty cycle. With the A/C again idling at 1000rpm, MAP is at 40-42kPa and idle valve duty cycle is ~40%.
Reverant is offline  
Old 07-02-2010, 08:04 PM
  #7  
Senior Member
iTrader: (14)
 
94mx5red's Avatar
 
Join Date: Oct 2006
Location: South East Florida
Posts: 677
Total Cats: 6
Default

What is going on with the airbag light?
94mx5red is offline  
Old 07-03-2010, 05:12 AM
  #8  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

I have bucket seats installed, so the airbag computer is complaining because it can't find the passenger side seat sensor.
Reverant is offline  
Old 07-03-2010, 08:31 AM
  #9  
Senior Member
iTrader: (14)
 
94mx5red's Avatar
 
Join Date: Oct 2006
Location: South East Florida
Posts: 677
Total Cats: 6
Default

Are you not able to fake the signal to the airbag computer?

With all of the electronics work you have done, that must be driving you crazy
94mx5red is offline  
Old 07-03-2010, 09:17 AM
  #10  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

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?
y8s is offline  
Old 07-03-2010, 09:38 AM
  #11  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

Originally Posted by y8s
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?
Hopefully, yes, it will allow not just me but everyone else too.

Originally Posted by y8s
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?
I am doing that already. If you notice carefully, you will see that in the video, I click the A/C button and turn the cabin fan switch to "1" (you can hear the clicking sound) yet the RPMs don't react immediately. First I add some duty, then after half a second I turn on both fans (coolant & A/C) and then after another half a second the A/C compressor.

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
Reverant is offline  
Old 07-03-2010, 09:40 AM
  #12  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

Originally Posted by 94mx5red
Are you not able to fake the signal to the airbag computer?

With all of the electronics work you have done, that must be driving you crazy
I'm going to remove all airbag-associated electronics and the airbags too, with OMP HTE seats and OMP 5-point harnesses I don't think they will do much anyway.

But really, it would be easier if I just removed the light bulbs in the gauge cluster.

Dimitris
Reverant is offline  
Old 07-03-2010, 10:55 AM
  #13  
Elite Member
iTrader: (17)
 
pdexta's Avatar
 
Join Date: Aug 2007
Location: Knoxville, TN
Posts: 2,949
Total Cats: 182
Default

Originally Posted by Reverant
it would be easier if I just removed the light bulbs in the gauge cluster.
I did that in my '90 and it started beeping instead

So I wrapped the bulb in heat shrink and put it back in.

Awesome work with the MS, I'd love to have even the slightest clue as to how to do any of that.
pdexta is offline  
Old 07-03-2010, 04:05 PM
  #14  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

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
Reverant is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
StratoBlue1109
Miata parts for sale/trade
21
09-30-2018 01:09 PM
Big_gumby
WTB
0
09-30-2015 03:34 PM
Goldwar
DIY Turbo Discussion
2
09-29-2015 09:20 AM
Johnny Tater
MSPNP
1
09-27-2015 12:38 AM



Quick Reply: Megasquirt, enhanced



All times are GMT -4. The time now is 03:11 PM.