OPT4048 one shot mode

We are wondering whether it is possible to operate the OPT4048 in one-shot mode and only read out a single channel (Channel 1 - Y) for each trigger? The documentation gives the impression that all 4 channels must always be read out in One Shot Mode.

It’d be fairly simple to only print one result…do you need it to actually only read one channel for speed reasons or something?

To get it to read only one channel you’d likely need to fiddle with the SRC files and change which registers are set to be read in trigger/input mode SparkFun_OPT4048_Arduino_Library/src at main · sparkfun/SparkFun_OPT4048_Arduino_Library · GitHub

I’d start with maybe trying to alter this line SparkFun_OPT4048_Arduino_Library/src/OPT4048_Registers.h at ee45b59791b55ffa6f93f30303275d097179a4d1 · sparkfun/SparkFun_OPT4048_Arduino_Library · GitHub

Thank you for your quick response. You are right: We need to speed up our measurements. It would help to only read one channel.

We are going to have a closer look at your suggestion. Thanks :slight_smile:

1 Like