Si1145 cannot work with Arduino MKR 1310

Hello,

I try to connect si1145 module from adafruit to Arduino MKR 1310 to access the data. But I find that it cannot output stable as shown in the picture. This is a very simple test and this si1145 module can work with Arduino Nano without any problem.


The code I use is this:

#include <Wire.h>
#include "Adafruit_SI1145.h"

Adafruit_SI1145 uv = Adafruit_SI1145();

void setup() {
  Serial.begin(9600);
  while(!Serial);
  Serial.println("Adafruit SI1145 test");
  
  if (! uv.begin()) {
    Serial.println("Didn't find Si1145");
    while (1);
  }

  Serial.println("OK!");
}

void loop() {
  Serial.println("===================");
  Serial.print("Vis: "); Serial.println(uv.readVisible());
  Serial.print("IR: "); Serial.println(uv.readIR());
  
  // Uncomment if you have an IR LED attached to LED pin!
  //Serial.print("Prox: "); Serial.println(uv.readProx());

  float UVindex = uv.readUV();
  // the index is multiplied by 100 so to get the
  // integer index, divide by 100!
  UVindex /= 100.0;  
  Serial.print("UV: ");  Serial.println(UVindex);

  delay(1000);
}

What if you use "5V" instead of "VCC" ?

Or, instead, MKR's "3V3" to the UV_board's "3Vo" ?

The labels are your header-socket don't match the documentation.
The doc shows "3v3" but your header has it 'VCC' (ergo my confusion).

Oh,I measure the output the VCC pin, it is 3.3 V. If I use "5V" instead of "VCC", the phenomenon is same.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the Installation & Troubleshooting category.

Please edit your post, select all code and click the </> button to apply so-called code tags and next save your post. It makes it easier to read, easier to copy and prevents the forum software from incorrect interpretation of the code.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.