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/)
-   -   Which MS do I want? (https://www.miataturbo.net/megasquirt-18/ms-do-i-want-51863/)

Kain 09-21-2010 04:36 AM

Which MS do I want?
 
Now that the AU$ is almost getting to parity with yours, I'm pretty keen to pick up an MS before the inevitable happens and we're back to $0.70 US to $1 AU. My only issue is, I can't decide on what to get without putting myself too far into the deep end. I'm a mechanical engineer, so I've got a base level of knowledge for electronics, so I can construct a circuit from a diagram but won't be designing my own circuits any time soon.

I was thinking of getting an MSII a few months ago, but now that there's a couple of guys running MSIII successfully, I'm thinking of going in that direction. Given that I'm completely unfamiliar with Megasquirt, will I be biting off more than I can chew? And if I'm only chasing about 250hp, is the extra cost worth it? I definitely like the SD card logging, but I don't know if I need anything else MSIII offers.

Sorry for the noob questions, but there's only so much I can pick up from reading, and the insight of someone who knows what they're talking about is worth so much more.

TL;DR - Brain, do I want to buy an MSII or MSIII?

Ben 09-21-2010 10:17 AM

An MS3 ECU with Expander card will have a little bit higher upfront cost, but will actually be a less difficult ECU to assemble as most of the circuits you need come on the (preassembled) Expander card. The main board assembly would be greatly paired down; you really shouldn't need more than the power supply and tach input sections of the main board. All of the outputs--ignition, idle, injection (sequential), boost, etc are standard on the Expander. So my vote would be MS3.

Braineack 09-21-2010 10:25 AM

Ben, you need to offer v3.0 board with just the components you need for the MS3 + M3X combo...since it's like 1/30 of the components of the regular kit.

Kain 09-22-2010 02:12 AM

Thanks for the quick replies guys. I've done a bit of reading on the MS3X card, seems like a handy bit of kit. Since the ignition circuit is pre-built on the expansion, is there a risk of frying the ignitor, or is the circuit similar to the inverted spark circuit that everyone favours around here? Can I change it to the inverted spark circuit if necessary?

For the time being, I just want to run my '93 1.6 in it's stock form. Will I need any extra modkits, or will getting the unassembled MS3 kit and the expansion card be enough?

ampz 09-22-2010 03:49 AM

Whereabouts are you Kain?
I'm in Sydney and could give you a hand at assembling/tuning if you want (and you're local).
I'm now running an MSII (prviously MSI) and could familiarise you with the functions if you decide MS3 they are almost identical.
Tuning will be your biggest challenge IMO the writeups around here are pretty much all you need to build the board.

Kain 09-22-2010 07:25 AM

I'm up in Brisbane, unfortunately. The actual construction of the ECU doesn't phase me, there's plenty of instructions (and I've read most of it at least once), and so long as I take my time and use my brain it should be fine.

Tuning will be the more difficult thing. I'm planning on keeping everything as stock as possible so I can swap the stock ECU back in if I need to use the car and the MS is not playing ball. If it gives me too much trouble, there's a shop not too far from me that has experience with MSPNP, so I would imagine that they could help out without too much trouble. I don't think it will get to that stage though, I shouldn't have any trouble figuring this stuff out once it's in front of me.

Ben 09-23-2010 03:02 PM


Originally Posted by Kain (Post 632991)
Thanks for the quick replies guys. I've done a bit of reading on the MS3X card, seems like a handy bit of kit. Since the ignition circuit is pre-built on the expansion, is there a risk of frying the ignitor, or is the circuit similar to the inverted spark circuit that everyone favours around here? Can I change it to the inverted spark circuit if necessary?

For the time being, I just want to run my '93 1.6 in it's stock form. Will I need any extra modkits, or will getting the unassembled MS3 kit and the expansion card be enough?

I've had a scope on the Expander's ignition output, but didn't think to look for this. It should have an improved ignition output that does not go high when loading firmware, but I've not checked it myself.

Yes, you should be good with an MS3 kit plus the Expander, but you'll also need to pick up a couple of resistors for the main tach input mod, and you'll want a db37 solder cup connector for the Expander so you can make a harness from it. Or we should have high quality premade Expander harnesses available in the next few days.

Kain 09-24-2010 08:00 AM

