From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem filtering a signal

Hi,

I am trying to read the signal from an accelerometer using LabVIEW and an arduino uno board.
The accelerator (352C33) is a high sensitivity sensor, approx. 105mV/g and my problem comes when I try to filtrate the signal. I am using different point to point filters but none of them works. Does anyone know how could I filtrate the signal properly? I can upload the programming I am using or the accelerometer specifications if necessary.
Thanks in advanced

0 Kudos
Message 1 of 9
(4,098 Views)

Do you have desktop LabVIEW?

If so, I would work with the filter process on that until you get it working the way you want.

Then deploy it to Arduino.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 9
(4,086 Views)

Yeah, i do have labVIEW the problem is that i cant get with the proper filter, some of them dont filter as much as i want and some others too much. I dont know which one should be better for filtering an accelerometer of that type.

 

0 Kudos
Message 3 of 9
(4,068 Views)

Since you have such a highly sensistive sensor, my guess is that noise may be getting into the front end. That noise will be aliased into the digital data. It may be that NO amount of digital filtering will help at that point.

 

My first step would be to look for any noise from the sensor to your arduino and band limiting that analog signal before it gets digitized.

Message 4 of 9
(4,060 Views)

Well, all the filters are programmable, so you should pick the basic shape you want first (Chebyshev, Butterworth, etc.) based on the characteristics you need (some trade steepness of cutoff for less ripple in the passband, or vice versa).

 

If you need help choosing those, consult Wikipedia or some other basic filtering handbook.

Just a starting point: <http://www.etc.tuiasi.ro/cin/Downloads/Filters/Filters.htm>

 

Then set your sampling frequency and filter order.

 

All that is easier to do (IMO) on a desktop with some simulated or recorded signals.

 

When you get all the knobs set the way you like, deploy the same code to your real device.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 5 of 9
(4,058 Views)

Jamiva is right - the old saying "An ounce of prevention is worth a pound of cure" certainly applies here.

 

If you can reduce the noise getting in in the first place you will be better off than trying to remove it later.

 

If the noise is in the same frequency range as the signal, then you cannot get it out without damaging your signal.

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 6 of 9
(4,052 Views)

What is the frequency band of interest?

What is the samplerate?

Equal spaced samples?

Phase information of any importance?

What delay in signal processing is possible?  Can range from : Doesn't matter I want it offline, to: I need it in 1ms for my control loop 😉

 

Can you post a sample of your signal? 

can you post a signal captured at the highest possible samplerate?

 

One easy way for the signal posting: If you have a LabVIEW vi with one or more diagrams/graphs containing/showing the signal: Hit Edit-'Make current values default' , save the vi and attach it to your post.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 7 of 9
(4,046 Views)

I am an idustrial engineering student so i dont have the proyect here i will upload all the info on moday, didnt think u guys were gonna answer so quickly. Thanks a lot

0 Kudos
Message 8 of 9
(4,034 Views)

I will second what everyone here is saying about conditioning the signal as good as possible before trying to do any software conditioning.  Besides making it easier for the software, it makes it easier on your test equipment as you will be filtering out spikes and transients that may damage your equipment.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 9
(4,021 Views)