Skip to content

Gaya3N25/imu_motion_stopmode

Repository files navigation

STM32F401 + MPU6050 Stop-Mode Motion Wakeup

Project demonstrating motion-triggered wakeup from STOP mode using the MPU6050 and STM32F401RE.

This STM32 board has STOP modes

  • Main Regulator ON (stable, fast wake)
  • Low-Power Regulator ON (reduced current)

This particular program functions on the Low Power Regulator ON. It can be switched to Main Regulator ON by changing the EnterSTOPMode function.

Hardware Connections

MPU6050 STM32F401RE
SDA PB9
SCL PB8
INT PA0 (EXTI0)
VCC/GND 3.3V / GND

UART2 (PA2/PA3) @ 115200 baud.

Features

  • Motion detection via MPU6050 (MOT_THR + MOT_DUR)
  • EXTI0 interrupt wake from STOP mode
  • ACC/GYRO read after wake
  • Simple HAL-based implementation

Project Structure

Core/ Drivers/ mpu6050.c mpu6050.h imu_motion_stopmode.ioc

Summary

  • Configure MPU6050 motion interrupt

  • Enter STOP mode

  • Motion → INT pin → EXTI0 wakeup

  • Restore clock and read ACC/GYRO

  • Go back to STOP mode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages