Giter Site home page Giter Site logo

Comments (2)

Griizly avatar Griizly commented on July 29, 2024

I received my sensor,started playing around with it, it seems to work with simple reptile tube ( arcadia call them Shadedweller pro, they are 8W, 400lumen, 6000kelvin )
I get a UVI of +/- 0.7 at 25cm from the light source so that seems fine

But for my other tubes ( arcadia t5 desert 12%, 54w, 2400 lumen, 7000kelvin ) I should get something around 8.5 UVI at 30cm from light source and I get something around 2.5 2.7 UVI

If I multiply the value I get for those tube by ~3 I almost get what I should expect but i'm not sure that it is the right way to do it because if I multiply by 3 then the values for my shadeweller is wrong...

Any tips to share ?

FYI, these tubes are "white" and therefore does not output infrared
image

from ltr390.

floatAsNeeded avatar floatAsNeeded commented on July 29, 2024

I don't know if that can help your issue, but it could be related to the WFAC value. Se library notes in h file

#define UV_SENSITIVITY 1400

#define WFAC 1

  • For device under tinted window with coated-ink of flat transmission rate at 400-600nm wavelength,
  • window factor is to compensate light loss due to the lower transmission rate from the coated-ink.
  • a. WFAC = 1 for NO window / clear window glass. 
    
  • b. WFAC >1 device under tinted window glass. Calibrate under white LED. 
    

Which is used in the calculation of UVI.

float uvi = (float)(raw) / ((gain_factor[_gain] / gain_factor[LTR390_GAIN_18]) * (res_factor[_resolution] / res_factor[LTR390_RESOLUTION_20BIT]) * (float)(UV_SENSITIVITY)) * (float)(WFAC);
return uvi;

So you need to change it to whatever number is right for you. You could change the library to make WFAC a variable so you can change it when you need to in your code.

from ltr390.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.