"Noisy" tpsDOT

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

robs wrote:
JasonC SBB wrote: If the point on the car that you are grounding via the oscilloscope has a large dv/dt on it, you will introduce "capacitive displacement currents" and the reading will be contaminated.
That's what I thought. Since there is a question of noise on the sensor ground I thought it might find somewhere to hide in a couple of hundred feet of earth wire if I hooked the sensor ground to the scope chassis. Hence hooking a second probe to the sensor ground, with both probes grounded to the car chassis (and house's earth). The effective signal is then the difference in the probe voltages.
Yes but the scope's sampling rate will affect your measurement. If the subtraction is done in continuous time using an analog circuit, you will get the right answer. If the subtraction is done digitally after the signals are digitized, (as is the case with your DSO), any narrow spikes that appear in both signals, but which happens to be "seen" by one channel but missed by the other (because said spike is narrower than one sampling period), will falsely appear in the subtracted signals.

In practice the dv/dt on signal ground and on chassis ground (relative to the "universe") are benign enough that you can just clip the probe to either ground (depending on what you are measuring), and get a good measurement. What you cannot do is place one ground clip on one point and another ground clip on another point, if you want an accurate measurement of one signal. If the 2 points are at different potentials that will drive current up the scope probe shields, distorting your measurements.
while you and piledriver emphasise that "ground" is an artificial concept, it does still have to be a fixed voltage doesn't it?
Relatively, yes.
You couldn't hook the ground clip to a carrier waveform and read the carried signal at the probe could you? Even if nothing melted, the waveform would be corrupted. Right?
Correct, with one possible exception. The whole oscilloscope is floated by powering via a high-isolation transformer, which places its chassis at a high impedance vs. the "universe". It's a standard trick I do with lightning surge testing.
JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

piledriver wrote:Note there are several diferent standard ground symbols for a reason...
It's not at all unusual to see a schematic with at least two or three different groundplanes, each with a different symbol.
True, but I can't tell you how many times customer engineers then mis-interpret the schematic and mix em all up, DESPITE all the admonitions and descriptions in the Application Notes I spent months of my life writing!
JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

Peter Florance wrote: Further I have to repeat that as long as sensor ground wire does not carry current, there should not be a issue with noise or voltage offset on it. But if you connect the sensor ground wire to vehicle, you are asking it to help sink current from the MS box and it is no longer a reference, but a conductor.
Correct. But said currents would be the sensor currents (e.g. MAP sensor current as pointed out), and not the large injector/solenoid currents. What makes said large currents even more corrupting is that they have large di/dt.
JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

piledriver wrote:Ideally, If your mainboards ground planes were split up properly, and/or if you have all external power drivers for coils/injectors, the MAP/TPS/etc sensors go to their own dedicated signal ground pin(s).
Analog circuitry and the A/D have to be on the same ground plane.
The high current stuff can be on another.

Any signals that go from one to the other have to be routed close to the point where the 2 ground planes are connected, whether said connection is a polyfuse or a hard connection.
See the "Ott" webpage I linked.
Additionally said signals that cross need to have receivers that are noise immune, such as by using Schmitt triggers for digital signals, and differential receivers for analog signals.
JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

1031 wrote: Another point that has pointed out was adding capacitance after polyfuse, yes i tested that, whit normal electrolyts (good quality Panasonic FM series and also Sanyo´s OS-CON´s that have wery low ESR at wide freq.range) but none of those worked as replacing that polyfuse by normal fuse. So i must say that at this case noise was related only to Vref´s impedance (series resistance of that polyfuse)
Where is the 5V regulator ground pin, and where did you attach the - side of the Panny and Oscon caps? How long were the leads?
JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

Peter Florance wrote:I wonder if it would be more efficient for you to get your hands on a V3 board instead of working by remote?
Yes but I don't have one. (yet)
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: "Noisy" tpsDOT

Post by Peter Florance »

JasonC SBB wrote:
Peter Florance wrote:I wonder if it would be more efficient for you to get your hands on a V3 board instead of working by remote?
Yes but I don't have one. (yet)
This seems a horribly inefficient way to work on this subject.

I'm confident of the current hardware. I checked a recent datalog and my sensors are stone quiet.
32 year old Ljet harness. Only mod was to remove sensor ground to block connection that BMW used.


Nothing is shielded.

Low Z injectors too.

I'll be happy to send the log to anyone that wants to see it.
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
jsmcortina
Site Admin
Posts: 39587
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: "Noisy" tpsDOT

Post by jsmcortina »

JasonC SBB wrote:
Peter Florance wrote:I wonder if it would be more efficient for you to get your hands on a V3 board instead of working by remote?
Yes but I don't have one. (yet)
So all the stuff so far has been speculation?

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

It's just that I was told elsewhere that the polyfuse sat between signal gnd and power gnd.
In any case, we've been discussing principles and not just specifics. That's not "speculation".
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: "Noisy" tpsDOT

Post by Peter Florance »

JasonC SBB wrote:It's just that I was told elsewhere that the polyfuse sat between signal gnd and power gnd.
In any case, we've been discussing principles and not just specifics. That's not "speculation".
That is why you should look at the schematics yourself.
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: "Noisy" tpsDOT

Post by Peter Florance »

Peter Florance wrote:
JasonC SBB wrote:It's just that I was told elsewhere that the polyfuse sat between signal gnd and power gnd.
In any case, we've been discussing principles and not just specifics. That's not "speculation".
That is why you should look at the schematics yourself.
http://www.megamanual.com/ms2/megasquirt_ShemV3.00.pdf
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
dontz125
Super MS/Extra'er
Posts: 4200
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: "Noisy" tpsDOT

Post by dontz125 »

