Hello, I am using this component: https://learn.adafruit.com/adafruit-vem ... t?view=all
What is the maximum value I can get? I am confused by what the datasheet describes about that... Can you help me?
VEML6070 maximum value
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: VEML6070 maximum value
Do you mean what is the maximum value you'll get back from some library function call? If so, what library are you using?What is the maximum value I can get?
Or do you want to know what the max range of the sensor is? For that, look in the datasheet:
https://learn.adafruit.com/adafruit-vem ... /downloads
- giorgio_new
- Posts: 76
- Joined: Mon Apr 06, 2015 9:56 am
Re: VEML6070 maximum value
Yes I mean what is the min and max values I can get from the library function call...? I use the Adafruit library.
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: VEML6070 maximum value
The reading is returned as a 16 bit unsigned integer, so possible value range is 0 to 65535.
- giorgio_new
- Posts: 76
- Joined: Mon Apr 06, 2015 9:56 am
Re: VEML6070 maximum value
Ok, but here: https://cdn-learn.adafruit.com/assets/a ... ml6070.pdf it says: 5 steps per μW/cm^2/step. So 65535/5 = 13107 μW = 13 mW, but the datasheet says maximum optical power = 328 mW... What I miss here?
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: VEML6070 maximum value
That's the possible range for the sensor. You may not see the full range of a uint16_t (what the library returns) due to actual physical limits of the sensor. That's the sort of information you'd get from the datasheet.
Please be positive and constructive with your questions and comments.