How to read an input port? For A/C control - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


MEGAsquirt A place to collectively sort out this megasquirt gizmo

Reply
 
 
 
LinkBack Thread Tools
Old 11-22-2011, 11:05 PM   #1
Junior Member
Thread Starter
 
Join Date: Dec 2006
Location: NH
Posts: 114
Total Cats: 1
Default How to read an input port? For A/C control

How can one read an input, like NitrousIn, and actuate the AC clutch on Injector H, if the RPM < 6000? I couldn't find a way to do this.

Assume an MS3X. Is this possible?

Thanks
SlowRider is offline   Reply With Quote
Old 11-23-2011, 12:19 PM   #2
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,038
Total Cats: 407
Default

yes, sort of.

the MS3 has an A/C idle up function.

it works like this:
1. you close a switch to ground on nitrous in
2. the idle algorithm increases the idle duty by your chosen amount
3. after your chosen delay, it activates your chosen output (inj H in your case)
4. when your switch breaks with ground, the idle duty goes back down by the above amount.
y8s is offline   Reply With Quote
Old 11-23-2011, 01:22 PM   #3
Ben
Supporting Vendor
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

The a/c shutoff conditions built into MS3 code are for a/c deactivation over X% throttle position or Y MPH VSS. It does not have an RPM based deactivation.

If you must have RPM base, instead of using the a/c function, you could set up a 2 condition generic output. Condition 1 would be the input pulled low. Condition 2 would be RPM < your threshold.
Ben is offline   Reply With Quote
Old 11-24-2011, 01:12 PM   #4
Junior Member
Thread Starter
 
Join Date: Dec 2006
Location: NH
Posts: 114
Total Cats: 1
Default

Thanks for everyone's explanation. What I was trying to do is:

If NitrousIn = 0 and TPS < 70% WOT turn on AC clutch
If NitrousIn = 0 and TPS > 70% WOT (high load) turn off AC clutch
If NitrousIn = 1 (miata AC off) turn off AC clutch

If T > 105C (or whatever is the right value), turn on AC fan.

I wanted to avoid hard wiring the AC clutch to the AC switch. I had hard wired the AC circuit on my TEC3. I'd much rather have the AC behave as above.
SlowRider is offline   Reply With Quote
 
 
Reply

Related Topics
Thread Thread Starter Forum Replies Last Post
Project Gemini - Turbo Civic on the Cheap Full_Tilt_Boogie Build Threads 59 Yesterday 09:00 PM
Another Cast Manifold Corky Bell Prefabbed Turbo Kits 18 11-22-2016 10:01 PM
OTS Bilstein to motorsports ASN conversion stoves Suspension, Brakes, Drivetrain 5 04-21-2016 04:00 PM
My solution for Oiltemp and Oilpressure input into Megasuirt (MS3) Zaphod MEGAsquirt 41 01-24-2016 01:25 PM
1991 special edition with hard top full part out JC, NJ russian Miata parts for sale/trade 6 10-08-2015 04:01 PM


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 05:24 AM.