Tuning the Harmonic Notch

Knew it was a bitmask (MP has a selector menu for each in latest beta) but not if it was OK to run both. Thanks!!

At one point it wasn’t safe as @rbachtell 's broken Solo will attest to :frowning:

So reasonable question - but safe now!

Wow, enabling all this goodness sure is effective! This is on my 5" 210 with a Pixracer, Dynamic FFT (no ESC telemetry), Dynamic Harmonic and Double Notch. I suppose Double Notch isn’t required on this little guy?

Pre:

Post:

Hah, yeah pretty dramatic eh? Do another tune and fly, fly, fly :wink:

I think on smaller quads the double-notch is counter productive - the peak is so pronounced that you want the attenuation that a single-notch can give rather than the breadth of a double-notch.

Roger that. I looked at the Load on the Pixracer and it’s ~53% max. No problem :grinning:

When you tune:

  • Set FLTT to 0 first
  • Set AGGR to 0.2

After you tune:

  • Set FLTT to 30 or so
  • Do NOT set ATC_ACCEL values to 0

Hi Andy,

Could I get your thoughts on my pre and post harmonic notch results?

Pre:

Post:

As you can see, there’s a dramatic difference! Is there anything else I should do to further reduce the peaks?

I am currently running throttle based as my ESCs don’t support telemetry.

INS_HNTCH_ENABLE 1
INS_HNTCH_FREQ 60
INS_HNTCH_BW 30
INS_HNTCH_ATT 15
INS_HNTCH_HMNCS 3
INS_HNTCH_REF 0.44
INS_HNTCH_MODE 1

Thanks!

Your primary harmonic is at 32Hz so you might do better to set INS_HNTCH_FREQ to that but use a narrow bandwidth - 15Hz say - to avoid control issues
You could also increase ATT to 40

1 Like

You might want to set INS_LOG_BAT_OPT to 0 (not 1) and re-test for better averaging/oversampling.

Of course I’m just parroting what Mr. Piper said a few days ago :grinning:

1 Like

Okay, thanks for your help Andy & Dave. I’ll give those suggestions a try

1 Like

I have a PhD, so technically it’s “Dr Piper” … :wink:

2 Likes

Excuse the error Dr. Piper, I should have know that!

1 Like

Good morning Dr Piper and Sir Dave lol,im going to have an other go at my 3 incher bloody health gets in the way,is there much difference between using FFT or the Harmonic tuning please

1 Like

Use ESC telemetry if you’ve got it. Otherwise, FFT is better than throttle based notch.

3 Likes

Yes, what wicked said. I have transitioned thru all of them. I don’t have a craft flying with ESC telemetry now so in lieu of that I’m using Master on 2 craft (a 5" and a 13") with FFT and it’s working very well. Both of these are “OK to crash” though, Master won’t be best for all certainly.

1 Like

Thank you,Wicked and Dave will probably try and set up esc telemtry put need to get a new cable for my 4 in 1 esc

Hey guys need a little help understanding the filter better.
According to the wiki

  • Set INS_HNTCH_REF = hover_thrust to set the harmonic notch reference value
    So the first line says to set the ref to the hover thrust…so mine was .211 so it was set as INS_HNTCH_REF,0.211

Then it says

  • Set INS_HNTCH_FREQ = hover_freq to set the harmonic notch reference frequency
    So I set INS_HNTCH_FREQ,132 which is middle of the noise spike I beleive.

Then is says

  • Set INS_HNTCH_BW = hover_freq / 2 to set the harmonic notch bandwidth
    Which I take to mean 132/2 =66 but I was told to set the BW value to INS_HNTCH_BW,25
    Today I still see some noise, now I confess it’s much better then it was…but is this bandwidth value incorrect.

I ask because I still see some noise around 61hz and wonder if the bandwidth is off or if the reference frequency is off.
Now after today I did a tune and noticed that the INS_HNTCH_REF,0.211 should now be INS_HNTCH_REF,0.1818076
But not sure if that will make a difference.
Sorry for the questions but just trying to get my head around it so I stop bothering Andy.
image
Is there a step by step documentation on how to set up the filters. The wiki is good but it leaves more questions then answers. It shows an example of a 5 inch quad, ok but what was learned from the graphs and what would the settings be that come from that. Just looking to learn.

I wrote the wiki page @rickyg32 - always happy to make it better :smile: - please feel free to suggest some additional text once we have got you past this.

Setting the BW to 61 is fine I think - these are guidelines, so there is no right answer. You basically want as narrow a notch as you can get away with but half of your noise peak frequency is a good place to start.

BUT you are trying to nail the first harmonic - i.e. the frequency at which your motors are actually spinning. So based on the size of your quad I am going to guess that this is 61Hz rather than 132Hz you should therefore set INS_HNTCH_FREQ to 61 and INS_HNTCH_BW to 30. The biggest peak is not necessarily the motor frequency - and on larger copters its quite often the second harmonic, i.e. double the motor frequency

Thank you Andy and please don’t think for a second the wiki isn’t a good piece of work. It’s awesome. But I struggle to understand this sort of thing. However with a document that runs one through an example and explains why the settings are done as they are. IT makes it easier for thick people like me to learn lol.

When I read the wiki’s I seem to constantly walk away asking…but why.

Here is what I think I am being told to do.
Basically start with turning on whats needed to log the noise.
Then look at the noise on teh graph and find out what the peek value is…That should be the reference frequency…in my mind. Then set the bandwidth to cover noise that falls on either side of that peak.
So in my case I see noise at 61 hz…now I confess thats after the filters had already been set.
That said…for conversation sake, if the center of the noise is 61 hz and the noise runs as high as say 76hz and as low as 55hz, then setting the bandwidth to 30 would cover 15h hz in either direction.

Did I get this right.
Also I set the INS_HNTCH_REF,0.211 to hover thrust but I don’t know why. I assume it has something to do with how it knows when to be used…but I am guessing.

Lastly based on your input I could slide the center frequency down to 61 and check the log again to see if that removes it or makes it worse…then adjust as required…
But this is all on back of me thinking I have a noise problem

This is my vibration graph a week ago
image
This is now.
Its vastly different.
image
I only started questioning it becuase of the bad pitch tune in my other post.

Yes and no. Sorry you asked :wink:

The notch filter acts like an axe head. Think of what your noise peak would look like if you took an axe to it straight down the middle - the very center would be completely obliterated, but the sides would have wedge shaped chunk taken out of them. The notch bandwidth specifies the width of the wedge but as you can visualize I am sure it doesn’t take out all of the noise. However, the notch filter also tracks the middle over time so that you don’t get a large spread out peak.