Open Bacon8tor opened 4 years ago
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
About to start calibrating gyro and accelerator, keep device flat and still!!! Starting.... Finnished in 0.4 seconds
which doesnt seem right to me, the mag calibration runs for 22 seconds.
after I run those I zero out looking at the screen. Once I have it connected to Opentrack, it connects and pushes data, pitch and roll seem good, but yaw doesnt.
If I turn to the left the tracker turns to the left but then quickly goes back to center without me moving my head back to center. and looking at the webpage, yaw will move to -51deg, then quickly to -8deg without me moving.
I suspect the accel and gyro calibration are not running. Although I dont know why, I have tried several times and it deosnt seem to be updating and I assume this is why the self test shows values and they dont change cause its using the default ones stored.
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. The 6050 does have internal quaternionFilters that seems to be better...
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
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. The 6050 does have internal quaternionFilters that seems to be better...
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.