secondary fan when ac is requested

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
sheek
Experienced MS/Extra'er
Posts: 265
Joined: Fri May 11, 2007 10:05 am

secondary fan when ac is requested

Post by sheek »

hi i was wondering if it is possible to add the feature where when ac is engaged a programmable output can be grounded also to control a second fan or any other device for that matter??

thanks
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: secondary fan when ac is requested

Post by jsmcortina »

Yes, you can do it with the on/off outputs using a bitwise "AND" condition.

If you look at section 19.18 of the Megasquirt-3 TunerStudio reference manual, you'll find "Status7" and see that value 32 means AC on.

So, if you configure an output with
"status7" "And" 32
as the condition, then it should turn on when AC is active.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Reverant
Super MS/Extra'er
Posts: 1234
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: secondary fan when ac is requested

Post by Reverant »

We are already using that output as a cooling fan.

So we want the fan to activate both when the coolant temp is high, as well as when the A/C activates.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
sheek
Experienced MS/Extra'er
Posts: 265
Joined: Fri May 11, 2007 10:05 am

Re: secondary fan when ac is requested

Post by sheek »

it worked


reverant that is exactly what i did, im using 2 outputs going to the same relay and fan. 1 output is programmed to come on above a predetermined temp, then the status 7 james helped me with is on the same relay. then my primary cooling fan is on another output and relay.

that fan is also set to come on when ac is requested
Reverant
Super MS/Extra'er
Posts: 1234
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: secondary fan when ac is requested

Post by Reverant »

Why waste 2 outputs for the same device when the code can do it with one output? Code that I've already written and that also has idle-up for the second fan as well.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
sheek
Experienced MS/Extra'er
Posts: 265
Joined: Fri May 11, 2007 10:05 am

Re: secondary fan when ac is requested

Post by sheek »

im only using 1 extra output.

nitrous 1 is used for my radiator fan
idle is used to trigger ac fan at x temp and above y rpm
injector g is used to trigger ac fan when ac is requested.

radiator fan is set in config to turn on with ac request


ye i could use idle and used an or condition for ac but then ac fan would spin before car starts on a hot start.
Post Reply