dlktdr / HeadTracker

This project is built to record the orientation a FPV headset to allow the camera on your RC to follow your head movements.
GNU General Public License v3.0
361 stars 81 forks source link

impossible to calibrate and get IMU signal ABX 00071 #173

Open samsab1 opened 1 month ago

samsab1 commented 1 month ago

hello Hello everyone

I just flashed my arduino cc nano ble 33rev2 ABX 00071 with headtracker release 2.2. the flashing seems perfectly normal the calibration phase seems to be going correctly, but I ultimately believe that it is never saved correctly although I ask for this calibration to be saved.

finally, the curves remain perfectly flat and smooth when I move the ARDUINO board. who could give me light?

bluetooth seems to be ok when connecting to https://headtracker.net/v22/ 2024-07-25_14h44_20 2024-07-25_14h44_50 2024-07-25_14h45_04 2024-07-25_14h46_01 2024-07-25_14h46_311

2024-07-25_14h55_58

samsab1 commented 1 month ago

2024-07-27_13h04_59 2024-07-27_13h04_21

dlktdr commented 1 month ago

Rev2 needs to use the development firmware and gui.

https://github.com/dlktdr/HeadTracker/actions/runs/10010869506 https://github.com/dlktdr/HeadTracker/actions/runs/9124117598

Bottom of each page is the artifacts(binaries)

You can find the most recent ones under actions. To upload the firmware, you have to select local file and use the extracted one from the firmware build

samsab1 commented 1 month ago

many thanks for your answer. so my ABX00071 remains usefull? but with an other firmware; right?

can you be more accurate in your answer, i m a newbie with arduino, and a french guy who is very not fluent in english. do you mean that i keep the frontoffice software "headtracker 2.2" but i use the firmware 2024-07-27_19h29_31

why did you give 2 links? how can i understand those 2 links? best regards

samsab1 commented 1 month ago

ok Cliff, it was so easy, thanks a lot , it seems to be ok very best regards

Aaronsss commented 1 month ago

I have just ran into the same issue but dont seem to be able to resolve it with the above solution image

It is a brand new unsoldered board but I presume that doesn't matter?

It looks like it's getting no data from the Arduino for the gyro or accelerometer during cal none of the values move for either accelerometer or magnetometer

dlktdr commented 1 month ago

I have just ran into the same issue but dont seem to be able to resolve it with the above solution image

It is a brand new unsoldered board but I presume that doesn't matter?

It looks like it's getting no data from the Arduino for the gyro or accelerometer during cal none of the values move for either accelerometer or magnetometer

When you flashed it you picked the firmware labelled rev2?

You have the same abx00071 as well?

Aaronsss commented 1 month ago

Yes to both

dlktdr commented 1 month ago

Could you program a basic Arduino test program to it to see if the IMU is actually working on your board or if it's an issue on my end.

It might also help if you could put the a copy of what the serial monitor shows after a reboot of the board. Then put it in a text file and upload it here.

Aaronsss commented 1 month ago

I tried this script and get the following message over serial port https://docs.arduino.cc/tutorials/nano-33-ble-rev2/imu-gyroscope/

Started Failed to initialize IMU!

Output from the serial port with the headtracker code serial boot.txt

Broken board?

Aaronsss commented 1 month ago

A bit of further testing if I use Arduino_BMI270_BMM150 1.1.0 it gets a bit further but still does not enter if (IMU.gyroscopeAvailable()) {

Im guessing better checks were introduced from 1.1.1 onwards. It doesnt seem to want to come to life

dlktdr commented 1 month ago

Hmm yeah didn't detect it in this software either [00065693] <err> htmain: Sense_Init failed according to that log.

Kind of sounds like the baord. Can you post a close up photo of the board.

Aaronsss commented 1 month ago

IMG_20240730_234021 IMG_20240730_234011

Which ic is the imu? There is a part near the xyz logo that looks chipped. At first I thought it was an inductor but looks like a bga

dlktdr commented 1 month ago

The one near the xyz is the magnetometer, BMM150. and yeah it sure does look chipped. If it's broken and holding the I2C lines in a low state would cause the IMU(BMI270) to not work too image

Aaronsss commented 1 month ago

I will try getting the picoscope on the i2c tommorow to see if it's doing anything. If not I will initiate the return to farnell as they actually sent the rev 2 despite advertising the rev 1 part no.

dlktdr commented 1 month ago

Best of luck.

FYI the I2C is easiest to probe here. image

Aaronsss commented 1 month ago

straight after reset

When probing the bottom resistor Bottom resistor 1_1 Bottom resistor 2_1 Bottom resistor 3_1 When probing the top resistor Top resistor_1

Whilst it isnt stuck low I think it is safe to say it is not happy from those waveforms

In any case Farnell already refunded me as they sent the wrong part no. so will try and source another one and then maybe this one can do bluetooth for me :)

Aaronsss commented 1 month ago

Good news I got a new one and it all seems to be working as expected :)

Damastel commented 1 week ago

Rev2 needs to use the development firmware and gui.

https://github.com/dlktdr/HeadTracker/actions/runs/10010869506 https://github.com/dlktdr/HeadTracker/actions/runs/9124117598

Bottom of each page is the artifacts(binaries)

You can find the most recent ones under actions. To upload the firmware, you have to select local file and use the extracted one from the firmware build

Hello, I seem to be having the same issue with my IMU, I think the above suggestion will work, but the second link has an "expired" file. Would there be any chance I could get that binary file? Thanks!

dlktdr commented 5 days ago

Hello, I seem to be having the same issue with my IMU, I think the above suggestion will work, but the second link has an "expired" file. Would there be any chance I could get that binary file? Thanks!

Since it's the development version and constantly changing you can always find the most recent builds from the actions page. An action automatically compiles binaries on every change.

https://github.com/dlktdr/HeadTracker/actions

On the left pane you can select the action type you want. You will need the most recent firmware and the most recent windows gui. Always check that it is built from the "Master" branch.

image