SlideShare a Scribd company logo
1 of 20
COLOR
SENSORS
INDEX
INDEX
➢ INTRODUCTION
➢ WHAT IS A SENSOR?
➢ WHAT IS A COLOR SENSOR?
➢ WORKING PRINCIPLE
➢ APPLICATIONS
➢ EXAMPLES
➢ INTERFACE WITH ARDUINO 2
INTRODUCTION
Date 3
We live in a World of Sensors. You can find different types of
Sensors in your homes, offices, cars etc. working to make our
lives easier by turning on the lights by detecting our
presence, adjusting the room temperature, detect smoke or
fire, make us delicious coffee, open garage doors as soon as
our car is near the door and many other tasks.
WHAT IS SENSORS?
A sensor is a device that produces an output signal for the
purpose of sensing a physical phenomenon. In the broadest
definition, a sensor is a device, module, machine, or
subsystem that detects events or changes in its
environment and sends the information to other electronics,
frequently a computer processor.
Date Your Footer Here 4
SENSORS
Date Your Footer Here 5
WHAT IS COLOR SENSORS?
• A colour sensor is a type of "photoelectric sensor"
which emits light from a transmitter, and then
detects the light reflected back from the detection
object with a receiver.
• A colour sensor can detect the received light intensity
for red, blue and green respectively, making it
possible to determine the colour of the target object.
• Color sensors detect RGB values by receiving
ambient light using a photodiode.
Date Your Footer Here 6
WORKING PRINCIPLE
7
● Colour sensors contain a white light emitter to illuminate the
surface. Three filters with wavelength sensitivities at 580nm,
540nm, 450nm to measure the wavelengths of red, green and
blue colors respectively.
● Based on the activation of these filters, the color of the material
is categorized. A light to voltage converter is also present in the
sensor. The sensor responds to color by generating a voltage
proportional to the detected color.
8
WORKING PRINCIPLE
APPLICATIONS
● Colour sensors are applied to measure, detect the color of
the surfaces. These sensors have a wide range of
applications in industrial, medical and security systems.
● Some of the applications are the light color temperature
measurement, RGB LED consistency control, medical
diagnosis systems, health fitness systems, industrial process
control, etc
● Colour sensors are majorly used to grade coloured products,
distinguish coded markings detect the presence of adhesives
or data codes on a package.
● The technology has a wide range of applications in various
industries such as textile, automation, automotive, food,
printing, pharmaceutical, and many more.
9
10
TCS3200
EXAMPLES
● In the TCS3200, the light-to-frequency
converter reads an 8 x 8 array of
photodiodes.
● 16 photodiodes have blue filters, 16
photodiodes have green filters, 16
photodiodes have red filters, and 16
photodiodes are clear with no filters.
11
● The TCS3200 and TCS3210 programmable color light-to-
frequency converters that combine configurable silicon
photodiodes and a current-to-frequency converter on a
single monolithic CMOS integrated circuit.
● The output is a square wave (50% duty cycle) with
frequency directly proportional to light intensity
(irradiance).
● The full-scale output frequency can be scaled by one of
three preset values via two control input pins.
● Digital inputs and digital output allow direct interface to
a microcontroller or other logic circuitry.
● Output enable (OE) places the output in the high-
impedance state for multiple-unit sharing of a
microcontroller input line.
12
13
AS73211
EXAMPLES
● The AS73211 is a low power,
low noise integrated color
sensor.
● Three channels convert light
signals via photodiodes to a
digital result and realize a
continuous or triggered
measurement.
14
15
SEN-11195
EXAMPLES
● They can be complicated to interface
to since RGB data often has to be
derived using complex signal
processing.
● Secondly, they’re less than rugged,
and when you want to deploy one in
the field you need a device that can
stand up to the weather.
● Even moisture in the air can make an
unprotected sensor unreliable.
16
● Atlas solved these problems by embedding the light
sensor in a rugged housing below a layer of
transparent epoxy which protects the sensor from
moisture while still allowing light to get in.
● The resulting light probe is water- and dust-proof,
sleet and ice tolerant, non reactive in salt water and
will readily sink when submerged.
• To communicate with the sensor we don't need anything other
than five GPIO pins of the Arduino, and that is why we have
used GPIO 8,7,6,5,4 pins of the Arduino.
• To power the sensor we have used the 5V and Ground pins of
the Arduino Board.
• The TCS3200 Color Sensor module has 8 pins; those are VCC,
OUT, S3, S2, S1, S0, 0E, and GND. All the pins of this sensor
module are digital, except VCC and Ground.
17
INTERFACE WITH ARDUINO
18
// Initialize the variables
int redValue = 0;
int greenValue = 0;
int blueValue = 0;
void setup() {
// Set the pins for the color sensor module
pinMode(S0, OUTPUT);
pinMode(S1, OUTPUT);
pinMode(S2, OUTPUT);
pinMode(S3, OUTPUT);
pinMode(OUT, INPUT);
// Set the frequency scaling to 20%
digitalWrite(S0, HIGH);
digitalWrite(S1, LOW);
// Print the headers for the serial output
Serial.begin(9600);
Serial.println("Color");
}
void loop() {
// Set the color sensor to detect red light
digitalWrite(S2, LOW);
digitalWrite(S3, LOW);
delay(10);
// Read the red value
redValue = pulseIn(OUT, LOW);
// Set the color sensor to detect green light
digitalWrite(S2, HIGH);
digitalWrite(S3, HIGH);
delay(10);
// Read the green value
greenValue = pulseIn(OUT, LOW);
// Set the color sensor to detect blue light
digitalWrite(S2, LOW);
digitalWrite(S3, HIGH);
delay(10);
// Read the blue value
blueValue = pulseIn(OUT, LOW);
// Determine the color based on the RGB values
if (redValue > greenValue && redValue >
blueValue) {
Serial.println("Red");
} else if (greenValue > redValue && greenValue
> blueValue) {
Serial.println("Green");
} else if (blueValue > redValue && blueValue >
greenValue) {
Serial.println("Blue");
} else if (redValue > 200 && greenValue > 200
&& blueValue > 200) {
Serial.println("White");
} else if (redValue < 50 && greenValue < 50 &&
blueValue < 50) {
Serial.println("Black");
} else {
Serial.println("Unknown");
}
// Wait for a short period before taking the next
measurement
delay(1000);
}
// Define the pins for the color sensor module
#define S0 2
#define S1 3
#define S2 4
#define S3 5
#define OUT 6
REFERENCE
• TCS3200, TCS3210 PROGRAMMABLE COLOR LIGHT-TO-
FREQUENCY CONVERTER Texas Advanced Optoelectronic
Solutions Inc.
• https://www.mouser.com/datasheet/2/588/AS73211_DS0005
56_3-01-1366202.pdf
• https://cdn-shop.adafruit.com/datasheets/TCS34725.pdf
• https://core-electronics.com.au/color-detector-sensor.html
• https://www.keyence.co.in/ss/products/sensor/sensorbasics
/color/info/
20

