Greetings - I have been sifting through documentation but have not been able to locate the range of values produced by AS726x devices (I understand zero as one likely endpoint). This includes not being able to locate ref to SENSOR_MAX used in the tft-display example. Aside from map(), I would like to manipulate the output, especially when applying GAIN.
Would someone point me towards the pertinent reference or data?
Thanks,
Sean
AS7262 (AS726x) value range
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- blnkjns
- Posts: 963
- Joined: Fri Oct 02, 2020 3:33 am
Re: AS7262 (AS726x) value range
Did you check this document:
https://ams.com/documents/20143/36005/A ... 6_2-00.pdf
It outputs float, I don't think MAP works well with floats.
https://ams.com/documents/20143/36005/A ... 6_2-00.pdf
It outputs float, I don't think MAP works well with floats.
- ExPrimary
- Posts: 4
- Joined: Sun Nov 20, 2016 1:28 am
Re: AS7262 (AS726x) value range
@blinkjns - yes, I have been looking through the data sheet you reference but have not found a limit, maybe I am just missing it in there.
I manage the float well by converting and just taking the integer. That said, I have seen channel values >7000 at GAIN 0 (1x) and pg-11 of data sheet has some performance test conditions without max values. I have spike the individual channels to look for a limit but it looks like the is a future(s) that compensate for high values - I made channels go quiet for a bit and there is quite a lag in resetting the ground state (e.g. start dark with ~0 for channel value, spike the sensor above a few thousand counts, and the value takes many minutes to return to anything remotely near zero; a good safety mechanism but difficult to assess.
I manage the float well by converting and just taking the integer. That said, I have seen channel values >7000 at GAIN 0 (1x) and pg-11 of data sheet has some performance test conditions without max values. I have spike the individual channels to look for a limit but it looks like the is a future(s) that compensate for high values - I made channels go quiet for a bit and there is quite a lag in resetting the ground state (e.g. start dark with ~0 for channel value, spike the sensor above a few thousand counts, and the value takes many minutes to return to anything remotely near zero; a good safety mechanism but difficult to assess.
- crmoratelli
- Posts: 1
- Joined: Fri Jul 23, 2021 12:49 pm
Re: AS7262 (AS726x) value range
Hi.
@ExPrimary, I have the same question. Did you find the range values?
regards.
@ExPrimary, I have the same question. Did you find the range values?
regards.
Please be positive and constructive with your questions and comments.