Light Intensity Detection

Introduction: Light Intensity Detection

This project will deal with the use of the Grove light sensor to display the light level in lux in a LCD.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Hardware Used

his will deal with the hardware of the setup. For this project we need the following components. The sensor will be connected with the analog pin A0 while the LCD is reserved for I2C protocol.

  1. Intel Edison board with the Arduino breakout board.
  2. Grove light sensor
  3. Grove RGB LCD display

The above image shows the hardware setup of the sensors and the display unit.

Step 2: Source Code for Intel Edison

#include
#include "rgb_lcd.h"

rgb_lcd lcd;

void setup() {

lcd.begin(16, 2);

lcd.clear();

lcd.setRGB(100,100,100);

lcd.setCursor(0,0);

lcd.print("SETTING UP . . . ");

lcd.clear();

delay(2000);

}

void loop() {

int a= analogRead(A0);

lcd.setRGB(100,100,100);

lcd.setCursor(0,0);

lcd.print("LIGHT level");

lcd.setCursor(0,10);

lcd.print(a);

delay(100);

}

The above code just reads the data from the light sensor and displays it to the LCD display.

Step 3: Use Cases

This step will enlighten us with some of the many places where this can be used. Firstly this can be used in robotics and solar tracking facility where the light level will serve as an contributing factor. The images below shows us the image of the LCD during different condition

The above image was recorded when the surroundings lied in a low light environment. Thus it has multiple usage and can be exploited accordingly.

Be the First to Share

    Recommendations

    • LED Strip Speed Challenge

      LED Strip Speed Challenge
    • Sculpting Challenge

      Sculpting Challenge
    • Clocks Contest

      Clocks Contest

    Discussions

    0
    Swansong
    Swansong

    3 years ago

    This is a great project for people who use solar power :)