You are on page 1of 15

TITLE

DIY LIGHTING(LUX) METER USING BH1750 AMBIENT LIGHTING SENSOR AND


AURDINO
 

UNDER THE GUIDENCE OF


R. SWATHI assistant professor(MTech.,phd)

PRESENTED BY
20C35A0253 – P. SAI KRISHNA
20C35A0242 – K. NEETESHWAR ROA
20C35A0260 – S. NISHA
20C35A0231 – J. USHA
20C35A0206 – B. SAI KRISHNA

 
CONTENTS
ABSTRACT
INTRODUCTION
COMPONENTS
ARDUINO
BLOCK DIAGRAM/CIRCUIT DIAGRAM
BH1750 AMBIENT LIGHT SENSOR
TEMT6000 SENSOR
LCD
SOURCE CODE
FEATURES AND SPECIFICATIONS
APPLICATIONS
REFERENCES
ABSTRACT:

In this project, we are going to take through the


building DIY LUX meter using BH1750 Light sensor that
can calculate illuminance and Arduino based luxmeter.
A luxmeter is a device that measures illuminance and
luminous emittance using the SI unit of lux.
 It effectively measures the amount of power from the
light falling on a given unit of area, except that the
power measurement is weighted to reflect the sensitivity
of the human eye to varying wavelengths of light.
A simpler way to describe a lux meter is to say that it
measures how bright the light falling on the sensor but it
is cheaper and much more fun to build one yourself
INTRODUCTION:
phone. Using the sensor we can calculate the amount
of light in lux units. This sensor has a wide range of
applications & is most suitable to obtain the ambient
light data for adjusting the LCD and Keypad backlight
power of the Mobile
Illuminance (measured in LUX) is the total luminous flux
incident on a surface, per unit area. It is a measure of
how much the incident light illuminates the surface, it is
wavelength-weighted by the luminosity function to
correlate with the level of human brightness
perception.
COMPONENTS

o ARDUINO UNO
o BH1750 AMBIENT LIGHT SENSOR
o TEMT6000 SENSOR
o LCD(16X2)
o PCB
o BATTERY(9V)
ARDUINO
Arduino UNO is a
microcontroller board based on
the ATmega328P. It has 14
digital input/output pins (of
which 6 can be used as PWM
outputs), 6 analog inputs, a 16
MHz ceramic resonator, a USB
connection, a power jack, an
ICSP header and a reset button.
It contains everything needed to
support the microcontroller;
simply connect it to a computer
with a USB cable or power it
with a AC-to-DC adapter or
battery to get started.
CIRCUIT DIAGRAM
BH1750 AMBIENT LIGHT SENSOR:

The BH1750 provides 16-bit  light measurements in lux, the SI unit for measuring light making it easy to compare against other
values like references and measurements from other sensors. Able to measure from 0 to 65K+ lux, the BH1750. With some
calibration and advanced adjustment of the measurement time, it can even be convinced to measure as much as 100,000 lux.
Power Pins
VIN - this is the power pin. Since the sensor chip uses 3 VDC, we have included a voltage regulator on board that
will take 3-5VDC and safely convert it down. To power the board, give it the same power as the logic level of your
microcontroller - e.g. for a 5V microcontroller like Arduino, use 5V
3Vo - this is the 3.3V output from the voltage regulator, you can grab up to 100mA from this if you like
GND - common ground for power and logic
I2C Logic Pins
SCL - I2C clock pin, connect to your microcontroller I2C clock line. This pin is level shifted so you can use 3-5V
logic, and there's a 10K pullup on this pin.
SDA - I2C data pin, connect to your microcontroller I2C data line. This pin is level shifted so you can use 3-5V
logic, and there's a 10K pullup on this pin.
STEMMA QT - These connectors allow you to connectors to dev boards with STEMMA QT connectors or to other
things with various associated accessories.
ADDR/AD0 Jumper - I2C Address pin. Pulling this pin high or bridging the solder jumper on the back will change
the I2C address from 0x23 to 0x5C
TEMT6000 LIGHT SENSOR:
The TEMT6000 is made up of a single phototransistor, which acts just like a simple NPN
transistor. The greater is the incoming light on the Base, the more the current flowing
from the Collector to the Emitter. The sensor only works in the visible spectrum (390–
700 nm). The Infrared, ultraviolet ray or any other light will have no effect on the sensor.
The sensor operates in the range of 3.3V to 5V. The breakout board has a voltage
divider circuit connected to the 10K Resistor. The TEMT600 acts as one of the resistors
in the divider network. As the light falls on the phototransistor surface, the resistance
value changes which changes the voltage on the SIG pin. An Arduino or any
other microcontroller is used to read the value and then to measure illuminance and
light intensity.
LCD DISPLAY:

The liquid crystal library allows you to control LCD displays that are


compatible with the Hitachi HD44780 driver. There are many of them out
there, and you can usually tell them by the 16-pin interface.
 The interface consists of several pins they are:
•Register select pin
•Read / write pin
•Enable pin
•8 data line(D0-D7)
•Contrast pin v0
•power supply pins (+5V and GND) 
• LED Backlight (Bklt+ and BKlt-)
SOURCE CODE
#include <Wire.h>         // adds I2C library
#include <BH1750.h>       // adds BH1750 library file
#include<LiquidCrystal.h> // include LCD library function
 
LiquidCrystal lcd (12, 11, 5, 4, 3, 2);       //RS, E, D4, D5, D6, D7
 
BH1750 lightMeter;
 
// Initialization of library functions and codes
void setup()
{
 
  Serial.begin(9600);         // set serial buad rate of 9600
  Wire.begin();               // Enable I2C pins of Arduino
  lcd.begin(16, 2);           // Defines LCD size to 16x2
  lcd.print("Illuminance");   //Print "Intensity in LUX" message on first line LCD    
  lightMeter.begin();
  delay(2000);
 
}
 
void loop()
{
  float lux = lightMeter.readLightLevel();
  lcd.setCursor(0, 1);
  lcd.print(lux);
  lcd.print(" lx");
  delay(1000);
 
}
FEATURES AND SPECIFICATIONS:
• I2C bus Interface
• SCL Clock Frequency: 400kHz max
• Select between 2 types of I2C slave-address
• Photo diode with approximate human eye response
• Internal logic for ambient light calculation
• Digital Output data in Lux
• Wide range and High resolution. ( 1 – 65535 lx )
• Small measurement variation (+/- 20%)
• Fastest data output @ 16ms per reading
• Low Current Consumption by power down function
• 50Hz / 60Hz Light Noise reject-function
• Very little light source dependency
• Influence of infrared is very small
• Power supply voltage: 3V3~5V DC
APPLICATIONS:

• Used in pulse sensors to measure the light intensity


of the LED
• Cell phones contain BH1750 to adjust the brightness
of the screen according to the external light conditions
• Used in vehicles to turn ON/OFF the headlights
according to the darkness
• Control the turning ON/OFF of the automatic street
lights
• Used to adjust the keyboard backlight in smart
phones
REFERENCES:
THANK YOU

You might also like