Introduction:
TEMT6000 is an audion photoconductive sensor. Its illumination intensity is proportional to current of base electrode. It is very easy to use. Just connect the base electrode to input of analog voltage. You can know current intensity by detecting the voltage value.
Hardware required:
- Arduino Board *1
- USB Cable*1
- I2C 1602 LCD *1
- TEMT6000 Sensor*1
- Breadboard *1
- Breadboard Jumper Wires
- Male to Female Dupont Lines
Connection Diagram:
Connection for REV4:
Connection for 2560 R3:
Sample program:
#include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,16,2); void setup() { lcd.init(); // initialize the lcd lcd.init(); // Print a message to the LCD. lcd.backlight(); lcd.setCursor(1,0); lcd.print("SensorValue : "); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); // print out the value you read: lcd.setCursor(3,1); lcd.print(sensorValue); delay(1); // delay in between reads for stability }
Result:
After connection and uploading sample code, we can see analog value which means current illumination intensity on LCD with power-on.