Jennifer Deegan
Published © GPL3+

Light Meter To Measure Plant Growth Conditions

Light sensor to measure from 0 to 55,000 lux, which is a good range for measuring from the darkest room in a house to the brightest day.

BeginnerFull instructions provided8,200
Light Meter To Measure Plant Growth Conditions

Things used in this project

Hardware components

Jumper wires (generic)
Jumper wires (generic)
×1
RobotGeek Light Sensor
RobotGeek Light Sensor
×1
Arduino UNO
Arduino UNO
×1
Grove-LCD RGB Backlight v4.0
×1
Battery holder + wire to power the Arduino.
×1
AA batteries
×1

Story

Read more

Code

Code for light meter.

C/C++
This code enable the light meter to display light intensity in lux.
#include <Wire.h>
#include <BH1750.h>
#include "rgb_lcd.h"
rgb_lcd lcd;
const int colorR = 0;
const int colorG = 0;
const int colorB = 0;
BH1750 lightMeter;
void setup() {
Serial.begin(9600);
lightMeter.begin();
Serial.println("Running...");
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
lcd.setRGB(colorR, colorG, colorB);
// Print a message to the LCD.
lcd.print("Light intensity");
}
void loop() {
uint16_t lux = lightMeter.readLightLevel();
Serial.print("Light: ");
Serial.print(lux);
Serial.println(" lx");
// Clear the bottom line of the LCD
lcd.setCursor(0,1);
lcd.print("                  ");
// For LCD: set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(lux);
delay(1000);
}

Github

https://github.com/BioMakers/31_Light-meter-to-measure-plant-growth-conditions

Credits

Jennifer Deegan

Jennifer Deegan

16 projects • 21 followers
I am working on deep focus photography of specimens from 0.5mm to 2.5mm tall. I would be interested in receiving commissions.

Comments