QMC5883L 3-Axis Magnetic SensorsSupport #16705
Replies: 11 comments 19 replies
-
Unless I read too fast, there isn't yet any magnetometer in Tasmota so that could be a nice addition. |
Beta Was this translation helpful? Give feedback.
-
OK, I will try it. Always good to learn new things :-) Helge |
Beta Was this translation helpful? Give feedback.
-
Then one additional question, sorry for that. I used for the driver file (they are numbered) the 99 because this number was free, but now no longer now. There ist a free number 33. Can I used this number for the driver (and name) or is there are rule how these numbers are assigned? Helge |
Beta Was this translation helpful? Give feedback.
-
One additional question. Is there a easy way to build all enviroments (languages version, ESP32, ...) in one shot ,like it was possible with a classical makefile with command "build all" . I use VSC as editor with Platformio. Helge |
Beta Was this translation helpful? Give feedback.
-
Hi, i also want to use this sensor. Is it already integrated in the DEV-Brunch so i can test it? Thank you |
Beta Was this translation helpful? Give feedback.
-
I did a little test with my board (HMC5883L). It seems to work. But I miss direction. Are special settings required for this board Thank you for the work |
Beta Was this translation helpful? Give feedback.
-
My understanding is that QmC5883 may be actually differrent from HMC which no more manufactured If you know an actual code/driver that work with your device we can have a look, compare and amend if needed |
Beta Was this translation helpful? Give feedback.
-
Yes, I removed the whole compass staff from the driver to keep the driver small and simple. The other point is to have exact values you need an so called angle of declination which has to be to added in the calculation which depends from you location on the earth. https://www.circuitbasics.com/how-to-setup-a-magnetometer-on-the-arduino/ |
Beta Was this translation helpful? Give feedback.
-
Yes, your first calculation was wrong, but now you used the code I removed. Helge |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi, Beste regards |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to observe my gasmeter at home. I have here in Germany a model (Piepenburg & others) which have a build magnet which gives the opportunity to detect the change of the counter.
As sensor I used the QMC5883L, because is cheap to get from china (3€) and works very well to dedect the magnet. I tried as well using hall sensors but there was to much noising which needs a really big effort in software.
I like Tasmota very well and and wanted to use it together with the ESP also here, but Tasmota not support such sensors.
Therfore I checked to add the support, found another impementation and checked several ardruino libraries. From all together I wrote a new driver to support this sensor.
Sensormodul is now ready and installed on the gasmeter. I used a Wemos and but all together in self printed housing.
Question from site is, make es sence to add the driver to the tasmota github repository?
I'm not so familar with Github.
Regards
Helge
Beta Was this translation helpful? Give feedback.
All reactions