Search found 2 matches

by iv6455434
Tue Sep 03, 2024 4:10 pm
Forum: ESP-IDF
Topic: SI1145 always read the same value
Replies: 3
Views: 1530

Re: SI1145 always read the same value

In si1145_read_register(), i2c_master_read(cmd, data, sizeof(data), ...) should be i2c_master_read(cmd, data, sizeof(*data), ...) Thank you¡¡ I didn't notice about it. Now, I read correctly the register but the values that I get are wrong. For example, the UV index I got was 18 (much higher than ex...
by iv6455434
Mon Sep 02, 2024 4:37 pm
Forum: ESP-IDF
Topic: SI1145 always read the same value
Replies: 3
Views: 1530

SI1145 always read the same value

Hello! I am trying to read the values of UV, VIS and IR from the SI1145 (I2C device), but I always get the same results. The config values have been taken from the SI1145 datasheet. I think that could be the problem and I am not understanding well the configuration. I am coding on Visual Studio with...