Тёмный
No video :(

How to easily use HMC5883L Compass Sensor 

miliohm
Подписаться 12 тыс.
Просмотров 42 тыс.
50% 1

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...

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@gvnsatwik4693
@gvnsatwik4693 2 года назад
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 года назад
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 года назад
@@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 месяца назад
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 7 дней назад
Hey man! Did you solve this problem? I am also having the same issue.
@jumpingeal1928
@jumpingeal1928 3 дня назад
@@tunahanatmaca7059 Found the problem with this issue, it's because the library that this video is using is assuming the I2C device has the address 0x0C when it's 0x0D. To get it working I used the library "DFRobot_QMC5883" instead (search it up on arduino library explorer). then download their example code and on line 13 chance the VCM5883L_ADDRESS to 12 (which is the address 0x0D). lmk if this works, I might make a youtube video helping others fix it
@estudiantecomputerscience
@estudiantecomputerscience 11 месяцев назад
Thank you so much!
@sinnesia2958
@sinnesia2958 2 года назад
I think adafruit library much simpler than other libraries.
@fabse-hack
@fabse-hack 8 месяцев назад
you make an calibration of the sensor?
@Amperekaefer
@Amperekaefer 2 года назад
*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 года назад
Oder ganz weglassen, Du hast so eine schöne Stimme.
@findinmydearestbro1569
@findinmydearestbro1569 6 месяцев назад
Hi! i it just me or whenever I try to connect my arduino it turns off
@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.
@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 13 дней назад
Rodriguez Laura Martin George Thomas Dorothy
@Sabhail_ar_Alba
@Sabhail_ar_Alba Год назад
In the real world, these devices are neither accurate or stable enough.
@ptoktedia9011
@ptoktedia9011 Год назад
how? and what sensor then is reliable?
Далее
Секрет фокусника! #shorts
00:15
Просмотров 39 млн
Woman = best friend🤣
00:31
Просмотров 2,3 млн
C’est qui le plus fort 😂
00:18
Просмотров 10 млн
How to use LM35 temperature sensor with arduino
9:01
Magnetometer Errors and Calibration
18:40
Просмотров 19 тыс.
Arduino Prototyping Inputs #60: Digital Compass
5:32
Секрет фокусника! #shorts
00:15
Просмотров 39 млн