LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering analog motor speed signal with Kalman Filter

Hello, everyone,

i am working on a project where i use the speed signal of a Bosch servo motor to detect the direction of the motor's movement.
Here I use only the sign of this analog signal.
Unfortunately this signal is very noisy and therefore the sign changes often at low speeds.

Remedy has been found so far by using the derived position signal, but there are still strong fluctuations in some areas.

I read a little bit about the Kalman Filter and that it filters the signals based on a model. This seems very promising here.
From LabVIEW 2018 on, this filter will be available in a finished SubVI.
Does anyone have an example for using the filter to control a motor or to filter a velocity / position signal?

I am also open to other possible proposals for implementation.
If anyone is interested, I will share my progress here.

Thank you very much in advance.
With kind regards
helloitsme 😄

0 Kudos
Message 1 of 3
(1,784 Views)

Hi Tom,

 

when I open the ExampleFinder in LabVIEW and search for "Kalman" I can choose between about a dozen example VIs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,739 Views)

Thanks for this tipp with the examples. 
I found the first one very helpful in understanding the basic concepts of the Kalman Filter. 

(1D Kalman Filter Endoder and Accelerometer)

In this example and all the examples I find online the Use of this Filter is, to Estimate a Position. 
In my case, I have a very reliable Position Measurement, that has almost no Noise. 

How can I transform the Application to Estimate the velocity based on the position measurement. Or is this even possible?

 

Sorry for the CrossPost, I thought if more people saw it, there would be higher chances for a solution. 

Here is the Link to the german Forum: https://www.labviewforum.de/Thread-Filtern-eines-Analogen-Geschwindigkeitssignals-mithilfe-eines-Kal...

 

Greetings

0 Kudos
Message 3 of 3
(1,699 Views)