Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPM Filtering Setup
#1
RPM filtering (aka bidirectional DSHOT) is the big improvement that was implemented in 4.x betaflight. I will go over what you need and how set it up.

Things you will need

-Betaflight configurator : 10.6.0 or later

-Flight controller F4 or F7 with 4.1 firmware or later. Although 4.0 firmware supports RPM filtering, 4.1 makes it easier. You don't have to worry about snippets with 4.1.  You can use F3, but you will need to download custom build firmware. HERE.

-BLHeli 32 ESC with 32.7 firmware

-BLHeli_S will work. But you have to paid for firmware. Here is the LINK. You have to check if you esc is compatible. Open blheli suite and see what firmware your ESC takes.  Example A-H-30. If the second letter of the firmware is an H, then your blheli_s esc is compatible. Otherwise you are out of luck. I am not going through how to use JESC, they have a pretty good instructions on their website.

Add:
Free Blheli S firmware that can now do RPM filtering. Use 16.73 or later.

https://github.com/JazzMaverick/BLHeli/t...S%20SiLabs

You want to update everything and keep it default. Don't bring your PID or filter settings from a previous betaflight version. You can bring your rates though and other non-filter related settings. 

The RPM filter can be toggled on the configuration tab under the ESC/motor features section.
[Image: w0UyI3Kl.jpg]
[Image: GTRkwz6l.jpg]

The thing you want to do is count the number of magnets you have on the bell of your motor, not the stator. A typical 5inch quad motor will have 14 magnets that is why default is 14. If yours differ, change it accordingly.
[Image: t6aExefl.jpg]

It is recommended that you pick Dshot600 for 8K/8K gyro/pid loop. And Dshot300 for 4K/4K.  But depending on you CPU load.

I have an F7.  Goto CLI and type "tasks". You want to make sure your gyro rate/hz is a close to the gyro rate you selected in my case 8K.  You will notice that the CPU just for RPM filtering is almost 59%.  This is quite high, considering this is an F7 FC.  You can also see that the serial task is throwing off the total overall CPU load.  I am not sure why it does this, but when I turned on my radio, it came back to normal.  Around 9% for serial task.
[Image: xbOP0AOl.jpg]

[Image: 2cDpA2ll.jpg]

My overall load is 62% even before I add everything else.  Although 62% is not 100%, people recommend to try to stay under 50% overall CPU load.  I am not telling you what to do, run higher CPU at your own risk.  You can also choose to overclock your CPU.  Again, do this at your own risk.  I have had success in the past with overclocking and I have also had failure.  To activate overclock

Code:
set cpu_overclock = ON

If you don't want to overclock, I suggest taking the gyro/pid loop down to 4K/4K.  Remember to change to Dshot300.  As you can see, the CPU has dramatically reduced.
[Image: hMfazY0l.jpg]

Next, go to the motor tab and check for errors.  Errors should be 0%.  If it is 100%, make sure you plug in your lipo.
[Image: zrlr9qOl.jpg]

Go and fly. According to the BF developers, default should be flying well. 

I am not going to get into tuning and reducing filters. If you want to read about 4.1 tuning, you can check out the wiki below. Tuning RPM filter is another thread in itself.  I wanted to keep to post short.

https://github.com/betaflight/betaflight...figuration

JB also has a video on tuning 4.1.  Goto about 12:50, where he made some recommendations.


More JB tuning


Also check out UAV Tech



If you want to read more about RPM filtering, including filter reduction, you can read it here. 

https://github.com/betaflight/betaflight...RPM-Filter
[-] The following 14 users Like voodoo614's post:
  • rafareusch, peri, Krohsis, the.ronin, hugnosed_bat, zenm8, KonradS, Sugs, izzy26, Oscar, Andreas-sa, brnmd, sloscotty, Banelle
Reply
Login to remove this ad | Register Here
#2
It's so nice to have all this in text. Youtube is great, but I hate having to scrub backwards and forwards through a video to extract the actual information.

