Ks0244 keyestudio EASY plug TEMT6000 Ambient Light Sensor

From Keyestudio Wiki
Revision as of 09:23, 25 July 2017 by Keyestudio (talk | contribs) (Created page with "==EASY plug TEMT6000 Ambient light sensor == <br>500px|frameless|thumb<br> ==Introduction== The EASY plug TEMT6000 ambient light sensor needs to be used...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

EASY plug TEMT6000 Ambient light sensor


thumb

Introduction

The EASY plug TEMT6000 ambient light sensor needs to be used with the EASY plug control board V2.0 Control board. The module is connected to the analog input interface with only one line, so the wiring is done in a simple and convenient way. At some point you are going to want to sense ambient brightness with better precision than your trusty photoresistor without adding complexity to your project. When that day comes, go get yourself a TEMT6000 ambient light sensor.
The TEMT6000 is supposed to be adapted to the sensitivity of the human eye, but I found it preformed sub-par in low light conditions. It does however work very well reacting to very small changes in a large range of brightnesses. Because it is meant to mimic the human eye, it does not react well to IR or UV light, so just make sure to note that when considering using it in your project.

Specification

  • Supply Voltage: +5VDC 50mA
  • Interface: Analog input interface
  • Weight: 3.6g

Connection Diagram


thumb

Sample Code

You can not get more simple than this – This just reports the reading from the sensor to the serial terminal: 0-1023 with 1023 being very bright, and 0 being very dark.

int temt6000Pin = 0;
void setup() {
 Serial.begin(9600);
}
void loop() {
 int value = analogRead(temt6000Pin);
 Serial.println(value);
 delay(100); //only here to slow down the output so it is easier to read
}

Result

After connecting the power and burning the code, please open the serial monitor, and set the baud rate of 9600, you can see the simulated value of the current light intensity, as the diagram shown below.
thumb

Resources

Datasheet http://www.keyestudio.com/files/index/download/id/1500364291/

Buy from

http://www.keyestudio.com/easy-plug-temt6000-ambient-light-sensor.html