Right, I've just placed an order for an MS3 and MS3X. Now that I've thoroughly dropped myself in the deep end with an ECU that's not yet widely used, you may be hearing a lot from me in future :noob: Hopefully later on I'll be able to advise the next noob who wants to build an MS3.

Thanks for the help!

Braineack 09-24-2010 10:00 AM

are you going to stick them on a PCB?

Kain 09-24-2010 05:42 PM

No, I figured that if I just sorta soldered them to the case of the stock ECU everything would be sweet? :loser:

Seriously, I got the whole MS3 kit, not just the daughterboard. If the kit is missing something as fundemental as the main PCB, I'd be worried.

Joe Perez 09-24-2010 05:46 PM


Originally Posted by Kain (Post 632991)
Since the ignition circuit is pre-built on the expansion, is there a risk of frying the ignitor, or is the circuit similar to the inverted spark circuit that everyone favours around here?


Originally Posted by Ben (Post 633636)
I've had a scope on the Expander's ignition output, but didn't think to look for this. It should have an improved ignition output that does not go high when loading firmware, but I've not checked it myself.

Boy, this would be an easy question to answer if the schematics were available...

Braineack 09-24-2010 06:32 PM


Originally Posted by Kain (Post 634020)
No, I figured that if I just sorta soldered them to the case of the stock ECU everything would be sweet? :loser:

Seriously, I got the whole MS3 kit, not just the daughterboard. If the kit is missing something as fundemental as the main PCB, I'd be worried.


so the v3.57 kit?

Kain 09-24-2010 06:48 PM

Ahh, I didn't realise that there were multiple kit versions. It seems the only one on the DIYAutotune site that's sold as a kit is a v3.0. Is that incompatible with the MS3X?

Joe Perez 09-24-2010 06:52 PM

No, either the 3.0 or the 3.57 will work just fine. Some of us (myself included) somewhat prefer the 3.0, as it contains a prototyping area.

The biggest difference is that the 3.57 uses mostly surface-mount parts and comes pre-assembled. Some folks fear working with surface-mount components, frankly I don't have much of a preference either way. The through-hole boards are kind of nice in that you can snake jumper wires through unused holes, but hopefully there won't be as much of that sort of thing with the MS3.

Kain 09-24-2010 07:01 PM

Well it seems that v3.0 would have been my preference anyway, I like the idea of having a proto area available. Also, not too keen on trying to use surface mount parts. Thanks Joe.

Ben 09-24-2010 09:02 PM


Originally Posted by Joe Perez (Post 634023)
Boy, this would be an easy question to answer if the schematics were available...

The circuit's on the board Joe. I just haven't scope verified it.

Joe Perez 09-24-2010 09:27 PM


Originally Posted by Ben (Post 634072)
The circuit's on the board Joe.

Yeah, I know. There's some mystery circuit on the board that I'm not allowed to see the schematic for. I'm supposed to just take it on faith that unlike the VR input circuit, the hall / opto circuit, the IAC drive circuit, the injector drive circuit, or the fuel pump driver circuit on the Rev 3.0 / 3.57 board, this one is actually well-designed and operates the way I want it to.

Nothing against y'all at DIY. I know this isn't your decision and you know that I love you guys. I'm just a little annoyed by this whole Vail of Secrecy thing. If somebody wants to clone the MS3, they're going to succeed with or without the documentation. Pisses me off that all of the legitimate users are being made to suffer for it.

muythaibxr 09-24-2010 10:08 PM

Not to be a jerk, but do Motec provide schems for their boards? Haltech? Microtech? Assuming they don't, lots of people use them anyway and they work fine.

Honest question because I've never used them.

Ken

Joe Perez 09-24-2010 10:58 PM


Originally Posted by muythaibxr (Post 634086)
do Motec provide schems for their boards? Haltech? Microtech?

Do any of those companies sell their ECUs in kit form and expect the end-user to assemble and program them?

(Answer: no, they do not.)

I don't expect schematics when I buy a Panasonic radio. I do expect schematics when I buy one from Heathkit.

muythaibxr 09-24-2010 11:17 PM

OK, I'll give you that for the DIY V3 board, but the MS3 is far less of a "kit" than the older offerings were.

It's potentially 3 surface mount boards (3.57 mainboard), 2 of which are connected by ribbon cables... not a whole lot of assembly there.

