Description
The TEMT6000 ambient light sensor is an ordinary sensor which senses its surroundings like a human eye does and it is very similar to a LDR (light-dependent resistor). Essentially, the TEMT6000 can be defined as a silicon NPN epitaxial planar photo-transistor used for sensing the visible spectrum of light. With the TEMT6000 light sensor module you can easily read out the amount of light in an analog way. With this module, a 3-pin header is supplied to solder onto the module,The module also has a 3mm hole for mounting.
FEATURES OF TEMT6000:
- Visible light sensitivity with peak at 570nm
- +/- 60 degree angle of sensitivity
- Fast reacting in uSec range.
- Analog voltage output proportional to the intensity of light falling on the detector
- 3.3 and 5V compatible
PACKAGE INCLUDES:TEMT6000 Ambient Light Sensor Module and 3pins Male header
INTERFACING THE MODULE WITH ARDUINO
PINOUT
When you are trying to connect the module to arduino, the V pin of the module will be connected to arduino +5V, GND to arduino GND and signal to analog pin A0 as indicated in circuit below:
After connecting the circuit as mentioned above copy the codes below to you arduino IDE and upload them to your arduino board. After all open the serial monitor and start reding the ambient light in your area!
Codes
#define light A0 // define input pin void setup() { // TEMT6000 Roboajx.com code Serial.begin(9600); } void loop() { // TEMT6000 Roboajx.com code int Lvalue = analogRead(light);// read the light int mVolt = map(Lvalue,0, 1023, 0, 5000);// map analogue reading to 5000mV float volt =(double)mVolt/1000;// convert millivolt to volt Serial.print(mVolt);// print millivolt Serial.print( "mV "); Serial.print(volt,3);// print volts with 3 decimal places Serial.println( "V "); delay(1000);// wait for 1000 milliseconds }