MEGAsquirt A place to collectively sort out this megasquirt gizmo

Syncs on stim, not on car. 2001 miata.

Thread Tools
 
Search this Thread
 
Old 11-28-2010, 09:54 AM
  #1  
y8s
2 Props,3 Dildos,& 1 Cat
Thread Starter
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default Syncs on stim, not on car. 2001 miata.

(this is cross-posted to the msextra forums)

I'm finishing my MS3X and thought I got it all sorted out but something is wacky.

My crank and cam inputs are based on the MAX9926 reference circuit.


The crank and cam signals go into the IN+. The IN- are grounded.

With the Stim set up to 99-00 miata and the MS trigger set up to same and rising edge, I get perfect sync.


If I change the trigger to falling edge, it still syncs but (and here's the crazy part) when I start the composite logger, it IMMEDIATELY loses sync. Stop the comp logger, it syncs right away.


Now... when I put the thing in the car and hook it up to the actual sensors, I get varying results. First of all, I can't get a good composite log that looks anything like the above images unless I unground the IN- (I understand that leaving them floating enables auto threshold on the 9926?) and stick a pullup resistor on the raw input (2.2k to VCC before the 9926 1k input resistor).

But what's crazy is that while the signals look ok, I get no sync at all.



So a few questions I was trying to answer for myself:
* does the crank and cam input need a pullup resistor?
* does the 9926 really automatically set the threshold when the IN- are floating?
* in TunerStudio, should the tooth spikes point up or down to be "right"?
* do any of the settings in Ignition Options/Wheel Decoder affect the ability to sync (other than spark mode or input capture)?

I searched a lot for some concrete answers to the 99-2005 miata triggers and only found 12 page threads arguing if the sensors were either broken or hall or VR or sticky. I'd like to avoid all those conversations again. I understand that the signals should be 5V on gaps and 0V on teeth and trigger on the RISING edge which is the 0-5V-going edge because that edge never "sticks" at various RPM and remains between adjacent crank teeth for the entire range over which the VVT works.


Thanks for the help.

Matt
y8s is offline  
Old 11-28-2010, 12:02 PM
  #2  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

For your reference, the crank signal should be 12V (B+) high on gap and less than 10V on the trigger. The cam should be 5V pn gap and 0V on trigger.
Reverant is offline  
Old 11-28-2010, 03:03 PM
  #3  
y8s
2 Props,3 Dildos,& 1 Cat
Thread Starter
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

I may have misread but I swear the fsm said 5 for both. I will check again for my sanity when I land.
y8s is offline  
Old 11-28-2010, 03:20 PM
  #4  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

Forget what the FSM (and therefor, what the stock ECU needs). You need 12V on the primary (tacho) input on the MS.
Reverant is offline  
Old 11-28-2010, 03:23 PM
  #5  
y8s
2 Props,3 Dildos,& 1 Cat
Thread Starter
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

Ahh so it is an ms requirement AFTER the 9926?
y8s is offline  
Old 11-28-2010, 03:26 PM
  #6  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

Yes.
Reverant is offline  
Old 11-29-2010, 11:30 PM
  #7  
y8s
2 Props,3 Dildos,& 1 Cat
Thread Starter
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

Dimitris, the guys at the msextra forums are telling me 12V on TSEL will fry something and that it is designed for a 0-5V signal.
y8s is offline  
Old 11-30-2010, 08:59 AM
  #8  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,493
Total Cats: 4,080
Default

12v into the ms3 daughterboard WILL fry everything.
Braineack is offline  
Old 11-30-2010, 09:11 AM
  #9  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

It's the sensor that requires 12v surely, not the ECU?
richyvrlimited is offline  
Old 11-30-2010, 09:40 AM
  #10  
y8s
2 Props,3 Dildos,& 1 Cat
Thread Starter
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

The wiring diagram shows that the cam and crank sensors both get power from "D" which is 12V from the main relay. It doesn't go back to the harness.

The other two connections are:
1. 4A "Device GND"
and
2. 3V and 3Y (cam and crank signal respectively).

Then later it shows how to inspect the signals...

Note the nice consistency of using 2V/Div for the cam (it is 2.5 squares high) and 1V/Div for the crank (it is 5 squares high) so both are normally 5V and a tooth brings them to 0. At least Mazda thought so in the FSM.



And these are measured at the ECU pins so they are straight out of the sensors. The only augmentation would be a 5V pullup to get full scale.
Attached Thumbnails Syncs on stim, not on car.  2001 miata.-cam_crank_fsm.jpg  
y8s is offline  
Old 11-30-2010, 09:46 AM
  #11  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

Originally Posted by y8s

Note the nice consistency of using 2V/Div for the cam (it is 2.5 squares high) and 1V/Div for the crank (it is 5 squares high) so both are normally 5V and a tooth brings them to 0. At least Mazda thought so in the FSM.
EDIT:

Bleh bein a tard...
richyvrlimited is offline  
Old 11-30-2010, 09:48 AM
  #12  
y8s
2 Props,3 Dildos,& 1 Cat
Thread Starter
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

Originally Posted by richyvrlimited
EDIT:

Bleh bein a tard...
no you're not, i posted it backwards and quickly fixed it.
y8s is offline  
Old 11-30-2010, 10:56 AM
  #13  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

Obviously I have been building DIYPNPs for too long, the OP- there requires a 12V pullup. I need to check what I've done to my own MS3.
Reverant is offline  
Old 11-30-2010, 11:00 AM
  #14  
Ben
Supporting Vendor
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
Default

Matt,
Do you have pullups between the sensors and 9926? I'd think you'd need 470 ohm 5v pullups. I'd probably also try disconnecting IN- and let the chip auto threshold. If that doesn't work, I'd hook IN- to ~2.5V, but not to ground.

Sorry, don't have a lot of hands on with the 9926 yet.
__________________
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 11-30-2010, 11:04 AM
  #15  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,493
Total Cats: 4,080
Default

IIRC there's just a 5v and ground going into that chip. But the output is going directly from the chip to JS10. Matt, like Ben suggests, try a 5v pullup through a 470ohm to js10 as well.

But it looks like the outputs get a 5v pull-up through the two resistors with the 1001 stamped on them.
Braineack is offline  
Old 11-30-2010, 11:11 AM
  #16  
Ben
Supporting Vendor
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
Default

I'm actually looking for a pullup on the input side of the MAX9926.
__________________
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 11-30-2010, 11:31 AM
  #17  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,026
Total Cats: 6,592
Default

Yes, if you want to use a 9924 / 9926 with an OEM sensor, you need to leave the chip's (-) input floating (do not ground it), and apply a 5v pullup through a resistor (eg: 1k) to the (+) input. This will cause the threshold to auto-set at 2.5v. I've only personally run the 9924 with an actual VR sensor, however I'm taking this info from a conversation with Jean Bélanger here: http://www.msextra.com/forums/viewto...35149&start=20


Now, I'll admit that I know next to nothing about the composite logger (I'm still stuck in MS1 land, where it's fairly useless) but am I the only one who thinks that the first and third traces posted in the first post do not show similar-looking data? The first one (working on stim) shows me 4 CKPs per 1/2 cam revolution, whereas the last one (not working, on car) doesn't.


EDIT:

It also appears (in the last picture) that the yellow trace (which is labeled PriLevel) is depicting the cam sensor. Have you, by chance, accidentally wired CMP and CKP backwards?
Joe Perez is offline  
Old 11-30-2010, 11:35 AM
  #18  
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 Joe Perez
It also appears (in the last picture) that the yellow trace (which is labeled PriLevel) is depicting the cam sensor. Have you, by chance, accidentally wired CMP and CKP backwards?
Great catch Joe. Everyone else was looking at the trace like it was a composite log.
__________________
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 11-30-2010, 11:16 PM
  #19  
y8s
2 Props,3 Dildos,& 1 Cat
Thread Starter
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

Wiring-wise, IN1 definitely comes from main harness pin 24 (crank) and out 1 goes to TSEL.

Similar for IN2/Cam/Out 2/JS10.

If the Stim can generate a sync-able signal via the 9926 circuit, then the output of the 9926 should not be the problem. The 9926 simply follows the input and generates the same output at full amplitude, right?

This leads me to believe the problem is somewhere between my crank and cam sensors and the 9926. Since I dont know what the stim is generating, I dont know what I dont have on the car that is present on the stim for sync to take place.
y8s is offline  
Old 12-06-2010, 03:42 PM
  #20  
y8s
2 Props,3 Dildos,& 1 Cat
Thread Starter
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

Here's the latest update (note there's more at my thread on msextra):

This is my lovely cam and crank signal (cam on top) during cranking. Note that I can't do a "real scope trace" while the car is running because this particular capture requires the trigger setting to be changed to "log crank & cam" instead of "miata 99-00".



I reconstructed the signals based on lots of searching and photoshoppery:



Now I'm pretty sure I'm using the pink edges for my triggers. If it's not clear in the fucked up plot, they are the rising edges. And they appear to be in the right place in spite of the yellow falling edges (also known as "bonkers", "stuck" or whatever...).

My problem is that even with this set up properly with the proper edges, the car runs like ****. The timing (when set to fixed timing) is all over the place.

suggestions or comments?
y8s is offline  


Quick Reply: Syncs on stim, not on car. 2001 miata.



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