Light Intensity Meter Interfacing Arduino UNO
In this article we will learn how to Interface Arduino UNO with Light Intensity Meter.
In the last post we will learn how to make RPM Counter Using Arduino UNO. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.
Components:
- Arduino UNO
- LCD display
- I2C module
- LDR module
- Jumper wires
Construction…
- Connect VCC pin of LDR module with 5v pin of Arduino UNO
- Connect GND pin of LDR module with GND pin of Arduino UNO
- Connect signal pin of LDR module with A0 pin of Arduino UNO
- Connect GND pin of LCD display with GND pin of Arduino UNO
- Connect VCC pin of LCD display with 5v of Arduino UNO
- Connect SDA pin of LCD display with A4 pin of Arduino UNO
- Connect SCL pin of LCD display with A5 pin of Arduino UNO
- Dress up the wires clean and Tidy
Hardware image of Intensity meter…
Working…
A light intensity meter using an Arduino UNO can be used to measure the intensity of light in the surrounding environment and display the results on an LCD screen or transmit them to a computer for further analysis
Applications…
- Home Automation
- Smart Lighting Control
- Artificial Lighting Quality Control
- Security Systems
- Energy Savings
Advantages…
- Affordability
- Ease of Use
- Customizability
- Real-time Monitoring
- Scalability
Program Images of Intensity meter…
Program code…
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16×2 display
const int ldrPin = A0; // Analog pin for the LDR
int lightIntensity = 0;
void setup() {
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Light Intensity:");
}
void loop() {
// Read the LDR sensor value
int sensorValue = analogRead(ldrPin);
// Map the sensor value to a display range (adjust as needed)
lightIntensity = map(sensorValue, 0, 1023, 0, 100);
// Display the light intensity on the LCD
lcd.setCursor(0, 1);
lcd.print(lightIntensity);
lcd.print("%");
delay(1000); // Update the display every second
}