-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shows MPU-9250 connected.. but no YPR info showing #1
Comments
well after just going thru the code line by line, backtracing. The interrupt pin should be connect. and now it is showing the YPR values. but Hitting calibrate still shows unknown error on webpage, and in serial monitor finishes in .4 seconds Again if possible would love a litle help or point in something I can try to do. maybe even run a calibration then be able to plug the numbers into the code, to be able to test it if fixes the issue |
Hey, I never could get the MPU9250 working really well and I think there is something wonky on the library I used . I always head getter result with the 6050, but that one always start to drift away. Note: When doing the figure 8, it's lik s roller coaster figure 8. The, do move it up-side-down. Essentially the device need to be pointed in all directions... Just to be clear :) The interupt pin indeed should be connected : See https://github.com/rvt/headtracker/blob/master/src/main.cpp top few lines The very quick calibration when laying still is 'correct', however I noticed that the 6050 takes a much longer time and generally feels more stable. All-in-all I could never get this head tracking itself to work rock stable.. Always some drift or some oddity when playing for a longer period |
Thanks for replying, yea I did find that line for the interrupt. I have been using the 6050, and have he same experience with drift. it works fairly well but the drift creeps so have to recenter it while playing. Thats why I tried the 9250 because the mag suppose to help with that, but i am having the same problems with the libraries, and just in general getting it to work. I had a thought about trying to use them both a 6050 and 9250 but that see counter-intuitive since the 9250 should be a 6050 plus a mag, but doesn't seem that way. The instant recentering Im getting with this project seems really weird, its not like the normal drift its almost instant I turn the device and once I stop its instantly moving back to center. Not sure whats causing that. But holding it in one spot seems fairly stable , the 6050 for me starts to drift quite a bit, and havent been able to find a good sketch that can somehow compensate for it. Wireless head tracking has been a game changer tho, even given the struggle. I love not having a wire and all and all im still in this way less than a trackIr system. |
I have uploaded the sketch, and connected to wifi, accessing the setup pages. Under tracker yaw , pitch and roll all show 0degrees. When I click calibrate the webpage says "Unknown error" but the Serial Monitor goes through the calibration, leaving on flat surface then waving in figure 8.
I am using a Wemos d1 r1 mini https://miro.medium.com/max/2576/1*YKc8KpAfMrlhrOLmNjdRwQ.png and mpu 9250
pins are wired as such
wemos ----- mpu9250
GND ---- GND
3.3v --- VCC
D1 ---- SCL
D2 --- SDA
I wasnt sure if the INT pin was needed but doesnt look like it. I also tried opening up opentrack but still there no data looks like it was being sent as it stayed at 0 for all YPR. I couldnt find a good place to try and debug and possible Serial print the data from the mpu.
Appreciate any help, this project is exactly what i started to try and do myself, but came across this and was way more put together than what I had.
here are a few pictures of the webpage
https://i.imgur.com/QK052Dx.png
https://i.imgur.com/8nK548w.png
here is the serial monitor output.
The text was updated successfully, but these errors were encountered: