Ks0098 keyestudio TEMT6000 Ambient Light Sensor: Difference between revisions
Keyestudio (talk | contribs) No edit summary |
Keyestudio (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<br> | |||
==TEMT6000 Ambient Light Sensor == | ==TEMT6000 Ambient Light Sensor == | ||
<br>[[File:KS0098.jpg|500px|frameless|thumb]]<br> | <br>[[File:KS0098.jpg|500px|frameless|thumb]]<br> | ||
<br> | |||
==Introduction== | ==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 | 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 get yourself a TEMT6000 ambient light sensor.<br> | ||
The TEMT6000 is supposed to be adapted to the sensitivity of the human eye, but | The TEMT6000 is supposed to be adapted to the sensitivity of the human eye, but found it preformed sub-par in low light conditions. <br> | ||
It does however work very well reacting to very small changes in a large range of brightness. 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.<br> | |||
<br> | |||
==Specification== | ==Specification== | ||
* Supply Voltage: +5VDC 50mA | * Supply Voltage: +5VDC 50mA | ||
Line 12: | Line 16: | ||
* Weight: 4g | * Weight: 4g | ||
<br> | |||
==Connection Diagram == | ==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. | 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. <br> | ||
<br>[[File: | You can power this off of 3.3v as you like, the output value will just be lower. | ||
<br>[[File:Ks0098.png|700px|frameless|thumb]]<br> | |||
<br> | |||
==Sample Code== | ==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.<br> | 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.<br> | ||
<pre> | <pre> | ||
int temt6000Pin = 0; | int temt6000Pin = 0; | ||
Line 31: | Line 38: | ||
</pre> | </pre> | ||
<br> | |||
== Result == | |||
Wiring well and uploading the code above, open the serial monitor of Arduino software. | |||
<br>[[File:KS0349 31-3.png|800px|frameless|thumb]]<br> | |||
Then cover the sensor with your hand or a paper, the light becomes weak, finally you will see the value showed on monitor decrease. | |||
<br>[[File:KS0349 31-4.png|800px|frameless|thumb]]<br> | |||
<br> | |||
==Resources == | ==Resources == | ||
'''Video''' | * '''Video''' <br> | ||
http://video.keyestudio.com/ks0098/ | |||
* '''PDF and Code'''<br> | |||
https://fs.keyestudio.com/KS0098 | |||
<br> | |||
==Buy from== | ==Buy from== | ||
*[https://www.keyestudio.com/new-temt6000-ambient-light-sensor-module-for-arduino-uno-mega2560-p0017.html '''Official Website'''] | |||
*[https://www.amazon.com/Keyestudio-TEMT6000-ambient-Arduino-raspberry/dp/B0179BWNMU/ '''Amazon Store'''] | |||
*[https://www.aliexpress.com/store/product/New-TEMT6000-Ambient-light-Sensor-Module-for-Arduino-UNO-MEGA2560/1452162_32668803845.html?spm=2114.12010612.8148356.3.5a272462eu4WUZ '''Aliexpress Store'''] | |||
[[Category: Sensor]] | |||
[[ |
Latest revision as of 14:19, 7 January 2021
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 get yourself a TEMT6000 ambient light sensor.
The TEMT6000 is supposed to be adapted to the sensitivity of the human eye, but 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 brightness. 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 }
Result
Wiring well and uploading the code above, open the serial monitor of Arduino software.
Then cover the sensor with your hand or a paper, the light becomes weak, finally you will see the value showed on monitor decrease.
Resources
- Video
http://video.keyestudio.com/ks0098/
- PDF and Code
https://fs.keyestudio.com/KS0098