如何过滤realtim传感器输出信号? [英] How to filter the realtim sensor output signal?

查看:67
本文介绍了如何过滤realtim传感器输出信号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发电子电路并通过串口连接到电脑。一个传感器连接到该电路。传感器将数据(1kps)发送到微控制器。

微控制器执行ADC并通过串口发送到计算机。



这样的数据,

65,66,75,66,80,95,94,165,190,20,210,220,...,66,65



我想用这些值绘制图形。但问题是不必要的绘制线多次下降。图形没有输出预期的形状。

因为输出数据有垃圾数据。



如何在Real Timly中解决这个问题......?

I develop electronic circuit and it connect to the computer through the serial port. one sensor connects to that circuit. The sensor send to data(1kps) to the micro controller.
Micro controller do ADC and sent to the computer through serial port.

That data like this,
65,66,75,66,80,95,94,165,190,20,210,220,...,66,65

I want to draw the graph using that values.But problem is unnecessarily drawing line is going down many times.The Graph didn't output the expected shape.
Because out put data has garbage data.

How to Soled this problem in Real Timly......?

推荐答案

简单说明你不能盲目地过滤掉价值。

你应该先了解为什么你有垃圾值。

电路是否良好?微控制器采集代码是否合适?是否存在通信问题?
Simply stated you cannot filter out values blindly.
You should first understand why you have garbage values.
Is the electrical circuit good? Is the microcontroller acquisition code right? Are there communication problems?


我使用了一个RC滤波器,然后在平均PIC侧程序中的样本值之后。
I used one RC filter and then after I average the sample values in side PIC program.


这篇关于如何过滤realtim传感器输出信号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