Again, I see your point, but B&G are fighting a very large number of pirates, and those pirates are having a definite effect on the bottom line for B&G. It's not just a few random people, there are people cloning and selling these boards and making a lot of money doing so. So I understand that they feel the need to do *something*. B&G need money to keep the project going; it's that simple. They really don't make much, if anything since all of it gets poured back into the project.

Not only that, James and I have spent a lot of time and effort (including convincing B&G that people want what the MS3 offers) to make the MS3 a good product.

Ken

Joe Perez 09-25-2010 12:13 AM

I understand what you're saying. And I'm not unsympathetic. Among other things, my job involves designing audio mixing boards. And not the cheap-ass Mackie stuff that you see in the back of some nightclub, either. We do high-end broadcast consoles that typically sell for $20,000 to $30,000 each.

And we publish our schematics, because our customers expect it.

Look, the reality of the situation is that if somebody wants to clone the MS3 design, they're going to do it. I absolutely guarantee that given a week and enough beer, I could hand you a complete schematic of the MS3 mainboard, and given another couple of weeks I could produce a functioning PCB. I'm not likely to do that, mainly because I have better ways to spend my free time and secondarily because I don't want to receive an angry letter from Their Holienesses threatening to sue me, but this isn't rocket science. If they've kept true to form, all of the signal traces are on the outer layers, so you wouldn't even need to mill or X-ray the board to see how it all goes together.

I'll tell you what really bugs me here. The Megasquirt was built on openness. Even though it's always been a commercial product, it's been managed as though it was an open-source design. Everybody can see the code, everybody can see the hardware. Not happy about the way the idle routine works? Fire up the assembler. Having a problem with a certain circuit? Redesign it. Heck, the only original circuits left on the 3.0 board in my '92 that are still doing anything are the power regulator, the clock, and the analog inputs. Everything else I've re-done, some of it because it simply didn't work, some because it just rubbed me the wrong way. (I mean, who in their right mind uses the same ground return paths for high-current inductive loads as they do for analog sensors and a microprocessor? And don't tell me about split planes- they all come together at the connector.)


If they want to keep the source code a secret, fine. Software isn't my strong point anyway, and you guys have always done a great job on that side of the project.

(Actually, that's not even entirely accurate. I can't count the number of times I've helped someone diagnose a weird problem by examining the PORTx and ENGINE bytes in their datalogs, and were it not for having access to the msns-extra.h and ram_vars.txt files, I'd have never been able to figure those out.)

But the schematics? Gimme a break. The hardware design has always been sub-optimal (or, at best, not very versatile) and I just can't see that changing. And c'mon, there's nothing special about the hardware, people. TI and Maxim did all the hard work there- any fool can throw some FETs together and make an injector driver.


This is really what it boils down to: If it weren't for that sense of community involvement, the MS would never have become what it is today. Without the Extra code, for instance, Bruce and Al would still just have some trivial little TBI controller for retrofitting onto 40 year old V8s with distributors. I mean, we have you, personally, to thank for this! And Phil, and Jean, and James, and all the folks who have come up with all the other little software hacks and circuits that make the Megasquirt a truly useful product, some of whom are members here (kday, Reverant, JasonC, AbeFM, I'm looking at you guys.) Heck, so far as I can tell, I was the first person to publish a logic-level ignition driver circuit for the MS1 that allowed you to do a software reflash without blowing up your ignition coils. Do I care if people copy my design? Of course not! That's what it's for!

But now that they've achieved "fame and fortune" riding on the backs of the community of selfless contributors, the cabal have suddenly decided to betray all that trust, assure us all that they know best, and request that we simply prostrate ourselves upon the altar of their awesomeness.

And frankly, it pisses me off.

richyvrlimited 09-25-2010 04:03 AM

I can only really concur Joe.

Matt Cramer 09-27-2010 09:02 AM

Let me see if I can help you with a couple questions about the schematics. The MS3X board is closely related to the Sequencer - which does have at least an early draft of its schematics available.

http://www.megamanual.com/seq/schem.htm

1. The cam input VR circuit is the same filter / Schmidt trigger circuit as used on the V3.57. The only difference is that a 1K, 5 volt pull up is present on the input pin, and you can jumper it in for sensors that lack an internal pull up.

2. The injector drivers are VND5N07 FETs, as used in the Sequencer.

3. The spark output is a 74ACT541M line driver using the exact same circuit as the Sequencer (only connected to the MS3 processor instead of a separate sequencing processor, of course). The design did go through a couple revisions of what resistors to use - IIRC, the final version has 100 ohm resistors.

