Open oiueei opened 1 year ago
Is this lib/sensor compatible with SAMD21-based boards like the Arduino MKR Wifi 1010?
I have no problems when I run the Si1151 demo on the Arduino UNO (Microcontroller = ATmega328P), the Glove Sunlight sensor works fine, and I can receive the measurements.
However, the same code in the Arduino MKR Wifi 1010 (Microcontroller = SAMD21) doesn't go well, and I get these errors in the compilation.
Is there an alternative to make this sensor work on the Arduino MKR Wifi 1010?
I was getting the same error with my Uno WiFi Rev.2. I fixed this by editing line 161 and 226 in the Si115X.cpp file. You need to add your boards microcontroller/microchip (idk which it is) to those lines, the same way it is done for the other boards.
In my case I had to add || defined(__AVR_ATmega4809__)
to the end of line 161 and 226.
In your case I guess it would be || defined(__SAMD21__)
Hopefully this fixes your problem if you're still looking for a solution.
Hi, I'm no expert but I can't get it to work either Grove Sunlight with Seeed XIAO. I tried to edit line 161 and 226 in the Si115X.cpp file. The compilation is successful but the sensor does not work. Please, could you help me?
I'm no expert myself unfortunately, I've had no experience with Arduino based projects before what I'm currently working on so it's hard for me to say why it's not working. Could be an issue with the sensor itself. My sunlight sensor broke in less than a month for seemingly no reason and I had to buy a new one. Maybe you got the same issue? Double check you have everything wired correctly first though and that the right board is selected in the IDE. Might also be that the microchip isn't simply defined as "(SAMD21)" and there's some prefix or suffix to it. Hope you figure it out.
Thank you for your reply. I tried 3 sensors and they all give problems. I just can't solve it.
I think I fixed it. The name to enter is defined(seeed_XIAO_m0)
Hi,
I am working on esp8266 board. I fixed the compilation error by editing line 161 and 226 in the Si115X.cpp file by adding || defined(ESP8266). However, I got 0 for visible, IR, and UV index data.
Can you help me?
Thanks, Ghada
Hi,
I tried everything, but I couldn't get the Grove sunlight Sensor v2.0 working on my Arduino MKR 1010 with (or without) the MKR Carrier...
Please, could you help me?
There are no problems running the Si1151 example on an Arduino UNO... Is it not running because Arduino MKR Wifi 1010 has two other i2c devices onboard?
Here is the whole story: Here is the whole story: https://forum.arduino.cc/t/si115x-not-running-on-mkr-wifi-1010/1051508