Arduino Color Sensing Tutorial - TCS230 TCS3200 Color Sensor

  Рет қаралды 455,589

How To Mechatronics

How To Mechatronics

Күн бұрын

howtomechatron... ► Find more details, circuit schematics and source codes on my official website.
In this Arduino Tutorial we will learn how to detect colors using Arduino and the TCS230 / TCS3200 Color Sensor.
Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
► howtomechatron...
Like my page on Facebook:
► / howtomechatr. .
Add me on Google+:
►plus.google.co....
Music: Aduro by Jens Kiilstofte (machinimasound.com/music)

Пікірлер: 156
@nikluz3807
@nikluz3807 5 жыл бұрын
i want to use this to create a green light alarms sensor so that I can take short naps at red lights.
@giovanidl9695
@giovanidl9695 4 жыл бұрын
pls dont
@adnankhan-q8g
@adnankhan-q8g 4 жыл бұрын
why just sleep and than wake up to sleep again
@carlosfotsing6779
@carlosfotsing6779 4 жыл бұрын
nice Video But i would like to know if i can use this for rotor blade position ie 3 Blades with 3 handwritten color to be recognize thanks in advance for your response
@GeeksThroughoutTime
@GeeksThroughoutTime 8 жыл бұрын
Very interesting. It seems like you could use this with an RGB LED to mirror the colors that the sensor sees, which would allow something like corner sensors on a TV to create a backlight that mirrored the colours on the TV screen. How many of these sensors could and Arduino handle at the same time?
@xeither289
@xeither289 2 жыл бұрын
JESUS IS THE KING OF THE KINGS
@toppendude
@toppendude Жыл бұрын
cap@@xeither289
@august9468
@august9468 10 ай бұрын
do you have the code for this
@vidhaniprakash5763
@vidhaniprakash5763 4 жыл бұрын
Please tell me how to program color sensor with DC motor and servo motor
@lothanmiranda1774
@lothanmiranda1774 4 жыл бұрын
Great video, but what happens if you want to detect a a different colour apart from red, green or blue such as yellow? I'm using the XC3708 sensor and it says that it can be set to read, red, green blue or greyscale. Would you have to test the colour first then use the map function to define the frequency based on the readings that you get?
@deeter_games
@deeter_games 2 жыл бұрын
Hey Lothan! Late reponse here but it may still be helpful. All colors can be defined on a RGB scale. Try googling "RGB color" for a better explanation. Basically though, Red Green and Blue can combine in any amount to form a color. As an example, 255 Red + 255 Green + 0 Blue will create Yellow. So a sensor like this can be used to detect any color, not just RGB. If you open "Paint" on your computer and go to add a custom color, you should 3 boxes labeled Red Green and Blue. Try typing 255 in Red 255 in Green and 0 in Blue. This should create yellow, and should essentially replicate what color you'd see if your sensor also read 255 R, 255G, 0B.
@xeither289
@xeither289 2 жыл бұрын
JESUS IS THE KING OF THE KINGS
@toppendude
@toppendude Жыл бұрын
cap@@xeither289
@arandomhashbrown3756
@arandomhashbrown3756 5 жыл бұрын
I got higher numbers than 255 when i try it, how can i solve this problem
@shifty51008
@shifty51008 8 жыл бұрын
great new video as always, very easy to understand and learn. keep up the great work
@xeither289
@xeither289 2 жыл бұрын
JESUS IS THE KING OF THE KINGS
@toppendude
@toppendude Жыл бұрын
@@xeither289 cap
@tommasodemitri6887
@tommasodemitri6887 7 жыл бұрын
thanks for the information,i like your english
@nabim4985
@nabim4985 2 жыл бұрын
Hi Dejan, does wirk this sensor on monitor display?
@CristianoLini
@CristianoLini 7 ай бұрын
hi Dejan I have question for you. If I want to detect white color , wath frequency I have to consider ? Thanks in advances Cristiano
@rolandosalgado1552
@rolandosalgado1552 7 жыл бұрын
Very good explanation to understand the sensor and build many projects !!!, thks
@xeither289
@xeither289 2 жыл бұрын
JESUS IS THE KING OF THE KINGS
@toppendude
@toppendude Жыл бұрын
cap@@xeither289
@aure.vds.8970
@aure.vds.8970 2 жыл бұрын
Good video but when I start the program, the Leds doesn’t turn on. What is the problem please ?
@nomercy4764
@nomercy4764 6 жыл бұрын
sir I have a question? can i use this sesnsor in different liquid which have different colour for deduction
@Kannanvathani
@Kannanvathani 5 жыл бұрын
hello sir, my serial monitor returns 0 value for each colour. Please help
@aleeex0911
@aleeex0911 5 жыл бұрын
Same
@giovanidl9695
@giovanidl9695 4 жыл бұрын
have u checked the cables
@MarcialWills
@MarcialWills 4 жыл бұрын
can this sensor work to detect change of color on a small section of a computer monitor? I want to build an alarm that will let me know when a window in my computer's monitor becomes red or yellow... but I am not sure what sensor to use
@dkoaaaaa
@dkoaaaaa 4 жыл бұрын
Hi Marcial, were you able to figure this out?
@DC-jt7os
@DC-jt7os 2 жыл бұрын
@marcial wills did u figure out please man i have the same idea of the project what u are thinking can you help me out did u figure it out
@DC-jt7os
@DC-jt7os 2 жыл бұрын
@spacebread did u figure it out ma please tell mee
@MarcialWills
@MarcialWills 2 жыл бұрын
@@DC-jt7os yes. It is not very accurate but it worked for what I wanted. I used a TCS34725 RGB Sensor. It detects the color from the screen/monitor but the source of light has to be big (like 1 square cm of screen.. it will not detect only a few pixels)
@rayyanburney3312
@rayyanburney3312 8 жыл бұрын
hey dejan! keep up the great work buddy!
@MightyTechGuy
@MightyTechGuy 6 жыл бұрын
The best on youtube...Thanks:)
@ahmedatef6683
@ahmedatef6683 7 жыл бұрын
Hello Thank you for your nice videos. I just want to know the use of photodiodes with no filters...
@keleker3913
@keleker3913 3 жыл бұрын
Can I make colorblind tool with this?
@xaviruizmartinez8089
@xaviruizmartinez8089 5 жыл бұрын
Why do I get only the red value in the serial monitor?? Green and Blue always are 0
@Shrinivas134
@Shrinivas134 4 жыл бұрын
Hello... I am getting negative and over 255 values for TCS3200 color sensor. How to fix this issue? else how to convert these frequency values into RGB values?
@jumbo999614
@jumbo999614 4 жыл бұрын
4:09 why is the mapping reversed? Should it be map(25,70,0, 255)? 25-0 and 75-255
@HowToMechatronics
@HowToMechatronics 4 жыл бұрын
Well in this way you map and at the same time reverse the values. So when the first values go from 70 down to 25, the new mapped values go from 0 up to 255.
@jumbo999614
@jumbo999614 4 жыл бұрын
@@HowToMechatronics So this sensor reads signal in reversed value?
@juancarlosgtz.6321
@juancarlosgtz.6321 4 жыл бұрын
I know it has been 2 years. But I dont know the another maps in the code. Please someone help me.
@k.sanjai...
@k.sanjai... 3 жыл бұрын
My doubt is, can we differentiate between same colour, like red, dark red, pale red.
@animationvideos9896
@animationvideos9896 5 жыл бұрын
Can you please provide me with the code that you used for the Arduino in this, thank you.
@pravinsavaridassm6919
@pravinsavaridassm6919 6 жыл бұрын
Is that Tcs 230 and Tcs 3200 sensors are same are they different If yes what is the difference. Suggest any colour sensor to sense different shades of same colour
@soldierlt666
@soldierlt666 8 жыл бұрын
Very nice tutorials. I have an idea for a new project, try to make a metal detector. :)
@johnflores8810
@johnflores8810 2 жыл бұрын
is it possible to connect multiple color sensor in just one arduino board ? i hope you reply
@hndrzp3064
@hndrzp3064 4 жыл бұрын
Which is the best between Tcs3200 vs Tcs34725? Any recommendation plz
@kalimorety
@kalimorety 5 жыл бұрын
Hello what is the maximum distance that can be between the object and the sensor please ?
@muhammadadeel9953
@muhammadadeel9953 5 жыл бұрын
How minium size things it can detect the color ? like 5 mm or 10 mm ?
@angelresendez9272
@angelresendez9272 3 жыл бұрын
What is the model of the Arduino board you use for the color sensor?
@shafiqalom8408
@shafiqalom8408 5 жыл бұрын
Sir,as for remain difference of price between TCS3200 & TCS230,which one is best?/Why?
@TusharSojitra96
@TusharSojitra96 7 жыл бұрын
good video , but can i know that can i interface this sensor with 8051 microcontroller or without arduino can i use with any other microcontroller . plzz give me a deatail replay if u know about it.
@swatiwavare8509
@swatiwavare8509 4 жыл бұрын
Can I use these sensor for detection of green Grass?
@henokgermay7025
@henokgermay7025 6 жыл бұрын
hello, Dejan Nedelkovski, i need a colour sesnor that sense 12 colours. and able to sense 4 colours at the same time out of the 12 colours. coz, i'm trying to workout the value of resistors by detecting the 4 colours that are displayed on the resister. it would be very helpful for me, if you can tell which arduino sensor can do this job? thanks :)
@electronicswithmadhan1052
@electronicswithmadhan1052 2 жыл бұрын
Actually I have one doubt... please anyone clear this. For any colour the output would be the frequency, and if we show the red color then the output frequency of the red color needs to be more, but here we see that the output frequency for the red color is very very low when we are trying to detect the red color. How's this possible??
@eduardomartinezcrucess8189
@eduardomartinezcrucess8189 6 жыл бұрын
hi :) Can i use it to detect color radiation in crops , soil and water?? Because rgb detection cameras are so expensive
@raghavgupta1998
@raghavgupta1998 5 жыл бұрын
which is better in terms of accuracy- tcs230 or tcs3200????/ please sir
@prateeksahni3993
@prateeksahni3993 6 жыл бұрын
Can this be used to make a multi-color line following robot?
@kimjushuasalon6467
@kimjushuasalon6467 Жыл бұрын
Can u make ESP32 WITH TALKING COLOR DETECTION?
@raviravi5835
@raviravi5835 4 жыл бұрын
For knowing 3 diff Colors lights how much min price I will get that entire kit! I'm not asking this vedio kit I want only 3 colours identify kit only ! Pls send me possible min price for making that
@vinayvictory6696
@vinayvictory6696 5 жыл бұрын
What is the use of S2&S3 pins and how it works
@rick31869
@rick31869 5 жыл бұрын
THANK YOU AWESOME VID MY FRIEND !!!
@amgadmohamed8621
@amgadmohamed8621 7 жыл бұрын
Plz i need get the diffrent between green degrees is it possibole
@cutefoxRC
@cutefoxRC 4 жыл бұрын
Hi :) as i guess this sensor works on low distance, but how about high distance? What things i need to use so Arduino can detect let's say red ball in room?
@oadka
@oadka 3 жыл бұрын
For that you would need object recognition of camera images. Either use OpenMV with arduino or ESP32CAM for object recognition.
@mohitarora1701
@mohitarora1701 5 жыл бұрын
How many colors it can detect ? I means can it detect ever color combination
@gehadmohsen9946
@gehadmohsen9946 7 жыл бұрын
sorry how you increase the length of the leds of the sensor ?
@yacahumax1431
@yacahumax1431 Жыл бұрын
how small can be the color section?
@AyushSharma-hm9bm
@AyushSharma-hm9bm 8 жыл бұрын
What if i use a red light source in front of this device? Will i get the readings in that case? or using an object is the only way to detect the color?
@basemaus3728
@basemaus3728 4 жыл бұрын
i would say, build the device, and then try it, the sensor is just around 15 euros (so around 15 dollars) so it isnt expensive
@somendutta182
@somendutta182 7 жыл бұрын
I need a little help..How can i sense other colors by combining the RGB colors with this sensors??thanks
@cruelworld4732
@cruelworld4732 7 жыл бұрын
For each different colour there will be different value of Red, Green and Blue.. All these combined together can be any colour. The range can be stored to sense the colour and get desired output.
@baseldaoud8813
@baseldaoud8813 5 жыл бұрын
if i want to implement this using pic microcontroller , do i need a pic that supports Analog to Digital conversion ? i mean does the sensor requires A/D conversion ?
@DudeBoerGaming
@DudeBoerGaming 5 жыл бұрын
If you set it to use 20% or even 2% then you do not need an A/D
@ionnieboy
@ionnieboy 6 жыл бұрын
Where can I find this colour sensor in Fritzing? Much thanks in advance.
@shridancediaries
@shridancediaries 4 жыл бұрын
Is the configuration same for TCS3200 ?
@ShampooWow
@ShampooWow 8 жыл бұрын
*_Awesome video! I like it_*
@bakchoddubs4868
@bakchoddubs4868 8 жыл бұрын
amazingly good tutorial
@FTF96
@FTF96 5 жыл бұрын
Will this work on a high gloss surface?
@philiorahgutomo6149
@philiorahgutomo6149 4 жыл бұрын
How do I use more than 1 color sensor tcs?
@a_gentle_spirit
@a_gentle_spirit 6 жыл бұрын
Hello sir. Is it possible to read colors from a long distance, for example 1m? Please help.
@HowToMechatronics
@HowToMechatronics 6 жыл бұрын
No, not with this sensor.
@wilfredocristobalolanochav5789
@wilfredocristobalolanochav5789 5 жыл бұрын
@@HowToMechatronicsthow much maximum distance the sensor has to be, thank you very much for sharing
@pickofdestiny94
@pickofdestiny94 8 жыл бұрын
Hello, where did you get the values of 70 and 25 in order to map them into RGB. Thanks in advanced.
@DudeBoerGaming
@DudeBoerGaming 5 жыл бұрын
By looking at the output from the serial port. First see the thresholds then map them according to what you see. Not the best approach but is practical
@taruntanwar8369
@taruntanwar8369 3 жыл бұрын
Is it able to detect color of dust?
@hissenguinho
@hissenguinho 6 жыл бұрын
for some reason my serial monitor doesn't make a new line which makes it difficult to see the values. btw what would happen if i set the frequency scale to 100%?
@wilhelmco3043
@wilhelmco3043 6 жыл бұрын
Write Serial.println instead of Serial.print
@hissenguinho
@hissenguinho 6 жыл бұрын
Wilhelm Cordes thx a lot :D
@wilfredocristobalolanochav5789
@wilfredocristobalolanochav5789 5 жыл бұрын
Muchas gracias, una pregunta de cuánta iluminación es necesaria para mejorar los resultados del sensor.
@xeither289
@xeither289 2 жыл бұрын
JESUS IS THE KING OF THE KINGS
@toppendude
@toppendude Жыл бұрын
cap@@xeither289
@alfred8294
@alfred8294 5 ай бұрын
Thanks! Excellent!
@xeither289
@xeither289 2 жыл бұрын
БОГ ЕСТЬ ЛЮБИТЕ БОГА И СВОИХ БЛИЖНИХ!!!
@washingtonoliveira3523
@washingtonoliveira3523 6 жыл бұрын
Gostaria de saber se tem sensor que reconheça objetos diferentes
@Sieg_
@Sieg_ 5 жыл бұрын
Why i got negative and giant values?
@mahdilotfi4295
@mahdilotfi4295 4 жыл бұрын
Thanks. Was usefull
@progamerz3114
@progamerz3114 2 жыл бұрын
where can i get this code pls saay
@winia69
@winia69 4 жыл бұрын
there is an error, S2 (brown) is 7 but You defined it as as a S6
@voldy3565
@voldy3565 5 жыл бұрын
Is there a small version of this? Like, really small.
@jisanbaidya7743
@jisanbaidya7743 5 жыл бұрын
Can we use Arduino uno?
@sandirimanojkumar1683
@sandirimanojkumar1683 5 жыл бұрын
Hello Sir i need tcs230/ tcs 3200 color sensor library file for proteus
@alfiolocatelli5093
@alfiolocatelli5093 7 жыл бұрын
Sorry sir, i Need help, how can i read the Yellow , Orange , purple, Black , White colors? thank you, great video
@mcocker
@mcocker 7 жыл бұрын
The colour Yellow is made up of Red and Green, Purple (Magenta) is Red and Blue, White is all three of Red, Green and Blue. Black would be no Red, Green or Blue. So to read yellow you would look at the levels of all three colours, Blue should be a very low value, Red and Green would be a high value, Orange would be similar but with a medium level of Green.
@christophermeza9249
@christophermeza9249 4 жыл бұрын
What is the range of this specific sensor ???
@HowToMechatronics
@HowToMechatronics 4 жыл бұрын
This sensor has a small range of just couple of centimeters, depending on the object as well.
@zarulafiq7860
@zarulafiq7860 5 жыл бұрын
hello bro. can you help me build code in raspberry pi?
@nelsondarwinpaktech3954
@nelsondarwinpaktech3954 6 жыл бұрын
great
@sharleinezeacabugnason9628
@sharleinezeacabugnason9628 5 жыл бұрын
Can I use this sensor for Bills Counting Project?
@aadikanchankar8475
@aadikanchankar8475 5 жыл бұрын
no
@ahmadzuhair1073
@ahmadzuhair1073 7 жыл бұрын
hello sir do you know how to make it output using speaker, which means when it sens color it will give output in voice output?
@xeither289
@xeither289 2 жыл бұрын
БОГ СОЗДАЛ ТАКОЙ ПРЕКРАСНЫЙ МИР МНОГИЕ УЧЁНЫЕ ВЕРИЛИ В БОГА И ИСКАЛИ КАК БОГ СОЗДАЛ ТАКУЮ БАЛАНСИРОВАННУЮ ВСЕЛЕНУЮ!!!❤💕☦🙏💕❤☦
@prathamva7392
@prathamva7392 8 жыл бұрын
Thankyou sir for this amazing tutorialSir pls upload a tutorial on keypad.
@prathamva7392
@prathamva7392 8 жыл бұрын
3x3 matrix keypad
@shripadkadam370
@shripadkadam370 6 жыл бұрын
Can we use arduino uno? Instead of arduino mega?
@HowToMechatronics
@HowToMechatronics 6 жыл бұрын
Yes, sure!
@GabrielA-bl4ox
@GabrielA-bl4ox 5 жыл бұрын
I'm looking for a sensor that detect color of your dress. if anyone have this tutorial please let me know
@jelmerwarns1173
@jelmerwarns1173 3 жыл бұрын
omg normally it takees me a long time to fix something like this haha
@xeither289
@xeither289 2 жыл бұрын
JESUS IS THE KING OF KINGS!!!
@kh29351
@kh29351 6 жыл бұрын
Plesa someone answer...what about black and white?
@superfour45
@superfour45 6 жыл бұрын
Matt Cocker answered this 2 comments above
@Amritanjali
@Amritanjali 5 жыл бұрын
sir, please provide tutorial using Atmel studio
@kirankumar6228
@kirankumar6228 8 жыл бұрын
i want to detect white colour only any help..
@kirankumar6228
@kirankumar6228 8 жыл бұрын
I don't want to detect R,G,B colors.I want detect white color from different colors. Thanks for your reply.
@DudeBoerGaming
@DudeBoerGaming 5 жыл бұрын
White is just a full exposure of R,G and B. White would be seen as 255,255,255 for each of the variables at 100%
@mukhyalasreelaxmi4706
@mukhyalasreelaxmi4706 6 жыл бұрын
Can we use normal ardiuno
@DudeBoerGaming
@DudeBoerGaming 5 жыл бұрын
Any Arduino would work with this sensor.
@mazenmostafa396
@mazenmostafa396 7 жыл бұрын
perfect
@BAEI_Akshata
@BAEI_Akshata 2 жыл бұрын
Please share code....
@prabowonugrohobudisejati5119
@prabowonugrohobudisejati5119 8 жыл бұрын
sir whether the sensor can tsc3200 for liquid color sensor?
@prabowonugrohobudisejati5119
@prabowonugrohobudisejati5119 8 жыл бұрын
+Dejan Nedelkovski thanks sir
@eltjomuntingman3241
@eltjomuntingman3241 5 жыл бұрын
I love you man
@GonMyoLat
@GonMyoLat Ай бұрын
fake code you are the best !!!
@arnavjindal3021
@arnavjindal3021 8 жыл бұрын
how did you open COM4 ???????
@giovanidl9695
@giovanidl9695 4 жыл бұрын
top ten questions science still can't explain
@arnavjindal3021
@arnavjindal3021 3 жыл бұрын
Sure sir!
@charlibiris
@charlibiris 5 жыл бұрын
It's time to buy skittles and a funnel
@Jeet_ahir
@Jeet_ahir 5 ай бұрын
Plz send a code bro 😄
@xeither289
@xeither289 2 жыл бұрын
☦💜❤
@nabim4985
@nabim4985 2 жыл бұрын
*work
@masterghostgg8008
@masterghostgg8008 5 жыл бұрын
Ni jala
@Alexelectricalengineering
@Alexelectricalengineering 8 жыл бұрын
Thumbs up :)
@haiaseriksson6945
@haiaseriksson6945 7 жыл бұрын
*you're
Arduino Color Sensors - TCS230 & ISL29125
34:57
DroneBot Workshop
Рет қаралды 140 М.
Arduino CNC Foam Cutting Machine (Complete Guide)
26:53
How To Mechatronics
Рет қаралды 1,4 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 4 МЛН
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 14 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 7 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН
How to Use a TCS3200 Color Sensor with Arduino (Lesson #38)
18:56
Science Buddies
Рет қаралды 6 М.
TCS3200 COLOR SENSOR WITH ARDUINO.
10:21
MYTECTUTOR
Рет қаралды 19 М.
How to use the Color Sensor with Arduino board (TCS3200 & TCS3210)
11:21
How to make Color Sorting Machine Arduino Based
7:21
Mr Innovative
Рет қаралды 149 М.
I tried the 3 Cheapest Arduino Alternatives! (That you Suggested)
13:21
Adafruit TCS34725 RGB Sensor Demo
7:44
learnelectronics
Рет қаралды 55 М.
Arduino Color Sensing Tutorial - TCS230/TCS3200 Color Sensor
16:47
Muhammad Ansar
Рет қаралды 43 М.
Color Sensing Using Arduino
7:36
Embedded Laboratory
Рет қаралды 48 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 4 МЛН