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.
- Arduino Board
- Sparkfun Light Sensor module (Part Number: BOB-08688)
- Hookup wires
- USB Cable to suite Arduino
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.
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.