Last I heard, the plan was to release the source code for MS3 once they had a stable release version.

muythaibxr 09-27-2010 10:49 AM

Yeah, we plan on releasing source. James and I just discussed that Friday.

I have a few more things I want to get in first, but we *will* release source.

But as I said before, I can't force B&G to release schematics. We are still VERY open in my opinion.

Much of the ms3 source is the same as what's in ms2/extra now, as I've been backporting many of the improvements, and we will release the full ms3 1.0 source as soon as it's ready.

Ken

Joe Perez 09-27-2010 11:18 AM


Originally Posted by Matt Cramer (Post 634785)
Let me see if I can help you with a couple questions about the schematics.

Thanks for spoon-feeding me. It would be tragic if I were able to answer these questions for myself. ;)



1. The cam input VR circuit is the same filter / Schmidt trigger circuit as used on the V3.57.
...which was the same as the one on the V3.0 board. So, in other words, it's a non-differential circuit with a non-adaptive zero threshold, no common-mode noise rejection, and fiddly potentiometers.

Same story on the crank input, I presume?

It'd be nice to know which components I have to remove and which pins I can jump onto in order to install a proper MAX9926-based dual VR decoder circuit. Shame they didn't do this in the original design. Would have had a much lower parts count and been more robust and foolproof.



2. The injector drivers are VND5N07 FETs, as used in the Sequencer.
Nice choice of part. Built-in current and thermal protection, no need for external drivers. Should be fairly easy to figure out how to remove them and substitute LM1949s for folks who need to drive lo-z injectors.

What's the grounding scheme look like? IOW, which pins are injector/IAC/EBC/relay ground, which pins are analog ground, and which pins are logic ground?



3. The spark output is a 74ACT541M line driver using the exact same circuit as the Sequencer
So, not only will it have the same fundamental flaw as the traditional output circuit for the MS1 / MS2 (the outputs will float high when the CPU is inactive, such as during a reflash) but in addition, there's no way to achieve a +12 output on the ignition pins, as would be required by Subarus, some VWs, etc.

That's just stellar.



Last I heard, the plan was to release the source code for MS3 once they had a stable release version.
I appreciate that. Honestly, I do.

Now, if Bruce & Al could only see the light.

Braineack 09-27-2010 11:21 AM


Originally Posted by Joe Perez (Post 634857)
It'd be nice to know which components I have to remove and which pins I can jump onto in order to install a proper MAX9926-based dual VR decoder circuit. Shame they didn't do this in the original design. Would have had a much lower parts count and been more robust and foolproof.

http://westfieldmx5.devocht.com/star..._circuits1.png


does this help? I used frank's diagram to fit Abe's NB circuit into the VR area of a v3.0 board.

Joe Perez 09-27-2010 11:25 AM


Originally Posted by Braineack (Post 634858)
does this help?

It would, if the reference designators and pad numbers were all the same between the 3.0 and the MS3X. Of course if that were the case, I could figure it out myself.

Braineack 09-27-2010 11:27 AM

Yeah I would love if there was a document that said PE1 = R1, PE0 = JS7, Etc. I'd even pay for that.

Ken, since you're here. Why does JS1, JS3, JS6, and JS8 never seem to be an option for an input/output in MS2-3? no love for v3.0 board users?

Matt Cramer 09-27-2010 01:47 PM


Originally Posted by Joe Perez (Post 634857)
Thanks for spoon-feeding me. It would be tragic if I were able to answer these questions for myself. ;)

Yeah, I don't have much of any say in the decision to release schematics either. We may see a partial release of details on some individual circuits.



...which was the same as the one on the V3.0 board. So, in other words, it's a non-differential circuit with a non-adaptive zero threshold, no common-mode noise rejection, and fiddly potentiometers.

Same story on the crank input, I presume?
You got it. It appears the MAX9926 had only been out a little while when they drew up the MS3X design, and Bowling & Grippo weren't fully convinced of its awesomeness at the time.

They'd had a lot of people asking them to make the LM1815 the official conditioner, claiming that one "just plain worked", and I've seen a lot of sensors that one won't work with. So they were kind of cautious about changing circuits. Now that this one's been out about two years and has a good track record, it's likely to show up in future hardware.

Crank input is on the mainboard, so that schematic's already out.


