This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT3002: Resolution problem

Part Number: OPT3002

Hello, 

I have such a problem with OPT3002.
I set the smallest range manually. CONFIG REG = 0x0400 (continuous mode with conversion time = 100ms). However, I do not observe changes on bits 0, 1 and 2 in the result register. The smallest reading value is equal to 8. What am I doing wrong?

  • Hi Jark,

    Under what lighting conditions are you testing and what is the result register reading in full?

    Best,

    Alex
  • I have a pipe about 200 mm long and 20 mm diameter. At the end of this tube is a red laser (650 nm - about 0.7 normalized response). At the other end, a shorter tube is inserted with such a diameter that it enters quite tightly inside the long one. OPT3002 is located in this shorter tube.
    When the laser is turned off, the sensor reading is equal to 0. Increasing the laser current causes reading of the following values: 0, 8, 16, 24, etc., up to 4095. In this state the sensor becomes saturated.
  • Do you see the same resolution error when the device is outside the light pipe? Could you also provide the binary your are reading through i2c from the device? Is there any chance that the code is missing the last three LSB? If you can take an i2c waveform here that would be helpful in checking this.

    You can also try switching to 800ms mode. I do not think this is the problem, but at very low lux 800ms will give slightly better resolution.

    Best,

    Alex
  • Hi Alex,

    Bingo.
    Answer to question 1:
    The error occurs regardless of whether the sensor is inside or outside the pipe.

    However, after extending the conversion time to 800 ms, everything was OK.
    Alex you are great
    Thanks a lot