0% found this document useful (0 votes)
5 views

Arduino 7th day

The document provides an overview of light sensors, specifically photoresistors, and their applications in circuits. It explains Pulse Width Modulation (PWM) for controlling LED brightness and introduces Tri-Color LEDs, detailing their mechanisms and real-world uses. Additionally, it includes activities for building circuits with these components and a project to create a traffic control system using a Tri-Color LED.

Uploaded by

monteban314
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Arduino 7th day

The document provides an overview of light sensors, specifically photoresistors, and their applications in circuits. It explains Pulse Width Modulation (PWM) for controlling LED brightness and introduces Tri-Color LEDs, detailing their mechanisms and real-world uses. Additionally, it includes activities for building circuits with these components and a project to create a traffic control system using a Tri-Color LED.

Uploaded by

monteban314
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Light Sensor

and LEDs
● Light Sensor (Photoresistor)
Overview ● Basics of Pulse Width Modulation
(PWM)
● Tri-Color LED and Its Applications
Light Sensor
Definition:

● A photoresistor is a light-sensitive resistor whose resistance


decreases with increasing incident light intensity.

What is a
Photoresistor?
Mechanism:

● Changes resistance based on light intensity.


● Used in light-detecting circuits.

How a
Photoresistor
Works
Why Learn About Importance:

Light Sensors? ● Essential for creating responsive and interactive


projects.
● Real-world applications: light meters, street lights,
and security systems.
Activity:

● Build a simple circuit to measure light intensity with a


photoresistor.

Materials:

● Arduino, breadboard, photoresistor, wires

Fun Activity:
Measuring Light
Intensity
Pulse Width Modulation
(PWM)
Definition:

● PWM is a technique used to control the brightness of LEDs and


What is Pulse the speed of motors by varying the duty cycle.

Width Modulation
(PWM)?
Mechanism:

● Rapidly switches the signal between high and low states.


How PWM Works ● The average power delivered is controlled by the duty cycle.
● Importance:
○ Crucial for controlling various electronic devices.

Why Learn About ○ Widely used in LED dimming, motor speed control, and
audio signal generation.

PWM?
Activity:

● Use PWM to control the brightness of an LED.

Materials:

● Arduino, breadboard, LED, resistor

Fun Activity: LED


Brightness Control
Tri-Color LED and Its
Applications
Definition:

● A Tri-Color LED is an LED that contains three LEDs in one


package: red, green, and blue. It has four legs: one common
cathode (or anode) and one for each color.

What is a Tri-Color
LED?
Mechanism:

● By varying the intensity of the three colors, you can create a


wide range of colors.

How a Tri-Color
LED Works
Examples:

● Indicators, displays, lighting, and communication.

Real-World
Applications of
Tri-Color LEDs
Importance:

Why Learn About ● Tri-Color LEDs are versatile and can create multiple colors from
a single package.
Tri-Color LEDs? ● Used in various applications from simple indicators to complex
displays.
Project: Traffic Control System
Objective:

● Build a simple traffic control system using a Tri-Color LED to


Project Overview simulate a traffic light.

Materials:

● Arduino, breadboard, Tri-Color LED, resistors, wires


Building the Circuit

● Connect the Tri-Color LED to the Arduino.


● Red LED leg to digital pin 9.
● Green LED leg to digital pin 10.
● Blue LED leg to digital pin 11.
● Common cathode to GND through a resistor.
Writing the Code
Instructions:

Testing the Circuit ● Upload the code and test the circuit.
● Adjust the timing in the code to simulate a more realistic traffic
And Final Touches light pattern.
Summary:

● Today we learned about light sensors, PWM, and Tri-Color


Summary and Key LEDs, and built a traffic control system.

Takeaways Key Takeaways:

● Understanding light sensors and PWM is crucial for many


Arduino projects.
● Tri-Color LEDs are versatile components with numerous
applications.
Student Assessment
Rubric

Scale:

Criteria: ● 1 = Needs Improvement


● Understanding of Light Sensors
● 2 = Basic Understanding
(Photoresistor): 1 2 3 4 5 ● 3 = Proficient
● Ability to Implement PWM for LED Control: ● 4 = Advanced Understanding
12345 ● 5 = Excellent
● Knowledge of Tri-Color LEDs and Their
Applications: 1 2 3 4 5
● Successful Completion of the Traffic
Control System Project: 1 2 3 4 5

You might also like