It'd be nice to know which components I have to remove and which pins I can jump onto in order to install a proper MAX9926-based dual VR decoder circuit. Shame they didn't do this in the original design. Would have had a much lower parts count and been more robust and foolproof.
Just wire it to JS10.

There is a pinout for the expansion cable as well.

http://www.msextra.com/doc/ms3/hardware.html#headers



What's the grounding scheme look like? IOW, which pins are injector/IAC/EBC/relay ground, which pins are analog ground, and which pins are logic ground?
The only grounds brought out on the DB37 are power grounds, not logic grounds. There is a polyfuse coupling that ground plane to the logic ground plane.

Matt Cramer 09-27-2010 01:49 PM


Originally Posted by Braineack (Post 634867)
Ken, since you're here. Why does JS1, JS3, JS6, and JS8 never seem to be an option for an input/output in MS2-3? no love for v3.0 board users?

Because they have hardwired functions. The stepper H-bridge's outputs are brought out on JS0 through JS3. So JS1 is the opposite side of the H-bridge from JS0, and JS3 is the opposite side of JS2. JS6 is CAN high and JS8 is CAN low.

muythaibxr 09-27-2010 01:51 PM


Originally Posted by Braineack (Post 634867)
Yeah I would love if there was a document that said PE1 = R1, PE0 = JS7, Etc. I'd even pay for that.

Ken, since you're here. Why does JS1, JS3, JS6, and JS8 never seem to be an option for an input/output in MS2-3? no love for v3.0 board users?

I'll have to check, I didn't write that code :-P

EDIT: looks like Matt already checked!

EDIT2: We're going to go through and get rid of all the "PEx" naming. I hate that too. We'll rename it based on either what jumper via it comes out to or what external pin it comes out to.

One of the disadvantages of having my fingers in all of the code is that it gets hard to keep it all in my head at the same time!

Ken

muythaibxr 09-27-2010 01:56 PM


Originally Posted by Joe Perez (Post 634857)
So, not only will it have the same fundamental flaw as the traditional output circuit for the MS1 / MS2 (the outputs will float high when the CPU is inactive, such as during a reflash) but in addition, there's no way to achieve a +12 output on the ignition pins, as would be required by Subarus, some VWs, etc.

That's just stellar.

No they won't because the new bootloader holds the pins at whatever their state was when the flash began, then sets that state after the MS reboots after the flash.

So regardless of what the driver does, that should not happen.

As far as driving Low-Z injectors and ignition systems that need +12v instead of +5v, both can be done with an external box. Apparently this is what a lot of other EMSs do.

Many of your questions are answered here though:

http://www.msextra.com/doc/index.html#ms3

Ken

Matt Cramer 09-27-2010 01:58 PM

A further note: The header pinout for the ribbon cable from the MS3 to the MS3X is available here:

http://www.msextra.com/doc/ms3/hardware.html#headers

If you want to design your own expansion board in place of an MS3X, that should give you all you need to get started. The grounds are all logic grounds.

muythaibxr 09-27-2010 02:37 PM

Actually, the spark output chip won't float high regardless of what we did in the monitor to preserve pin state.

I'm not sure why you thought it would.

Ken

richyvrlimited 09-27-2010 03:05 PM

Because with this circuit:

http://www.msextra.com/doc/ms1extra/.../neonout22.GIF

In the MSExtra manual, which everyone with an MX5 uses/used on MS1 & MSII on the V3/3.57 main-board, it does and burns out the coils

Joe improved it by adding a transistor on each circuit to invert the characteristics.

Joe Perez 09-27-2010 03:27 PM


Originally Posted by muythaibxr (Post 634962)
Actually, the spark output chip won't float high regardless of what we did in the monitor to preserve pin state.

I'm not sure why you thought it would.

Because everyone has said "It's like the sequencer" or "it's like the MS2."

On the sequencer, the two ~OE pins of the 74ACT541 are tied to ground, so the chip is always active. All eight of its inputs are pulled up to VCC through 4.7k, requiring the CPU to actively assert a low condition on its output pins in order to pull down the inputs to the 74ACT541. So anytime the CPU is not managing its output pins but rather allowing them to tri-state, the ignition coils will be on. If it takes the CPU more than a millisecond or so to initialize and assert its outputs at power-on, the some MS3 users (those with leaky injectors) can also expect to get the traditional backfire at key-on.

Conceptually, it's the same way it's been done since SnS-E first allowed the use of the LED drivers as ignition outputs. The natural tendency of the outputs is to be high, requiring the CPU to actively turn them off.

In process-engineering parlance, this is the exact opposite of a fail-safe configuration. They don't design nuclear reactors such that the control rods have to be forcibly and continuously pressed down in order to keep the reactor in a cold shutdown condition- they design them so that the rods have to be forcibly and continuously held up in order to allow the reactor to operate.





Originally Posted by muythaibxr (Post 634945)
As far as driving Low-Z injectors and ignition systems that need +12v instead of +5v, both can be done with an external box. Apparently this is what a lot of other EMSs do.

Yeah, no sense in being better than the competition... Whoever they are, anyway. The Nemesis and the Adaptronic both claim to be able to run lo-z, provided that only one injector is driver per channel.




Many of your questions are answered here though:

http://www.msextra.com/doc/index.html#ms3
Yes, I'm familiar with the location of the documentation, thanks. It has a lot to say about which signals come out on which pins. Very little is said about what's going on inside.





Originally Posted by Matt Cramer (Post 634939)
You got it. It appears the MAX9926 had only been out a little while when they drew up the MS3X design, and Bowling & Grippo weren't fully convinced of its awesomeness at the time.

Understood. I tried using the LM1815 when I first installed the 36-1 crankwheel. It didn't deal well with the fact that the teeth on the wheel weren't exactly even, resulting in teeth of varying amplitude. Seemed to mess with the zero-crossing detector, causing teeth to be missed.

On the other hand, it only took me about 10 minutes to be convinced that the 9924 was the right chip for the job. Details and scope traces here: https://www.miataturbo.net/showthrea...hlight=max9924





Originally Posted by muythaibxr (Post 634943)
EDIT2: We're going to go through and get rid of all the "PEx" naming. I hate that too. We'll rename it based on either what jumper via it comes out to or what external pin it comes out to.

So long as the setup software and documentation don't make any references to pad designators that existed only on the R2.2 board, I'll be happy with that.

Joe Perez 09-27-2010 03:28 PM

Honestly, the fact that we're even having to have this conversation at all is a large part of what I dislike about this new scheme. People who know a thing or two about basic electronics and take the time to read the documentation should be able to figure this stuff out on their own, rather than having to post stupid messages pleading to be spoon-fed information like an ignorant newb.

muythaibxr 09-27-2010 03:56 PM


Originally Posted by Joe Perez (Post 634983)
Because everyone has said "It's like the sequencer" or "it's like the MS2."

On the sequencer, the two ~OE pins of the 74ACT541 are tied to ground, so the chip is always active. All eight of its inputs are pulled up to VCC through 4.7k, requiring the CPU to actively assert a low condition on its output pins in order to pull down the inputs to the 74ACT541. So anytime the CPU is not managing its output pins but rather allowing them to tri-state, the ignition coils will be on. If it takes the CPU more than a millisecond or so to initialize and assert its outputs at power-on, the some MS3 users (those with leaky injectors) can also expect to get the traditional backfire at key-on.

We didn't do things that way, so it's not exactly like the seq. It won't hang high on things like firmware reload, and we've also made the software try to "work around" that issue for users who are using the LEDs in upgrade mode.


Yeah, no sense in being better than the competition... Whoever they are, anyway. The Nemesis and the Adaptronic both claim to be able to run lo-z, provided that only one injector is driver per channel.
On paper, we can too. When James did his testing though, we felt that the temperatures of the VND and the injector were too high, and decided against making that claim. As far as I know, the VND driver is pretty standard across the commercial offerings. Several of them require you to buy an external peak and hold box to drive low-z injectors.


Yes, I'm familiar with the location of the documentation, thanks. It has a lot to say about which signals come out on which pins. Very little is said about what's going on inside.
Just wanted to make sure, some of the things you were talking about (like grounds) are documented there so I wasn't sure you'd seen it. I was partially blaming that on us too since we haven't been that great about documenting stuff (we're also working on that).


On the other hand, it only took me about 10 minutes to be convinced that the 9924 was the right chip for the job. Details and scope traces here: https://www.miataturbo.net/showthrea...hlight=max9924
Nobody is disagreeing with that, and I think it *will* be used for any future designs.


So long as the setup software and documentation don't make any references to pad designators that existed only on the R2.2 board, I'll be happy with that.
We're going to work on making the docs and software consistent before 1.0.

Ken

Joe Perez 09-27-2010 04:22 PM

External boxes? I thought that one of the driving philosophies behind the whole MS3 project was to make a one-size-fits-most box that didn't require a lot of kludging to make work on the majority of modern engines?



Originally Posted by muythaibxr (Post 634995)
Just wanted to make sure, some of the things you were talking about (like grounds) are documented there so I wasn't sure you'd seen it.

I must not be looking in the right place, then.

I have read the entire "Hardware Page", and apart from the pictures, the word "ground" appears in it only once, in the context of a ground-switched input.

The pretty pictures say things like "Good engine ground", however I can't find any discussion anywhere of which pins on which connector are which ground. Nothing tells me "The injector drivers go to ground through pins x, y and z of connector A, while the medium-current relay drivers go to ground through pins x and y of connector B. All analog grounds are isolated to pin x on connector C. A polyfuse conjoins ground planes X and Y at such-and-such point, and may be removed if you experience noise-coupling into the analog sensors."

I also see absolutely no mention of injector grounding on the "Fuel System" page, and no discussion of the underlying hardware in the "Ignition System" page. The one thing I do see here is that "for 99% of installs you should set Spark Output to "Going high (inverted)" with absolutely no discussion of what this actually means, or the fact that, in reality, the "Inverted" setting is NON INVERTED.


In fact, I only just now realized something (Depending on how much "not like" the sequencer the MS3X isn't.) They could have avoided the need for any software foolishness in the bootloader (and achieved a properly Fail Safe configuration" by pulling those lines (between the CPU and the 74ACT541) weakly to ground rather than weakly to +5. The MC9S12 can source just as much IO current as it can sink, so that would have left the circuit "inverted" but prevented the outputs from going high when the CPU was not in control of them.

Simple, simple stuff that every girl scout learns on the second day of DC Circuits 1.

Subaru owners (and everyone else with 12v-triggered coils) would still be SOL, but at least everyone else would have an ignition system that makes sense.

muythaibxr 09-27-2010 04:39 PM


Originally Posted by Joe Perez (Post 634984)
Honestly, the fact that we're even having to have this conversation at all is a large part of what I dislike about this new scheme. People who know a thing or two about basic electronics and take the time to read the documentation should be able to figure this stuff out on their own, rather than having to post stupid messages pleading to be spoon-fed information like an ignorant newb.

I see where you're coming from, but James and I have had some input into this hardware too, and we've tried to make sure that the bulk of the old problems aren't there.

Ken

muythaibxr 09-27-2010 04:45 PM


Originally Posted by Joe Perez (Post 635015)
External boxes? I thought that one of the driving philosophies behind the whole MS3 project was to make a one-size-fits-most box that didn't require a lot of kludging to make work on the majority of modern engines?

That's right, and I feel that's what we've done. The majority of people run high-z injectors and +5v logic-level spark outs, so that's what we did. We felt that if the small minority needs another box to run their injectors or coils, that's not a big deal.


The pretty pictures say things like "Good engine ground", however I can't find any discussion anywhere of which pins on which connector are which ground. Nothing tells me "The injector drivers go to ground through pins x, y and z of connector A, while the medium-current relay drivers go to ground through pins x and y of connector B. All analog grounds are isolated to pin x on connector C. A polyfuse conjoins ground planes X and Y at such-and-such point, and may be removed if you experience noise-coupling into the analog sensors."

I also see absolutely no mention of injector grounding on the "Fuel System" page, and no discussion of the underlying hardware in the "Ignition System" page. The one thing I do see here is that "for 99% of installs you should set Spark Output to "Going high (inverted)" with absolutely no discussion of what this actually means, or the fact that, in reality, the "Inverted" setting is NON INVERTED.
You don't see any mention of it b/c there doesn't need to be. The high-current (injector and medium current outputs) ground through the ms3x's db37, the analog and low-current stuff grounds back through the expansion connector down into the v3/3.57 board (which at this point shouldn't really have anything high current running from it anymore).


