Repurposing MSPNP9495 EBC Output Pin for VICS - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


MSPNP MSPNP specific Megasquirt related discussion.

Reply
 
 
 
LinkBack Thread Tools
Old 05-04-2014, 11:48 AM   #1
Elite Member
Thread Starter
iTrader: (3)
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,010
Total Cats: 583
Default Repurposing MSPNP9495 EBC Output Pin for VICS

Planning to repurpose the EBC output for the OEM VICS solenoid on a normally aspirated car. Anyone know if the MSPNP9495 circuitry will be OK with the solenoid? Ben?
hornetball is offline   Reply With Quote
Old 05-05-2014, 12:47 PM   #2
Supporting Vendor
 
Matt Cramer's Avatar
 
Join Date: Sep 2006
Posts: 2,266
Total Cats: 51
Default

Sure, the circuit can sink plenty of current.
Matt Cramer is offline   Reply With Quote
Old 05-05-2014, 01:32 PM   #3
Elite Member
Thread Starter
iTrader: (3)
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,010
Total Cats: 583
Default

Thanks Matt.
hornetball is offline   Reply With Quote
Old 05-19-2014, 07:43 PM   #4
Elite Member
Thread Starter
iTrader: (3)
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,010
Total Cats: 583
Default

I'm almost there . . . everything's wired up and ready.

I set X4 function to Output1. No sweat.

Now I go to the Outputs dialog to setup Output1. It wants the value as a raw byte (0 to 255) even when I setup RPM as the source. Anyone know the conversion from RPM to the raw byte?

Sorry for being an MS1 dinosaur, but the 1st gen MSPNP came with the car.
hornetball is offline   Reply With Quote
Old 05-20-2014, 10:24 AM   #5
Boost Czar
iTrader: (61)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 72,900
Total Cats: 1,792
Default

why not use the EBC function, and just populate the rpm/tps duty table to go from 100% to 0% at 5252RPM?
Braineack is offline   Reply With Quote
Old 05-20-2014, 10:27 AM   #6
Elite Member
iTrader: (3)
 
concealer404's Avatar
 
Join Date: Aug 2011
Posts: 8,465
Total Cats: 783
Default

Quote:
Originally Posted by Braineack View Post
why not use the EBC function, and just populate the rpm/tps duty table to go from 100% to 0% at 5252RPM?


Does it react that fast? (Genuinely don't know, just asking)

Will the EBC function work properly with signal ground? Thought it worked via 12v pulse. (Again, genuinely asking)
concealer404 is offline   Reply With Quote
Old 05-20-2014, 10:41 AM   #7
Elite Member
Thread Starter
iTrader: (3)
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,010
Total Cats: 583
Default

Quote:
Originally Posted by Braineack View Post
why not use the EBC function, and just populate the rpm/tps duty table to go from 100% to 0% at 5252RPM?
Because I'm retarded.

Darn good idea. Will do.
hornetball is offline   Reply With Quote
Old 05-20-2014, 10:45 AM   #8
Elite Member
Thread Starter
iTrader: (3)
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,010
Total Cats: 583
Default

Quote:
Originally Posted by concealer404 View Post
Does it react that fast? (Genuinely don't know, just asking)

Will the EBC function work properly with signal ground? Thought it worked via 12v pulse. (Again, genuinely asking)
Yes, instantaneous (or as instantaneous as a PN junction in a transistor can be).

The circuit, whether you're using it to PWM an EBC solenoid or as a simple discrete output, provides either an open-collector (i.e., no continuity) or ground. That's why you supply switched 12VDC to the other side of the device (normally the other side of the EBC solenoid . . . in this case the other side of the VICS solenoid).
hornetball is offline   Reply With Quote
Old 05-20-2014, 10:56 AM   #9
Elite Member
iTrader: (3)
 
concealer404's Avatar
 
Join Date: Aug 2011
Posts: 8,465
Total Cats: 783
Default

Ah ok that makes sense. I learned a thing today!
concealer404 is offline   Reply With Quote
Old 08-06-2014, 04:45 PM   #10
Elite Member
Thread Starter
iTrader: (3)
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,010
Total Cats: 583
Default More info

I followed Brainy's logical suggestion to use the open loop EBC function for VICS control. The idea is that this would let me make use of the built-in RPM settings. This is how I set that up:






By setting my targets more than 20kPa away from what a normally aspirated car would ever see, the MS forces open loop and reverts to the duty cycle table. The duty cycle table is setup to switch the VICS at 5200RPM per the OEM specification.

Unfortunately, when I logged some pulls I found that this wasn't working. VICS was always deactivated above 5200RPM as desired. But below 5200RPM, VICS only turned on if MAP was above 90kPa.

In this pull, I keep MAP well above 90kPa and get a nice switch at 5200RPM:


In this pull, I generally keep MAP just below 90kPA and the VICS stays deactivated the whole time (except for one small noise blip above 90kPa):


And here's a picture of the kind of havoc that was being created with the VICS output in normal driving:


Looking at the MS firmware, I found code that disables the EBC output whenever you're not in boost. The comment in the code indicated it was meant to keep the EBC solenoid from wearing out. Whatever. Bottom line, on a 1st generation MSPNP, using the EBC function for VICS is not workable without a firmware change.

So I decided to use the "Output 1" function instead of the EBC function. Here's what that looks like:

X4/JS2 is changed to Output1 instead of Boost Control.


Then you setup the parameters for Output1. When you select RPM as the parameter, the numbers you specify are RPM / 100 (i.e., 52 is 5200RPM). You can also specify a hysterisis (I used 1 or 100RPM) to prevent the VICS solenoid from oscillating. Select inverted operation. With these settings, the VICS deactivates at 5200RPM on an RPM increase and activates at 5100RPM on an RPM decrease. Proper operation was confirmed by observing the "Output1" icon on MegaTune/TunerStudio and by physical observation of VICS actuator movement.


YMMV.

TL;DR - MS1 EBC function can't control VICS correctly.
Attached Thumbnails
Repurposing MSPNP9495 EBC Output Pin for VICS-wot-run.png   Repurposing MSPNP9495 EBC Output Pin for VICS-part-throttle-run.png   Repurposing MSPNP9495 EBC Output Pin for VICS-havoc.png   Repurposing MSPNP9495 EBC Output Pin for VICS-bc-parameters.png   Repurposing MSPNP9495 EBC Output Pin for VICS-boost-kpa-target-1.png  

Repurposing MSPNP9495 EBC Output Pin for VICS-boost-duty-target.png   Repurposing MSPNP9495 EBC Output Pin for VICS-codebase-outputs.png   Repurposing MSPNP9495 EBC Output Pin for VICS-outputs.png  

Last edited by hornetball; 08-06-2014 at 05:14 PM.
hornetball 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 12-15-2017 09:00 PM
My solution for Oiltemp and Oilpressure input into Megasuirt (MS3) Zaphod MEGAsquirt 41 01-24-2016 01:25 PM
MSPNPPro-MM0105: Coolant Temperature Output slomiata MEGAsquirt 5 10-07-2015 02:11 PM
why is my car running like pewp? (tune/datalog) itsMikey MSPNP 3 09-28-2015 07:40 AM
DIYPNP problem PA0 VICS output spidy MEGAsquirt 7 09-24-2015 04:14 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 03:59 PM.