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

    Scheduled Pinned Locked Moved Units
    7 Posts 3 Posters 15.1k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                yellowelise @tchisaka
                last edited by

                @tchisaka
                you like the "improvement"?

                T 1 Reply Last reply Reply Quote 0
                • T Offline
                  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

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post