9 Axis IMU MPU9250 (GY-91)

  Рет қаралды 40,525

Honest Patina

Honest Patina

Күн бұрын

The GY-91 is a 10 degrees of freedom module.It contains the MPU9250 which is a 9 axis Gyro, Accelerometer and Compass; the GY-91 also contains a BMP280 which is a barometric pressure sensor.
In this video I use the GY-91 with an Adafruit Pro Trinket 5v. I walk you through the setup, calibration and testing.
GY-91 : amzn.to/2vb4ZCR
Pro Trinket 5v : amzn.to/2vb29xO
GY-91 GitHub Library: github.com/the...

Пікірлер: 50
@harryobrien9035
@harryobrien9035 4 жыл бұрын
"Subscribe to this channel because there WILL be more". I feel like making 1 more video after this one and then not doing anything for 2 years doesn't really count. You've got a good thing here, you should start it up again!
@kayakexcursions5570
@kayakexcursions5570 4 жыл бұрын
Haha, its not easy making videos!
@AlexanderDross
@AlexanderDross 3 жыл бұрын
thanks for the great video! However I recommend to use the 3.3V pin instead of 5V as the voltage divider of Raspberry PI/ Arduino is more stable compared to the build-in version
@RCPilot-kj3wh
@RCPilot-kj3wh 5 жыл бұрын
Hi I'm using an Arduino Nano and during compile I get an error message that reads: "'MPU9250_ADDRESS' was not declared in this scope". Could you help find out what's going on or is there a variable I need to update with my MPU address? Thanks!
@MegaBombLetsplay
@MegaBombLetsplay 2 жыл бұрын
Hi, i have trouble with SPI connection this module to board Arduino mega 2560 becouse of small sample rate. I do lot of search on the internet, but all codes and libraries are not working for me. Do you have any idea what can i do? Dont you have any tutorial? Its for my Bachelor thesis where i need messure acceleration and gyro only with the sample rate about 1-2ksps. Thank for any help and apologise for my bad english :)
@TomasSalinger
@TomasSalinger 6 жыл бұрын
Could you name all the libraries used for the example code to compile? Also, are you using AVRISP?
@AlejandraRodriguezZamudio
@AlejandraRodriguezZamudio Жыл бұрын
I´m using the gy-91 for calculating 3 axis of gyroscope, accelerometer and magnetometer, but i´m having troubles with the units, does anyone know of a library that converts the data of the accelerometer, gyroscope and magnetometer into corrects units?
@ultrainstinct1181
@ultrainstinct1181 6 ай бұрын
Does this work with a pro mini?
@evpozdniakov
@evpozdniakov 6 жыл бұрын
I was looking for a tutorial how to use MPU-6050 with arduino when I found this video. It looks interesting. I have a few questions, your answers are appreciated. I haven't worked with Adafruit Pro Trinket before, but they say I will be able to use Arduino IDE to program it "with a few simple config modifications". So my first question, what these config modifications are? The most important question, will I be able to get 3D position calculated? Without it the whole affair doesn't makes sense. I will need to send position data over wifi. So the third question, is there enough pins to connect a wifi module? And finally, after connecting GY-91 and wifi module will I still be able to connect the whole thing to my computer and program it? Thank you!
@honestpatina2581
@honestpatina2581 6 жыл бұрын
Answer to the 1st question: These were the “simple config modifications” that I did to connect to the board. 1. Tools > Boards Manager > Search for Adafruit Pro Trinket 5V > Install 2. Restart 3. Tools> Board: Pro Trinket 5V/16Mhz or Pro Trinket 3V/16Mhz (USB) or(FTDI) For example I use Pro Trinket 5V/16Mhz (FTDI). Because I use a Pro Trinket 5v/16Mhz via the FTDI Connection. 4. Tools> Programmer: “ArduinoISP” Now you can connect your board via USB Mini or FDTI be sure to select the correct board in the third step. Answer to the 2nd question: If by 3D positioning you mean yaw, pitch, and roll then yes. However if your looking for position in space then you need a GPS. Answer to the 3rd question: I have not experimented with communication over wifi but rather radio communication using an nRF24L01 (Pro Trinket Compatible), you need two devices, one for transmission and one for receiving. Then I send this to an I2C OLED Display (Pro Trinket Compatible) which I program to display data. There are enough pins to to work with RC and connect additional devices, but as an assumption I will say that a wifi device could require more pins than available on the Pro Trinket. I suggest reviewing this page: learn.adafruit.com/introducing-pro-trinket/pinouts Answer to the final question: Programing after everything is set up is the easy and FUN part. As I mentioned earlier I use FTDI to communicate with the computer. Then I go wireless and send yaw, pitch, and roll data to the OLED Display. If you have no idea what I mean by some of these acronyms various terms or devices, use youtube search to dive a little deeper into each one and I think this approach will be a little more clear.
@galacticgamers8705
@galacticgamers8705 7 жыл бұрын
thx I couldn't find any thing for this now I can finally use it
@honestpatina2581
@honestpatina2581 7 жыл бұрын
Galactic Gamers good luck. It is a great little part for the cost. However I find that it can be annoying having to recalibrate on each start up. If I could bypass this with reliable results it would be a stronger tool. If nothing else it works great as a 5V to 3V converter haha!
@donavansnyders2429
@donavansnyders2429 5 жыл бұрын
Hi. I am new to arduino. I have a nano and the gy-91. I would like to make a head tracking unit for a FPV camera. Any help would b awesome
@iliqnew
@iliqnew 5 жыл бұрын
i add it as a .zip library and it says "Specified folder/zip file does not contain a valid library"
@sanasabah8460
@sanasabah8460 5 жыл бұрын
Iliyan Iliev me too
@roycas3
@roycas3 5 жыл бұрын
can you do a video on graphical visualization with processing?
@benzenekim2526
@benzenekim2526 5 жыл бұрын
Where are math.h and mbed.h files?
@Kuriocity
@Kuriocity 5 жыл бұрын
How to find angles in 9250 in Raspberry Pie?
@lightshadown
@lightshadown 6 жыл бұрын
can you plz add the calibration code? its driving me crazy, i already got the data but the numbers are all over the place, any help is welcome.
@honestpatina2581
@honestpatina2581 6 жыл бұрын
I uploaded an alternate code (GY_91_Alternate_Calibration.ino) that may help you. I removed the original calibration code and replaced it with something much more simple. All you have to do is hold the GY-91 level during the calibration and the numbers come out looking nice. Let me know if you need further assistance, i will try my best.
@TomasSalinger
@TomasSalinger 6 жыл бұрын
Hi! Thanks for this. I'm having troubles including quaternionFilters.h, which libraries should i have installed before using your code?
@TomasSalinger
@TomasSalinger 6 жыл бұрын
I managed to include the "h" file but now i get this error: 'class MPU9250' has no member named 'selfTest' Did i install the wrong package?
@TomasSalinger
@TomasSalinger 6 жыл бұрын
I'm using the Arduino pro mini and a USB module to connect it to the pc
@honestpatina2581
@honestpatina2581 6 жыл бұрын
I will be honest Im struggling to figure out what is wrong here. Maybe try downloading quaternionFilters.h from this github page: github.com/sparkfun/MPU-9250_Breakout/blob/master/Libraries/Arduino/src/quaternionFilters.h I know that in the past this is where I downloaded this header file from. Also when I do a search on my computer for quaternionFilters.h my directory says username/documents/arduino/libraries/SparkFun_MPU-9250_Breakout_Arduino_Library/src/quaternionFilters.h
@honestpatina2581
@honestpatina2581 6 жыл бұрын
I really hope this helps to steer you in the right direction. I don't think that this header file is required to be in the same folder as your GY-91 GitHub Library it just needs to be somewhere on your computer in the Arduino folder, so that the program can access it.
@TomasSalinger
@TomasSalinger 6 жыл бұрын
i installed the SparkFun libraries with the library manager, but i noticed it has a MPU9250.h file and i'm not sure which files of your GitHub should i add or replace and where... I also noticed that the SparkFun MPU9250.h file comes with another file called MPU9250.cpp, but in your Github you have a .cpp file called main. I mixed some of the Github files with the SparkFun Library and now i'm getting a message saying mbed.h file is missing from the SparFun Library folder. Sorry to bother you this much but i'm really newbie and lost in this.
@BluemanBas
@BluemanBas 6 жыл бұрын
where did you get the mbed.h?
@VishishtTiwari
@VishishtTiwari 7 жыл бұрын
Hey, what if i am using multiple of these. Can i change the i2c address? I want to use 6 of them in my project and only have 1 i2c pin on R-Pi3.
@honestpatina2581
@honestpatina2581 7 жыл бұрын
Vishisht Tiwari you will need to use a device that is called a multiplexer. Here is a link to one on amazon. This is the cheapest option and for reassurance I bought one in the past that worked well: www.amazon.com/gp/aw/d/B06XXG5G3L/ref=mp_s_a_1_2?ie=UTF8&qid=1510550940&sr=8-2&pi=AC_SX236_SY340_QL65&keywords=i2c+multiplexer&dpPl=1&dpID=413wgohmY8L&ref=plSrch
@VishishtTiwari
@VishishtTiwari 7 жыл бұрын
thanks a lot mate :D
@gauravkulshrestha1370
@gauravkulshrestha1370 6 жыл бұрын
wr r u live mr tiwari
@jonathanbarria8587
@jonathanbarria8587 4 жыл бұрын
i need to know the teory about this for understand the codes
@mehedihassan8944
@mehedihassan8944 5 жыл бұрын
Can I get your code?
@Rabenauge7
@Rabenauge7 5 жыл бұрын
Nothing works. Filenames correchtet, but it throws one error after another.
@GSXNetwork
@GSXNetwork 5 жыл бұрын
how many sensors can be connected to adruino?
@richardchimal9128
@richardchimal9128 5 жыл бұрын
Let me answer your question. There isn't a specific number of sensors. First of all, you need to know which arduino you're going to use. For example if you're talking about an arduino uno (which is the most common) it uses an Atmega328p chip, which has like 14 digital inpunt/output pins and only 6 of them supports pwm pins. Ando also has 6 analog pins. All this depends on which kind of sensor you're using. I hope I answer your question.
@GSXNetwork
@GSXNetwork 5 жыл бұрын
@@richardchimal9128 I have the same sensor with barometer. I have 30 sensors that I would like to use for motion capture. What kind of setup will allow me to use them in chains for arms, legs and spine with head?
@richardchimal9128
@richardchimal9128 5 жыл бұрын
​@@GSXNetwork Wow, there are a lot of them! First of all, I understand that MPU9250 allows you tu use I2C. According to the theory, you may connected an unlimited number of sensors with an arrange. It's a bit complex because you have to setup a master and a slave. You'll have to read about that.
@אבירןדוד
@אבירןדוד 7 жыл бұрын
it cant find the I2Cdev.h file
@thisoldjeepcj5
@thisoldjeepcj5 6 жыл бұрын
I thought the gy-91 was 3.3V only?
@honestpatina2581
@honestpatina2581 6 жыл бұрын
5v has worked for me without issues. It does have a 3.3v output that you can use to power other devices once you power it with 5v.
@thisoldjeepcj5
@thisoldjeepcj5 6 жыл бұрын
Sorry, I was referring to the signal level on I2C. But perhaps the pro trinket is a 3.3V device.
@honestpatina2581
@honestpatina2581 6 жыл бұрын
thisoldjeep Oh there are two versions of the pro trinket, 3V and 5V
@daniyalsaleem4763
@daniyalsaleem4763 6 жыл бұрын
How to move mouse with this...
@honestpatina2581
@honestpatina2581 6 жыл бұрын
This is an interesting concept that I could see working after some time of trial and error. In fact a lot of people are developing VR gloves with IMU's build in to control on screen graphics.
@daniyalsaleem4763
@daniyalsaleem4763 6 жыл бұрын
the_jmart do you how to move mouse with this...
@honestpatina2581
@honestpatina2581 6 жыл бұрын
I am not sure. I am just a hobbyist sharing what I learn with the world.
@stanislavhristakiev1881
@stanislavhristakiev1881 4 жыл бұрын
full of mistake! have not include necessary library to work!
обзор GPS  модуля NEO-6M
17:30
RADIOSOFT
Рет қаралды 9 М.
Synyptas 4 | Жігіттер сынып қалды| 3 Bolim
19:27
kak budto
Рет қаралды 1,2 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 14 МЛН
Epic Reflex Game vs MrBeast Crew 🙈😱
00:32
Celine Dept
Рет қаралды 39 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 30 МЛН
Two Rc T-28 Trojans: Flight Twenty Seven
5:44
Harry's Hobbies
Рет қаралды 5
Magnetometer Errors and Calibration
18:40
MicWro Engr
Рет қаралды 19 М.
Making a tiny ESP32 packed with Sensors
8:34
Carl Bugeja
Рет қаралды 110 М.
How to Connect MPU9250 to Arduino Nano
7:39
Shilleh
Рет қаралды 3,4 М.
How MEMS Accelerometer Gyroscope Magnetometer Work & Arduino Tutorial
9:57
How To Mechatronics
Рет қаралды 776 М.
3D Tracking with IMU
3:28
SebMadgwickResearch
Рет қаралды 554 М.
Synyptas 4 | Жігіттер сынып қалды| 3 Bolim
19:27
kak budto
Рет қаралды 1,2 МЛН