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.
- Arduino Board
- Freetronics Light Sensor module
- Hookup wires
- USB Cable to suite Arduino
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.
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.
The more light received the higher the voltage that appears on the analog pin.