Lithium ION
Published © GPL3+

Making a Digital Light Measuring Meter

A device which can measure light intensity, easy to built and use. Let's make one using Arduino microcontroller. Keeping portability in mind

BeginnerFull instructions provided1.2 hours5,089
Making a Digital Light Measuring Meter

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1

Software apps and online services

PCBWay PCBwa
Arduino IDE
Arduino IDE

Story

Read more

Custom parts and enclosures

Gerber files

Schematics

Connection diagram

Code

Code

Arduino
#include <BH1750.h>
#include <Wire.h> // Library for I2C communication
#include <LiquidCrystal_I2C.h> // Library for LCD

BH1750 lightMeter;
LiquidCrystal_I2C lcd = LiquidCrystal_I2C(0x27, 16, 2); 

void setup() {
  Wire.begin();
  lightMeter.begin();
  lcd.init();
  lcd.backlight();
  lcd.setCursor(0,0);
  lcd.print("BH1750 Test");
  lcd.setCursor(0,1);
  lcd.print("Please wait...");
  delay(3000);
  lcd.clear();
}
void loop() {
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Light Intensity ");
   lcd.setCursor(5, 1);
   float lux = lightMeter.readLightLevel();
   lcd.print(lux);
   lcd.print(" Lux");
   delay(2000);
}

Credits

Lithium ION

Lithium ION

49 projects • 33 followers
A passionate electronics DIY boy. Currently improving in Embedded systems, soldering and programming.

Comments