More Related Content

What's hot

Arduino Base Door Automation System.ppt
Arduino Base Door Automation System.pptArduino Base Door Automation System.ppt
Arduino Base Door Automation System.pptSazzad Hossain
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduinochetan kadiwal
 
Motor driver IC L293D
Motor driver IC L293DMotor driver IC L293D
Motor driver IC L293DAmit kumar
 
Shiv smart door ppt
Shiv smart door pptShiv smart door ppt
Shiv smart door pptMahesh Patil
 
smart blind stick
smart blind sticksmart blind stick
smart blind stickshiv kapil
 
SENSORS A DISCUSSION
SENSORS A DISCUSSIONSENSORS A DISCUSSION
SENSORS A DISCUSSIONPraveen Kumar
 
Ultrasonic sensor
Ultrasonic sensorUltrasonic sensor
Ultrasonic sensorAdarsh Raj
 
Optical sensor
Optical sensorOptical sensor
Optical sensorI'am Ajas
 
PATIENT MONITORING SYSTEM USING IOT
PATIENT MONITORING SYSTEM USING IOTPATIENT MONITORING SYSTEM USING IOT
PATIENT MONITORING SYSTEM USING IOTAM Publications
 
Infrared IR Sensor Circuit Diagram and Working Principle
Infrared IR Sensor Circuit Diagram and Working PrincipleInfrared IR Sensor Circuit Diagram and Working Principle
Infrared IR Sensor Circuit Diagram and Working Principleelprocus
 
Project Report Distance measurement system
Project Report Distance measurement systemProject Report Distance measurement system
Project Report Distance measurement systemkurkute1994
 

What's hot (20)

Arduino Base Door Automation System.ppt
Arduino Base Door Automation System.pptArduino Base Door Automation System.ppt
Arduino Base Door Automation System.ppt
 
Wearable system introduction (2)
Wearable system   introduction (2)Wearable system   introduction (2)
Wearable system introduction (2)
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduino
 
Sensor technology
Sensor technologySensor technology
Sensor technology
 
Sensor technology
Sensor technologySensor technology
Sensor technology
 
Proximity sensors
Proximity sensorsProximity sensors
Proximity sensors
 
Proximity sensors
Proximity sensorsProximity sensors
Proximity sensors
 
Motor driver IC L293D
Motor driver IC L293DMotor driver IC L293D
Motor driver IC L293D
 
Shiv smart door ppt
Shiv smart door pptShiv smart door ppt
Shiv smart door ppt
 
smart blind stick
smart blind sticksmart blind stick
smart blind stick
 
SENSORS A DISCUSSION
SENSORS A DISCUSSIONSENSORS A DISCUSSION
SENSORS A DISCUSSION
 
Ultrasonic sensor
Ultrasonic sensorUltrasonic sensor
Ultrasonic sensor
 
Sensor Technology
Sensor TechnologySensor Technology
Sensor Technology
 
Optical sensor
Optical sensorOptical sensor
Optical sensor
 
Arduino Projects
Arduino ProjectsArduino Projects
Arduino Projects
 
PATIENT MONITORING SYSTEM USING IOT
PATIENT MONITORING SYSTEM USING IOTPATIENT MONITORING SYSTEM USING IOT
PATIENT MONITORING SYSTEM USING IOT
 
Thermography
ThermographyThermography
Thermography
 
Infrared IR Sensor Circuit Diagram and Working Principle
Infrared IR Sensor Circuit Diagram and Working PrincipleInfrared IR Sensor Circuit Diagram and Working Principle
Infrared IR Sensor Circuit Diagram and Working Principle
 
Project Report Distance measurement system
Project Report Distance measurement systemProject Report Distance measurement system
Project Report Distance measurement system
 
Matched filter
Matched filterMatched filter
Matched filter
 

Similar to Color Sensor.pptx

Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorRAGHUVARMA09
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using ArduinoABHISHEKJAISWAL282
 
Porte à puce - Smart Safety Door based on Arduino UNO R3
Porte à puce - Smart Safety Door based on Arduino UNO R3Porte à puce - Smart Safety Door based on Arduino UNO R3
Porte à puce - Smart Safety Door based on Arduino UNO R3Meifani Sumadijaya
 
Smart Safety Door based on Arduino Uno R3
Smart Safety Door based on Arduino Uno R3Smart Safety Door based on Arduino Uno R3
Smart Safety Door based on Arduino Uno R3Ziddan Kundrat
 
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors  B...Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors  B...
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...Faqih Fadhila Ardiansyah
 
Arduino Based Smart Home Automation System
Arduino Based Smart Home Automation SystemArduino Based Smart Home Automation System
Arduino Based Smart Home Automation Systemijtsrd
 
PIR sensors day
PIR sensors day PIR sensors day
PIR sensors day sivagamitec
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)inventionjournals
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) inventionjournals
 
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...DeepakK547422
 
Basics of mechatronics - Arduino tutorial
Basics of mechatronics - Arduino tutorialBasics of mechatronics - Arduino tutorial
Basics of mechatronics - Arduino tutorialManasShrivastava6
 

Similar to Color Sensor.pptx (20)

Arduino
ArduinoArduino
Arduino
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR Sensor
 
UEE PPT.pptx
UEE PPT.pptxUEE PPT.pptx
UEE PPT.pptx
 
sensors.pptx
sensors.pptxsensors.pptx
sensors.pptx
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
 
Porte à puce - Smart Safety Door based on Arduino UNO R3
Porte à puce - Smart Safety Door based on Arduino UNO R3Porte à puce - Smart Safety Door based on Arduino UNO R3
Porte à puce - Smart Safety Door based on Arduino UNO R3
 
Smart Safety Door based on Arduino Uno R3
Smart Safety Door based on Arduino Uno R3Smart Safety Door based on Arduino Uno R3
Smart Safety Door based on Arduino Uno R3
 
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors  B...Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors  B...
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
 
Complex Sensors
Complex SensorsComplex Sensors
Complex Sensors
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
 
