logo elektroda
logo elektroda
X
logo elektroda

[Solved] Custom compilation of ESP Easy with support for the HMC5883L magnetometer

Ognik69 1551 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18495236
    Ognik69
    Level 10  
    Hello.
    I have correctly working ESP8266 modules with ESP Easy uploaded. The modules work with Domoticz. It supports correctly the i2c sensor BME280. I need to add an i2c magnetometer reading there, based on the HMC5883L chip. Unfortunately the uploaded soft does not support this. I downloaded the latest version of ESPEasy_mega-20200222, and nothing either. I can see that there is this module in the sources, but I can't compile it. please give me some tutorials, or maybe someone has such a ready-made soft
  • ADVERTISEMENT
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #4 18496536
    Ognik69
    Level 10  
    That's how I checked.
    I even downloaded Atom, which took an hour to download the add-ons and then crashed my PC. I finally blew it off and installed Visual Studio Code from Platformio. But I can't cope with that. I've never compiled anything. Maybe some instructions, tutorials preferably in Polish and preferably for the ESP8266 platform.

    Added after 2 [hours] 35 [minutes]: .

    here https://github.com/zenmanenergy/ESP8266-Ardui...master/helloworld_compass_hmc5883L/HMC5883L.h
    and here https://www.electronicwings.com/nodemcu/magnetometer-hmc5883l-interfacing-with-nodemcu
    For NodeMCU, but it's probably possible to convert to ESPEasy.
    Somewhere else I saw code for Adafruit but I can't find it
  • ADVERTISEMENT
  • #6 21006631
    Ognik69
    Level 10  
    I am closing the topic because a plugin for ESP Easy has appeared which supports the HMC5883.
    For your information, the plugin is in the collection E compilation and works ONLY with the original HMC5883, i.e. the kind of module that has a chip with L883 written on it. Unfortunately, most magnetometer modules available contain a fake QMC5883 and this one is not supported.
    Best regards
    Marcin
ADVERTISEMENT