How to easily use HMC5883L Compass Sensor

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • HMC5883L is a 3 axis digital compass. It can detect movement in 3 axis and also extract heading degree data. In this video, we will learn how to use this sensor with an Arduino.
    Join this channel to support us or to get access to perks:
    / @miliohm
    Full code and tutorial :
    miliohm.com/ho...

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

  • @gvnsatwik4693
    @gvnsatwik4693 2 года назад +3

    Bro i tried exactly same but it isnt displaying any information other than sensor name and other till resolution .but i am not getting any values of co ordinate can you help me ?

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

      Maybe you got the qmc version, try this:
      miliohm.com/how-to-use-or-fix-hmc5883l-compass-sensor-that-doesnt-work-on-arduino/

    • @gvnsatwik4693
      @gvnsatwik4693 2 года назад +2

      @@miliohm yeah ! Thats working thanks for the help man ...love you 😘

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

      @@gvnsatwik4693 thanks!

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

      @@miliohm Mine is original one which is Hmc but still I'm not getting any x y z values. It prints the board info alone as he said. What should I do now?

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

      @@sanjaybalasubramanian9468 how can you tell it's original? Did you try use qmc library?

  • @martinmartin38077
    @martinmartin38077 Год назад

    Thanks for the guide. Very useful. I am an Arduino 'virgin', and this was my first attempt to get something working for a compass on my telescope.
    I had an issue with uploading the library. I kept getting the error "exit status 1". I had to uninstall my CH340 COM driver, and install one independently. Once I got passed that issue, all worked great. Thanks for making my first steps easy. I think the chip needs calibrating. That would be a useful addition to this guide

  • @juremyclorkson3518
    @juremyclorkson3518 2 месяца назад

    thank you Borat

  • @yugthebuilder2464
    @yugthebuilder2464 4 месяца назад +1

    I tried same but with esp32 board and the heading is being displayed very wrong. It is stuck at 237.61. no matter how much I rotate the magnetometer horizontally, it remains the same.. I tried removing power of magnetometer. Amazingly, the reading was being updated the same even when the magnetometer was removed. I am stuck here and it doesn't seem to work. What do I do?

    • @tunahanatmaca7059
      @tunahanatmaca7059 День назад

      Hey man! Did you solve this problem? I am also having the same issue.

  • @findinmydearestbro1569
    @findinmydearestbro1569 6 месяцев назад

    Hi! i it just me or whenever I try to connect my arduino it turns off

  • @sinnesia2958
    @sinnesia2958 2 года назад +2

    I think adafruit library much simpler than other libraries.

  • @estudiantecomputerscience
    @estudiantecomputerscience 10 месяцев назад

    Thank you so much!

  • @fabse-hack
    @fabse-hack 7 месяцев назад

    you make an calibration of the sensor?

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

    how do change to different Apins? I'm already using A4 and A5 for the ultra sound. I'd like to use A1 and A2 for the mag sensor - do you know if this is possible?

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

      On arduino Uno, i2c only available on A4 and A5 (SDA & SCL). So you don't have another choice.

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

      If the ultrasound is not i2c, you should move the ultrasound.

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

    *Danke* für das interessante Video.
    Ist die störende Hintergrund-Musik wirklich nötig??

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

      danke für deinen Input, werde die Lautstärke verringern (Google Translate)

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

      Oder ganz weglassen, Du hast so eine schöne Stimme.

  • @yusufmaulana960
    @yusufmaulana960 Год назад

    bang, coba bkin lagi dong, tapi kali ini ditest ama interferensi magnet permanen. [kompasnya error ngak kalau deket ama magnet, dan kalau ada eroor, berapa jarak minimum agar error itu hilang?]

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

    Where is the code for the HMC5883L? It is not on your "full code and tutorial" link, there is only a .png of it.

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

      You should read carefully

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

    Is it possible that it odesn't work with an Arduino MEGA?

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

      Should works the same way. It just use different pins

  • @findinmydearestbro1569
    @findinmydearestbro1569 6 месяцев назад

    why does my arduino turn off if I connect gnd to gnd

    • @miliohm
      @miliohm  6 месяцев назад

      Probably it's not gnd but vcc

    • @findinmydearestbro1569
      @findinmydearestbro1569 6 месяцев назад

      same thing happens to vcc to vcc
      @@miliohm

  • @dharsonraju5390
    @dharsonraju5390 Год назад

    I am getting the same values repeatedly

    • @jayvratsinhjadeja8299
      @jayvratsinhjadeja8299 Год назад

      I had the same issue, then I just connected it to 3.3v supply from Arduino and it started working.

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

    bro code is not available on ur site

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

      You just need to download the library and use the example there

  • @NancyDell-m6y
    @NancyDell-m6y 7 дней назад

    Rodriguez Laura Martin George Thomas Dorothy

  • @Sabhail_ar_Alba
    @Sabhail_ar_Alba Год назад +2

    In the real world, these devices are neither accurate or stable enough.

    • @ptoktedia9011
      @ptoktedia9011 Год назад +1

      how? and what sensor then is reliable?