Digital Averaging Filter
更新时间:2023-06-01 21:49:01 阅读量: 实用文档 文档下载
- digital推荐度:
- 相关推荐
Digital Averaging Filter
Contents Background Design& Implementation Refine Discussion
What’s RMS (Root Mean Square) RMS is the constant value that yields the same power dissipation as the timeaveraged power dissipation of the signal For continuous signal
f rms
2 T2 1 f (t ) dt T2 T1 T1
For 1 cycle sinusoidal signal
RMS
f0
T1 1 f 0
T1
A cos ( 2 π f 0 t ) dt
2
A 2
What’s Average Average is the DC component of the signal For continuous signal
f avg
T2 1 f (t )dt T2 T1 T1
For 1 cycle sinusoidal signal (abs)
AVG f 0
T1 1 f 0
T1
A cos ( 2 π f 0 t ) dt
2 A
RMS vs. AVG For 1 cycle sinusoidal signal (abs)
RMS
A 2
AVG
2 A
If we know AVG, we know RMS
RMS
2 2
AVG 1.11072 AVG
Get Average in Analog World To get abs -> Rectifier
To get DC component -> Low Pass Filter
Get Average in Digital World To get abs -> Reverse the sign of negative sample
To get DC component -> Digital Low Pass Filter
Reverse Sign Reverse the sign of negative sample DC component is average value Cons - Introduce harmonics - Low precision in case of high harmonics Pros - No impact by a variety of frequency - No impact by a variety of initial phase angle MATLAB Example - a_ReverseSign.m
Design LPF– Overview Find a continue-time filter model, create transfer function Convert continue-time transfer function to discrete-time transfer function Write difference equation from discrete-time transfer function Difference equation can be implemented by program.
Design LPF– Continuous-Time Model Design a simple analog filter
Find transform function in s domain (Laplace Transform)
1 1 c H a ( s) s C R C 1 1 s c R s s C R C
Design LPF– Discrete-Time Model Convert Ha(s) to H(z) The convert method - Impulse invariance (DC gain is not 1)
A H a ( s) k k 1 s skH a ( s)
N
H ( z)
Ts Ak sk Ts z 1 k 1 1 eN
c s c
H ( z)
1 e c Ts z 1
c Ts
- Bilinear transform (DC gain is 1)
2 1 z 1 s Ts 1 z 1H a ( s)
2 1 z 1 H ( z) H a ( ) Ts 1 z 1
c s c
c Ts c Ts z 1 p p z 1 H ( z) 2 c Ts (2 c Ts ) z 1 1 (1 2 p) z 1
p
c Ts 2 c Ts
Design LPF– Difference Equation From H(z) to Difference EquationH ( z) b(1) b(2) z 1 ... b(nb 1) z nb X ( z ) Y ( z) 1 a(2) z 1 ... a(na 1) z na
Y (n) b(1) * X (n) b(2) * X (n 1) ... b(nb 1) * X (n nb ) a(2) *Y (n 1) ... a(na 1) *
Y (n na )
Design LPF– Difference Equation (cont’d) Impulse invarianceH ( z) 1 e c Ts z 1
c Ts
Y (n) c Ts X (n) e c Ts Y (n 1)
c Ts c Ts z 1 p p z 1 H ( z) 2 c Ts (2 c Ts ) z 1 1 (1 2 p) z 1 Bilinear transform
p
c Ts 2 c Ts
Y (n) p X (n) p X (n 1) (1 2 p) Y (n 1)
p
c Ts 2 c Ts
Implement LPF (Impulse invariance) MATLAB Example - b_ImpulseInvariance.m - Multiplication X 2 - Add X 1 Problems - The result is not stable (Filter is not ideal) - Multiplication operation costs too much CPU time
Design stable LPF Decrease cutoff frequency is not a good idea due to the long stable time Use cascading filters n Order -> -dB X n Y1(n) c Ts X (n) e c Ts Y1(n 1)
Y 2(n) c Ts Y1(n) e c Ts Y 2(n 1)
Y 3(n) c Ts Y 2(n) e c Ts Y 3(n 1) MATLAB Example - c_CascadingFilters.m
Design LPF without Multiplication Zero-Init Response& Zero-State Response
kTs kTs - Ts
vzi (t ) vo e
t R Ct t
1 vzs (t ) h(t ) (vi (t )) vi h( ) d vi e R C d vi (1 e R C ) 0 R CTs R C
t
vzi (kTs ) vo (kTs Ts ) e
vzs (kTs ) vi (kTs Ts ) (1 e
Ts R C
)
Design LPF without Multiplication (cont’d)●Write difference equation from response equation
vo (kTs ) vzi (kTs ) vzs (kTs ) vo (kTs Ts ) e
Ts R C
vi (kTs Ts ) (1 e
Ts R C
)
vo (k ) vo (k 1) e
Ts R C
vi (k 1) (1 e
Ts R C
)Exponential smoothing/wiki/Exponential_smoothing
Y (n) X (n 1) (1 ) Y (n 1) 1 e Ts c
Design LPF without Multiplication (cont’d)●Multiplication is replaced by bit-shift - Bit-Shift X 1 - Add X 2
Y (n) (( X (n 1) Y (n 1)) p) Y (n 1) 2 p●Cutoff frequency
c Fs ln(1 2 p ) fc 6.2414 T 5000, p 7 2 2 s
●MATLAB Example - d_ExponentiallyWeightedMovingAverage.m
Noise DC offset - Can be removed with an addition cascading filters Normal Distributed Noise - Some impact to average value Harmonics - Huge impact to average value MATLAB Example - e_ImpactFromNoise
Other Ways to Design Filter MATLAB Transfer Function Example - f_MatlabFilter.m MATLAB Filter Function butter -> Butterworth filter design cheby1 -> Chebyshev Type I filter design (pass band ripple) Window design method ( Finite Impulse Response )
正在阅读:
利兹大学管理与市场营销本科08-25
小学生一年级写冬天的雨的作文06-14
小学三年级奥数讲义全集12-01
你也读读这本书吧作文500字07-09
五人制足球比赛战术05-28
长输管道征地协调管理办法11-13
普通级轿车前悬架(麦弗逊式)设计毕业论文06-01
2022大连最好的复读黉舍03-30
- 1Digital Signal Processing(1 Introduction)-讲义
- 2Adaptive Digital Predistortion Linearizer for Power Amplifie
- 3Digital Signal Processing(1 Introduction)-讲义
- 4Transverse Averaging Technique for Depletion Capacitance of Nonuniform PN-Junctions
- 5A 20 mV Input Boost Converter With Efficient Digital Control
- 6Music Downloads and the Flip Side of Digital Rights Management
- 7A DWT-based Digital Video Watermarking Scheme with Error Correcting
- 8Filter过滤器与自定义过滤功能
- 9Techniques for High Performance Digital Frequency Synthesis and Phase Control
- 10华为 OSPF filter-policy路由过滤 LSA过滤
- 教学能力大赛决赛获奖-教学实施报告-(完整图文版)
- 互联网+数据中心行业分析报告
- 2017上海杨浦区高三一模数学试题及答案
- 招商部差旅接待管理制度(4-25)
- 学生游玩安全注意事项
- 学生信息管理系统(文档模板供参考)
- 叉车门架有限元分析及系统设计
- 2014帮助残疾人志愿者服务情况记录
- 叶绿体中色素的提取和分离实验
- 中国食物成分表2020年最新权威完整改进版
- 推动国土资源领域生态文明建设
- 给水管道冲洗和消毒记录
- 计算机软件专业自我评价
- 高中数学必修1-5知识点归纳
- 2018-2022年中国第五代移动通信技术(5G)产业深度分析及发展前景研究报告发展趋势(目录)
- 生产车间巡查制度
- 2018版中国光热发电行业深度研究报告目录
- (通用)2019年中考数学总复习 第一章 第四节 数的开方与二次根式课件
- 2017_2018学年高中语文第二单元第4课说数课件粤教版
- 上市新药Lumateperone(卢美哌隆)合成检索总结报告
- Averaging
- Digital
- Filter
- 2017考研数学基础差考生三大复习要点
- 朱之文在校创先争优活动部署会上的讲话
- 电磁波隐身技术的研究
- 西安交通大学环境与资源保护法学期末考试高分题库全集含答案
- 教育学练习试题及答案
- 定岗定编说明书-工作饱和度分析表--
- 2021年六年级下学期语文小升初综合知识整理复习及答案必考题冀教版
- 八年级政治下册导学案
- 甘肃开诚律师事务所规范管理的探索和实践(简明版)
- RECIST(实体瘤的疗效评价标准)1.1版
- 晶源电子:关于公司控股股东及其他关联方占用资金情况的专项说明 2010-02-27
- 高中新课标政治总复习第8课时 当代国际社会
- 中山大学宏观经济学4 (2)
- 小学美术一年级下册课程纲要
- 2010年全国各地中考历史模拟试题汇编——中国现代史
- 第6章 信用证(上)
- 五年级 品德与社会 复习题 陕西未来出版社
- 视听语言分析之阿甘正传
- 2.1《参数方程的概念》教案(新人教选修4-4)
- 高中美术会考试题