This is the TEMT6000 an Ambient Light Sensor which is sensitive to the visible spectrum. Capable of sensing a light brightness around you. The TEMT 6000 is a silicon NPN epitaxial phototransistor in a miniature transparent mold for surface mounting which can be mounted onto a printed circuit board. These device is commonly used in your mobile phones, smart TV, Laptops, Notebook Computers, Cameras, Dashboards, Smart Watch, for ambient light sensing for display dimming.
Required Components
- Arduino IDE | AtmelStudio
- Arduino Microcontroller, NodeMCU, Teensy Board, TeensyDuino, ESP8266 12, 12E, ESP8266 NodeMCU, ESPDuino, ATMEGA328 16/12, ATMEGA32u4 16/8/ MHz, ESP8266, ATMEGA250 16 MHz, ATSAM3x8E, ATSAM21D, ATTINY85 16/8 MHz Note: The Diagram below is using NANO. (please refer to each MCU’s respective pin-outs)
- TEMT6000 Module /
- Jumper Wire / DuPont Wire
- Solder Less Breadboard
Optional if you are not using TEMT6000 Module
- TEMT6000
- 10k Ohms Resistor
- PCB Board
Wiring Guide
Source Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
int sensePin = 0; void setup() { Serial.begin(9600); Serial.println("14CORE | TEMT6000 TEST CODE") Serial.println("---------------------------"); delay(1000); } void loop() { int value = analogRead(sensePin); Serial.println("Ambient > "); Serial.print(value); delay(100); } |
Downloads
TEMT6000 Visible Spectrum / Ambient Light Sensor