Auto-Tuned 50 Hz Notch Filter Using a PLL-Based Frequency Tracker
Ahmed Ouenzar
Abstract: Mains hum at 50 Hz is a persistent source of interference for low frequency electrical measurements, audio systems, and sensor-based instrumentation. Fixed Twin-T notch filters can mitigate this disturbance, however, they become ineffective where the grid frequency drifts, or where component tolerances shift the filter’s centre frequency. To address this issue, this project develops an auto-tuning 50 Hz active notch filter, as the centre frequency is adjusted continuously with a lightweight PLL-based zero-crossing tracker. The system was designed and simulated in MATLAB/Simulink, where the instantaneous mains frequency is estimated in real time and used to update the digital Twin-T notch coefficients. The mains frequency was estimated to be stable in real time around 49.8 – 50.2 Hz, while the adaptive notch filter achieved a maximum of 40 dB of attenuation at the tracked frequency. The results illustrate a clear reduction of the 50 Hz harmonic in the frequency-domain output spectrum. In the time-domain, the results show that the useful signal is preserved, with the 50Hz component being the only signal component removed. Overall, the proposed adaptive filtering system illustrates that combining classical passive notch filtering theory with PLL online frequency estimation significantly improves performance with respect to mains-frequency drift.
Keywords
Adaptive Notch Filter, PLL, 50 Hz Mains Hum, Twin-T Filter, Frequency Tracking, Simulink Modeling, Signal Processing
Published online 4/25/2026, 9 pages
Copyright © 2026 by the author(s)
Published under license by Materials Research Forum LLC., Millersville PA, USA
Citation: Ahmed Ouenzar, Auto-Tuned 50 Hz Notch Filter Using a PLL-Based Frequency Tracker, Materials Research Proceedings, Vol. 64, pp 493-501, 2026
DOI: https://doi.org/10.21741/9781644904091-62
The article was published as article 62 of the book Energy Futures
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 license. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
References
[1] M. R. Keshtkaran and Z. Yang, “A Fast, Robust Algorithm for Power Line Interference Cancellation in Neural Recording,” arXiv:1402.6862, 2014. Available: https://arxiv.org/pdf/1402.6862
[2] L. Tan, J. Jiang, and L. Wang, “Adaptive Harmonic IIR Notch Filter with Varying Notch Bandwidth and Convergence Factor,” Journal of Communication and Computer, vol. 11, pp. 484–491, 2014. Available: https://www.davidpublisher.com/Public/uploads/Contribute/552481f74f876.pdf
[3] S. Deepa, P. Vanaja Ranjan, B. Thulasi Brindha, and N. G. Sowmya, “FPGA based Implementation of Adaptive Notch Filter,” IOSR-JEEE, vol. 11, no. 6, pp. 88–90, 2016. Available: https://www.iosrjournals.org/iosr-jeee/Papers/Vol11%20Issue%206/Version-4/L1106048890.pdf
[4]D. Borio, “Loop Analysis of Adaptive Notch Filters,” IET Signal Processing, vol. 10, no. 6, pp. 609–620, 2016. Available: https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/iet-spr.2015.0310
[5] “High-Performance Notch Filter Design – Twin-T Topology,” Electronics-Tutorials.ws. Available: https://www.electronics-tutorials.ws/filter/band-stop-filter.html ScienceDirect+1
[6] B. Carter, “High-Speed Notch Filters,” Analog Applications Journal, Texas Instruments Inc., 1Q 2006. Available: https://www.ti.com/lit/an/slyt235/slyt235.pdf Texas Instruments
[7] E. B. Kapisch, A. P. Ruiz & J. Zheng, “Frequency Estimation for Grid-Connected Converters under Time-Varying Harmonics and Inter-Harmonics,” IEEE/PES ECCE, 2018. Available: https://www.researchgate.net/publication/329398557_Frequency_Estimation_for_Grid-connected_Converters_under_Time-varying_Harmonics_and_Inter-harmonics ResearchGate
[8] P. Rodríguez, A. Luna, I. Candela, R. Mujal, R. Teodorescu, and F. Blaabjerg, “Multiresonant Frequency-Locked Loop for Grid Synchronization of Power Converters Under Distorted Grid Conditions,” IEEE Transactions on Industrial Electronics, vol. 58, no. 1, pp. 127-138, Jan. 2011. Available: https://doi.org/10.1109/TIE.2010.2042420
[9] Analog Devices Inc., “Analog Filters (Basic Linear Design) – Chapter 8: Twin-T Notch,” Training Seminar, (c. 2006). Available: https://www.analog.com/media/en/training-seminars/design-handbooks/basic-linear-design/chapter8.pdf
[10] M. S. Reza, “Fast and accurate frequency estimation in distorted grids,” IET Generation, Transmission & Distribution, 2019. Available: https://doi.org/10.1049/iet-gtd.2018.5547
[11] H. Zumbahlen, Mini Tutorial – Twin-T Notch Filter, Analog Devices Inc., MT-225, Norwood, MA, 2012. Available: https://www.analog.com/media/en/training-seminars/tutorials/MT-225.pdf
[12] J. R. de Carvalho, C. A. Duque, M. Vidal-Ribeiro and P. F. Ribeiro, “A PLL-Based Multirate Structure for Time-Varying Power Systems Harmonic/Interharmonic Estimation”, International Journal of Electrical Power & Energy Systems, vol. 44, no. 1, pp. 840-850, 2013. Available: https://doi.org/10.1016/j.ijepes.2012.09.004

