Ks0098 keyestudio TEMT6000 Ambient Light Sensor: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
Line 37: | Line 37: | ||
http://www.keyestudio.com/wp/2016/11/ks0098-temt6000-ambient-light-sensor/ | http://www.keyestudio.com/wp/2016/11/ks0098-temt6000-ambient-light-sensor/ | ||
''' | '''PDF''' | ||
https://drive.google.com/open?id=16cBfoFnUvYGcJ4TUJKLFL3BxjGAhVw9t | |||
==Buy from== | ==Buy from== |
Revision as of 16:35, 14 November 2017
TEMT6000 Ambient Light Sensor
Introduction
At some point you are going to sense ambient brightness with better precision than your trusty photoresistor without adding complexity to your project. When that day comes, go to 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 using it in your project.
Specification
- Supply Voltage: +5VDC 50mA
- Size: 36.5*16mm
- Weight: 4g
Connection Diagram
This is an incredibly simple part, just connect power and ground, and the signal pin to your favorite analog input and you are done, the sensor will output analog voltage, that ramps up when it gets brighter. You can power this off of 3.3v as you like, the output value will just be lower.
Sample Code
You can not get more simpler 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 }
Resources
Video
http://www.keyestudio.com/wp/2016/11/ks0098-temt6000-ambient-light-sensor/
https://drive.google.com/open?id=16cBfoFnUvYGcJ4TUJKLFL3BxjGAhVw9t
Buy from
Official Website
http://www.keyestudio.com/temt6000-ambient-light-sensor.html
Amazon Store