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

    Bad temperature

    Scheduled Pinned Locked Moved FiPy
    3 Posts 2 Posters 123 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.
    • R Offline
      radossslaw
      last edited by

      I have a problem with my fipy and pysense . This code I have from pycom-libraries-master (github)
      I don't have a error but temperature is too high . I have other thermometer which shows 20 degrees C.

      from pysense import Pysense
      from LIS2HH12 import LIS2HH12
      from SI7006A20 import SI7006A20
      from LTR329ALS01 import LTR329ALS01
      from MPL3115A2 import MPL3115A2,ALTITUDE,PRESSURE
      
      py = Pysense()
      mp = MPL3115A2(py,mode=ALTITUDE) # Returns height in meters. Mode may also be set to PRESSURE, returning a value in Pascals
      si = SI7006A20(py)
      lt = LTR329ALS01(py)
      li = LIS2HH12(py)
      
      print("MPL3115A2 temperature: " + str(mp.temperature()))
      print("Altitude: " + str(mp.altitude()))
      mpp = MPL3115A2(py,mode=PRESSURE) # Returns pressure in Pa. Mode may also be set to ALTITUDE, returning a value in meters
      print("Pressure: " + str(mpp.pressure()))
      
      print("Temperature: " + str(si.temperature())+ " deg C and Relative Humidity: " + str(si.humidity()) + " %RH")
      print("Dew point: "+ str(si.dew_point()) + " deg C")
      t_ambient = 24.4
      print("Humidity Ambient for " + str(t_ambient) + " deg C is " + str(si.humid_ambient(t_ambient)) + "%RH")
      
      print("Light (channel Blue lux, channel Red lux): " + str(lt.light()))
      
      print("Acceleration: " + str(li.acceleration()))
      print("Roll: " + str(li.roll()))
      print("Pitch: " + str(li.pitch()))
      
      print("Battery voltage: " + str(py.read_battery_voltage()))
      
      

      cd6ec02b-081a-4efd-a1bd-1ba2ac09e384-image.png

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @radossslaw
        last edited by

        @radossslaw This issue has been reported and discussed before on the forum. It results from an unfavorable design and layout of the pysense board. The temperature sensor is heated up by the other components on the board and, depending on the orientation, the FiPy. That means, that you cannot use it to take the ambient temperature.
        In any case, temperature sensors should be kept away from circuits which produce heat. Therefore, a sensor like the DS18b20 connected to the board with a suitable long wires, allowing a proper placement, will give better results.

        1 Reply Last reply Reply Quote 1
        • R Offline
          radossslaw
          last edited by

          thank you for fast answer

          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