ddodge
Junior Member

Posts: 75
|
Post by ddodge on Feb 26, 2019 17:50:28 GMT -8
I purchased the new version of the Si1145 from SDL to use with my OurWeather system. This is the newer version with the Grove connector on the back. When I run the Si1145 demo script using a standard Arduino/UNO board - the device works great. When I connect it to the OurWeather ESP8266 board - the script returns: Si1145 is not ready! Are there special drivers to be used with an ESP8266? Appreciate your guidance please. Note that I did run an I2C scanner against the OurWeather board with the Si1145 attached to an I2C port and got back an address of 0x60
|
|
|
Post by SDL on Feb 27, 2019 15:18:10 GMT -8
0x60 is the right address. Did you look for a version of the SI1145 driver tailored for the ESP8266? We haven't written oen. I'm wondering if there needs to be more delays in the driver because you are ruining at 3.3V rather than at 5V.
BP
|
|
ddodge
Junior Member

Posts: 75
|
Post by ddodge on Mar 1, 2019 7:03:51 GMT -8
I found an ESP8266 script using Adafruit_Si1145 library under: github.com/coding-with-craftsmen/ESP8266-SI1145But after running their script it did not work. I also verified again that running the test script for Si1145 did not work. HOWEVER - When I added the code to OurWeather V35, the thing starts spitting out values..... So SDL: unless you have other ideas, I will consider this resolved. Vis: 628.00 IR: 2412.00 UV: 1.00 #include "SI114X.h" SI114X SI1145 = SI114X(); while (!SI1145.Begin()) { Serial.println("Si1145 is not ready!"); delay(1000); } Serial.println("Si1145 is ready!"); Si1145VIS = SI1145.ReadVisible(); Si1145IR = SI1145.ReadIR(); Si1145UV = SI1145.ReadUV()/100; Serial.print("//--------------------------------------//\r\n"); Serial.print("Vis: "); Serial.println(Si1145VIS); Serial.print("IR: "); Serial.println(Si1145IR); //the real UV value must be div 100 from the reg value , datasheet for more information. Serial.print("UV: "); Serial.println(Si1145UV);
|
|
|
Post by SDL on Mar 1, 2019 10:47:18 GMT -8
Odd, but yes, we consider it resolved!
BP
|
|