Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MEGAsquirt (https://www.miataturbo.net/megasquirt-18/)
-   -   A better Spark Out circuit. (https://www.miataturbo.net/megasquirt-18/better-spark-out-circuit-33964/)

Joe Perez 07-01-2009 08:55 PM


Originally Posted by AbeFM (Post 422311)
You might have to dig around the layout a bit, but that should give you the inversion you were looking for, without adding parts?

We don't merely need inversion, we need the circuit to be off when the CPU is off.

When the CPU is inactive, its output pins are hi-z. A PNP won't conduct unless it's got negative base current, and that won't happen with the CPU tri-stated.




Originally Posted by JustinHoMi (Post 425814)
It would be nice to have a simpler way of doing this for new builds!

It'd be nice if Grace Park had been waiting in my hotel room when I got back from dinner.

Didn't happen.

AbeFM 07-02-2009 03:25 AM

So why can't you use a PNP instead of the NPN that drives the diode?

Oh, and sorry, if I'd known you were into her, I wouldn't have gone there. I'm sure she's looking for a shoulder to cry on since I haven't returned her calls....

Savington 07-02-2009 04:13 AM

Fucking hell. My 460s would give the pop on start up once every 2 weeks, but the RC750s are doing it every time the car sits overnight. I need to do this now. -.-

Joe Perez 07-02-2009 08:31 AM


Originally Posted by AbeFM (Post 425928)
So why can't you use a PNP instead of the NPN that drives the diode?

Show me a schematic of what you have in mind. I may just be mis-understanding what you're saying.

redrider706 07-02-2009 11:03 PM

In regard to using a PNP instead of the NPN transistor in the original circuit. Can't we connect the output of the CPU to the base of a PNP with its collector connected to ground and the emitter connected to the -ve side of the LED. Then if we bias the base to the ground with a resistor we should be able to drive the transistor to conduct when the output from the CPU is low/floating. The output to the ignitior should then follow the output from the CPU.

I couldn't find a tool to draw circuits on my mac, hence the wordy description of the circuit.

Disclaimer: I am not an electronics expert so pardon me if this is wrong or stupid.

Joe Perez 07-03-2009 12:22 AM


Originally Posted by redrider706 (Post 426327)
I couldn't find a tool to draw circuits on my mac,

My name's Joe, and I'm a PC. We've got an app for that. :D

Seriously, I think this is what you & Abe are describing:

http://img29.picoodle.com/img/img29/...Pm_7db9d9b.png

The reason I've had concerns here is that you need a small enough resistance to reliably turn on the transistor when the CPU is in la-la land, yet as the value of R goes down, the current which the MS is pissing away out of PTC0 / PTC2 to ground (when on) goes up. I've just been too damn lazy to look up the minimum IB needed to drive the ZTX553, which I'd assumed to be quite high, given its max IC of 1A (and the fact that PNPs usually suck in this regard). Having done so just now, I see that it is in the μA range.

Might work. Try it and find out. Take your pick- desolder a pair of transistors, clean out the holes, and replace them with two other transistors and a couple of tacked-on resistors, or add two additional transistors and resistors in the proto area.

redrider706 07-03-2009 01:29 AM


Originally Posted by Joe Perez (Post 426342)
My name's Joe, and I'm a PC. We've got an app for that. :D

What program do you use PC?

That's the circuit I am talking about.
Can you calculate the resistor values please?

I am still building my MS2 for my 91.
I am in the process of trying to figure out all the different mods I want and how to assemble them.
I will try the PNP circuit while I assemble the spark output circuit.

Thanks.

JustinHoMi 07-03-2009 01:33 AM

Eagle CAD will run on Mac, Linux, and Winblows:

CadSoft Online: Download

JasonC SBB 07-03-2009 03:32 AM

If the CPU output is 0-5V, then 470 ohms for the upper right hand (pullup) resistor is plenty, and 4.7k-10k for the base to ground resistor will be fine. The leftmost horizontal resistor is unnecessary.

Just about any TO-92 PNP will work, such as the 2N2905 or the 2N5551.

Joe Perez 07-03-2009 08:46 AM


Originally Posted by redrider706 (Post 426352)
What program do you use PC?

I use the free schematic editor that comes with the ExpressPCB package, for which Abe criticizes me on the grounds that Eagle is better.


Originally Posted by JasonC SBB (Post 426376)
If the CPU output is 0-5V, then 470 ohms for the upper right hand (pullup) resistor is plenty, and 4.7k-10k for the base to ground resistor will be fine. The leftmost horizontal resistor is unnecessary.

The leftmost horizontal resistor is part of the standard 3.0 layout. It's R26 / R29 on page 7 (R3.0).

Bear in mind that the lower the better for the +5 pullup, since it dictates the current available to drive the igniters which as we've shown from past experience, are hugely capacitive. 220/330 is preferred here, as little as 100 is really ideal when you're dealing with a 2222 or similar.

JasonC SBB 07-03-2009 01:49 PM

The Toyota and Nissan COPs I tested didn't have capacitive loady inputs. I've posted how much current they require in the big COP thread.

Joe Perez 07-03-2009 07:21 PM


Originally Posted by JasonC SBB (Post 426469)
The Toyota and Nissan COPs I tested didn't have capacitive loady inputs.

I didn't create this mod only for people with COPs.

In my personal opinion, the NPN design is more robust, and not significantly more complex.

AbeFM 07-03-2009 07:22 PM


Originally Posted by Joe Perez (Post 426342)
Seriously, I think this is what you & Abe are describing:

http://img29.picoodle.com/img/img29/...Pm_7db9d9b.png

Without thinking it out, basically, yeah - stuffing the different part in the same hole. Of course, a small, surface mount resistor would comfortably attach to the bottom of the board to pick up both pins, so no wires to run.


The reason I've had concerns here is that you need a small enough resistance to reliably turn on the transistor when the CPU is in la-la land, yet as the value of R goes down...
(blah blah a bunch of technical crap someone who actually knows what they're talking about would probably say)

Might work. Try it and find out. Take your pick- desolder a pair of transistors, clean out the holes, and replace them with two other transistors and a couple of tacked-on resistors, or add two additional transistors and resistors in the proto area.
Well, the idea is for fresh builds, if it's put this part in instead of another, ok. You're right, tearing apart an existing board is more work and slightly risky (lifted pads, etc)



Originally Posted by Joe Perez (Post 426399)
I use the free schematic editor that comes with the ExpressPCB package, for which Abe criticizes me on the grounds that Eagle is better.

Actually, I've been using KiCAD - reminds me a lot of orcad. Eagle has really annoying limitations. And it's cross platform, so you can share with weird open-source/linux people. Maybe it works on mac? I dunno. Anyway - one package all the way through fab, why not?


Seriously, it's all about COPS, they are such a joy to work with. Everyone should buy them next time they need cables, costs about the same and you're set for life.

Joe Perez 07-04-2009 01:52 AM


Originally Posted by AbeFM (Post 426570)
Well, the idea is for fresh builds, if it's put this part in instead of another, ok.

This, from the man who failed to implement this freely available design on his NB PnP board (and who still hasn't paid me any fucking royalties on the A/C circuit that he stole)

AbeFM 07-05-2009 12:56 PM

I never have issues with 'premature ignition' in my car. Maybe you should speak with a doctor about it?

Laur3ns 07-15-2009 09:23 AM

Since my car is not driving anyway, I've decided to go ahead and order the parts I need for this mod.

2x 2N2222 TO18

Data sheet:
http://www2.produktinfo.conrad.com/d...219_2N2222.pdf

Laur3ns 07-15-2009 09:40 AM

1 Attachment(s)
I've expaneded the write up from Matt. This is correct right?


We are aware of that circuit, but we haven't tested it for ourselves.
However, if you want to try putting it on an MSPNP, here's what you
would do.

1. Desolder the jumpers from PAD1 and PAD3.

2. Take a PN2222(A) transistor and connect it as follows:
* Emitter pin to ground (PAD4)
* Base pin to PAD1
* Collector pin to the jumper that previously connected to PAD1

3. Take a second PN2222(A) and
* Take a PN2222(A) transistor and connect it as follows:
* Emitter pin to ground (PAD4)
* Base pin to PAD3
* Collector pin to the jumper that previously connected to PAD3

4. Disconnect the coils and power up the MSPNP.

5. In MegaTune, change the Spark Output Inverted setting to YES and burn
to ECU.

6. You can now connect the coils.

The pull up resistor Joe mentions is already on
the MSPNP adapter card and stays in place.

Matt Cramer 07-15-2009 10:08 AM

Looks good...

JasonC SBB 07-15-2009 11:05 AM

Oh? Whose igniters have super capacitive inputs? Miatas?

Laur3ns 07-15-2009 11:59 AM


Originally Posted by JasonC SBB (Post 430613)
Oh? Whose igniters have super capacitive inputs? Miatas?

Explain please?

Desolder the jumpers from PAD1 and PAD3.
Does this mean remove the two red wires below the surface of the board? Ex. PAD1 and IACB2B en PAD3 and X ?


All times are GMT -4. The time now is 07:06 PM.


© 2024 MH Sub I, LLC dba Internet Brands