How to Connect MPU9250 and Raspberry Pi (Part 1)

Поділитися
Вставка
  • Опубліковано 7 сер 2024
  • Discover how to capture magnetometer, accelerometer, and gyroscope data from the MPU9250 9-axis sensor using the Raspberry Pi. Although I'm utilizing the Raspberry Pi 4B for this guide, you can apply these instructions to any Raspberry Pi model that supports Python. By the end of this tutorial, you'll be proficient in sampling data and establishing a physical connection between the MPU9250 and your Raspberry Pi.
    Where to buy MPU9250:
    www.amazon.com/dp/B0CRZF148H?...
    Donate:
    www.buymeacoffee.com/mmshilleh
    Code on GitHub Page:
    github.com/shillehbean/youtub...
    Join this channel to get access to perks:
    / @mmshilleh
    Link to Medium Post:
    / how-to-connect-mpu9250...
    TIMESTAMPS:
    00:00 Intro
    00:10 Physical Connection
    03:49 Libraries
    06:01 Python Code
  • Наука та технологія

КОМЕНТАРІ • 22

  • @mmshilleh
    @mmshilleh  4 місяці тому +1

    Should you discover that this video has taught you something new or made your life a bit easier, please think about subscribing to the channel. Every single subscription empowers me to develop even more informative and enhanced videos for our community. I appreciate all of you!

  • @folar4694
    @folar4694 4 місяці тому +1

    thank you for the explanation👌👌

    • @mmshilleh
      @mmshilleh  4 місяці тому

      You're welcome 😊 I hope you can subscribe

  • @adabalavarshith2253
    @adabalavarshith2253 3 місяці тому +1

    I'm getting 0 for the magnetometer readings but the accelerometer and the gyroscope are working perfectly fine. Any idea on fixing this??

    • @mmshilleh
      @mmshilleh  3 місяці тому

      Where did you get your device from?

  • @nkachlon
    @nkachlon 3 місяці тому +1

    I also get results of 0,0,0 for gyro and accelerometer, does anyone have an idea? I'm pretty sure the component is working, bought from Amazon...

    • @mmshilleh
      @mmshilleh  3 місяці тому

      How are you sure your hardware is good? Try changing wires to validate with another device first

  • @stuartbrown7317
    @stuartbrown7317 2 місяці тому +1

    Hey Shilleh any chance you could share the python script you use in this demo please. I can't find it!!

    • @mmshilleh
      @mmshilleh  2 місяці тому

      Sorry, check description!

  • @joridholmen3369
    @joridholmen3369 4 місяці тому +1

    Hey, really helpful video! Any progress on part 2?

    • @mmshilleh
      @mmshilleh  4 місяці тому +1

      I am going to make it this weekend sorry I have been incredibly busy traveling! I am back today

    • @VinhA
      @VinhA 4 місяці тому +1

      @@mmshilleh yeah, I would love to see that coming :) 1+ subscriber here!

  • @AmitSingh-qw4sm
    @AmitSingh-qw4sm 5 місяців тому +1

    hey man can u please release the video for calibrating the values

    • @mmshilleh
      @mmshilleh  5 місяців тому +1

      I will work on it tonight and release it by this weekend ideally thank you for reminding me, hope you can subscribe

  • @mmshilleh
    @mmshilleh  4 місяці тому +1

    Part 2 is here yall!
    ua-cam.com/video/gVnbsee3QDM/v-deo.html
    Hope you can consider donating :)
    www.buymeacoffee.com/mmshilleh

  • @user-of2sp3hb1u
    @user-of2sp3hb1u 3 місяці тому +1

    Hello, I'm trying hard to copy the video. I get a Remote I/O error when I run the Python code in the video. How do I fix this?

    • @mmshilleh
      @mmshilleh  3 місяці тому +1

      Not sure, there could be a lot going on there. Perhaps it is a hardware issue

    • @user-of2sp3hb1u
      @user-of2sp3hb1u 3 місяці тому +1

      @@mmshilleh Oh, thank you. Does it matter if it's Raspberry Pi 3 or Raspberry Pi 4?

    • @mmshilleh
      @mmshilleh  3 місяці тому +1

      @@user-of2sp3hb1u It should not!

    • @user-of2sp3hb1u
      @user-of2sp3hb1u 3 місяці тому

      @@mmshilleh So... can I run the mpu9250 sensor with the raspberry pi3 I have? I'm sorry I kept asking questions...

    • @adabalavarshith2253
      @adabalavarshith2253 3 місяці тому

      Try adding a Try and except statement where ever you are getting the error, worked for me