In fact, I only just now realized something (Depending on how much "not like" the sequencer the MS3X isn't.) They could have avoided the need for any software foolishness in the bootloader (and achieved a properly Fail Safe configuration" by pulling those lines (between the CPU and the 74ACT541) weakly to ground rather than weakly to +5. The MC9S12 can source just as much IO current as it can sink, so that would have left the circuit "inverted" but prevented the outputs from going high when the CPU was not in control of them.
We pull those lines to ground instead of +5v.

The inverted vs non-inverted output terminology goes back to when the LED-style outputs were "normal" and connecting to VB921 or other IGBTs were "inverted." I've already discussed changing the naming there with James to make more sense.

Ken

FatKao 09-27-2010 05:15 PM


Originally Posted by Joe Perez (Post 635015)
The one thing I do see here is that "for 99% of installs you should set Spark Output to "Going high (inverted)" with absolutely no discussion of what this actually means, or the fact that, in reality, the "Inverted" setting is NON INVERTED.

Before I melt a coil. For those of us running the improved spark circuit in a MS3 which setting should we be using?

Joe Perez 09-27-2010 05:40 PM


Originally Posted by FatKao (Post 635047)
Before I melt a coil. For those of us running the improved spark circuit in a MS3 which setting should we be using?

If you are not using the MS3X, and instead wiring your ignition drivers off the outer LEDs on the 3.0 / 3.57 board, and you're using my "improved" (double-inverting) output driver, then you will set spark out to "Inverted" (which is non-inverted) just like you would with an MS1 or MS2.

Joe Perez 09-27-2010 05:59 PM


Originally Posted by muythaibxr (Post 635030)
The inverted vs non-inverted output terminology goes back to when the LED-style outputs were "normal" and connecting to VB921 or other IGBTs were "inverted."

All grieving aside, I've honestly never understood the use of the terminology, even in this environment.

Going back to the VB921 design, a positive voltage applied to the "input" terminal of the 921 from the CPU causes the 921 to turn "on", which allows current to flow through the coil.

In such an environment, one must set "Spark Out Inverted" to "Yes."

Do you have any recollection of what the rationale behind that nomenclature was? To me, the word "inverted" would imply something other than the "normal" method of operation, which even back then was for the CPU to raise one of its output pins high when it wishes for the coil to operate. From the CPU's point of view, "high" = coil on, and "low" = coil off. And yet that is what got called "inverted".


In other words, my "improved" spark driver works precisely the same way as the very first ignition-capable Megasquirts did. And yet in both systems, "inverted" means that the ignition coil follows the state of the CPU output pin controlling it, rather than being inverse of it.


I've never understood why the nomenclature was written that way. It only makes sense if the "inverted" vs. "non-inverted" nomenclature wasn't coined until people started using the LED circuits to drive wasted-spark coils with on-board igniters, in which case (assuming the "standard" circuit) the "non-inverted" nomenclature makes sense, not from the point of view of the CPU, but from the point of view of the inverting output driver.

But as you said, the term supposedly predates this.

Matt Cramer 09-28-2010 09:42 AM


Originally Posted by Joe Perez (Post 635065)
I've never understood why the nomenclature was written that way. It only makes sense if the "inverted" vs. "non-inverted" nomenclature wasn't coined until people started using the LED circuits to drive wasted-spark coils with on-board igniters, in which case (assuming the "standard" circuit) the "non-inverted" nomenclature makes sense, not from the point of view of the CPU, but from the point of view of the inverting output driver.

But as you said, the term supposedly predates this.

The very first attempts to drive an ignition with MegaSquirt used the FIDLE output to drive an external module (IIRC, it was a 4 pin HEI). They'd add a pull up resistor, so the circuit both worked as a buffer and inverted the output. The output of a pulled up FIDLE circuit is just like the LEDs. Then somebody tried using a different module - it may have been an MSD box or a Bosch 139. These two trigger off the opposite edge, so they started calling it inverted spark output. Later code versions started using the LED circuit, but it took a while before anyone started installing an IGBT inside the case and driving it directly from a processor port.

It is a bit strange that this same confusion carries over into MS2. The reason is a little different there - the original (pre-CANBUS) MS2 design had a small transistor on the spark output that was dropped from later versions.

muythaibxr 09-28-2010 01:44 PM

Joe, if you want to continue the schems discussion, I will happily do so on the phone. I am PMing you the number.

Ken

richyvrlimited 09-28-2010 03:01 PM

shame, there are other readers on here following this topic with interest you know...

muythaibxr 09-28-2010 06:08 PM

If I could actually change the policy, then the "outcome" of any phone conversation would be useful to everyone... but since I can't, I'm not sure that it's useful.

Ken


All times are GMT -4. The time now is 03:00 PM.


© 2024 MH Sub I, LLC dba Internet Brands