PART I: STM32 HAL I2C and MPU6050 IMU

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024

Комментарии • 27

  • @steppeschool3629
    @steppeschool3629  7 месяцев назад

    Complete guidance on Euler angles and quaternions computation using IMU sensors can be found in my course:
    www.steppeschool.com/courses/stm32-hal-orientation-estimation

  • @azmainyousuf5172
    @azmainyousuf5172 Год назад +1

    How are you getting the output in the SWV ITM Data Console

  • @emyemy7504
    @emyemy7504 3 месяца назад +1

    Great Job. How do I get to interface mpu6050 with stm32 so that I only get readings anytime there is an interrupt coming from the interrupt pin of the mpu6050 when there is linear or rotational movement?

    • @steppeschool3629
      @steppeschool3629  2 месяца назад

      The easiest solution will be using the timer update interrupt in STM32 MCUs. Every time this event occurs, you can sample the IMU sensor.

    • @steppeschool3629
      @steppeschool3629  2 месяца назад

      What if you use the external interrupt to trigger reading the IMU sensor?

  • @walidazerkane9430
    @walidazerkane9430 Год назад +1

    Hello can u explain are you using bit-shifting method for the device address?

    • @steppeschool3629
      @steppeschool3629  Год назад

      Hello, If you want to know more about bit shifting, you can check my course:
      www.steppeschool.com/courses/stm32-programming-course

  • @peacefighter3559
    @peacefighter3559 Год назад +1

    console is not showing anything, swv is enabled, clock is set properly and the code is running the printf-states (debugging) any suggestions? also swo is soldered ( stm32L476rg nucleo board)

    • @steppeschool3629
      @steppeschool3629  Год назад

      Hi,
      Did you also implement the _write function? Minute 1:45 of this video:
      ruclips.net/video/iR34qmfyZtU/видео.html

    • @peacefighter3559
      @peacefighter3559 Год назад

      @@steppeschool3629 yeah but still nothing, even using other suggestions like disable syscall.c nothing shows in swv console

    • @peacefighter3559
      @peacefighter3559 Год назад

      nvm did find the mistake ... had a typo in the _write-fn

    • @steppeschool3629
      @steppeschool3629  Год назад

      @@peacefighter3559 great. Glad that you solved the problem

  • @GudalaChandanraj
    @GudalaChandanraj Год назад +2

    I am unable to see the output in SWV console what might be the issue ?

    • @steppeschool3629
      @steppeschool3629  Год назад

      Maybe the problem in SWV? Are you sure that you have configured it properly?

    • @gopireddyshanmukhareddy9884
      @gopireddyshanmukhareddy9884 Год назад +1

      @@steppeschool3629 how to configure it

    • @shafaaulia1661
      @shafaaulia1661 Год назад +1

      @@steppeschool3629 i have same problem. what else i need to do with the SWV that not show in this video?

    • @offensivebias3965
      @offensivebias3965 10 месяцев назад

      you should be on the debug mode

  • @shafaaulia1661
    @shafaaulia1661 Год назад +1

    My SWV ITM data Console doesn't show any text, can you explain it? (btw, i'm using MPU6050 and STM32F103C6)

    • @steppeschool3629
      @steppeschool3629  Год назад

      Have you checked my video, where I showed how to configure the SWV?
      You can find it here:
      ruclips.net/video/iR34qmfyZtU/видео.html

    • @shafaaulia1661
      @shafaaulia1661 Год назад

      @@steppeschool3629 yes, i have. I have different wiring in my Clock Configuration. I don't have the "MSI" wire in the system clock mux. What should i do to have that MSI wire?

    • @vovanikotin
      @vovanikotin 11 месяцев назад

      @@shafaaulia1661 probably your st-link programmer is clone, it`s have to be modified by wiring one wire to make SWV works, google it, there are many of examples how to do it

  • @47-dimethyl-2-heptene8
    @47-dimethyl-2-heptene8 2 года назад

    Great video, it really helped me and how did you store the calibration data to the microcontroller's flash memory? it is extremely impractical to perform calibration every time the sensor is powered up.

    • @steppeschool3629
      @steppeschool3629  2 года назад

      Hi, I am glad that you find the video helpful. But I did not fully understand your question. You mean configuration of the IMU registers?

  • @bharatsai9573
    @bharatsai9573 Год назад

    How did u connect

  • @woldecosgrove
    @woldecosgrove 5 месяцев назад

    hello nice job ! can you upload the code?

  • @darkknight700
    @darkknight700 Год назад

    source code bro ^-^

    • @steppeschool3629
      @steppeschool3629  Год назад

      Hi,
      This tutorial is part of the attitude estimation course based on the STM32 MCU:
      www.steppeschool.com/courses/stm32-hal-orientation-estimation
      You can find the code on GitHub:
      github.com/Steppeschool/STM32-attitude-estimation