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

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 20

  • @peterdlynes
    @peterdlynes 8 месяцев назад

    Thank you Robert.

  • @resiggy13
    @resiggy13 2 года назад

    Really nice series - thank you!

  • @andymouse
    @andymouse 2 года назад

    I find these very useful...cheers.

    • @robertssmorgasbord
      @robertssmorgasbord  2 года назад

      And we haven't even read any magnetic data, nor calculated a compass direction (which will happen in part 3). I really thought that the whole thing will be done in 2 or 3 parts, but I'm currently planning for 4 to 5 parts. These digital compasses are beasts.

    • @andymouse
      @andymouse 2 года назад

      @@robertssmorgasbord Indeed they are and Sunday's wouldn't be the same without your 'deep dives' !...cheers.

    • @robertssmorgasbord
      @robertssmorgasbord  2 года назад

      @@andymouse Thanks! Your support is really cheering me up 😀

  • @AdilKhan-jp7hn
    @AdilKhan-jp7hn 4 месяца назад

    I am getting an error for QMC5883l_v8 file "Compilation error: 'boolean' does not name a type; did you mean 'bool'?" Not sure why?

    • @robertssmorgasbord
      @robertssmorgasbord  4 месяца назад

      The type "bool" is the offical C++ type for booleans. The Arduino IDE adds the alias "boolean" for it. However, meanwhile Arduino discourages its use ( www.arduino.cc/reference/en/language/variables/data-types/boolean/ ). If I remember right it helps sometimes to explicitly include "Arduino.h". Or, just replace all "boolean" in the code by "bool".

  • @ozil3131
    @ozil3131 4 месяца назад

    QMC5883L::QMC5883L(TwoWire* wire,
    byte default_address)
    : wire(wire),
    device_address(default_address)
    {
    }
    'byte' has not been declared

    • @robertssmorgasbord
      @robertssmorgasbord  4 месяца назад

      What IDE/complier are you using? "byte" is a type defined within the Arduino IDE. If you want to stay within the C++ standard use "unsigned char" or "uint8_t" instead (should work with any C++ compiler). Or simply put a "typedef uint8_t byte;" at the top of the .h file.

  • @David_11111
    @David_11111 2 года назад

    yay

  • @electronic7979
    @electronic7979 2 года назад +1

    👍

  • @morgendavid
    @morgendavid 2 года назад

    that's seems really nice.
    but got problem with. seems missing something.
    i can't compile... i got
    'boolean' does not name a type; did you mean 'bool'?
    even if i add "arduino.h" i fail into some more errors...
    need some help..

    • @robertssmorgasbord
      @robertssmorgasbord  2 года назад +1

      Already answered in the comment section of part 2, but here it is again:
      That's curious! I'm assuming you're using the Arduino IDE since you're including "arduino.h". "boolean" is an Arduino IDE data type and doesn't require to include "arduino.h" ( www.arduino.cc/reference/en/language/variables/data-types/boolean/ ). "bool" is the standard c++ datatype and should work in any IDE. Which Arduino IDE version are you using (I'm using 1.8.19)? You could try to replace all "boolean" by "bool", but as mentioned that shouldn't be necessary.

  • @HdunshTshsnna
    @HdunshTshsnna 10 дней назад

    Martinez Margaret Lopez Brenda Anderson Nancy