Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Noise filtering in Automotive environment
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Forum Index -> ZX-24
Author Message
spamiam



Joined: 13 Nov 2005
Posts: 665

Posted: 11 April 2006, 13:21 PM    Post subject: Noise filtering in Automotive environment Reply with quote

I want to use a ZX in an automobile. It is actually a somewhat interesting project. I want to measure the motion of a part in a carburetor, so I can determine how to adjust the carburetor mixture. Under certain load/RPM combinations, I will need to adjust a different region of a "needle".

This car has solid copper ignition wires that transmit lots of noise. I may not be able to get resistor plugs for this car.... so...

I may need to measure either analog signal thru a Pot and I'd like to get readings every 1/4 second (4hz) or so.

In an alternate setup, I may need to read a digital signal that will vary from 0-120Hz.

Do you think that a simple RC filter with voltage limiting diodes (what are they called, "clamp diodes", or is it "snubber diodes"?) will do the job? For the digital signal, I would send the filtered signal to a Schmitt trigger inverter.

What would be better to use to get a good (analog or digital) signal without the noise? Other than calling it "ignition noise", I do not know the characteristics of the noise (frequency spectrum, amplitude, etc.). Hopefully it would be as simple as this RC filter too!!!!

-Tony
Back to top
Genesis



Joined: 15 Jan 2006
Posts: 28

Posted: 17 April 2006, 23:21 PM    Post subject: Reply with quote

Why not use a position encoder?
Back to top
spamiam



Joined: 13 Nov 2005
Posts: 665

Posted: 18 April 2006, 0:19 AM    Post subject: Reply with quote

Genesis wrote:
Why not use a position encoder?


Well, the space is not ample, and the arc of motion in my linkage is about 150 degrees max, so the usual rotary encoder might not give me sufficient resolution.

Even with a position encoder, I think that electrical noise in the signal (no matter what the source) may confuse ADC's and counters/interrupts.

So, I still need to filter out the junk and keep the good stuff.

I take it you may have been thinking of some other sort of position encoder that is more noise tolerant, maybe by its very mechanism of function?

-Tony
Back to top
pjc30943



Joined: 02 Dec 2005
Posts: 220

Posted: 18 April 2006, 5:09 AM    Post subject: Reply with quote

There are encoders with pretty much arbitrarily high resolutions, you just have to pay for it Smile

Is a few hundred thousand counts per revolution enough, or a few million? They have those, in small packages too. So the ZX could measure whatever movement you like. Since such high-end encoders often have SPI interfaces, for example, data corruption (with appropriate cabling) can be avoided in noisy environments.

I'm pretty sure some of those resolution specs are a bit "promoted", but obviously that shouldn't matter for this application...
Back to top
DH*
Guest





Posted: 18 April 2006, 11:12 AM    Post subject: Reply with quote

Tony,

Do a Google search using ADC anti-alias filter and another using clamping diodes.
Back to top
victorf



Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York

Posted: 18 April 2006, 11:13 AM    Post subject: Reply with quote

Quote:

Is a few hundred thousand counts per revolution enough, or a few million?


I would be interested in finding an encoder that provided 'a few hundred thousand counts per revolution' . Can you give me a source? Can an ordinary mortal afford the cost of one? Smile

Any enlightenment will be appreciated.

Vic
Back to top
spamiam



Joined: 13 Nov 2005
Posts: 665

Posted: 18 April 2006, 13:23 PM    Post subject: Reply with quote

dhouston wrote:
Tony,

Do a Google search using ADC anti-alias filter and another using clamping diodes.


OK, I found that the "clamping" diodes" is what I have ben doing.

I am still working on the "anti-alias filter". I see stuff about sampling at 2x the highest frequency of interest: The Nyquist theorem.

I can do that. I then need a "brickwall filter" to really get rid of the noise above the highest grequency of interest.

I doubt that my simple RC filter would merit the description of "brick wall", but it seems better than nothing....

I did not see a schematic for a Brickwal filter.

-Tony
Back to top
DH*
Guest





Posted: 18 April 2006, 14:09 PM    Post subject: Reply with quote

The simple lowpass filter used as the anti-alias filter attenuates frequencies above its cutoff frequency. It should do what you want. Ignition noise frequencies should be RPM * Cylinders / 60 which gives fairly low frequencies - in the audio range. You can find lots of web pages with calculators for low pass filters. For example:Try 100K and 0.1 for the RC values.

However, unless you are using your own battery supply, you are likely to have more problems from a noisy DC supply than from ignition noise.
Back to top
pdubinsky



Joined: 25 Nov 2005
Posts: 66
Location: South Carolina

Posted: 18 April 2006, 15:04 PM    Post subject: Reply with quote

dhouston wrote:
<...> Ignition noise frequencies should be RPM * Cylinders / 60 which<...>


