Notices
MEGAsquirt A place to collectively sort out this megasquirt gizmo

Megasquirt, enhanced

Thread Tools
 
Search this Thread
 
Old Jul 2, 2010 | 12:50 PM
  #1  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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
Old Jul 2, 2010 | 03:47 PM
  #2  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
Default

yet again nice!
Old Jul 2, 2010 | 03:50 PM
  #3  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
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.
Old Jul 2, 2010 | 03:54 PM
  #4  
lordrigamus's Avatar
Senior Member
iTrader: (14)
 
Joined: Aug 2008
Posts: 1,482
Total Cats: 0
From: Tinley Park, IL
Default

Tell us more about the circuit.
Old Jul 2, 2010 | 04:01 PM
  #5  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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
Old Jul 2, 2010 | 04:38 PM
  #6  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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%.
Old Jul 2, 2010 | 08:04 PM
  #7  
94mx5red's Avatar
Senior Member
iTrader: (14)
 
Joined: Oct 2006
Posts: 677
Total Cats: 6
From: South East Florida
Default

What is going on with the airbag light?
Old Jul 3, 2010 | 05:12 AM
  #8  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
Default

I have bucket seats installed, so the airbag computer is complaining because it can't find the passenger side seat sensor.
Old Jul 3, 2010 | 08:31 AM
  #9  
94mx5red's Avatar
Senior Member
iTrader: (14)
 
Joined: Oct 2006
Posts: 677
Total Cats: 6
From: South East Florida
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
Old Jul 3, 2010 | 09:17 AM
  #10  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
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?
Old Jul 3, 2010 | 09:38 AM
  #11  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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
Old Jul 3, 2010 | 09:40 AM
  #12  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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
Old Jul 3, 2010 | 10:55 AM
  #13  
pdexta's Avatar
Elite Member
iTrader: (17)
 
Joined: Aug 2007
Posts: 2,954
Total Cats: 184
From: Knoxville, TN
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.
Old Jul 3, 2010 | 04:05 PM
  #14  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Zaphod
MEGAsquirt
47
Oct 26, 2018 11:00 PM
StratoBlue1109
Miata parts for sale/trade
21
Sep 30, 2018 01:09 PM
Big_gumby
WTB
0
Sep 30, 2015 03:34 PM
Goldwar
DIY Turbo Discussion
2
Sep 29, 2015 09:20 AM
Johnny Tater
MSPNP
1
Sep 27, 2015 12:38 AM




All times are GMT -4. The time now is 09:42 AM.