TEMT6000X01 ambient light sensor and Intel Galileo

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

 

Parts List

 

Label Part Type
Part1 Intel Galileo Gen2
Part2 Ambient Light Sensor (TEMT6000 Breakout Board)

Layout

 

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
float square_ratio = reading / 1023.0; //Get percent of maximum value (1023)
square_ratio = pow(square_ratio, 2.0); 
Serial.println(reading); 
delay(1000); 
}

[/codesyntax]

 

Testing

Open the serial monitor and you should see the following

407.00
408.00
406.00
407.00
74.00
72.00
73.00
74.00
73.00
81.00
81.00
411.00

 

Links

TEMT6000 An ambient light sensor Simulate the light intensity module Visible light sensor

This div height required for enabling the sticky sidebar
Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views :