待補....
GY-30 BH1750FVI 光強度模組 電數位光強度檢測模組 光照度感測器 GY-30光強度模組 BH1750FVI 光照感器模組 數字光強度
採用ROHM原裝BH1750FVI晶片, 供電電源 :3-5v , 光照度範圍:0-65535 lx , 感測器內置16bitAD轉換器 , 直接數字輸出,省略複雜的計算,省略標定, 不區分環境光源。
- 接近於視覺靈敏度的分光特性
- 可對廣泛的亮度進行1 LUX的高精度測定
- 標準NXP IIC通信協定
- 模組內部包含通信電平轉換,與5v單晶片直接連接
example程式碼
/*
VCC >>> 3.3V
SDA >>> A4
SCL > >> A5
addr >> A3
Gnd >>>Gnd
Written By : Mohannad Rawashdeh 作者
*/
//請先導入函示庫
#include <Wire.h>
#include <BH1750FVI.h>
BH1750FVI LightSensor;
void setup() { // put your setup code here, to run once:
Serial.begin(9600);
LightSensor.begin();
LightSensor.SetAddress(Device_Address_H); //Address 0x5C
LightSensor.SetMode(Continuous_H_resolution_Mode);
Serial.println("Running...");
}
void loop() {
// put your main code here, to run repeatedly:
uint16_t lux = LightSensor.GetLightIntensity();// Get Lux value
Serial.print("照度: ");
Serial.print(lux);
Serial.println(" lux");
delay(1000);
}