Devices & Components
Arduino Uno Rev3
bh1750 lux sensor
Software & Tools
Arduino IDE
Project description
Code
code
c_cpp
1#include <Wire.h> 2#include <BH1750.h> 3 4 5BH1750 lightMeter; 6 7 8void setup(){ 9 Serial.begin(9600); 10 lightMeter.begin(); 11 Serial.println("Running..."); 12} 13 14 15void loop() { 16 uint16_t lux = lightMeter.readLightLevel(); 17 Serial.print("Light: "); 18 Serial.print(lux); 19 Serial.println(" lx"); 20 delay(1000); 21} 22
Downloadable files
connections
connections

lux_qo4Ni002ya.jpg
lux_qo4Ni002ya.jpg

lux_qo4Ni002ya.jpg
lux_qo4Ni002ya.jpg

connections
connections

Documentation
bh1750-master_IkmI0RZbUo.zip
bh1750-master_IkmI0RZbUo.zip
bh1750-master_IkmI0RZbUo.zip
bh1750-master_IkmI0RZbUo.zip
Comments
Only logged in users can leave comments