Linkit One and TEMT6000 light sensor

TEMT6000X01 ambient light sensor is a silicon NPN epitaxial planar phototransistor in a miniature transparent 1206 package for surface mounting. It is sensitive to visible light much like the human eye and has peak sensitivity at 570 nm.

Here is a picture of a module

 

Here is a schematic of the module

 

APPLICATIONS

Ambient light sensor for control of display backlight dimming in LCD displays and keypad backlighting of mobile devices and in industrial on/off-lighting operation.

• Automotive sensors
• Mobile phones
• Notebook computers
• PDA’s
• Cameras
• Dashboards

 

Connection

 

linkit and TEMT6000
linkit and TEMT6000

 

Code

 

[codesyntax lang=”cpp”]

#define LIGHTSENSORPIN A0 //Ambient light sensor reading

void setup() 
{
pinMode(LIGHTSENSORPIN, INPUT); 
Serial.begin(9600);
}

void loop() 
{
float reading = analogRead(LIGHTSENSORPIN); //Read light level
Serial.println(reading); 
delay(1000); 
}

[/codesyntax]

 

Output

Open the serial monitor and you should see something like this. The higher the reading the greater the light

110.00
12.00
14.00
117.00
154.00
659.00
333.00
650.00
660.00
95.00
102.00
103.00

 

Links

TEMT6000 Light Sensor

https://www.vishay.com/docs/81579/temt6000.pdf