ESP8266: Adafruit VEML6070 I2C Test

Spread the love

ESP8266: Adafruit VEML6070 I2C Test

 

ESP8266: Adafruit VEML6070 I2C Test
ESP8266: Adafruit VEML6070 I2C Test


Connection:

– NodeMCU GPIO0 -> D1 -> SCL (VEML6070)
– NodeMCU GPIO4 -> D2 -> SDA (VEML6070)
– NodeMCU +3.3 -> 3V3 -> VCC (VEML6070)
– NodeMCU GND -> GND -> GND (VEML6070)

Arduino code:

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

Adafruit_VEML6070 uv = Adafruit_VEML6070();

void setup() {
Serial.begin(9600);
Serial.println("VEML6070 Test");
uv.begin(VEML6070_1_T); // pass in the integration time constant
}


void loop() {
Serial.print("UV light level: "); Serial.println(uv.readUV());

delay(1000);
}

 

ESP8266: Adafruit VEML6070 I2C Test
ESP8266: Adafruit VEML6070 I2C Test

 

ESP8266: Adafruit VEML6070 I2C Test
ESP8266: Adafruit VEML6070 I2C Test

 

 

 

Summary
ESP8266: Adafruit VEML6070 I2C Test
Article Name
ESP8266: Adafruit VEML6070 I2C Test
Description
ESP8266: Adafruit VEML6070 I2C Test
Author
Publisher Name
KMtronic LTD

299total visits,2visits today