Given the comments about caps after the polyfuse, I find it interesting that Bruce Bowling has suggested the following add-on circuit for noisy VRef:
Reference Voltage (Vref) Protection Circuit

There are some external sensors which require 5 volts to operate, namely the MAP, MAF, and TPS sensors. This reference voltage is generated in the Module and supplied externally thru the Vref signal and Sensor Ground. In order to maintain ratiometric processor ADC operation the same supply is used for both ADC reference and sensor power. This means that there is a possibility of noise coupling back in from the Vref signal to the Module.

The circuit below shows a possible filtering arrangement for Vref. First off, adding a large capacitance on Vref will help make it steady and also keep the Vref line stiff at 5V. Anything from 47 microFarads to hundreds of µF can be used. Next, a simple inductor/capacitor arrangement can be of help. Since there is very little current draw on the sensor ground and the Vref supply is stiff, adding inductance here is not an issue. You can also substitute a pre-made EMI filter like the Murata BNX002-01 filter here if desired.
vref_condition.jpg
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

0.1 uF is way too small. The filter can ring given the right load current step.

The inductor in the return leg will only work if the ground on the left and right of it are isolated.
Last edited by JasonC SBB on Thu Apr 12, 2012 3:56 pm, edited 4 times in total.
JasonC SBB
Helpful MS/Extra'er
Posts: 120
Joined: Wed Oct 26, 2011 7:36 pm

Re: "Noisy" tpsDOT

Post by JasonC SBB »

Peter Florance wrote:
JasonC SBB wrote:It's just that I was told elsewhere that the polyfuse sat between signal gnd and power gnd.
In any case, we've been discussing principles and not just specifics. That's not "speculation".
That is why you should look at the schematics yourself.
I did and I couldn't find the polyfuses at the time, so I relied on what I had heard.
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: "Noisy" tpsDOT

Post by Peter Florance »

Image
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: "Noisy" tpsDOT

Post by Peter Florance »

JasonC SBB wrote:It's just that I was told elsewhere that the polyfuse sat between signal gnd and power gnd.
In any case, we've been discussing principles and not just specifics. That's not "speculation".
I'm concerned that we are causing users to expend a lot of energy on possibly redesigning the MS board when all they have to do is install like this:

Image
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
robs
Master MS/Extra'er
Posts: 564
Joined: Sun Jan 17, 2010 4:26 pm
Location: Sydney, Australia

Re: "Noisy" tpsDOT

Post by robs »

JasonC SBB wrote:
robs wrote: That's what I thought. Since there is a question of noise on the sensor ground I thought it might find somewhere to hide in a couple of hundred feet of earth wire if I hooked the sensor ground to the scope chassis. Hence hooking a second probe to the sensor ground, with both probes grounded to the car chassis (and house's earth). The effective signal is then the difference in the probe voltages.
Yes but the scope's sampling rate will affect your measurement. If the subtraction is done in continuous time using an analog circuit, you will get the right answer. If the subtraction is done digitally after the signals are digitized, (as is the case with your DSO), any narrow spikes that appear in both signals, but which happens to be "seen" by one channel but missed by the other (because said spike is narrower than one sampling period), will falsely appear in the subtracted signals.
I was planning on doing the subtracting myself on the capture, but I can see the same problem applies. This is down to my ignorance of oscilloscopes. I thought both channels would do something like a capture and hold at the same tick of the clock. Perhaps it's asking a bit much to do that at 1G samples/s.
JasonC SBB wrote:
You couldn't hook the ground clip to a carrier waveform and read the carried signal at the probe could you? Even if nothing melted, the waveform would be corrupted. Right?
Correct, with one possible exception. The whole oscilloscope is floated by powering via a high-isolation transformer, which places its chassis at a high impedance vs. the "universe". It's a standard trick I do with lightning surge testing.
Think I'll leave voltages like that to people like Dr Frankenstein and your good self.

Have fun,

Rob.
1031
MS/Extra Newbie
Posts: 17
Joined: Wed Apr 14, 2010 4:39 am

Re: "Noisy" tpsDOT

Post by 1031 »

JasonC SBB wrote:
1031 wrote: Another point that has pointed out was adding capacitance after polyfuse, yes i tested that, whit normal electrolyts (good quality Panasonic FM series and also Sanyo´s OS-CON´s that have wery low ESR at wide freq.range) but none of those worked as replacing that polyfuse by normal fuse. So i must say that at this case noise was related only to Vref´s impedance (series resistance of that polyfuse)
Where is the 5V regulator ground pin, and where did you attach the - side of the Panny and Oscon caps? How long were the leads?
I´m aware of Inductance of long cap leads etc.. so i used shortest connection possible.. Point was here to tell that capacitance after polyfuse (cap between polyfuses Vref side and sensor GND return) did not helped whit that noise. Jason you shoud read these post´s more carefully and look at those scematics/pcb layout pictures.. many of thise thing´s have posted before.
Last edited by 1031 on Fri Apr 13, 2012 4:29 am, edited 1 time in total.
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: "Noisy" tpsDOT

Post by Peter Florance »

Image
I want to also state, if your factory harness does not match above scheme, you may have problems when you install a MegaSquirt using that harness.
If you unplug your MegaSquirt box and still have continuity to ground from your sensor commons, you might have an grounding scheme issue.
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
dontz125
Super MS/Extra'er
Posts: 4200
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: "Noisy" tpsDOT

Post by dontz125 »

Peter - when posting something as critical as that grounding diagram, please include a link to the manual page - it's a new page, and I for one hadn't seen it before (my wife says that means absolutely nothing - thank you for the support, dear :D). There's a little more info there that makes it a lot clearer. Thank you for bringing it up, though!

http://www.msextra.com/doc/general/grounding.html
Last edited by dontz125 on Fri Apr 13, 2012 1:15 pm, edited 1 time in total.
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
Post Reply