Ks0244 keyestudio EASY plug TEMT6000 Ambient Light Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==EASY plug TEMT6000 Ambient Light Sensor ==
[[image:ks0244图.jpg|thumb|600px|right|EASY plug TEMT6000 Ambient Light Sensor ]]
<br>[[File:KS0244-1.png|500px|frameless|thumb]]<br>


==Introduction==
==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.<br>
Light sensors are probably one of the most common sensors in life. They can be found in your laptop, phone or home lighting system. <br>
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 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 considering using it in your project. <br>
A light sensor measures the level of light in a room or ambient light in a space. <br>
 
This EASY plug TEMT6000 light sensor uses a special ambient light detector (TEMT6000) with spectral response that closely emulates the human eye.<br>
It does react well to very small changes in a wide range of brightness, however, it does not react well to IR or UV light. The sensor can help you to to detect the light density.<br>
<span style="color: red">'''Note: ''' this module should be used together with EASY plug control board.<br>
<br>[[File:KS0244.jpg|500px|frameless|thumb]]<br>
<br>[[File:KS0244.jpg|500px|frameless|thumb]]<br>


<br>
==Specification==
==Specification==
* Supply Voltage: +5VDC 50mA
* Connector: Easy plug
* Interface: Analog input interface
* Supply Voltage: +5V DC 50mA  
* Weight: 3.6g
* Interface:Analog Input
* Near Human Eye Spectral Response and Very Low IR Sensitivity


==Connection Diagram ==
<br>
<br>[[File:KS0244-2.png|500px|frameless|thumb]]<br>
==Technical Details==
* Dimensions: 30mm*20mm*18mm
* Weight: 3.5g


<br>
==Connect It Up==
Connect the EASY Plug TEMT6000 sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
<br>[[File:ks0244.jpg|500px|frameless|thumb]]<br>
<br>


==Sample Code==
==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.
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.  
 
<pre>
<pre>
int temt6000Pin = 0;
int temt6000Pin = 0;
void setup() {
void setup() {
Serial.begin(9600);
Serial.begin(9600);
}
}
void loop() {
void loop() {
int value = analogRead(temt6000Pin);
int value = analogRead(temt6000Pin);
Serial.println(value);
Serial.println(value);
delay(100); //only here to slow down the output so it is easier to read
delay(100); //slow down the output speed so that read the value easily
}
}
</pre>
</pre>


 
<br>
==Result==
==What You Should See==
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.
Done uploading the code, open the serial monitor and set the baud rate to 9600, you should be able to see the analog value. When the sensor detects different light intensity, the value will change.
<br>[[File:KS0244-3.png|500px|frameless|thumb]]<br>
<br>[[File:KS0244-3.png|500px|frameless|thumb]]<br>


 
<br>
==Resources ==
==Resources ==
'''PDF:'''<br>
https://drive.google.com/open?id=1epBhaQDQn2FLJfCuNJEmqiconSxf2jV8


'''PDF:'''
https://drive.google.com/open?id=1epBhaQDQn2FLJfCuNJEmqiconSxf2jV8


==Buy from ==
==Buy from ==
'''Official Website'''
'''Official Website'''<br>
http://www.keyestudio.com/easy-plug-temt6000-ambient-light-sensor.html


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


[[category:EASY Plug]]
[[category:EASY Plug]]

Revision as of 11:53, 23 November 2018

EASY plug TEMT6000 Ambient Light Sensor

Introduction

Light sensors are probably one of the most common sensors in life. They can be found in your laptop, phone or home lighting system.
A light sensor measures the level of light in a room or ambient light in a space.

This EASY plug TEMT6000 light sensor uses a special ambient light detector (TEMT6000) with spectral response that closely emulates the human eye.
It does react well to very small changes in a wide range of brightness, however, it does not react well to IR or UV light. The sensor can help you to to detect the light density.
Note: this module should be used together with EASY plug control board.

thumb


Specification

  • Connector: Easy plug
  • Supply Voltage: +5V DC 50mA
  • Interface:Analog Input
  • Near Human Eye Spectral Response and Very Low IR Sensitivity


Technical Details

  • Dimensions: 30mm*20mm*18mm
  • Weight: 3.5g


Connect It Up

Connect the EASY Plug TEMT6000 sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb

Sample Code

Copy and paste below code to Arduino IDE and upload.

int temt6000Pin = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
int value = analogRead(temt6000Pin);
Serial.println(value);
delay(100); //slow down the output speed so that read the value easily 
}


What You Should See

Done uploading the code, open the serial monitor and set the baud rate to 9600, you should be able to see the analog value. When the sensor detects different light intensity, the value will change.
thumb


Resources

PDF:
https://drive.google.com/open?id=1epBhaQDQn2FLJfCuNJEmqiconSxf2jV8


Buy from

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