Notices
MEGAsquirt A place to collectively sort out this megasquirt gizmo

The Great A/C FAQ

Old Sep 15, 2008 | 04:32 PM
  #101  
holy driver's Avatar
Junior Member
 
Joined: Jun 2008
Posts: 71
Total Cats: 0
Default

Yeah, that sounds pretty smart. Adding a DC offset to the idle code doesn't seem *that* hard... As far as a "series of resistors" ... you can just use a big fatty shunt to measure the current output by the alternator, then all you have left is the A/C and the PS pump (since those are mechanical). Presumably those two would just be high/low rather than variable.
The OEM already does it, that's why the outputs are there.
What outputs are you referring to? You mean the "outputs that tell the motor that it's on" such as pin 1Q for the A/C?
Old Jan 7, 2009 | 03:13 PM
  #102  
karter74's Avatar
Senior Member
iTrader: (4)
 
Joined: Feb 2006
Posts: 690
Total Cats: 23
From: Centennial, CO
Default

Just out of curiousity, is this a secret DIYAutotune does not want to disclose to the public? I know it would make a lot of people happy (like me! ) and IMO the people that want a complete plug-in EMS solution, aren't gonna see the schematics and suddenly want to do it themselves. Most people look at that stuff like a foreign language and don't want any part of it.

Just thinking out loud.....
Old Jan 7, 2009 | 06:00 PM
  #103  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 13
From: San Diego, CA
Default

Probably more they don't want competition? My little '99+ board will probably at some point compete with them, if they get motivated to make one. I'd assume they are working on one. I just like the little board better, for different reasons, more configurable, etc. It IS how they make their living so it's understandable they'd be a little gaurded. Also I tend to be very aware when I get free info from a source like that not to share it in a way that could hurt them, without express permission to do so.

Yeah - the PS pump and AC have signals to let you know when they are doing something, should be straight forward. But you're always input limited on MS.

To me, MS is just a patch to get things working until I come up with something better. :-)
Old Jan 7, 2009 | 06:16 PM
  #104  
Joe Perez's Avatar
Thread Starter
Boost Pope
iTrader: (8)
 
Joined: Sep 2005
Posts: 34,402
Total Cats: 7,523
From: Chicago. (The less-murder part.)
Default

Originally Posted by karter74
Just out of curiousity, is this a secret DIYAutotune does not want to disclose to the public?
I'm afraid I can't quite figure out what it is you're referring to. Bear in mind that while the MSPnP is a proprietary creation of DIY, inside the box it's mostly a stock 3.57 MS1 board, with a daughterboard attached to do the Miata-specific interfacing. DIY is not the inventor of the MegaSquirt, they don't own the MegaSquirt design, they didn't write the code, and they don't even manufacture the base MegaSquirt boards. They just happened to be the ones who came up with the rather brilliant idea to take an open-source ECU design and package it in such a way that non-engineers can plug it in and run it without having to build or wire anything.

With regard to what Abe says, I do tend to agree. In fact, I'm a bit surprised about how open the folks from DIY have typically been about the inner goings-on of the MSPnP, insofar as the design of their input and output circuits. It's not rocket science and the stuff is pretty easy to reverse-engineer if you've got one in your hand, but usually all you have to do is ask "How are you guys doing this on the PnP" and they'll tell you, even if it's in a public forum. Trade secrets aside, it really reinforces what a cool bunch of guys they are.
Old Jan 7, 2009 | 06:46 PM
  #105  
karter74's Avatar
Senior Member
iTrader: (4)
 
Joined: Feb 2006
Posts: 690
Total Cats: 23
From: Centennial, CO
Default

I realize that DIY isn't the creator of Megasquirt or anything else of that nature, I was just wondering what the circuit was they created to make the A/C function correctly (IE bumping up idle when it turns on). Obviously to make it PNP they made a simple daughterboard for the 3.57 PCB, I just wanted to know how the handled the A/C part of it.

If my post came off like I didn't understand what the MSPNP was, I apologize. I also fully respect keeping certain things under wraps as you are trying to make a business out of it, but like you said, they are usually extremely open to helping out the MS community here on things, so I figured maybe they would share what they did to make it work with the PNP. If not, no harm in asking I figure.
Old Jan 7, 2009 | 07:01 PM
  #106  
holy driver's Avatar
Junior Member
 
Joined: Jun 2008
Posts: 71
Total Cats: 0
Default

Originally Posted by karter74
I was just wondering what the circuit was they created to make the A/C function correctly (IE bumping up idle when it turns on).
The A/C part is just a slightly different approach to doing the same thing as Joe's instructions in the first post. They do NOT do any idle compensation and rely on the closed loop idle control to keep the car from stalling. DIY doesn't do anything to prevent the idle dip when the compressor kicks on (or else I wouldn't have fried that chip in my PNP).
Old Mar 15, 2009 | 11:36 AM
  #107  
Skuzzle's Avatar
Newb
 
Joined: Feb 2009
Posts: 40
Total Cats: 0
Default

just had a thought on this..
What reason do we have for turning AC off at WOT.
I've built this circuit, but can i not change the settings in megatune to use this circuit to turn off AC when below 1400 rpm instead ?

Hence solving idle problem as AC wont be on at idle.

Surely the AC at WOT off is just to gain back a few horses the compressor will be robbing
Old Mar 15, 2009 | 06:03 PM
  #108  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
Default

But turning the A/C off at 1400 rpm or lower means when you're stuck in traffic you don't get cold air.
Old Mar 16, 2009 | 07:40 AM
  #109  
Skuzzle's Avatar
Newb
 
Joined: Feb 2009
Posts: 40
Total Cats: 0
Default

dont get stuck in traffic that much over here to be honest, either way it'd make more sense to change the firmware to allow for the WOT off and a ICV pulse at compressor on.
Old Mar 16, 2009 | 07:44 AM
  #110  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
Default

Originally Posted by Skuzzle
dont get stuck in traffic that much over here to be honest, either way it'd make more sense to change the firmware to allow for the WOT off and a ICV pulse at compressor on.
there is a better idle code being work on (PID loop), that may well negate any need for a ICV pulse.

it's only a setting change to disable A/C below 1400rpm, so try it out
Old Mar 16, 2009 | 10:20 AM
  #111  
Skuzzle's Avatar
Newb
 
Joined: Feb 2009
Posts: 40
Total Cats: 0
Default

in megatune what exactly would i change and to what, soz its a bit confusing for me.. i figured out the above TPS one but the below a value confuses me.
Old Mar 19, 2009 | 05:21 PM
  #112  
Duckie_uk's Avatar
Junior Member
iTrader: (1)
 
Joined: Apr 2008
Posts: 439
Total Cats: 0
From: Bristol
Default

Originally Posted by AbeFM
Basically, you'd take an ADC (analog in) and have all your devices (your big honking stereo, AC compressor, power steering pump, basically anything that 1) puts load on the motor, and 2) has an output to tell the motor it's on) and run those to a series of resistors, which would put a analog voltage on the ECU in.

Then, for higher voltages on that pin, you would increase the idle accordingly. The OEM already does it, that's why the outputs are there.
Given that all of these devices only tell the ECU that they are on or off. Why not put the inputs in to a summing amp and then use the different resistor weighting on each input to supply the amount of bump that the idle needs for that particular device or combination of devices.
Old Mar 19, 2009 | 05:33 PM
  #113  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
Default

Originally Posted by Skuzzle
in megatune what exactly would i change and to what, soz its a bit confusing for me.. i figured out the above TPS one but the below a value confuses me.
It's the Hysterisis bit, (assuming the output assigned to A/C has hysterisis, otherwise you'll have to swop them around).
Old Sep 9, 2009 | 02:17 AM
  #114  
SideDraft's Avatar
Junior Member
 
Joined: May 2007
Posts: 46
Total Cats: 0
Default

Originally Posted by Joe Perez
I had previously been running the two values given by DIY in these cells- closed = 18, minimum = 19, and fidgeting with all the other values. Today, I spent some time looking back through some of my recent logs and found that while in a stable, warm, closed-loop idle, my IAC DC tended to be in the 23-24 range, and almost never below 22.

So I entered 22 into the minimum cell. It's a bloody miracle.
I set mine at 20 and a bloody miracle indeed....no more dip
Old Sep 10, 2009 | 11:34 PM
  #115  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 13
From: San Diego, CA
Default

Originally Posted by Duckie_uk
Given that all of these devices only tell the ECU that they are on or off. Why not put the inputs in to a summing amp and then use the different resistor weighting on each input to supply the amount of bump that the idle needs for that particular device or combination of devices.
I thought that was what I was saying? :-)
Old Sep 11, 2009 | 02:19 AM
  #116  
Duckie_uk's Avatar
Junior Member
iTrader: (1)
 
Joined: Apr 2008
Posts: 439
Total Cats: 0
From: Bristol
Default

Originally Posted by AbeFM
I thought that was what I was saying? :-)
Man I posted that a while ago. I think when I wrote it I was under the impression that you wanted to have an ADC input for each device.

Looking back it seems pretty obvious.

I cant even get closed loop idling to work on an engine with no additional loads. Maybe I should hold back on the suggestions
Old Sep 12, 2009 | 02:22 AM
  #117  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 13
From: San Diego, CA
Default

MS-I or MS-II? If it's MS-II there's no shame in that. If it's MS-I.. I hate to be the one to tell you this, but there is shame in that. Sorry.
Old Mar 27, 2011 | 09:59 AM
  #118  
Rallas's Avatar
Senior Member
iTrader: (9)
 
Joined: Oct 2006
Posts: 1,176
Total Cats: 36
From: Lexington SC
Default

What happened to the pictures at the start of this thread?
Old Aug 2, 2011 | 02:43 PM
  #119  
Marc D's Avatar
Senior Member
iTrader: (7)
 
Joined: Jul 2007
Posts: 1,047
Total Cats: 1
From: Milpitas, CA
Default

Does anyone have the schematics for getting the a/c to work on an NB miata? It apparently disappeared here. Really appreciate it. Thanks!
Old Aug 2, 2011 | 02:58 PM
  #120  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
Default

its pretty simple.

what's your ECU?


You'd jump 1P to 1S. That will trigger the a/c compressor when the a/c switch is pressed

From 1S, run a diode (banded end towards 1S) to 1I, this will enable the a/c fan.

You don't even need the diode, only if the main fan and cooling fan have been paralleled, this will prevent the a/c fan from activating when the cooling fan comes on.

Thread Tools
Search this Thread

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