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

    Ambient Light Sensor

    Scheduled Pinned Locked Moved Discussion
    pysenselight
    3 Posts 2 Posters 1.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.
    • A Offline
      alidaf
      last edited by

      The documentation for the light sensor says the function "returns a tuple with two values for light levels in lux". What data type are the values?
      It also says "See the datasheet for more information about the wavelengths of the two sensors." I've looked in the PySense spec sheet and the LTR329ALS spec sheet and can't find it.
      There's also no explanation of what the function parameters do, particularly integration and rate. I guess the integration parameter specifies giving an integrated value over a specified time period, perhaps in ms, but it is just a guess. I have no idea what the rate parameter could be for.
      Is there another information sheet anywhere that I've missed or could someone please fill in the blanks?
      Also, why are there 2 sensors? Are they oriented differently or tuned for different wavelengths?

      1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb
        last edited by

        You can find the datasheet for this sensor here: http://www.mouser.com/ds/2/239/Lite-On_LTR-329ALS-01 DS_ver1.1-348647.pdf

        You can see in this data sheet, a graph of the two sensors response to light wavelength. The reason there are two is because they are sensitive to different wavelengths of light. As for parameters like integration and rate, these refer directly to settings in the devices registers. I recommend reading the register descriptions in the datasheet to get a better idea of how it works.

        If you still need help after this then please let us know.

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          alidaf @seb
          last edited by

          @seb Ah, yes. I have the datasheet but I was searching through all of the text and missed the graphs. Wood vs.Trees!

          That all makes sense. many thanks.

          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