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/)
-   -   Sanity check: inverted primary trigger required for JimStim? (https://www.miataturbo.net/megasquirt-18/sanity-check-inverted-primary-trigger-required-jimstim-29726/)

Joe Perez 01-06-2009 01:35 PM


Originally Posted by kday (Post 349697)
I thought the CAS output was just the collector of a phototransistor... that was what I guessed from the descriptions I've read anyway.

There is some intermediate circuitry, but that's basically correct. Whether you have the optical or the hall-effect CAS, the outputs are open-collector drivers and a +5 pullup is applied by the ECU.


by default I tend to assume that any signal can have an unexpected voltage on it eventually, especially one that comes from the engine bay and passes near the spark plug wires.
Not a bad idea to be overly safe, and I doubt that the additional current on the CAS is harmful.

In the OEM design, these circuits are not optoisolated within the ECU- they drive the input of an opamp-based comparator.

In the MSExtra manual, the instructions for wiring the second trigger on the 4G63 do specify the use of a second 4N25, however in the traditional MS1 build for the Miata (including the MSPNP, so far as I'm aware) the second input does not have any isolation whatsoever- the CAS's CMP output is directly connected to the CPU pin through a current-limiting resistor. Lots of cars running around this way, and I've never heard of one blowing a CPU on account of the CAS.

Like everything else, there's more than one way to skin this cat.

Joe Perez 01-06-2009 01:51 PM


Originally Posted by AbeFM (Post 349686)
And if there wasn't, it'd be VR sensors anyway, not exactly going to start any fires with that.

I wouldn't recommend that. While it's not going to start fires, the output of a VR sensor can easily reach 10-20 volts or more peak-peak, depending upon RPM and gap. Microprocessors really don't like having voltages greater than Vdd (or lower than Vss) applied to their inputs

AbeFM 01-06-2009 04:26 PM

Good lord! Anyway, yeah, the miata sensors on the '99+ (sorry, posting when I'm busy so I forgot you're using that CAS, it's bad timing on my part) - and I think on the 94 and up crank triggers? - have a readout build into them, and are just open collector outputs themselves.

Joe Perez 01-06-2009 04:52 PM


Originally Posted by AbeFM (Post 349800)
Good lord! Anyway, yeah, the miata sensors on the '99+ (...) - and I think on the 94 and up crank triggers? - have a readout build into them, and are just open collector outputs themselves.

Readout? '94 crank triggers?

In '95.5, they added a crank sensor, but it was a raw VR device. This stayed until '99, when the crank sensor went open-collector and became a primary trigger, instead of just a misfire detector.

karter74 01-07-2009 01:54 AM

Just out of curiousity, will you be keeping all that nifty CAN stuff you built to yourself, or share your build/schematic/etc. stuff with everyone? :)

turbobluemiata 01-07-2009 02:06 AM

that gauge/dash setup will be so badass!

kday 01-07-2009 09:39 AM


Originally Posted by karter74 (Post 350019)
Just out of curiousity, will you be keeping all that nifty CAN stuff you built to yourself, or share your build/schematic/etc. stuff with everyone? :)

I will do a writeup eventually. The schematic probably won't be useful though, since it's specialized to my project, which is all surface-mount. I am toying with the idea of putting some kind of kit together though.

Some more pics:
http://www.boost-instruments.com/ms/DSCF0001-a.jpg
http://www.boost-instruments.com/ms/DSCF0003.jpg
http://www.boost-instruments.com/ms/DSCF0005.jpg
http://www.boost-instruments.com/ms/DSCF0086.jpg

AbeFM 01-07-2009 01:19 PM

Oh, it looks great, kinda big, it might be nice to come up with a stacking arrangement. Surface mount will scare off a lot of people, which is too bad.

I'm curious, what to the gauges need to know? Are those tri-state LED's?

kday 01-07-2009 01:35 PM


Originally Posted by AbeFM (Post 350170)
Oh, it looks great, kinda big, it might be nice to come up with a stacking arrangement. Surface mount will scare off a lot of people, which is too bad.

