Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    LIS2HH12 embedded temperature sensor

    Scheduled Pinned Locked Moved Firmware
    enhancement
    5 Posts 4 Posters 1.8k Views 4 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.
    • bartpB Offline
      bartp
      last edited by bartp

      I noticed in the LIS2HH12 accelerometer used on the PyTrack datasheet there is an embedded temperature sensor. I managed to read the sensor using registers 0x0B and 0x0C and they change nicely when I heat/cool the PyTrack board. However, I can't find any docs on how to convert the value from that registers into a values in degrees Celcius. Any suggestions? I'm aware that it will be hard to use the sensor for measuring environment temperature as it's placed directly below the ESP32 module. Just wondering if we can measure the boards temperature.

      J 1 Reply Last reply Reply Quote 2
      • B Offline
        bucknall
        last edited by

        Hi @bartp

        We'll be releasing an update to the libraries to provide an offset using the ESP32's internal temp sensor and the pytrack temp sensor to help use it for env sensing.

        We'll be releasing the api for accessing the internal temp sensor (in micropython) very soon!

        Developer Evangelist - Pycom

        1 Reply Last reply Reply Quote 2
        • J Offline
          jmarcelino @bartp
          last edited by

          Hey @bartp

          ST advised that the temperature sensor on the LIS2HH12 isn't suitable for absolute measurements:

          "The temperature sensor can be used to measure temperature variations.
          It isn't suitable to return absolute temperatures measures. The value represents difference respect to a reference not specified value."

          bartpB 1 Reply Last reply Reply Quote 1
          • bartpB Offline
            bartp @jmarcelino
            last edited by

            @jmarcelino Not the answer I was hoping for, but i'm afraid you're right (as always..) Obrigado!

            1 Reply Last reply Reply Quote 0
            • A Offline
              Anja Keller
              last edited by

              Hey,
              I sit here an i trye to read the temparature with the LIS2HH12 but it dosent works. What did you do that the LIS2HH12 give the Temperaturen out?
              I Hope so you see this post.

              Best wishes

              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
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom