Building a Digital Filter: How it works + Simulation + Example

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 48

  • @MrLRankin2
    @MrLRankin2 4 месяца назад +23

    Finally! Someone that can actually explain digital filters so that we mere humans can actually understand.

    • @robegatt
      @robegatt 4 месяца назад +2

      And enthusiastically does so !

  • @landspide
    @landspide 4 месяца назад +2

    Probably get away with software fpu in this case, not sure how fast the processor but would be surprised if it couldn't keep up. Very good presentation for beginners though, impressive!!!

    • @robegatt
      @robegatt 4 месяца назад

      120 Mhz means at that sample frequency it is little more than 1000 machine code instructions per channel to do the filtering... not so sure it would fit a software fp.

    • @landspide
      @landspide 4 месяца назад +1

      @@robegatt yeah good point, one would have to try to be sure..

  • @iskogproductions6728
    @iskogproductions6728 4 месяца назад +6

    I had tens of hours of digital signal processing and signal filtering lectures, but this is the most intuitive course I've come across. Thank you for the clear explanations.

  • @muhdiversity7409
    @muhdiversity7409 4 месяца назад +8

    Excellent content, Robert. Thank you so much for sharing.

  • @thomhpl
    @thomhpl 4 месяца назад +5

    Nice demo! I did something very similar a few days ago to add some low pass filtering for a speed sensor in a motor control loop firmware, using a jupyter notebook as well to design a simple FIR filter. I actually then used python to directly generate C code containing the array with the filter coefficients.

  • @rosskappa5410
    @rosskappa5410 4 месяца назад +7

    God bless people like you.

  • @geofflethbridge8732
    @geofflethbridge8732 4 месяца назад +3

    I think that was a great presentation of DSP, and it was great to see your enthusiasm for the subject and teaching. :)

  • @AnalogDude_
    @AnalogDude_ 4 месяца назад +2

    Cool video, the low and hi pass filter?
    Cool that digilent PCB, Mouser has it.

  • @benish0r
    @benish0r 4 месяца назад +2

    Very cool video and Dan is an absolutely amazing teacher. I should know, as I am one of his students :-)

  • @ArsalanAhmadi-c8x
    @ArsalanAhmadi-c8x 4 месяца назад +3

    It was very informative. Thanks a lot.

  • @em2129
    @em2129 4 месяца назад +3

    Thank you! This is the best video I have seen on this topic so far!

  • @videogenie1236
    @videogenie1236 4 месяца назад +3

    Just watched the presentation of the two PCB's.
    I like the dev kit pcb"s and ordered them for delivery tomorrow from RS Components in the UK. 🇬🇧
    Thank-you both

  • @chinametal
    @chinametal 4 месяца назад +1

    The algorithm presented in 54:52 will not work.....the variables must retain the previous information, so they cannot be reset every time they enter in the function. They have to be outside, that is, be global and not local.
    I think that's it..... the programmers can confirm it or not!

    • @danboschen9613
      @danboschen9613 4 месяца назад

      @chinametal they are defined as “static variables” which means they retain their state from call to call.

  • @lakwejh
    @lakwejh 4 месяца назад +1

    Wish I had my teachers explained this clearly......on the other hand may be I should have paid more attention

  • @hmpeter
    @hmpeter 4 месяца назад +3

    Excellent video, thank you guys! 😀

  • @ketankothari247
    @ketankothari247 4 месяца назад +1

    Beautifully explained sir 👏 👌 ❤️

  • @Sanjeev...
    @Sanjeev... 4 месяца назад +2

    Good dsp presentation thanks

  • @BigA1
    @BigA1 4 месяца назад +2

    The subject material is very well presented - thank you.

  • @robertpeters9438
    @robertpeters9438 4 месяца назад +1

    It would be great to have a video delay to match the audio filter delay.

  • @xxportalxx.
    @xxportalxx. 4 месяца назад +1

    One thing I wish was brought up: layering stages. For instance in the 1khz tone example he showed a tighter filter takes longer to build, would there be an advantage to layering a looser filter with a tight filter to decrease that initial blip while still getting that tight rejection? Or would the loose filter make the tight filter redudndant? If you wanted to reject multiple bands do the two stages add delay independently, or is the delay the same as if they were applied individually? Do you add these stages to do so, or is there a means to merge them into a smaller structure?

    • @danboschen9613
      @danboschen9613 4 месяца назад +1

      Great questions and thoughts @xxportalxx !! Cascading multiple second order sections (one after the other if that is what you mean by layering) is the common approach to implement higher order filters. The big advantage in doing this is isolating the filter poles from interacting with each other leading to higher stability implementations, especially when the poles are close to the frequency axis ("higher Q" resonators). That's the primary advantage, and the delay and performance is predicted by the prototype higher order filter. If we used that approach to isolate two different frequencies as the notch filter demonstrated here, the delay (which is only in vicinity of the notch and creates the start-up transient) is as it would be for each filter individually, as long as they are separated sufficiently to not interact with each other. The deeper details are beyond the scope of this short video or what I could fairly answer in a comment, but it is something I go into as part of the "DSP for Wireless Communications" course referenced in the link (where we have much more time and the right context to explain). That course is coming up next month!

    • @xxportalxx.
      @xxportalxx. 4 месяца назад +1

      @danboschen9613 Amazing presentation, and thank you for your response. DSP is generally presented as a black box above us mere mortals, very eye opening demonstration that it doesn't have to be out of reach.

  • @kabandajamir9844
    @kabandajamir9844 4 месяца назад +1

    So nice thanks sir

  • @lacyrjoao2553
    @lacyrjoao2553 4 месяца назад +2

    Your blog are great and you're great, great, great.

  • @expertis307
    @expertis307 4 месяца назад +1

    Excelente !!!!

  • @biswajit681
    @biswajit681 4 месяца назад +2

    Magnetics design for SMPS please

  • @Jindraxx20
    @Jindraxx20 4 месяца назад +2

    3rd to view 1st to like the video (>.

    • @RobertFeranec
      @RobertFeranec  4 месяца назад +4

      The first 2 views were mine (before publishing) so you are the first one to see it after publishing :)

  • @ebubekiralparslancaliskan3985
    @ebubekiralparslancaliskan3985 3 месяца назад

    Thank you very much for the video, but I want you to add Turkish subtitles, I am looking forward to your feedback

  • @MusicBent
    @MusicBent 4 месяца назад +3

    Digital signal processing was one of my favorite college courses. The math was tough, but learning how to make practical IIR and FIR filters was a great payoff. Audio is a great way to experiment because you can experience it. Most of my work nowadays is in RF / software defined radio processing which I also find fascinating

  • @ulbed
    @ulbed 4 месяца назад +1

    You can hear the 1 khz tone in the background all the time. Very annoying. Now I need to build a filter before watching this video.

    • @danboschen9613
      @danboschen9613 4 месяца назад +1

      Ha ha! I am 1 KHz tone deaf from all the testing I did

  • @youtubeaccount931
    @youtubeaccount931 4 месяца назад +1

    Fantastic

  • @25.muhammadhilmihaidary60
    @25.muhammadhilmihaidary60 4 месяца назад +1

    wow

  • @jeanclaudejosephbadji5418
    @jeanclaudejosephbadji5418 4 месяца назад +2

    Just amazing!

  • @ziegelhof
    @ziegelhof 4 месяца назад +1

    Dakujem za velmi uzitocne video

  • @mrechbreger
    @mrechbreger Месяц назад

    another ... thank you.

  • @fas9600
    @fas9600 4 месяца назад

    I understand there are specialized courses, but it would be great if you could share the demo jupyter notebook. thanks.

  • @robegatt
    @robegatt 4 месяца назад

    Optimized version would not pass coefficients everytime.

  • @rabie-et8zg
    @rabie-et8zg 4 месяца назад

    the problem of delay you can remove it by using a zero phase shift filters , great video Robert

    • @danboschen9613
      @danboschen9613 4 месяца назад

      This is a real time filter and zero-phase filters are non-causal (so will only work with post processing and can’t be applied here).

  • @biiber
    @biiber 4 месяца назад +1

    some MCU vendors (like ST) have dedicated hardware (FMAC) to do these calculations in fixed point numbers. so the DMA could stream directly to and from the FMAC and the CPU can do other things or sleep. just want to point out how solid this concept is that it is implemented in hardware.

  • @outgoingbot
    @outgoingbot 4 месяца назад

    Professor was on some BS when asked where his notch filter coefficients came from.