Using STM32 Black Pill with MPU 6050 accelerator sensor
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.
- 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.
- Manually setup STM32 blackpill (STM32F411CEU6) in STM32CubeIDE.
- Click on "Create a New STM32 project", enter "STM32F411CEU6" in Commercial Part Number. And select it MCUs/MPUs List.
- Enter any project name, and then select the file location. After that, click Finish.
- Go to Clock Configurations tab and configure the settings as below:
- Go to Pinout & Configurations tab and configure the settings as below:
- In the end, the pinout view should look like this.
- Finally, generate the code. A main.c file will be generated with all the settings configured. Click the code generation button (Alt + K)
- 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.
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
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
https://controllerstech.com/how-to-interface-mpu6050-gy-521-with-stm32/
video Interface Mpu6050/Gy-521 with STM32
Mpu 6050 Arduino Tutorial for Beginners
[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