Share Email Print
cover

Proceedings Paper

Complementary filter implementation in the dynamic language Lua
Author(s): Damian Sadowski; Aleksander Sawicki; Donatas Lukšys; Zdenek Slanina
Format Member Price Non-Member Price
PDF $14.40 $18.00
cover GOOD NEWS! Your organization subscribes to the SPIE Digital Library. You may be able to download this paper for free. Check Access

Paper Abstract

The article presents the complementary filter implementation, that is used for the estimation of the pitch angle, in Lua script language. Inertial sensors as accelerometer and gyroscope were used in the study.

Methods of angles estimation using acceleration and angular velocity sensors were presented in the theoretical part of the article. The operating principle of complementary filter has been presented. The prototype of Butterworth's analogue filter and its digital equivalent have been designed. Practical implementation of the issue was performed with the use of PC and DISCOVERY evaluation board equipped with STM32F01 processor, L3GD20 gyroscope and LS303DLHC accelerometer. Measurement data was transmitted by UART serial interface, then processed with the use of Lua software and luaRS232 programming library.

Practical implementation was divided into two stages. In the first part, measurement data has been recorded and then processed with help of a complementary filter. In the second step, coroutines mechanism was used to filter data in real time.

Paper Details

Date Published: 7 August 2017
PDF: 11 pages
Proc. SPIE 10445, Photonics Applications in Astronomy, Communications, Industry, and High Energy Physics Experiments 2017, 104451Q (7 August 2017); doi: 10.1117/12.2280831
Show Author Affiliations
Damian Sadowski, Bialystok Univ. of Technology (Poland)
Aleksander Sawicki, Bialystok Univ. of Technology (Poland)
Donatas Lukšys, Vilnius Gediminas Technical Univ. (Lithuania)
Zdenek Slanina, Technical Univ. of Ostrava (Czech Republic)


Published in SPIE Proceedings Vol. 10445:
Photonics Applications in Astronomy, Communications, Industry, and High Energy Physics Experiments 2017
Ryszard S. Romaniuk; Maciej Linczuk, Editor(s)

© SPIE. Terms of Use
Back to Top