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



EASY plug Ultimate Starter Learning Kit Project 4: How much light

Posted by Fiona Su on

Overview
In this project, you’ll be using a photo resistor module, which changes resistance based on how much light the sensor receives.
Component Required
  • EASY plug control board*1
  • EASY plug Photocell Sensor *1
  • EASY plug LED module*1
  • RJ11 cable *2
  • USB cable*1
Component Introduction
A photoresistor or light-dependent resistor (LDR) or photocell is a light-controlled variable resistor. The principal is very simple. The resistance of photoresistor varies with incident light intensity. If the incident light intensity is high, the resistance decreases; if the light intensity is low, the resistance increases. keyestudio EASY Plug photocell sensor is a semiconductor, integrated with a photoresistor, easy to use and very convenient for wiring. It has features of high sensitivity, quick response, spectral characteristic and R-value consistence. It can be applied in light-sensitive detector circuits, intelligent switch design and light- and dark-activated switching circuits.
  • Interface: Easy plug
  • Working voltage: 5V

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

thumb

Upload the Code

thumb

What You Should See
Done uploading the code, you should see the analog value change in accordance with how much light your photoresistor is sensing.

thumb

thumb

Controlling light brightness
Hookup Guide
Connect the EASY Plug photocell sensor and LED module to control board using RJ11 cable.

thumb

Test Code
Below is an example code for three LED modules experiment.

thumb

What You Should See
The three LEDs are gradually brighter then gradually off one by one, circularly.
If it doesn’t, make sure you have assembled the circuit correctly and verified and uploaded the code to your board.

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