5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



EASY plug Ultimate Starter Learning Kit Project 15: Ambient Light

Posted by Fiona Su on

Overview
This project we will test the ambient light. You can use analog reading to read the data from this sensor.
Component Required

  • EASY plug control board*1
  • EASY plug TEMT6000 Light Sensor *1
  • EASY plug LED module *1
  • EASY plug RGB module *1
  • RJ11 cable *2
  • USB cable*1

Component 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.

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

Connect It Up
Connect the EASY Plug TEMT6000 sensor to control board using an RJ11 cable.

thumb

Upload the Code

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

All Tutorials

Buy >> EASY plug Ultimate Starter Learning Kit 

0 comments

Leave a comment

Please note, comments must be approved before they are published