September 17, 2022, 1:33pm
I have purchased a Grove Sunlight Sensor Si1145 which uses Si1151. Cloned the demo project Seeed_Python_SI114x. In seeed_si114x.py I changed the code:
SI114X_ADDR = 0x60 to
#SI114X_ADDR = 0x60
SI114X_ADDR = 0x53
if self._ReadByte(SI114X_PART_ID) != 0X45: to
if self._ReadByte(SI114X_PART_ID) != 0X45 and self._ReadByte(SI114X_PART_ID) != 0X51:
to get the code running the desired way on a RaspBerry 4 B. But now all values of the sensor show 0. Might the sensor defect? Or has the code to be changed?
September 25, 2022, 4:46pm
Same issue here. Seems to be returning that 0x51 indeed but can’t find it in the data sheet at all
Hi, I’m facing a similar problem, got the Si1151 sensor, and found there is no library available. I’m not able to go from there. Did you get it to work? And if so, how can I change these addresses myself to achieve similar results
February 28, 2023, 8:10pm
I’m sorry, but whatever I tried, nothing helped. I hoped to get an answer or an advice here, but as you can read, very little interest around…
After further struggling yesterday, I did manage to get it working(at least it outputs sensible numbers, haven’t verified it yet).
I found this blog post
RaspberryPi Zero WHとSunlightセンサで紫外線などを測定してみた - Qiita
It’s in some Asian language i’m not familliar with, but google translate helped me out with that.
It linked me to this page:
And the code there worked for me!
Hope this helps you too.
Thx a lot, for this information. I’ll try it and inform here, if and how it works.