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,290
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
15 projects • 317 followers
Software engineer (13+ yrs) turned cybersecurity analyst. Passionate about AI security. SOC & IoT/embedded security. Maker & educator.

Comments