ECUs and Tuning Discuss Engine Management, Tuning, & Programming

Cam signal idea for full sequential

Old 06-26-2009, 11:09 AM
  #41  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Originally Posted by slowmx5
TEC I believe feeds +5v to the sensor (easy enough to check) - anyone know what the NB sensor requires?

If it is +5v then I just glue a small magnet to the cam gear, add a factory NB sensor to the recipe and the TEC will see a signal that it likes?
Whether the factory sensor is powered by 12V or 5V, I'm pretty sure the output is 5V, which the TEC will like.
JasonC SBB is offline  
Old 06-26-2009, 11:10 AM
  #42  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

Slowmx5, here are some waveforms from a 1996 CAS vehicle. On earlier vehicles the wire color changes but the signals are the same. Hopefully they help on your quest.

The bottom signal on both screen captures is the Yellow/Blue wire and the top is the white wire from the CAS.

Both captures were at idle. The difference between them is the time scale only.


EDIT: I removed the waveforms.

Last edited by mrtonyg; 06-26-2009 at 12:24 PM.
mrtonyg is offline  
Old 06-26-2009, 11:11 AM
  #43  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

That looks like a magnetic pickup output, just like the TEC's crank pikcup.
JasonC SBB is offline  
Old 06-26-2009, 11:24 AM
  #44  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

Originally Posted by JasonC SBB
That looks like a magnetic pickup output, just like the TEC's crank pikcup.
It looks similar but it's not.

A magnetic or VR sensor outputs a pure sine wave ac output. Meaning it oscillates between negative and positive. If you notice it never goes negative.

Look at the wave form, the bottom signal is triggered from battery voltage as a source. A magnetic sensor doesn't need a source voltage, it develops it's own voltage from induction ie. from the passing of a ferrous trigger across the face of the sensor.
mrtonyg is offline  
Old 06-26-2009, 11:27 AM
  #45  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

mrtonyg, you say those captures are the two outputs of a '96 CAS? Something isn't right with those traces. The lower trace (CMP, which you call SGC) should not be a little spikey thing, but a nice squarewave with unequal duty cycle on alternating events.

Edit: here's what a healthy NA CAS looks like when both outputs have +5 pullups applied. The top trace is CMP, the next one is CKP, and the third & fourth traces are ignition outputs A and B.

(apologies for the hand-written traces, this was done on my four-channel scope when the floppy drive was broken.)

Joe Perez is offline  
Old 06-26-2009, 11:34 AM
  #46  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Originally Posted by mrtonyg
It looks similar but it's not.

A magnetic or VR sensor outputs a pure sine wave ac output. Meaning it oscillates between negative and positive. If you notice it never goes negative.
Not to be argumentative, but that's only because the output is returned to 12V instead of GND. So if you think of 12V as "ground", it *is* outputting AC.
JasonC SBB is offline  
Old 06-26-2009, 11:38 AM
  #47  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

Originally Posted by Joe Perez
mrtonyg, you say those captures are the two outputs of a '96 CAS? Something isn't right with those traces. The lower trace (CMP, which you call SGC) should not be a little spikey thing, but a nice squarewave with unequal duty cycle on alternating events.
Joe, I agree with you. I was surprised with the output of the bottom trace.

The car this was taken from runs perfect, and I double checked when I saw the output.

I will check on my other Miata.
mrtonyg is offline  
Old 06-26-2009, 11:42 AM
  #48  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

Originally Posted by JasonC SBB
Not to be argumentative, but that's only because the output is returned to 12V instead of GND. So if you think of 12V as "ground", it *is* outputting AC.
Alternating current means negative and positive oscillations. Going from 12v to 0v is not ac. Going from +12v to -12v is ac.

You can't think of 12v as ground because it's not...that argument doesn't make sense.
mrtonyg is offline  
Old 06-26-2009, 12:32 PM
  #49  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

Just checked on my other Miata...I have a faulty CAS sensor which led to the odd looking trace!!! Hard to believe, the car runs perfect!

Below are off my 1994 Miata.

Both captures were at idle. The difference between them is the time scale only.

I believe the top signal with the shorter pulse is the #1cyl TDC. When I get back from a 2 day vacation, I will sync this signal to the injectors and coils to see their relationship.
Attached Thumbnails Cam signal idea for full sequential-miata_cas.jpg   Cam signal idea for full sequential-miata_cas1.jpg  
mrtonyg is offline  
Old 06-26-2009, 12:47 PM
  #50  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Yep, that's what they're supposed to look like. CMP always rises before CKP, however on one cycle it falls before CKP, and on the other it falls after. If your ECU is capable of looking at the relationship between two pulses then you can use this to determine #1 TDC.

This is one reason why the MS1 cannot do full sequential, as its trigger inputs are edge-detecting only and require all edges to be evenly spaced. So we ignore the trailing edge, read the leading edge of CMP (which has a fixed relationship to CKP) and use it to reset the cycle counter.
Joe Perez is offline  
Old 06-26-2009, 12:58 PM
  #51  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

In relation to newer car terminology, essentially the top trace is CAM sensor and the bottom trace serves as the Crank sensor (CKP).
mrtonyg is offline  
Old 06-26-2009, 12:59 PM
  #52  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by mrtonyg
