cactus.io logo

How to Hookup Freetronics TEMT6000 Light Sensor Module to an Arduino

The Freetronics 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 module is supplied with a 10K pulldown resistor mounted on the board. This means we can feed the output from the board directly in the Arduino Analog pin.

Images

Freetronics TEMT6000 Light Sensor Module
Note: Images shown on this page are not to scale.

Parts List

  • Arduino Board
  • Freetronics Light Sensor module
  • Hookup wires
  • USB Cable to suite Arduino

Resources


Circuit Diagram

Freetronics TEMT6000 Sensor Module Circuit

The Freetronics TEMT6000 module is configured as a voltage divider circuit. The voltage that appears at the analog input will vary depending on the amount of light hitting the TEMT6000 photo transistor. The module can be connected to either 5V or 3.3V.


Wiring Diagram for connecting the Freetronics TEMT6000 breakout board to the Arduino Board

We can wire up the module 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 have wired up the module to A0 on the Arduino. We could use any of the analog inputs. We just need to change the pin id used in the sketch for the sample code to work.


Connect Arduino to Freetronics 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 Freetronics TEMT6000 module 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.

Freetronics TEMT6000 Sensor Sample Sketch
Download as (Arduino Sketch) (Text File)
1
// Example Sketch for Freetronics 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 Freetronics TEMT6000 module to
6
// the Arduino then visit this link.
7
// http://cactus.io/hookups/sensors/light/temt6000/hookup-arduino-to-freetronics-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("Freetronics TEMT6000 Module Example Sketch | cactus.io");
14
}
15
16
void loop(){
17
Serial.println(analogRead(OUT_Pin));
18
delay(3000);
19
}

Sketch Output

Freetronics TEMT6000 breakout board Sample Console Output

The more light received the higher the voltage that appears on the analog pin.


License