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 - Наука та технологія
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!
thank you for the explanation👌👌
You're welcome 😊 I hope you can subscribe
I'm getting 0 for the magnetometer readings but the accelerometer and the gyroscope are working perfectly fine. Any idea on fixing this??
Where did you get your device from?
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...
How are you sure your hardware is good? Try changing wires to validate with another device first
Hey Shilleh any chance you could share the python script you use in this demo please. I can't find it!!
Sorry, check description!
Hey, really helpful video! Any progress on part 2?
I am going to make it this weekend sorry I have been incredibly busy traveling! I am back today
@@mmshilleh yeah, I would love to see that coming :) 1+ subscriber here!
hey man can u please release the video for calibrating the values
I will work on it tonight and release it by this weekend ideally thank you for reminding me, hope you can subscribe
Part 2 is here yall!
ua-cam.com/video/gVnbsee3QDM/v-deo.html
Hope you can consider donating :)
www.buymeacoffee.com/mmshilleh
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?
Not sure, there could be a lot going on there. Perhaps it is a hardware issue
@@mmshilleh Oh, thank you. Does it matter if it's Raspberry Pi 3 or Raspberry Pi 4?
@@user-of2sp3hb1u It should not!
@@mmshilleh So... can I run the mpu9250 sensor with the raspberry pi3 I have? I'm sorry I kept asking questions...
Try adding a Try and except statement where ever you are getting the error, worked for me