MEGAsquirt A place to collectively sort out this megasquirt gizmo

Blower speed and AC switch input

Thread Tools
 
Search this Thread
 
Old 08-11-2018, 02:39 PM
  #21  
Junior Member
 
Nicolas L's Avatar
 
Join Date: Dec 2016
Location: Jax, FL
Posts: 92
Total Cats: 1
Default

No progress with the 10k pull up, at least I can run it in 2 now. Must be the ******* switch. I looked into it and I see the thick ground but it all looks properly connected but could not take out that part without having to disconnect all the cables that go to the heater box. I'm open for ideas.
Nicolas L is offline  
Old 05-08-2020, 01:03 PM
  #22  
Junior Member
 
Nicolas L's Avatar
 
Join Date: Dec 2016
Location: Jax, FL
Posts: 92
Total Cats: 1
Default

I haven't fixed this **** yet. Summer coming up and I think about it again.
Would it help to use a relay before the input to the MS? The ground from the switch closes a relay that goes to the best ground in the county and that triggers the MS?
Can I do this electonically in the protoboard with a transistor or something like that?
Nicolas L is offline  
Old 05-08-2020, 02:47 PM
  #23  
Moderator
iTrader: (12)
 
sixshooter's Avatar
 
Join Date: Nov 2008
Location: Tampa, Florida
Posts: 20,652
Total Cats: 3,011
Default

My compressor clutch sometimes drops out when I flip it to speed number four. I don't have a solution either.
sixshooter is offline  
Old 05-08-2020, 08:18 PM
  #24  
Junior Member
 
Nicolas L's Avatar
 
Join Date: Dec 2016
Location: Jax, FL
Posts: 92
Total Cats: 1
Default

Does your idle also drop randomly and almost kills the engine? I have a weird issue where my closed loop targets 800rpm instead of the 900 of the AC-ON, but the clutch is still engaged. So I had to set the AC min RPM to something like 750 or it would just take the engine with it.
Nicolas L is offline  
Old 05-20-2020, 08:15 PM
  #25  
Junior Member
 
Nicolas L's Avatar
 
Join Date: Dec 2016
Location: Jax, FL
Posts: 92
Total Cats: 1
Default

Well I might be going skookum about this but I got an arduino nano that I'll use to filter the input to the MS.
I'm gonna get the input from the pullup circuit that would go to my JS11, intercept it with the analog in of the arduino, then code it so it's this board the one giving the HIGH in to the JS11, and not the protoboard.
When the AC is off the value at the pullup is 5v no problem, but it only drops to 2v in speed 4 of the fan. A problem for the MS, but not an issue for the resolution of the arduino. I have 5v/1024 values, so 2v would be around 512, so I'll set it so if the value is under 800 adc, sends a HIGH to the output that goes to JS11, and when it goes over 900 then goes to LOW (some hysteresis in case one day the ground is slightly worse or something, I'm sure that with AC off it's gonna be well above 900 anyway)

I'll report back soon. I'm already getting other ideas to use this thing for. Canbus with other analog inputs, temps and what not, should work. The board was 4 bucks, so even if it's overkill, can't beat the cost of having working AC (assuming this works).

Plenty of room in my MS2 DIY box, so I can play with this ****, but I don't see why you couldn't just hotglue this tiny board to the outside of an PNP or the inside of the box and wire it to it. I can power it from the 5v from the proto, this thing, uses like 20mA of current
Nicolas L is offline  
Old 05-20-2020, 11:46 PM
  #26  
Junior Member
 
Nicolas L's Avatar
 
Join Date: Dec 2016
Location: Jax, FL
Posts: 92
Total Cats: 1
Default

it ******* works! It works so well, finally.

How to:

Buy an Arduino nano without headers (the pins sticking out).
Get some 22awg single strand wire and connect:
Arduino / MS
-D8 -> JS11 (or whichever input you are using.)
-A2 -> input from the AC switch, still use the pull-up circuit.
-GND -> Proto GND
-5v PIN -> Proto 5V.

If you choose another pin for whatever reason, change the declarations in the code below.
Code here:

int acIn = A2; // PIN A2 as the input from the AC switch
int acOut = 8; // Digital Pin 8 as the pin for the High/Low output
int analIn = 0; // (pun intended) variable to store the value coming from the AC in reading
int i = 0 ; // for the loop I use for average values
int sum = 0 ; //sum for the average

void setup() {
Serial.begin(9600); //only used for debugging, not really needed.
pinMode(acOut, OUTPUT); //set the acOut pin (D8) as an output.
}

void loop() {
// read the value from the AC swtich 10 times and average it.
sum=0;
for (i=0; i<10; i++){
analIn = analogRead(A2);
sum = sum + analIn;
delay(10);
}

analIn = sum / 10; //store the average value of 10 readings

// 0v = 0, 5v = 1023, in speed 4, my voltage readings are around 2v, 5v when AC OFF
if (analIn < 650){ //if the readings are lower than ~3.17v then set it High
digitalWrite(acOut, HIGH);
} else if(analIn > 850){ //I use a high value because I for sure have 5v when AC is off, I don't want it jumping off
digitalWrite(acOut, LOW);
}

Serial.println(analIn); //just printing the read values for debugging, I used it to figure out what values I needed



}



That's it, over the top, but it gets the **** done, I was tired of dealing with that AC bullshit, I consider my ECU conversion finally over, that was the last bit I needed. After this, my car is 100% more drivable in summer months, couldn't be happier.

Don't laugh at my wires, but this is what it looks like. Progress over perfection. You can even drill a hole on the sideplate to access the USB.
Also I've considering adding a diode on the 5v line so your Arduino never tries to power the ECU when you connect the USB. But the 0.6v drop concerns me. Through the 5v pin you should only feed 5v, if you're planning on using 12v, use VIN. I don't see myself connecting the USB anytime soon if this works fine, so I got lazy and left it like that. But if I add CAN and a few things to this thing I would probably do something then.
Name:  9QJNL0P.jpg
Views: 130
Size:  925.9 KB

Last edited by Nicolas L; 05-20-2020 at 11:59 PM.
Nicolas L is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
redturbomiata
MEGAsquirt
1
11-29-2016 08:31 AM
ScottyP3821
MEGAsquirt
6
05-16-2014 10:40 AM
SlowRider
MEGAsquirt
10
07-11-2013 08:32 AM
SlowRider
MEGAsquirt
3
11-24-2011 12:12 PM
Greg G
MEGAsquirt
13
06-18-2011 09:14 PM



Quick Reply: Blower speed and AC switch input



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