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

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
 
(20 intermediate revisions by the same user not shown)
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==
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>
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>
This module should be used together with EASY plug control board.<br>
<span style=color:red> '''Special Note:''' <br>
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>


==Introduction==
<br>
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>
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. <br>
<br>[[File:KS0244.jpg|500px|frameless|thumb]]<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


==Sample Code==
<br>
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.
==Connect It Up==
<pre>
Connect the EASY Plug TEMT6000 sensor and an LED module to control board using an RJ11 cable. <br>
int temt6000Pin = 0;
Then connect the control board to your PC with a USB cable.
void setup() {
<br>[[File:环境光灯.jpg|500px|frameless|thumb]]<br>
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
}
</pre>


==Result==
<br>
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.
==Upload the Code==
<br>[[File:KS0244-3.png|500px|frameless|thumb]]<br>
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<br>[[File:ks0398 15.1.png|500px|frameless|thumb]]<br>
 
<br>
==What You Should See==
<br>[[File:ks0398 15-1.png|500px|frameless|thumb]]<br>
<br>
Done uploading the code, open the serial monitor and set the baud rate to 9600, you should be able to see the printed analog value. <br>
When the sensor detects different light intensity, the brightness of LED will change.<br>
<br>[[File:ks0398 15-2.png|500px|frameless|thumb]]<br>
<br>[[File:ks0398 15-3.png|500px|frameless|thumb]]<br>
 
<br>
==Controlling RGB Flash==
<br>
'''Hookup Guide:'''<br>
<br>[[File:环境光RGB.jpg|500px|frameless|thumb]]<br>
 
<br>
'''Test Code:'''<br>
<br>[[File:ks0398 15.2.png|600px|frameless|thumb]]<br>
 
<br>
'''What You Should See:'''<br>
Upload the code successfully, when the measured light intensity is less than 50, RGB lights are turned on. <br>
Light 1 flashes in red, light 2 flashes in green, light 3 flashes in blue, light 4 flashes in white, with a delay time 500ms. <br>
<br>[[File:ks0398 15-4.png|500px|frameless|thumb]]<br>
<br>[[File:ks0398 15-5.png|500px|frameless|thumb]]<br>
 
<br>
<br>


==Resources ==
==Resources ==


'''Datasheet'''
https://fs.keyestudio.com/KS0244
http://www.keyestudio.com/files/index/download/id/1500364291/
 
 
<br>


==Buy from ==
==Buy from ==
http://www.keyestudio.com/easy-plug-temt6000-ambient-light-sensor.html
*[https://www.keyestudio.com/keyestudio-easy-plug-temt6000-ambient-light-sensor-module-for-arduino-interface-type-rj11-p0461-p0461.html  '''Official Website''']
 
*[https://www.aliexpress.com/store/product/Keyestudio-EASY-plug-TEMT6000-Ambient-light-sensor-module-for-arduino-Interface-Type-RJ11/1452162_32819765092.html?spm=2114.12010612.8148356.72.60624ba7tvibrt  Shop on aliexpress  ]
 


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

Latest revision as of 08:38, 8 January 2021

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.
This module should be used together with EASY plug control board.

Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


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 and an LED module to control board using an RJ11 cable.
Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb


What You Should See


thumb

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

thumb

thumb


Controlling RGB Flash


Hookup Guide:

thumb


Test Code:

thumb


What You Should See:
Upload the code successfully, when the measured light intensity is less than 50, RGB lights are turned on.
Light 1 flashes in red, light 2 flashes in green, light 3 flashes in blue, light 4 flashes in white, with a delay time 500ms.

thumb

thumb



Resources

https://fs.keyestudio.com/KS0244



Buy from