I have several problems with the use of Si1151。
1, SI1151 have an interrupte register IRQ_ENABLE with the address 0X0F,but I didn't find the detail information to tell you how to config it.
2,how to increase the RPOX‘s distance ? when I use the demo board ，I can detect only 25cm with this configurations
3，about the funtion of the PROX. I saw if we need use the funtion of the PROX，we need to measure twice(LED ON/OFF), so we need to calculate the value between the two detections? or I can use the Interrupt to achieve this function？how to config it？
1. Each bit in the IRQENABLE register is assigned to its corresponding measurement channel. For example, if you set IRQENABLE to 0x01, you will receive the interrupt whenever channel 0's measurement is done.
2. You can increase the integration time setting to improve the detection distance.
3. That back-to-back measurement is done internally to cancel the ambient light noise. You don't have to do any post-processing of the outputs.
So ,if we want to use si1151 to detect someone close to the device,we need to set the CH0's Interrupt &Threshold ？ Or get the CH0's data and calculate the value between the two detections with MCU? If we use the MCU calculate it all the time ,it will waste too much energy.
Look forward to your reply！
You can simply set the threshold and interrupts on Si1151 to detect objects. The sensor will interrupt the host whenever the sample reaches the threshold (there're 3 different threshold-based interrupt modes). When you build your prototype, you have to figure out what's the best threshold setting for your application during the test.