Actually, that gives 2 X the Freq. Ignition only fires on alternate revs in a 4 cycle engine.

Paul
Back to top
spamiam



Joined: 13 Nov 2005
Posts: 665

Posted: 18 April 2006, 17:27 PM    Post subject: Reply with quote

dhouston wrote:
The simple lowpass filter used as the anti-alias filter attenuates frequencies above its cutoff frequency. It should do what you want. Ignition noise frequencies should be RPM * Cylinders / 60 which gives fairly low frequencies - in the audio range. You can find lots of web pages with calculators for low pass filters. For example:Try 100K and 0.1 for the RC values.

However, unless you are using your own battery supply, you are likely to have more problems from a noisy DC supply than from ignition noise.


Thanks for the info. 3000rpm * (4cyl/2) /60 = 100 HZ! Right in the region that I might be interested. Right now I am filtering out at just over 60Hz, but I might need to raise the limit to 120Hz, or higher.

Right now in a different vehicle with a reasonably good modern electrical system, I get no apparent noise filtering at 60Hz at ANY RPM setting.

But with solid copper core igintion wires, this is liable to change! I will have to try it and find out!

My power supply has some filtering. An inline diode followed by a TVS diode and 1000uF cap feeding into a commercial switching power supply unit, with a 400uF output cap. No apparent problems on a good modern car, but as I said, I have yet to try it on an "old" car, or "high performance" ignition system.

-Tony
Back to top
DH*
Guest





Posted: 18 April 2006, 18:01 PM    Post subject: Reply with quote

I think you want to go lower. If I understand it correctly, you want to measure a DC voltage which is 0Hz. The Nyquist limit is to make sure you can faithfully reproduce an AC signal.
Back to top
spamiam



Joined: 13 Nov 2005
Posts: 665

Posted: 18 April 2006, 18:34 PM    Post subject: Reply with quote

dhouston wrote:
I think you want to go lower. If I understand it correctly, you want to measure a DC voltage which is 0Hz. The Nyquist limit is to make sure you can faithfully reproduce an AC signal.


Yes, you are correct for the carburetor position sensor that is being developed right now, the signal is a variable DC voltage.

I have some similar stuff that I am working on that sends a square wave signal, currently up to 60 Hz, and maybe I will need to go to 120-240Hz. So far that square wave is OK in a modern car. I figure that this system is more noise sensitive than the DC system, so if I can get the Sqw system working cleanly, then the DC ought to be a snap.

-Tony
Back to top
pdubinsky



Joined: 25 Nov 2005
Posts: 66
Location: South Carolina

Posted: 18 April 2006, 19:03 PM    Post subject: Reply with quote

spamiam wrote:
<...>
Yes, you are correct for the carburetor position sensor that is being developed right now, the signal is a variable DC voltage.<...>

-Tony


In many data acq systems for racing applications, throttle position is determined using string pots and some of those applications have 12 volt service that looks like a sq wave<gg>. Is there a reason why that isn't feasible?

Paul
Back to top
Genesis



Joined: 15 Jan 2006
Posts: 28

Posted: 19 April 2006, 2:57 AM    Post subject: Reply with quote

IF the desired signal is DC of reasonable magnitude AND rise time is not terribly important (that is, you're not terribly interested in catching the "edge") then you can short out ignition noise quite reliably with a reasonably-large value capacitor using an RC network.

HOWEVER, if you need to be able to sense rapid changes in the DC level, then you've got a problem, because the time-constant of the capacitor comes into play in terms of response time to a signal level change.

In any analog situation stability and noise isolation of the DC supply is VERY important. If your reference is not stable and clean then no amount of filtering on the input does you a bit of good.

In those situations I often find that the best option is an optical encoder with the run back to the CPU done over some digital method (e.g. SPI, etc.) This takes the signal up to TTL levels which makes it much more noise-immune, and with reasonable attention to cabling you can usually get reliable results even in quite-noisy electrical environments.

The nightmare scenario is trying to read millivolt-level unbalanced signals in the presence of wideband noise (as ignition noise is) which change relatively quickly OR are inherently moderate to high-impedence sources (the source impedence counts in an RC circuit!) That circumstance bites and when I find myself in that sort of box I look for a way to reduce what I'm trying to measure to a digital signal as close to the acquisition point as is reasonable. Failing that you do what you can to isolate the amount of "antenna" available to pick up the interference, and do a REAL good job of filtering on the power supply side.
Back to top
stevech



Joined: 23 Feb 2006
Posts: 657

Posted: 19 April 2006, 15:52 PM    Post subject: Reply with quote

an LC rather than RC circuit would really help. If the value of interest is a DC value that does not change during the sampling window, and the sample rate can be very low, this shoud be easy.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZX-24 Time synchro. with the server - Timezone/DST with your computer
Goto page 1, 2  Next
Page 1 of 2

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group