Description
BH1750FVI digital light intensity sensor module GY-30 measures the amount of light falling on it and displays it in Lux (Lx). The built-in 16 bit analog-digital converter provides a direct readout of the light intensity, without the need for calculations.
BH1750FVI GY-30 specifications:
– Chip: BH1750FVI
– Works on: 3V – 5V
– Measuring range: 0-65535 lx
– Interface: I2C
Arduino code example:
#include <Wire.h>
#include <math.h>
int BH1750address = 0x23;
byte buff[2];
void setup()
{
Wire.begin();
Serial.begin(9600);
}
void loop()
{
int i;
uint16_t val=0;
BH1750_Init(BH1750address);
delay(200);
if(2==BH1750_Read(BH1750address))
{
val=((buff[0]<<8)|buff[1])/1.2;
Serial.print(val,DEC);
Serial.println("[lx]");
}
delay(150);
}
int BH1750_Read(int address) //
{
int i=0;
Wire.beginTransmission(address);
Wire.requestFrom(address, 2);
while(Wire.available()) //
{
buff[i] = Wire.receive(); // receive one byte
i++;
}
Wire.endTransmission();
return i;
}
void BH1750_Init(int address)
{
Wire.beginTransmission(address);
Wire.send(0x10);//1lx reolution 120ms
Wire.endTransmission();
}
Only logged in customers who have purchased this product may leave a review.
Shipping within the Netherlands
This product will be delivered via PostNL letter post in a bubble envelope.- €3.45 shipping costs for orders under €25.
- €2.95 shipping costs for orders between €25 - €45.
- Orders above € 45,- will be
free of charge sent by PostNL letter post.
Ordered before 16:30 PM on workdays, shipped the same day!
Click here for costs outside the Netherlands.
Gerhard Mulder -
This light intensity meter (Lux) does what it should do, i.e. if you change the word -receive- in the code example to -read- and the word -send- to -write-! Nice print, find the light sensitive cell….
The print is only 1,5 x 3,3 cm.