7 August 2017 Complementary filter implementation in the dynamic language Lua
Author Affiliations +
Proceedings Volume 10445, Photonics Applications in Astronomy, Communications, Industry, and High Energy Physics Experiments 2017; 104451Q (2017) https://doi.org/10.1117/12.2280831
Event: Photonics Applications in Astronomy, Communications, Industry, and High-Energy Physics Experiments 2017, 2017, Wilga, Poland
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.
© (2017) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Damian Sadowski, Aleksander Sawicki, Donatas Lukšys, Zdenek Slanina, "Complementary filter implementation in the dynamic language Lua", Proc. SPIE 10445, Photonics Applications in Astronomy, Communications, Industry, and High Energy Physics Experiments 2017, 104451Q (7 August 2017); doi: 10.1117/12.2280831; https://doi.org/10.1117/12.2280831
PROCEEDINGS
11 PAGES


SHARE
RELATED CONTENT

Anchored multi-DOF MEMS gyroscope having robust drive mode
Proceedings of SPIE (December 30 2016)
Oscillation behavior of two MEMS structures
Proceedings of SPIE (May 29 2002)
A new digital silicon MEMS gyroscope
Proceedings of SPIE (October 20 2009)
Aerospace applications of MEMS
Proceedings of SPIE (January 22 2005)
Design rules for non-Manhattan shapes
Proceedings of SPIE (August 25 2000)

Back to Top