🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    THERMAL UNIT (MLX 90640) does not work.

    Units
    3
    7
    12.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tchisaka
      last edited by

      I have M5Stack Gray and Thermal Unit.
      I use Arduino IDE and I installed Arduino core for ESP32 using the board manager.

      I tried the example sketch that was included with M5Stack library.
      https://github.com/m5stack/M5Stack/tree/master/examples/Unit/MLX90640

      I find that the THERMAL UNIT works or not is depending on the version of the ESP32 software.

      • ESP32 v1.0.0 : not work
      • ESP32 v1.0.1-rc1 : work
      • ESP32 v1.0.1-rc2 : not work
      • ESP32 v1.0.1-rc3 : not work
      • ESP32 v1.0.1-rc4 : not work
      • ESP32 v1.0.1 : not work

      Only the v1.0.1-rc1, the Thermal Unit works. But I do not find the reason.

      I want to work the Thermal unit with lastest version of ESP32 software.
      Please give me some advice.

      1 Reply Last reply Reply Quote 0
      • yelloweliseY
        yellowelise
        last edited by

        This my version (improved) can you try?
        https://github.com/yellowelise/M5Stack-Thermal-MLX90640

        T 1 Reply Last reply Reply Quote 0
        • H
          heybin
          last edited by

          hello, change the MLX90640_I2C_Driver.cpp line 46

           if (Wire.endTransmission(false) != 7)
           to
           if (Wire.endTransmission(false) != 0)
          

          because in ESP32 v1.0.1-rc1, Wire.endTransmission(false) ok will return 7 not 0, in last, is different

          T 1 Reply Last reply Reply Quote 0
          • T
            tchisaka @yellowelise
            last edited by

            @yellowelise
            Thank you !
            Using your programs, I got the data from MLX 90640.

            yelloweliseY 1 Reply Last reply Reply Quote 0
            • T
              tchisaka @heybin
              last edited by

              @heybin

              I fixed the code according to your advice.
              I got data from MLX 90640 with Arduino core ESP32 v1.0.1.
              Thank you !

              1 Reply Last reply Reply Quote 0
              • yelloweliseY
                yellowelise @tchisaka
                last edited by

                @tchisaka
                you like the "improvement"?

                T 1 Reply Last reply Reply Quote 0
                • T
                  tchisaka @yellowelise
                  last edited by

                  @yellowelise

                  I was glad that I could understand why I could not get the data.
                  Thank you.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post