The ground is for dead people.
[-] The following 1 user Likes Banelle's post:
  • lleston2
Reply
#3
Really awesome tutorial, will test this on my next build this winter Smile
Reply
#4
Simply great voodoo, thanks Smile
Reply
#5
Awesome tut dude Big Grin thank you for putting so much effort into this!
This is my take on the setup procedure: https://oscarliang.com/rpm-filter/
Don't be a LOS'er, be an FPV'er :)  My Gear - Facebook - Instagram - Twitter
Reply
#6
Great, thanks Voodoo! I'm about to start building my new main fresstyle rig (great timing since the winter is just about to start...) and I definitely wanna use the RPM filtering on that one. This tutorial will definitely help me with setting it all up since I'm on the same boat with Banelle about the youtube thing.
Reply
#7
Thanks for the comments. Hope to hear some feedback on RPM filtering when you guys get a chance to test it out.
Reply
#8
Nice and concise. Just the way I like things. Thanks.
Reply
#9
Man im soo behind with this RPM Filter mombo jumbo.. So I updated my firmware ro 4.1 and my Bhelis_S also updated.
If i dont want to use the RPM filter. Do i use toggle the Bi Directional to OFF posistion? Thanks advanced!
Reply
#10
(14-Jan-2020, 03:06 AM)klnyc Wrote: Man im soo behind with this RPM Filter mombo jumbo..  So I updated my firmware ro 4.1 and my Bhelis_S also updated.  
If i dont want to use the RPM filter. Do i use toggle the Bi Directional to OFF posistion?   Thanks advanced!

Yes, just leave the Bi-derectional setting OFF. I'm running 4.1.2 on my 5" but I haven't configured RPM filtering. It flies absolutely fine. It will probably be better with Bi-derectional DSHOT enabled and RPM filtering configured but I'll do that when flying seasons starts again here.
Reply
#11
(14-Jan-2020, 03:10 AM)SnowLeopardFPV Wrote: Yes, just leave the Bi-derectional setting OFF. I'm running 4.1.2 on my 5" but I haven't configured RPM filtering. It flies absolutely fine. It will probably be better with Bi-derectional DSHOT enabled and RPM filtering configured but I'll do that when flying seasons starts again here.

Thanks SLFPV for the quick reply, you dont need to sleep?
If i turn off the Bi-directional, does the RPM Filter still active?   I think I missed up counting the magentic pole, I had it 12 instead of 14.. My quad was wobble when I chop the throttle...I really dont if that caused or not. Thats why I ask you about turning off the Bi Di...
Reply
#12
If you have bidirectional off, then the magnetic pole setting does not get use.
Reply
#13
(14-Jan-2020, 05:29 AM)voodoo614 Wrote: If you have bidirectional off, then the magnetic pole setting does not get use.

Awesome thanks!
Report back by this weekend Smile
Reply
#14
Thanks a lot Voodoo, very helpful!
Reply
#15
(14-Jan-2020, 03:51 PM)klnyc Wrote: Awesome thanks!
Report back by this weekend Smile

Is there a list of ESCs the are bidirectional capable or a check within betaflight using blackbox sensor logging (like how you can check to see which version of SA your vtx uses to set up right vtx-table. )
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  I need help with crossfire setup... graywoulf 7 619 22-Jun-2023, 04:05 PM
Last Post: mattyfleischfpv
  Add RPM Filtering & Bi-Directional DSHOT to BLHeli_S ESCs Clones123 10 8,843 13-Mar-2022, 07:17 PM
Last Post: Dream Weaver
  Dji setup / install joey 77 5,411 19-Oct-2020, 08:22 PM
Last Post: joey
  9xr pro r9m setup WeaponXFPV 1 1,254 06-Aug-2019, 03:15 AM
Last Post: voodoo614
  Tutorial Wing Setup for Quad Pilots by Painless360 SnowLeopardFPV 0 977 14-Dec-2018, 01:46 PM
Last Post: SnowLeopardFPV


Login to remove this ad | Register Here