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...
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 ?
Maybe you got the qmc version, try this:
miliohm.com/how-to-use-or-fix-hmc5883l-compass-sensor-that-doesnt-work-on-arduino/
@@miliohm yeah ! Thats working thanks for the help man ...love you 😘
@@gvnsatwik4693 thanks!
@@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?
@@sanjaybalasubramanian9468 how can you tell it's original? Did you try use qmc library?
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
thank you Borat
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?
Hey man! Did you solve this problem? I am also having the same issue.
Hi! i it just me or whenever I try to connect my arduino it turns off
I think adafruit library much simpler than other libraries.
Thank you so much!
you make an calibration of the sensor?
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?
On arduino Uno, i2c only available on A4 and A5 (SDA & SCL). So you don't have another choice.
If the ultrasound is not i2c, you should move the ultrasound.
*Danke* für das interessante Video.
Ist die störende Hintergrund-Musik wirklich nötig??
danke für deinen Input, werde die Lautstärke verringern (Google Translate)
Oder ganz weglassen, Du hast so eine schöne Stimme.
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?]
Where is the code for the HMC5883L? It is not on your "full code and tutorial" link, there is only a .png of it.
You should read carefully
Is it possible that it odesn't work with an Arduino MEGA?
Should works the same way. It just use different pins
why does my arduino turn off if I connect gnd to gnd
Probably it's not gnd but vcc
same thing happens to vcc to vcc
@@miliohm
I am getting the same values repeatedly
I had the same issue, then I just connected it to 3.3v supply from Arduino and it started working.
bro code is not available on ur site
You just need to download the library and use the example there
Rodriguez Laura Martin George Thomas Dorothy
In the real world, these devices are neither accurate or stable enough.
how? and what sensor then is reliable?