Oh, any kit I came up with would look nothing like what is above (and wouldn't have either big connector on it). The boards are the size they are to fit both the DB37 and the 64 pin ECU connector. I just filled the rest of the board with whatever I could think of. (Real time clock, knock sensor filter, flash, etc.)

Surface mount is really not hard with the right technique, even with just a normal iron. I'd rather do an 0805 resistor than a through-hole one now...


Originally Posted by AbeFM (Post 350170)
I'm curious, what to the gauges need to know? Are those tri-state LED's?

The displays I'm using now take a synchronous serial input. Just a big shift register. But those too would be different in a kit, since they cost $40 per 8 characters. (I bought a few tubes of them surplus a long time ago...)

The LEDs on the bottom are bicolor red/green. The idea is those are for warning indicators -- e.g. coolant temp / oil temp / oil pressure. Red=bad, orange=cold, green = normal. There is a small AVR on the back of the center display board which PWMs the LEDs on behalf of the big AVR.

For a kit I would use something like a 20x2 OLED display and it wouldn't fit nicely in the cluster. But it would be $20 instead of 9*$40.

karter74 01-07-2009 01:44 PM

That's really impressive stuff! I'm actually gonna be graduating as an Electronics Engineer in May so SMD stuff doesn't bother me. What software did you use to develop the schematic/PCB? I don't have a ton of experience designing PCB's yet, but the custom footprints for the ECU connectors and such would be nice to have. This project looks really neat and whenever you get more time, please elaborate on it!

kday 01-07-2009 02:04 PM


Originally Posted by karter74 (Post 350184)
. What software did you use to develop the schematic/PCB?

I use Eagle. It has its quirks but it is affordable for hobby use, and I am about 10 for 10 in terms of getting working boards back from fab, mostly thanks to Eagle's decent design rule checking.


Originally Posted by karter74 (Post 350184)
I don't have a ton of experience designing PCB's yet, but the custom footprints for the ECU connectors and such would be nice to have.

Sure, I'll post them when I get a chance.

AbeFM 01-07-2009 02:10 PM

I'd love to see a good way to go back and forth from KiCAD and Eagle. A lot of folks use the later, though the utterly free aspects of the prior make it hard to ignore. I'm liking it more and more, though to be fair I've yet to work up the guts to send a board out to be made. :-)

kday 01-07-2009 02:22 PM

I don't know anything about KiCAD. I do know that sometimes free can be expensive :)

Incidentally these boards are the first ones I had done at Gold Phoenix. The quality is good and they are hard to beat price-wise. I paid less than $150 for all the boards above (4 large, 12 small of the center display, 8 of the left/right) I've used a number of vendors (Olimex, PCBFabExpress, Advanced Circuits, etc.) and GP is higher quality than Olimex and much cheaper than the other two if you have more than one design.

karter74 01-07-2009 03:06 PM

Personally since I'm at school I get a crazy discount on software so I use the NI Circuit Design Suite that has MultiSim (schematic) and Ultiboard (PCB design). Professors of mine use Eagle, never had experience with it though. We only use Advanced Circuits too, I think mainly because of student discounts and such.

Seeing this makes me want to do something similar....

Joe Perez 01-07-2009 04:15 PM


Originally Posted by kday (Post 350175)
The displays I'm using now take a synchronous serial input. Just a big shift register. But those too would be different in a kit, since they cost $40 per 8 characters.

We use a very similar display made by OSRAM in a lot of our products. Same idea- it's an 8 char 5x5 matrix, where you just shift bit data into it one row at a time. The particular ones we use are the SCD 55104, though there are a bunch in that family. They cost us about $18 each in whatever quantity we buy.

I'm with you on the SMD. 0805 or 1206 are pretty easy to do with some tweezers, a roll of .025" solder, and a regular iron with a clean tip. And no leads to trim on the backside. :D

AbeFM 01-07-2009 05:55 PM

Getting more reasonable, figure $50 + board plus LEDs... not cheap but very useful. Sure starts to make the dash-mounted EEEpc look pretty good.

As to the surface mount, I'm certainly a fan, but it's hard to get the "world at large" to accept it.

kday 01-07-2009 10:29 PM

By request,
here is the ECU connector pinout I used. Not all pins have been validated, but the important stuff works (i.e. the car runs).

kday 01-07-2009 10:34 PM

and here is an Eagle library for the connector.


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


© 2024 MH Sub I, LLC dba Internet Brands