Notices
MSPNP MSPNP specific Megasquirt related discussion.

Repurposing MSPNP9495 EBC Output Pin for VICS

Thread Tools
 
Search this Thread
 
Old May 4, 2014 | 10:48 AM
  #1  
hornetball's Avatar
Thread Starter
Elite Member
iTrader: (4)
 
Joined: Mar 2008
Posts: 6,301
Total Cats: 697
From: Granbury, TX
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?
Old May 5, 2014 | 11:47 AM
  #2  
Matt Cramer's Avatar
Supporting Vendor
 
Joined: Sep 2006
Posts: 2,332
Total Cats: 67
Default

Sure, the circuit can sink plenty of current.
__________________
Matt Cramer
www.diyautotune.com
Old May 5, 2014 | 12:32 PM
  #3  
hornetball's Avatar
Thread Starter
Elite Member
iTrader: (4)
 
Joined: Mar 2008
Posts: 6,301
Total Cats: 697
From: Granbury, TX
Default

Thanks Matt.
Old May 19, 2014 | 06:43 PM
  #4  
hornetball's Avatar
Thread Starter
Elite Member
iTrader: (4)
 
Joined: Mar 2008
Posts: 6,301
Total Cats: 697
From: Granbury, TX
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.
Old May 20, 2014 | 09:24 AM
  #5  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
Default

why not use the EBC function, and just populate the rpm/tps duty table to go from 100% to 0% at 5252RPM?
Old May 20, 2014 | 09:27 AM
  #6  
concealer404's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2011
Posts: 10,917
Total Cats: 2,206
Default

Originally Posted by Braineack
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)
Old May 20, 2014 | 09:41 AM
  #7  
hornetball's Avatar
Thread Starter
Elite Member
iTrader: (4)
 
Joined: Mar 2008
Posts: 6,301
Total Cats: 697
From: Granbury, TX
Default

Originally Posted by Braineack
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.
Old May 20, 2014 | 09:45 AM
  #8  
hornetball's Avatar
Thread Starter
Elite Member
iTrader: (4)
 
Joined: Mar 2008
Posts: 6,301
Total Cats: 697
From: Granbury, TX
Default

Originally Posted by concealer404
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).
Old May 20, 2014 | 09:56 AM
  #9  
concealer404's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2011
Posts: 10,917
Total Cats: 2,206
Default

Ah ok that makes sense. I learned a thing today!
Old Aug 6, 2014 | 03:45 PM
  #10  
hornetball's Avatar
Thread Starter
Elite Member
iTrader: (4)
 
Joined: Mar 2008
Posts: 6,301
Total Cats: 697
From: Granbury, TX
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; Aug 6, 2014 at 04:14 PM.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Full_Tilt_Boogie
Build Threads
84
Apr 12, 2021 04:21 PM
Zaphod
MEGAsquirt
47
Oct 26, 2018 11:00 PM
slomiata
MEGAsquirt
5
Oct 7, 2015 01:11 PM
itsMikey
MSPNP
3
Sep 28, 2015 06:40 AM
spidy
MEGAsquirt
7
Sep 24, 2015 03:14 PM




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