Arduino Based Smart Home Automation System
Arduino Based Smart Home Automation SystemArduino Based Smart Home Automation System
Arduino Based Smart Home Automation System
 
Sensors.pptx
Sensors.pptxSensors.pptx
Sensors.pptx
 
PIR sensors day
PIR sensors day PIR sensors day
PIR sensors day
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
 
EESS.pptx
EESS.pptxEESS.pptx
EESS.pptx
 
DAM SHUTTER 2.pptx
DAM SHUTTER 2.pptxDAM SHUTTER 2.pptx
DAM SHUTTER 2.pptx
 
Basics of mechatronics - Arduino tutorial
Basics of mechatronics - Arduino tutorialBasics of mechatronics - Arduino tutorial
Basics of mechatronics - Arduino tutorial
 
Sensors.pptx
Sensors.pptxSensors.pptx
Sensors.pptx
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

Color Sensor.pptx

  • 2. INDEX INDEX ➢ INTRODUCTION ➢ WHAT IS A SENSOR? ➢ WHAT IS A COLOR SENSOR? ➢ WORKING PRINCIPLE ➢ APPLICATIONS ➢ EXAMPLES ➢ INTERFACE WITH ARDUINO 2
  • 3. INTRODUCTION Date 3 We live in a World of Sensors. You can find different types of Sensors in your homes, offices, cars etc. working to make our lives easier by turning on the lights by detecting our presence, adjusting the room temperature, detect smoke or fire, make us delicious coffee, open garage doors as soon as our car is near the door and many other tasks.
  • 4. WHAT IS SENSORS? A sensor is a device that produces an output signal for the purpose of sensing a physical phenomenon. In the broadest definition, a sensor is a device, module, machine, or subsystem that detects events or changes in its environment and sends the information to other electronics, frequently a computer processor. Date Your Footer Here 4
  • 6. WHAT IS COLOR SENSORS? • A colour sensor is a type of "photoelectric sensor" which emits light from a transmitter, and then detects the light reflected back from the detection object with a receiver. • A colour sensor can detect the received light intensity for red, blue and green respectively, making it possible to determine the colour of the target object. • Color sensors detect RGB values by receiving ambient light using a photodiode. Date Your Footer Here 6
  • 7. WORKING PRINCIPLE 7 ● Colour sensors contain a white light emitter to illuminate the surface. Three filters with wavelength sensitivities at 580nm, 540nm, 450nm to measure the wavelengths of red, green and blue colors respectively. ● Based on the activation of these filters, the color of the material is categorized. A light to voltage converter is also present in the sensor. The sensor responds to color by generating a voltage proportional to the detected color.
  • 9. APPLICATIONS ● Colour sensors are applied to measure, detect the color of the surfaces. These sensors have a wide range of applications in industrial, medical and security systems. ● Some of the applications are the light color temperature measurement, RGB LED consistency control, medical diagnosis systems, health fitness systems, industrial process control, etc ● Colour sensors are majorly used to grade coloured products, distinguish coded markings detect the presence of adhesives or data codes on a package. ● The technology has a wide range of applications in various industries such as textile, automation, automotive, food, printing, pharmaceutical, and many more. 9
  • 10. 10 TCS3200 EXAMPLES ● In the TCS3200, the light-to-frequency converter reads an 8 x 8 array of photodiodes. ● 16 photodiodes have blue filters, 16 photodiodes have green filters, 16 photodiodes have red filters, and 16 photodiodes are clear with no filters.
  • 11. 11
  • 12. ● The TCS3200 and TCS3210 programmable color light-to- frequency converters that combine configurable silicon photodiodes and a current-to-frequency converter on a single monolithic CMOS integrated circuit. ● The output is a square wave (50% duty cycle) with frequency directly proportional to light intensity (irradiance). ● The full-scale output frequency can be scaled by one of three preset values via two control input pins. ● Digital inputs and digital output allow direct interface to a microcontroller or other logic circuitry. ● Output enable (OE) places the output in the high- impedance state for multiple-unit sharing of a microcontroller input line. 12
  • 13. 13 AS73211 EXAMPLES ● The AS73211 is a low power, low noise integrated color sensor. ● Three channels convert light signals via photodiodes to a digital result and realize a continuous or triggered measurement.
  • 14. 14
  • 15. 15 SEN-11195 EXAMPLES ● They can be complicated to interface to since RGB data often has to be derived using complex signal processing. ● Secondly, they’re less than rugged, and when you want to deploy one in the field you need a device that can stand up to the weather. ● Even moisture in the air can make an unprotected sensor unreliable.
  • 16. 16 ● Atlas solved these problems by embedding the light sensor in a rugged housing below a layer of transparent epoxy which protects the sensor from moisture while still allowing light to get in. ● The resulting light probe is water- and dust-proof, sleet and ice tolerant, non reactive in salt water and will readily sink when submerged.
  • 17. • To communicate with the sensor we don't need anything other than five GPIO pins of the Arduino, and that is why we have used GPIO 8,7,6,5,4 pins of the Arduino. • To power the sensor we have used the 5V and Ground pins of the Arduino Board. • The TCS3200 Color Sensor module has 8 pins; those are VCC, OUT, S3, S2, S1, S0, 0E, and GND. All the pins of this sensor module are digital, except VCC and Ground. 17 INTERFACE WITH ARDUINO
  • 18. 18
  • 19. // Initialize the variables int redValue = 0; int greenValue = 0; int blueValue = 0; void setup() { // Set the pins for the color sensor module pinMode(S0, OUTPUT); pinMode(S1, OUTPUT); pinMode(S2, OUTPUT); pinMode(S3, OUTPUT); pinMode(OUT, INPUT); // Set the frequency scaling to 20% digitalWrite(S0, HIGH); digitalWrite(S1, LOW); // Print the headers for the serial output Serial.begin(9600); Serial.println("Color"); } void loop() { // Set the color sensor to detect red light digitalWrite(S2, LOW); digitalWrite(S3, LOW); delay(10); // Read the red value redValue = pulseIn(OUT, LOW); // Set the color sensor to detect green light digitalWrite(S2, HIGH); digitalWrite(S3, HIGH); delay(10); // Read the green value greenValue = pulseIn(OUT, LOW); // Set the color sensor to detect blue light digitalWrite(S2, LOW); digitalWrite(S3, HIGH); delay(10); // Read the blue value blueValue = pulseIn(OUT, LOW); // Determine the color based on the RGB values if (redValue > greenValue && redValue > blueValue) { Serial.println("Red"); } else if (greenValue > redValue && greenValue > blueValue) { Serial.println("Green"); } else if (blueValue > redValue && blueValue > greenValue) { Serial.println("Blue"); } else if (redValue > 200 && greenValue > 200 && blueValue > 200) { Serial.println("White"); } else if (redValue < 50 && greenValue < 50 && blueValue < 50) { Serial.println("Black"); } else { Serial.println("Unknown"); } // Wait for a short period before taking the next measurement delay(1000); } // Define the pins for the color sensor module #define S0 2 #define S1 3 #define S2 4 #define S3 5 #define OUT 6
  • 20. REFERENCE • TCS3200, TCS3210 PROGRAMMABLE COLOR LIGHT-TO- FREQUENCY CONVERTER Texas Advanced Optoelectronic Solutions Inc. • https://www.mouser.com/datasheet/2/588/AS73211_DS0005 56_3-01-1366202.pdf • https://cdn-shop.adafruit.com/datasheets/TCS34725.pdf • https://core-electronics.com.au/color-detector-sensor.html • https://www.keyence.co.in/ss/products/sensor/sensorbasics /color/info/ 20

Editor's Notes

  1. © Copyright PresentationGO.com – The free PowerPoint and Google Slides template library
  2. A sensor is a device that detects and responds to some type of input from the physical environment. The input can be light, heat, motion, moisture, pressure or any number of other environmental phenomena. The output is generally a signal that is converted to a human-readable display at the sensor location or transmitted electronically over a network for reading or further processing.Sensors play a imp role in the internet of things. photoelectric sensor
  3. © Copyright PresentationGO.com – The free PowerPoint and Google Slides template library
  4. The TCS3200 and TCS3210 programmable color light-to-frequency converters that combine configurable silicon photodiodes and a current-to-frequency converter on a single monolithic CMOS integrated circuit. The output is a square wave (50% duty cycle) with frequency directly proportional to light intensity (irradiance). The full-scale output frequency can be scaled by one of three preset values via two control input pins. Digital inputs and digital output allow direct interface to a microcontroller or other logic circuitry. Output enable (OE) places the output in the high-impedance state for multiple-unit sharing of a microcontroller input line.
  5. // Color Sensor Example Code