How to easily use HMC5883L Compass Sensor

  Рет қаралды 46,725

miliohm

miliohm

Күн бұрын

Пікірлер: 45
@gvnsatwik4693
@gvnsatwik4693 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 3 жыл бұрын
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 3 жыл бұрын
@@miliohm yeah ! Thats working thanks for the help man ...love you 😘
@miliohm
@miliohm 3 жыл бұрын
@@gvnsatwik4693 thanks!
@sanjaybalasubramanian9468
@sanjaybalasubramanian9468 3 жыл бұрын
@@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 3 жыл бұрын
@@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
@sre2007
@sre2007 2 ай бұрын
My hmc5883L is 3V OR 5V so I suggest the wiring diagram be changed to reflect this option. I think using the 3V option is better in a "magnetic" setting, since 5V would create more EMF in it's own operation, right?
@fabse-hack
@fabse-hack 11 ай бұрын
you make an calibration of the sensor?
@keithschaub7863
@keithschaub7863 Жыл бұрын
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 Жыл бұрын
On arduino Uno, i2c only available on A4 and A5 (SDA & SCL). So you don't have another choice.
@miliohm
@miliohm Жыл бұрын
If the ultrasound is not i2c, you should move the ultrasound.
@yugthebuilder2464
@yugthebuilder2464 8 ай бұрын
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 4 ай бұрын
Hey man! Did you solve this problem? I am also having the same issue.
@jumpingeal1928
@jumpingeal1928 4 ай бұрын
@@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
@santiagobermudez7290
@santiagobermudez7290 3 ай бұрын
@@tunahanatmaca7059 i have the same problem i tried with esp32 and arduino, it gives me the same value. i think the sensor is damaged.
@estudiantecomputerscience
@estudiantecomputerscience Жыл бұрын
Thank you so much!
@findinmydearestbro1569
@findinmydearestbro1569 10 ай бұрын
Hi! i it just me or whenever I try to connect my arduino it turns off
@sinnesia2958
@sinnesia2958 3 жыл бұрын
I think adafruit library much simpler than other libraries.
@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
@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
@Amperekaefer
@Amperekaefer 3 жыл бұрын
*Danke* für das interessante Video. Ist die störende Hintergrund-Musik wirklich nötig??
@miliohm
@miliohm 3 жыл бұрын
danke für deinen Input, werde die Lautstärke verringern (Google Translate)
@Amperekaefer
@Amperekaefer 3 жыл бұрын
Oder ganz weglassen, Du hast so eine schöne Stimme.
@juremyclorkson3518
@juremyclorkson3518 6 ай бұрын
thank you Borat
@findinmydearestbro1569
@findinmydearestbro1569 10 ай бұрын
why does my arduino turn off if I connect gnd to gnd
@miliohm
@miliohm 10 ай бұрын
Probably it's not gnd but vcc
@findinmydearestbro1569
@findinmydearestbro1569 10 ай бұрын
same thing happens to vcc to vcc @@miliohm
@_ShihabulEhsan
@_ShihabulEhsan 3 ай бұрын
Thank you fron showmik vai and me
@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?]
@mrbhakcho
@mrbhakcho 2 жыл бұрын
bro code is not available on ur site
@miliohm
@miliohm 2 жыл бұрын
You just need to download the library and use the example there
@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.
@NancyDell-m6y
@NancyDell-m6y 4 ай бұрын
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 Жыл бұрын
how? and what sensor then is reliable?
Magnetometer Errors and Calibration
18:40
MicWro Engr
Рет қаралды 20 М.
GY-271. Digital magnetometer and Arduino. Make a compass
12:09
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
QST QMC5883L 3-Axis Digital Compass and Arduino MCU - The Basics
23:59
Robert's Smorgasbord
Рет қаралды 12 М.
A Quick ESP32 Compass Project with a GY-271 Magnetic Sensor Module
22:49
Retro Tech & Electronics
Рет қаралды 4,2 М.
Arduino Prototyping Inputs #60: Digital Compass
5:32
Marc de Vinck
Рет қаралды 12 М.
Mailbag: QMC5883L 3-Axis Compass Module (Schematic, Tests, Arduino Library)
15:40
Adventures in Science: Using a Magnetometer as a Compass
7:45
SparkFun Electronics
Рет қаралды 47 М.
Use the HMC5883L 3-axis sensor with an Arduino - Tutorial
15:12
Brainy-Bits
Рет қаралды 142 М.