Це відео не доступне.
Перепрошуємо.

QST QMC5883L 3-Axis Digital Compass and Arduino MCU - The Details (3)

Поділитися
Вставка
  • Опубліковано 4 вер 2024

КОМЕНТАРІ • 12

  • @mikelopez9893
    @mikelopez9893 2 роки тому +3

    As always, thanks for your efforts in preparing these videos. For me, this is very much "a touch of nostalgia for the old folks." It takes me back to doing my first degree (Maths) in the UK in the 1960s. The language of choice then for all the cool kids was FORTRAN IV and the space race was very much in the public eye. Naturally, we did a lot of calculations calculating orientation and motion in 3D space. In addition to Matrices and Vectors, Quaternions were an important part of the toolkit for efficient calculation. It is strange for me to realize that the 1960s are more that half a century ago. Nowadays, of course, I'd use C++ for such calculations, but that hadn't been invented then (not even C or its predecessor BCPL). Moreover, an Arduino could easily out-perform most of the main-frame computers of that era so it's easily up to the job of what you are doing. Thanks again for taking me on a trip down memory lane!
    Regards,
    Dr Miclael (someone born in the first half of the 20th Century)

    • @robertssmorgasbord
      @robertssmorgasbord  2 роки тому +1

      As always, you are very welcome! And I have to thank you for your most interesting and extensive comments! In part 4 I will cheat a little bit and do the calculations for the matrix calibration on a PC. At it's core it's taking a calibration dataset (in my case 3512 points, created by doing 14 360° rotations in 14 different orientations) and spits out a bias matrix and offset vector. After applying those your data should approximate a sphere in 3-D space. A bit too much computation for the Arduino and a bit too much math for UA-cam (though there are specialized math channels). But ... in part 5 I will do some kind of circular (modulo) median calculation on the Arduino for filtering purposes (at least that's my current plan).

  • @העבד
    @העבד Рік тому +1

    I recently got one of these chips, your series has helped me quite a bit, I happen to notice that this specific chip (QMC5883l) seems to output data in big endian format (when I try to read using little endian - the values are not stable when the chip is stationary) despite the datasheet implying little endian.

    • @robertssmorgasbord
      @robertssmorgasbord  Рік тому +3

      And then there's the order thy bytes and the bits within the bytes are transferred via I2C ... It has been a while, but I seem to remember that I also ran into that big/small endian problem.

  • @gabriellopez785
    @gabriellopez785 8 місяців тому

    Thank you, good video, and very good explanation

  • @markingle8980
    @markingle8980 4 місяці тому

    Thanks for the information on the QMC5883L config and calibration! Will your code compile on Arduino 2.0?

    • @robertssmorgasbord
      @robertssmorgasbord  4 місяці тому

      I have no idea. I'm still on 1.8.19. One thing I know is that Arduino no longer wants you to use their "boolean" type and that you should use the standard C++ "bool". But replacing that in the code shouldn't be a problem.

    • @markingle8980
      @markingle8980 4 місяці тому

      @@robertssmorgasbord Thanks! I had to also add Arduino.h to eliminate most of the compile errors. There were several others as well. I think its best to use 1.8.19....I am having all sorts of issues with 2.0 so I recommend to stick with 1.8.19 as long as you can.

  • @jaydipkavaiya6854
    @jaydipkavaiya6854 Рік тому

    Thank you for detailing in QMC5883l can I get Version5 code sample so I Can find Magnetic Heading or your Email so I can chat over there. Please

    • @robertssmorgasbord
      @robertssmorgasbord  Рік тому +2

      You're welcome! All versions are available on my Google drive drive.google.com/drive/folders/12kyof0Hg6CITjcA6A3DgAFln-HouaEX8?usp=sharing