Let's clarify the mechanism of the complementary filter [acceleration/gyro sensor]
Complementary filters are often used to combine accelerometers and gyroscopes, but there are few explanations on the details of these filters. It is interesting to know how the complementary filter equation is derived and what the equation means. I will explain the calculation process to show that there is a deep meaning in a relatively […]
Posture detection by accelerometer and gyro sensor [STM32Nucleo]
The GY-521 Sensor Board with Accelerometer and Gyro Sensor (MPU-6050) can easily acquire 3-axis acceleration and 3-axis gyro data via I2C interface, and is recommended for its high information content and low cost. However, most of the information on the Internet is for Arduino, and while the programming can be easily utilized by anyone using […]
Graphing and collecting sensor data via serial communication on STM32 MCU
When creating applications, it is often necessary to collect digital data such as sensor data captured by MCU while graphing it in real time like an oscilloscope. We introduce an easy-to-use data logger that can import data into Microsoft Excel while displaying the data on a PC monitor using serial communication. Table of contents1 What […]
Accelerometer using STM32 Nucleo
Table of contents1 What is an Accelerometer?2 About Gravity and Acceleration3 Application using acceleration sensors What is an Accelerometer? Among various sensors, accelerometers are often used in invisible places in products, so many people may not know what they are, despite their high utilization. For example, it is used in smartphones to change the orientation […]
Thermometer using STM32 Nucleo
I will create an application to realize a thermometer using an inexpensive thermistor as a sensor element with an STM32 MCU (Nucleo board). It is a simple program, but it can be developed into various other arithmetic applications using floating point arithmetic with the Cortex-M3 core MCU. Colum The STM32F103RB in the NUCLEO-F103RB is a […]
Heart rate monitor using pulse sensor and STM32 Nucleo
Try an application that counts the pulse, which is a slow pulse, and displays the heart rate per minute. Table of contents1 Creating a pulse rate sensor using a photo reflector and operational amplifier2 Connect pulse sensor signal and LED for output monitoring to MCU3 Program Description4 Pulse sensor input5 LED and monitor outputs Creating […]
Encoder position measurement [STM32 Nucleo]
The STM32 timer has a function to count up and down using encoder 2-phase output pulses as input. This section explains how to use this function to measure the amount of motor rotation from the reference position by up-down counting the pulses from the rotary encoder. Purpose: To measure the amount of rotational position by […]
Encoder speed measurement [STM32 Nucleo]
The STM32 timer has the ability to measure external pulses. Encoders are often used as sensors to detect the position and speed of actuators such as robots, etc. This section introduces a method to measure pulses that vary with rotation speed from encoders. Purpose: To count encoder pulses pulled up and input to CH1 of […]