Nick Koumaris
Published © GPL3+

Arduino DIY Light Meter With BH1750 Sensor

In this tutorial I am going to show you how to build a Light meter with a big Nokia 5110 LCD display using Arduino.

BeginnerFull instructions provided1 hour20,154
Arduino DIY Light Meter With BH1750 Sensor

Things used in this project

Story

Read more

Code

F89BO7LIZT6ISUO.c

C/C++
No preview (download only).

Code snippet #1

Plain text
void loop() {  
 int stringLength=0;
 
 uint16_t lux = lightSensor.readLightLevel();  // Read the sensor
 
 light = String(lux); //Convertion to String
 stringLength = light.length(); //We need to know the String Length
 
 lcd.clrScr();
 lcd.drawBitmap(0, 0, ui, 84, 48);
 printLight(stringLength); //Print the String on the Display
 lcd.update();
 
 delay(150);
}

FV0DB26IZT6ISUP.ino

Arduino
No preview (download only).

FF27TNAIZT6ISUT.c

C/C++
No preview (download only).

Credits

Nick Koumaris

Nick Koumaris

13 projects • 310 followers
My name is Nick Koumaris and I am a software engineer from Sparta, Greece. I love building projects and share them with the world!

Comments