cactus.io logo

How to Hookup Sparkfun TEMT6000 Light Sensor Module to an Arduino

The Sparkfun Ambient Light Sensor module uses the TEMT6000 sensor from Vishay. It is Photo Transistor that is sensitive to the visible spectrum. It is adapted to human eye responsivity. The TEMT6000 sensor is commonly used in mobile phones, computers and other devices to control backlight dimming. The module is supplied with a 10K pull down resistor mounted on the board. This means we can feed the output from the board directly in the Arduino Analog pin.

Images

Sparkfun Temt6000 Ambient Light Sensor Module
Note: Images shown on this page are not to scale.

Parts List

  • Arduino Board
  • Sparkfun Light Sensor module (Part Number: BOB-08688)
  • Hookup wires
  • USB Cable to suite Arduino

Resources


Circuit Diagram

Sparkfun TEMT6000 Sensor Module Circuit

The breakout board has the photo transistor mounted in a voltage divider configuration. The voltage that appears at the analog input will vary depending on the amount of light hitting the photo transistor. The breakout board can be connected to either 5V or 3.3V. There is a 10K pull down resistor mounted on the breakout board.


Wiring Diagram for Sparkfun TEMT6000 breakout board to Arduino Board

The Sparkfun breakout board has the 10K resistor installed on the board. We can wire up to the 5V or 3.3V power pin on the Arduino. Using the 3.3V voltage will mean a smaller voltage range on the AO pin. We could use any of the Analog inputs on the board. We just need to set the correct input pin in the sketch.


Connect Arduino to Sparkfun TEMT6000 Sensor Module Hookup

Software

To test this sensor we can use sample sketch shown below. You can download the sketch file. It reads the TEMT6000 every 0.5 seconds and prints the results to the console on the computer connected to the USB port on the Arduino. We do not require any libraries for this sketch

We are using analog pin A0 to connect to the sensor. If you are using a different analog pin then you will need to change the pin number defined on line 6 in the sketch code.

Sparkfun TEMT6000 Sample Sketch
Download as (Arduino Sketch) (Text File)
1
// Example Sketch for Sparkfun TEMT6000 Module (Light Dependent Photo Transistor).
2
// It reads the voltage at the OUT Pin and displays it on the console. The value should
3
// range from 0 to 1024. The lower the value the lower the light. The higher
4
// the value means more light being received by the LDR.
5
// Written by cactus.io. For more details and how to hookup the Sparkfun TEMT6000 module to
6
// the Arduino then visit this link.
7
// http://cactus.io/hookups/sensors/light/temt6000/hookup-arduino-to-sparkfun-temt6000-light-sensor-module
8
9
int OUT_Pin = A0; // what pin on the arduino is the OUT pin connected to
10
11
void setup(){
12
Serial.begin(9600);
13
Serial.println("Sparkfun TEMT6000 Module Example Sketch | cactus.io");
14
}
15
16
void loop(){
17
Serial.println(analogRead(OUT_Pin));
18
delay(3000);
19
}

Sketch Output

Sparkfun TEMT6000 breakout board Sample Console Output

License