Alternating current means negative and positive oscillations. Going from 12v to 0v is not ac. Going from +12v to -12v is ac.
If we want to be really technical here, we need to bear in mind that a VR sensor, by itself, has no reference. It's a balanced device where the signal on one wire is always of equal but inverse magnitude to the signal on the other. You could connect it to the primary side of an isolation transformer and it'd still work just fine.

It's not until you connect the sensor to an input circuit that you really define a reference. Typically, one side of the sensor is connected to ground. In such an arrangement, the voltage on the opposite wire will swing both above and below ground, having a positive potential for half the cycle, and a negative potential for the other. I'm pretty sure that this meets everyone's accepted definition of AC.

You can't think of 12v as ground because it's not...that argumnt doesn't make sense.
As Obi-Wan would say, it's all relative. +12 can most certainly be thought of as ground, if you are using it as the common point in a circuit. Years ago, cars had positive-ground electrical systems, where the battery's positive terminal was connected to chassis and the negative terminal was connected to the fuse block. A particle physicist might argue that this is actually the most correct usage, owing to the fact that in a DC circuit the physical flow of electrons is from negative to positive.

The fact of the matter is that in a car, there's really no such thing as ground, because the vehicle is not electrically connected to terra firma. There is only chassis, which we have all agreed to use as the common reference point for all circuits in the car.
Joe Perez is offline  
Old 06-26-2009, 01:09 PM
  #53  
Elite Member
iTrader: (51)
 
gospeed81's Avatar
 
Join Date: Nov 2008
Location: Spring, TX
Posts: 7,257
Total Cats: 26
Default

Originally Posted by Joe Perez
A particle physicist might argue that this is actually the most correct usage, owing to the fact that in a DC circuit the physical flow of electrons is from negative to positive.
gospeed81 is offline  
Old 06-26-2009, 01:22 PM
  #54  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

I was LOOKING for that comic but couldn't find it in time DAHHH
y8s is offline  
Old 06-26-2009, 01:33 PM
  #55  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

AC is not ac unless the voltage goes in reverse polarity. An oscilloscope picks up reverse polarity when the voltage goes negative or below 0.

That is the definition of AC.
mrtonyg is offline  
Old 06-26-2009, 01:36 PM
  #56  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

Originally Posted by Joe Perez

It's not until you connect the sensor to an input circuit that you really define a reference. Typically, one side of the sensor is connected to ground.
That is incorrect, if you connect one side of a VR sensor to ground it will not generate the expected ac sine wave.

The only wiring that goes to ground on a vr sensor is the shield wire, not the signal wires.
mrtonyg is offline  
Old 06-26-2009, 01:48 PM
  #57  
Junior Member
iTrader: (1)
 
modernbeat's Avatar
 
Join Date: Aug 2006
Location: Dallas, TX
Posts: 220
Total Cats: 1
Default

Has anyone tried using the disc out of an injected Festiva distributor in a NA6 CAS to get an isolated cam position signal for sequential injection/ignition?
modernbeat is offline  
Old 06-26-2009, 02:24 PM
  #58  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

mrtonyg, the sensor coil itself outputs AC, but one side is connected to 12V instead of to the chassis. Mazda may have done this in order to easily trigger on the falling edge, threshold at 5V or whatever. The giveaway is the exponential (decay) return to 12V.
JasonC SBB is offline  
Old 06-26-2009, 02:25 PM
  #59  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by mrtonyg
That is incorrect, if you connect one side of a VR sensor to ground it will not generate the expected ac sine wave.

The only wiring that goes to ground on a vr sensor is the shield wire, not the signal wires.

Here you can see the signal coming out of my VR sensor, as well as the signal produced by the decoder.





One leg of the VR sensor is connected to ground at the same point as the shield. The other leg of the sensor is connected to the input of the zero-crossing detector. In this trace, the tip probe of the scope is connected to the input stage of the detector, and the ground clip of the probe is connected to circuit ground.

Both inputs of the scope are set to DC, so they are showing you the absolute voltage on the line at any given time. At the left, the green 1> icon shows you the 0V point for channel 1. It is quite clear that the signal coming from the VR sensor is positive with regard to ground for half of the cycle, and negative with regard to ground for the other half.


Do you contend that the waveform shown in channel 1 is not an AC sine wave?


I really can't think of any alternate interpretation of this. Again, this is a "pure" VR sensor, rather than the sensor which Jason is describing. However it would not matter whether the first leg of my sensor was connected to ground, to +12, or to the hot leg of one of the phases of AC power coming into my house, so long as whatever circuit was doing the zero-crossing detection was also referenced to that point.
Joe Perez is offline  
Old 06-26-2009, 02:39 PM
  #60  
Junior Member
iTrader: (1)
 
mrtonyg's Avatar
 
Join Date: Mar 2007
Location: South Florida
Posts: 483
Total Cats: -2
Default

Originally Posted by JasonC SBB
mrtonyg, the sensor coil itself outputs AC, but one side is connected to 12V instead of to the chassis. Mazda may have done this in order to easily trigger on the falling edge, threshold at 5V or whatever. The giveaway is the exponential (decay) return to 12V.
What sensor are we talking about here. The VR sensor doesn't have a need for reference or input voltage.

Last edited by mrtonyg; 06-26-2009 at 02:55 PM.
mrtonyg is offline  

Thread Tools
Search this Thread
Quick Reply: Cam signal idea for full sequential



All times are GMT -4. The time now is 08:33 PM.