Skip to content

bropenguin847/Real-Time-Vibration-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time-Vibration-Analysis

Using STM32 Black Pill with MPU 6050 accelerator sensor

Introduction

his project focuses on developing a real-time vibration analysis system using the STM32F411CEU6 microcontroller (Black Pill) and the MPU6050 sensor, integrated through I2C communication. The MPU6050 combines a 3-axis accelerometer and a 3-axis gyroscope, providing motion and vibration data for analysis. Data acquisition and processing were implemented using STM32CubeIDE, with results displayed in Serial Studio for visualization. The system serves practical applications such as detecting vibrations in machinery, monitoring structural integrity, or analyzing dynamic motions in robotics and vehicles.

Wiring Diagram

Wiring Diagram

Components

BOM

Steps

  1. Download necessary softwares: STM32CubeIDE
    • Go the ST official website. When downloading this for the first time, users need to manually create a MyST account with their email. After that, the download link will be sent to the email inbox. Simply click the link, and the download will start automatically.
    • downloadStm32

  1. Manually setup STM32 blackpill (STM32F411CEU6) in STM32CubeIDE.
    1. Click on "Create a New STM32 project", enter "STM32F411CEU6" in Commercial Part Number. And select it MCUs/MPUs List.
    • selectBlackPill
    1. Enter any project name, and then select the file location. After that, click Finish.
    2. Go to Clock Configurations tab and configure the settings as below:
    • clockConfig
    1. Go to Pinout & Configurations tab and configure the settings as below:
      • At System core:
      • sys
      • rcc
      • At Connectivity:
      • i2c1
      • usart2
      • otg
      • At Middleware & Software Pack:
      • middleware
    2. In the end, the pinout view should look like this.
      • pinout
    3. Finally, generate the code. A main.c file will be generated with all the settings configured. Click the code generation button (Alt + K)
      • codegenerate

  1. Copy the code in the main.c file
  • Simply copy all the code in the main.c file in the repo and paste it all in the main.c file.

Reference

https://www.instructables.com/Illuminating-Displays-Using-an-I2C-LCD-With-STM32-/

Using I2C for Any Device on STM32 with HAL

https://wiki.st.com/stm32mcu/wiki/Getting_started_with_I2C

Blackpill pinout

I2C Bus Example with 2 Stm32f4 Black Pills

Stm32f Black Pill Tutorial 1: Hello World

Stm32 Usart Intro: Block Diagram || Registers || 32f103 ||Black Pill

How To: Stm32f103c8t6 as an USB Device ( Virtual Serial Port / CDC )

Build an Stm32 Uart Driver - PuTTY & Tera Term Terminal

Stm32 Hal I2c and Mpu6050 Imu

https://controllerstech.com/how-to-interface-mpu6050-gy-521-with-stm32/

video Interface Mpu6050/Gy-521 with STM32

Mpu 6050 Arduino Tutorial for Beginners

datasheet with address

latest datasheet

[WeAct Black Pill V2.0]https://stm32-base.org/boards/STM32F411CEU6-WeAct-Black-Pill-V2.0.html


https://www.bennettnotes.com/notes/stm32-blackpill-with-stmcubeide-usb-serial/

https://www.sgbotic.com/index.php?dispatch=pages.view&page_id=49

About

Using STM32 Black Pill with MPU 6050 accelerator sensor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages