Reading of Sensor Signals with Automatic Selection of Sampling Frequency

S. Balovsyak, Vitaly Lacusta, K. Odaiska
{"title":"Reading of Sensor Signals with Automatic Selection of Sampling Frequency","authors":"S. Balovsyak, Vitaly Lacusta, K. Odaiska","doi":"10.31861/sisiot2023.1.01010","DOIUrl":null,"url":null,"abstract":"The correct selection of sampling frequency when reading signals from sensors ensures high quality of digitized data and saves memory when storing such data. The complexity of automatic selection of the sampling frequency is explained by the fact that this frequency depends on the frequencies of the useful signal, which are not always known.  Therefore, in the work the computer system for reading signals from temperature, humidity, and lighting sensors with automatic selection of the sampling frequency based on the Fourier spectrum analysis of the signals was developed. Signals from digital sensors (DHT22) are transmitted directly to the Raspberry Pi3 microcomputer. Signals from analog sensors (LM335M, light sensor) are fed to the Arduino Uno device. An algorithm for the analysis of Fourier spectra of one-dimensional signals has been developed, which is designed to determine the optimal sampling frequency and decimation coefficient of signals read from sensors. Based on the initial signals, their Fourier spectra are calculated, and by analyzing the spectra, the maximum frequency of the useful signal and the optimal sampling frequency are determined. Specified sampling frequency according to the sampling theorem is calculated as a double value of the maximum frequency of the useful signal. Decimation (thinning) of the signal is performed with a coefficient determined by the ratio of the initial and specified sampling frequencies. To assess the quality of the signal after decimation, the decimated values were interpolated by splines. The root mean square error of interpolation was calculated. Experimental testing of the developed tools for reading and analyzing signals from temperature, humidity and lighting sensors was carried out. In all considered cases, the sampling frequency is determined correctly. The resulting sampling rates can be used for decimation of signals or for subsequent reading of signals from sensors.","PeriodicalId":236752,"journal":{"name":"Security of Infocommunication Systems and Internet of Things","volume":"60 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-06-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Security of Infocommunication Systems and Internet of Things","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.31861/sisiot2023.1.01010","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The correct selection of sampling frequency when reading signals from sensors ensures high quality of digitized data and saves memory when storing such data. The complexity of automatic selection of the sampling frequency is explained by the fact that this frequency depends on the frequencies of the useful signal, which are not always known.  Therefore, in the work the computer system for reading signals from temperature, humidity, and lighting sensors with automatic selection of the sampling frequency based on the Fourier spectrum analysis of the signals was developed. Signals from digital sensors (DHT22) are transmitted directly to the Raspberry Pi3 microcomputer. Signals from analog sensors (LM335M, light sensor) are fed to the Arduino Uno device. An algorithm for the analysis of Fourier spectra of one-dimensional signals has been developed, which is designed to determine the optimal sampling frequency and decimation coefficient of signals read from sensors. Based on the initial signals, their Fourier spectra are calculated, and by analyzing the spectra, the maximum frequency of the useful signal and the optimal sampling frequency are determined. Specified sampling frequency according to the sampling theorem is calculated as a double value of the maximum frequency of the useful signal. Decimation (thinning) of the signal is performed with a coefficient determined by the ratio of the initial and specified sampling frequencies. To assess the quality of the signal after decimation, the decimated values were interpolated by splines. The root mean square error of interpolation was calculated. Experimental testing of the developed tools for reading and analyzing signals from temperature, humidity and lighting sensors was carried out. In all considered cases, the sampling frequency is determined correctly. The resulting sampling rates can be used for decimation of signals or for subsequent reading of signals from sensors.
自动选择采样频率的传感器信号读取
当从传感器读取信号时,正确选择采样频率可以确保数字化数据的高质量,并在存储这些数据时节省内存。采样频率的自动选择之所以复杂,是因为这个频率取决于有用信号的频率,而有用信号的频率并不总是已知的。因此,在工作中,开发了读取温度、湿度和照明传感器信号的计算机系统,该系统基于信号的傅立叶谱分析自动选择采样频率。来自数字传感器(DHT22)的信号直接传输到Raspberry Pi3微型计算机。来自模拟传感器(LM335M,光传感器)的信号被馈送到Arduino Uno设备。提出了一种一维信号傅立叶谱分析算法,用于确定从传感器读取的信号的最佳采样频率和抽取系数。在初始信号的基础上,计算其傅立叶谱,通过谱分析,确定有用信号的最大频率和最优采样频率。根据采样定理,将指定的采样频率计算为有用信号最大频率的两倍值。信号的抽取(细化)是用一个由初始和指定采样频率之比确定的系数来执行的。为了评估抽取后的信号质量,抽取后的值被样条插值。计算了插值的均方根误差。对所开发的温度、湿度和照明传感器信号读取和分析工具进行了实验测试。在所有考虑的情况下,采样频率都是正确确定的。所得到的采样率可用于信号的抽取或用于随后从传感器读取信号。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书