# Noisy velocity measurement

**URL:** https://community.simplefoc.com/t/noisy-velocity-measurement/6859
**Category:** developement
**Tags:** as5048a, drv8323, stm32
**Created:** [March 6, 2025, 10:25pm UTC](https://community.simplefoc.com/t/noisy-velocity-measurement/6859 "2025-03-06T22:25:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tondi\_the\_Zimbo](https://community.simplefoc.com/user_avatar/community.simplefoc.com/tondi_the_zimbo/32/8326_2.png) [@Tondi\_the\_Zimbo](https://community.simplefoc.com/u/Tondi_the_Zimbo)
#### Post date: [March 6, 2025, 10:25pm UTC](https://community.simplefoc.com/t/noisy-velocity-measurement/6859/1 "2025-03-06T22:25:09Z")

</div>

Hello

I’ve been developing my own FOC drivers with custom firmware and have just gotten current control working. I’m attempting to move onto velocity control but there’s one problem.  
My measured velocity is extremely noisy, I’ve gone through the effort of isolating every possible cause to the point disabling current control and running the motor in voltage control confirming that it wasn’t being caused by my current loop. Below is a graph illustrating the problem (please ignore Iq\_setpointr and Iqr, they are not in use)

 ![Noisy velocity plot 100Hz sample rate](https://community.simplefoc.com/uploads/default/original/2X/f/f44699a64dcaed43afd5b3d882d138905c16689a.jpeg)

I have not been able to deduce what’s causing this, could I get some help please?

---

<div class="post-metadata">

### Author: ![LotsOfNaan](https://community.simplefoc.com/user_avatar/community.simplefoc.com/lotsofnaan/32/8199_2.png) [@LotsOfNaan](https://community.simplefoc.com/u/LotsOfNaan)
#### Post date: [March 7, 2025, 12:49pm UTC](https://community.simplefoc.com/t/noisy-velocity-measurement/6859/2 "2025-03-07T12:49:42Z")

</div>

What encoder are you using? With a limited resolution the position won’t increment very often, resulting in jagged velocity measurements.

And are you applying any filtering on the velocity measurement?
