MEGAsquirt A place to collectively sort out this megasquirt gizmo

Having Trouble with Megasquirt WI

Thread Tools
 
Search this Thread
 
Old 08-07-2011, 07:56 PM
  #1  
Elite Member
Thread Starter
iTrader: (4)
 
hornetball's Avatar
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,301
Total Cats: 696
Default Having Trouble with Megasquirt WI

I implemented WI control through my MSPNP9093 as described in the MSNS-Extra Hardware Manual. See attachement. I only implemented the X2/JS0 circuit to turn the WI pump on and off with a relay ("relay 1" in the diagram). The circuit was implemented internally to the MSPNP with the "12V Ignition Feed" tied to internal, unregulated power and the "0V" tied to MSPNP ground. The only modification to the circuit is the use of a 1N4004 instead of the 1N4002 depicted.

Anyways, my issue is tied to flyback from the relay. Almost every time the WI shuts off, flyback from the relay causes noise that resets the MSPNP. The flyback diode protects the circuitry so nothing is damaged, but it is really annoying. Usually, it happens on throttle lifts for gear changes -- no big deal although I can see my tach go to 0 for a split second. However, every so often it happens on acceleration as the boost bounces around my turn-on set point (currently set a 120kPa). Since there is no deadband in the circuit, if the boost signal bounces from, say, 121kPa to 118kPa, I get a flyback event. The engine cut REALLY gets your attention.

I have some ideas to try (including the KISS method of decoupling from the MS and using a plain old boost switch). However, I wanted to see if anyone had some ideas on this. Surely, I'm not the first to try to control WI from the MS?
Attached Thumbnails Having Trouble with Megasquirt WI-water-circuit.jpg  
hornetball is offline  
Old 08-08-2011, 11:20 AM
  #2  
Supporting Vendor
 
Matt Cramer's Avatar
 
Join Date: Sep 2006
Posts: 2,332
Total Cats: 67
Default

You could try running the flyback diode to an external 12 volt source instead of the MSPNP's 12 volt plane.
__________________
Matt Cramer
www.diyautotune.com
Matt Cramer is offline  
Old 08-08-2011, 11:37 AM
  #3  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,493
Total Cats: 4,080
Default

To clarify, you are only using the top p2n2222 circuit?

where exactly on the board is your diode attached to?
Braineack is offline  
Old 08-08-2011, 08:05 PM
  #4  
Elite Member
Thread Starter
iTrader: (4)
 
hornetball's Avatar
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,301
Total Cats: 696
Default

Originally Posted by Matt Cramer
You could try running the flyback diode to an external 12 volt source instead of the MSPNP's 12 volt plane.
I'll give that a shot. Any thoughts on adding capacitance between the MSPNP's 12 volt plane and its ground?
hornetball is offline  
Old 08-08-2011, 08:10 PM
  #5  
Elite Member
Thread Starter
iTrader: (4)
 
hornetball's Avatar
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,301
Total Cats: 696
Default

Originally Posted by Braineack
To clarify, you are only using the top p2n2222 circuit?

where exactly on the board is your diode attached to?
That's correct. Only the top circuit.

I've attached a drawing of the internal mod. The diode goes from the 2N2222 collector to what I think is unregulated 12VDC of a v3.57 board.
Attached Thumbnails Having Trouble with Megasquirt WI-visio-mspnp-internal.jpg  
hornetball is offline  
Old 08-09-2011, 08:22 AM
  #6  
Ben
Supporting Vendor
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
Default

Originally Posted by hornetball
I'll give that a shot. Any thoughts on adding capacitance between the MSPNP's 12 volt plane and its ground?
It already has 3300uF.

I'd try adding a diode across the relay itself, from the coil to the high current 12V. Or replace the relay for one with built in protection.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Old 08-09-2011, 10:36 AM
  #7  
Elite Member
Thread Starter
iTrader: (4)
 
hornetball's Avatar
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,301
Total Cats: 696
Default

This AM did a quickie and added an external flyback diode across the relay coil. However, wasn't able to remove the internal diode. "Seems" a bit better. When I get more time, I'll open the MSPNP and remove the internal diode from my grandaughter board. Hopefully, that will do it.
hornetball is offline  
Old 08-12-2011, 05:34 PM
  #8  
Elite Member
Thread Starter
iTrader: (4)
 
hornetball's Avatar
 
Join Date: Mar 2008
Location: Granbury, TX
Posts: 6,301
Total Cats: 696
Default

So, finally got a chance to get inside my MSPNP and clip out the flyback diode on my "granddaughter" board. That leaves the relay in question powered by an external switched 12VDC source with a local flyback diode.

Bottom line . . . problem solved. No more noise or resets of the MSPNP.

Thanks guys.
hornetball is offline  
Old 08-12-2011, 06:03 PM
  #9  
Ben
Supporting Vendor
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
Default

Glad to hear.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Old 02-18-2013, 09:33 PM
  #10  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

To avoid having to clip the internal diode, use a Schottky diode across the relay winding, such as an SB340 (3A, 40V Schottky).
JasonC SBB is offline  
Old 02-18-2013, 09:36 PM
  #11  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

The 100 ohm resistor in the gate of the IRLZ44 should be increased to 1k in order to slow down its switching speed and noise generation. And said resistor should be mounted physically close to the MOSFET, and the trace connecting it to the gate pin should be short, as in < 1 inch. If not it can oscillate in the MHz range and cause all kinds of weird EMI problems.
JasonC SBB is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Big_gumby
WTB
0
09-30-2015 03:34 PM
Goldwar
DIY Turbo Discussion
2
09-29-2015 09:20 AM
Johnny Tater
MSPNP
1
09-27-2015 12:38 AM
psyber_0ptix
MEGAsquirt
4
09-22-2015 09:35 AM



Quick Reply: Having Trouble with Megasquirt WI



All times are GMT -4. The time now is 02:18 AM.