Arduino Color Sensing Tutorial - TCS230 TCS3200 Color Sensor

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 พ.ค. 2016
  • howtomechatronics.com/tutoria... ► 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:
    ► howtomechatronics.com/
    Like my page on Facebook:
    ► / howtomechatr. .
    Add me on Google+:
    ►plus.google.com/+Howtomechatr...
    Music: Aduro by Jens Kiilstofte (machinimasound.com/music)

ความคิดเห็น • 155

  • @MightyTechGuy
    @MightyTechGuy 6 ปีที่แล้ว +1

    The best on youtube...Thanks:)

  • @rayyanburney3312
    @rayyanburney3312 8 ปีที่แล้ว

    hey dejan!
    keep up the great work buddy!

  • @rick31869
    @rick31869 5 ปีที่แล้ว

    THANK YOU AWESOME VID MY FRIEND !!!

  • @tommasodemitri6887
    @tommasodemitri6887 7 ปีที่แล้ว +2

    thanks for the information,i like your english

  • @rolandosalgado1552
    @rolandosalgado1552 7 ปีที่แล้ว +1

    Very good explanation to understand the sensor and build many projects !!!, thks

    • @xeither289
      @xeither289 2 ปีที่แล้ว

      JESUS IS THE KING OF THE KINGS

    • @toppendude
      @toppendude 10 หลายเดือนก่อน

      cap@@xeither289

  • @shifty51008
    @shifty51008 8 ปีที่แล้ว +1

    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 10 หลายเดือนก่อน

      @@xeither289 cap

  • @bakchoddubs4868
    @bakchoddubs4868 8 ปีที่แล้ว

    amazingly good tutorial

  • @soldierlt666
    @soldierlt666 8 ปีที่แล้ว

    Very nice tutorials. I have an idea for a new project, try to make a metal detector. :)

  • @ahmedatef6683
    @ahmedatef6683 7 ปีที่แล้ว

    Hello
    Thank you for your nice videos.
    I just want to know the use of photodiodes with no filters...

  • @nomercy4764
    @nomercy4764 6 ปีที่แล้ว +1

    sir I have a question? can i use this sesnsor in different liquid which have different colour for deduction

  • @ShampooWow
    @ShampooWow 8 ปีที่แล้ว

    *_Awesome video! I like it_*

  • @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

  • @shafiqalom8408
    @shafiqalom8408 5 ปีที่แล้ว

    Sir,as for remain difference of price between TCS3200 & TCS230,which one is best?/Why?

  • @GeeksThroughoutTime
    @GeeksThroughoutTime 8 ปีที่แล้ว +4

    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 10 หลายเดือนก่อน

      cap@@xeither289

    • @august9468
      @august9468 6 หลายเดือนก่อน

      do you have the code for this

  • @alfred8294
    @alfred8294 2 หลายเดือนก่อน

    Thanks! Excellent!

  • @nelsondarwinpaktech3954
    @nelsondarwinpaktech3954 5 ปีที่แล้ว +2

    great

  • @nabim4985
    @nabim4985 2 ปีที่แล้ว +1

    Hi Dejan, does wirk this sensor on monitor display?

  • @eduardomartinezcrucess8189
    @eduardomartinezcrucess8189 6 ปีที่แล้ว

    hi :) Can i use it to detect color radiation in crops , soil and water?? Because rgb detection cameras are so expensive

  • @mahdilotfi4295
    @mahdilotfi4295 4 ปีที่แล้ว

    Thanks. Was usefull

  • @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

  • @TusharSojitra96
    @TusharSojitra96 6 ปีที่แล้ว +2

    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.

  • @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?

  • @hndrzp3064
    @hndrzp3064 4 ปีที่แล้ว

    Which is the best between Tcs3200 vs Tcs34725? Any recommendation plz

  • @CristianoLini
    @CristianoLini 4 หลายเดือนก่อน

    hi Dejan I have question for you. If I want to detect white color , wath frequency I have to consider ? Thanks in advances Cristiano

  • @animationvideos9896
    @animationvideos9896 4 ปีที่แล้ว +2

    Can you please provide me with the code that you used for the Arduino in this, thank you.

  • @ionnieboy
    @ionnieboy 5 ปีที่แล้ว

    Where can I find this colour sensor in Fritzing? Much thanks in advance.

  • @lothanmiranda1774
    @lothanmiranda1774 3 ปีที่แล้ว +2

    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 10 หลายเดือนก่อน

      cap@@xeither289

  • @FTF96
    @FTF96 5 ปีที่แล้ว

    Will this work on a high gloss surface?

  • @eltjomuntingman3241
    @eltjomuntingman3241 5 ปีที่แล้ว

    I love you man

  • @angelresendez9272
    @angelresendez9272 3 ปีที่แล้ว

    What is the model of the Arduino board you use for the color sensor?

  • @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 :)

  • @nikluz3807
    @nikluz3807 5 ปีที่แล้ว +17

    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 ปีที่แล้ว +2

      pls dont

    • @adnanayub243
      @adnanayub243 4 ปีที่แล้ว

      why
      just sleep and than wake up to sleep again

  • @prathamva7392
    @prathamva7392 8 ปีที่แล้ว +1

    Thankyou sir for this amazing tutorialSir pls upload a tutorial on keypad.

  • @swatiwavare8509
    @swatiwavare8509 4 ปีที่แล้ว

    Can I use these sensor for detection of green Grass?

  • @mazenmostafa396
    @mazenmostafa396 6 ปีที่แล้ว

    perfect

  • @vinayvictory6696
    @vinayvictory6696 5 ปีที่แล้ว

    What is the use of S2&S3 pins and how it works

  • @kalimorety
    @kalimorety 5 ปีที่แล้ว

    Hello what is the maximum distance that can be between the object and the sensor please ?

  • @vidhaniprakash5763
    @vidhaniprakash5763 4 ปีที่แล้ว +1

    Please tell me how to program color sensor with DC motor and servo motor

  • @shridancediaries
    @shridancediaries 4 ปีที่แล้ว

    Is the configuration same for TCS3200 ?

  • @muhammadadeel9953
    @muhammadadeel9953 5 ปีที่แล้ว

    How minium size things it can detect the color ? like 5 mm or 10 mm ?

  • @gehadmohsen9946
    @gehadmohsen9946 7 ปีที่แล้ว

    sorry how you increase the length of the leds of the sensor ?

  • @amgadmohamed8621
    @amgadmohamed8621 6 ปีที่แล้ว

    Plz i need get the diffrent between green degrees is it possibole

  • @keleker3913
    @keleker3913 3 ปีที่แล้ว +1

    Can I make colorblind tool with this?

  • @washingtonoliveira3523
    @washingtonoliveira3523 6 ปีที่แล้ว

    Gostaria de saber se tem sensor que reconheça objetos diferentes

  • @mohitarora1701
    @mohitarora1701 4 ปีที่แล้ว

    How many colors it can detect ? I means can it detect ever color combination

  • @Alexelectricalengineering
    @Alexelectricalengineering 8 ปีที่แล้ว

    Thumbs up :)

  • @AyushSharma-hm9bm
    @AyushSharma-hm9bm 7 ปีที่แล้ว

    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

  • @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 10 หลายเดือนก่อน

      cap@@xeither289

  • @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

  • @johnflores8810
    @johnflores8810 ปีที่แล้ว

    is it possible to connect multiple color sensor in just one arduino board ?
    i hope you reply

  • @cutefox8319
    @cutefox8319 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.

  • @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 ปีที่แล้ว +5

      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.

  • @arandomhashbrown3756
    @arandomhashbrown3756 5 ปีที่แล้ว +2

    I got higher numbers than 255 when i try it, how can i solve this problem

  • @jisanbaidya7743
    @jisanbaidya7743 5 ปีที่แล้ว

    Can we use Arduino uno?

  • @farziyafasool6600
    @farziyafasool6600 5 ปีที่แล้ว

    how do you add a library to it?

  • @Shima_n.n
    @Shima_n.n 4 ปีที่แล้ว

    how can I put some outputs to turn on leds :c?

  • @Shrinivas134
    @Shrinivas134 3 ปีที่แล้ว

    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?

  • @k.sanjai...
    @k.sanjai... 2 ปีที่แล้ว

    My doubt is, can we differentiate between same colour, like red, dark red, pale red.

  • @yacahumax1431
    @yacahumax1431 11 หลายเดือนก่อน

    how small can be the color section?

  • @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 ?

  • @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

  • @MarcialWills
    @MarcialWills 4 ปีที่แล้ว +2

    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 3 ปีที่แล้ว

      Hi Marcial, were you able to figure this out?

    • @DC-jt7os
      @DC-jt7os ปีที่แล้ว

      @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 ปีที่แล้ว

      @spacebread did u figure it out ma please tell mee

    • @MarcialWills
      @MarcialWills ปีที่แล้ว +1

      @@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)

  • @sharleinezeacabugnason9628
    @sharleinezeacabugnason9628 5 ปีที่แล้ว

    Can I use this sensor for Bills Counting Project?

  • @pickofdestiny94
    @pickofdestiny94 7 ปีที่แล้ว +1

    Hello, where did you get the values of 70 and 25 in order to map them into RGB.
    Thanks in advanced.

    • @DudeBoerGaming
      @DudeBoerGaming 5 ปีที่แล้ว +1

      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 2 ปีที่แล้ว

    Is it able to detect color of dust?

  • @voldy3565
    @voldy3565 4 ปีที่แล้ว +1

    Is there a small version of this? Like, really small.

  • @somendutta182
    @somendutta182 6 ปีที่แล้ว

    I need a little help..How can i sense other colors by combining the RGB colors with this sensors??thanks

    • @cruelworld4732
      @cruelworld4732 6 ปีที่แล้ว

      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.

  • @kimjushuasalon6467
    @kimjushuasalon6467 ปีที่แล้ว

    Can u make ESP32 WITH TALKING COLOR DETECTION?

  • @xaviruizmartinez8089
    @xaviruizmartinez8089 4 ปีที่แล้ว

    Why do I get only the red value in the serial monitor?? Green and Blue always are 0

  • @philiorahgutomo6149
    @philiorahgutomo6149 4 ปีที่แล้ว

    How do I use more than 1 color sensor tcs?

  • @shripadkadam370
    @shripadkadam370 5 ปีที่แล้ว

    Can we use arduino uno? Instead of arduino mega?

  • @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

  • @sandirimanojkumar1683
    @sandirimanojkumar1683 5 ปีที่แล้ว

    Hello Sir i need tcs230/ tcs 3200 color sensor library file for proteus

  • @Kannanvathani
    @Kannanvathani 4 ปีที่แล้ว +3

    hello sir, my serial monitor returns 0 value for each colour.
    Please help

  • @a_gentle_spirit
    @a_gentle_spirit 5 ปีที่แล้ว

    Hello sir. Is it possible to read colors from a long distance, for example 1m? Please help.

  • @xeither289
    @xeither289 2 ปีที่แล้ว +1

    БОГ ЕСТЬ ЛЮБИТЕ БОГА И СВОИХ БЛИЖНИХ!!!

  • @Amritanjali
    @Amritanjali 5 ปีที่แล้ว

    sir, please provide tutorial using Atmel studio

  • @jelmerwarns1173
    @jelmerwarns1173 3 ปีที่แล้ว

    omg normally it takees me a long time to fix something like this haha

  • @zarulafiq7860
    @zarulafiq7860 4 ปีที่แล้ว

    hello bro. can you help me build code in raspberry pi?

  • @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.

  • @jumbo999614
    @jumbo999614 4 ปีที่แล้ว +1

    4:09 why is the mapping reversed? Should it be map(25,70,0, 255)? 25-0 and 75-255

    • @HowToMechatronics
      @HowToMechatronics  4 ปีที่แล้ว +2

      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 ปีที่แล้ว +1

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

  • @Sieg_
    @Sieg_ 5 ปีที่แล้ว

    Why i got negative and giant values?

  • @electronicswithmadhan1052
    @electronicswithmadhan1052 ปีที่แล้ว

    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??

  • @progamerz3114
    @progamerz3114 ปีที่แล้ว

    where can i get this code
    pls saay

  • @mukhyalasreelaxmi4706
    @mukhyalasreelaxmi4706 6 ปีที่แล้ว

    Can we use normal ardiuno

    • @DudeBoerGaming
      @DudeBoerGaming 5 ปีที่แล้ว

      Any Arduino would work with this sensor.

  • @winia69
    @winia69 4 ปีที่แล้ว

    there is an error, S2 (brown) is 7 but You defined it as as a S6

  • @arnavjindal3021
    @arnavjindal3021 7 ปีที่แล้ว

    how did you open COM4 ???????

  • @aneeeessshhh
    @aneeeessshhh 8 ปีที่แล้ว

    First!

  • @kh29351
    @kh29351 6 ปีที่แล้ว

    Plesa someone answer...what about black and white?

    • @superfour45
      @superfour45 6 ปีที่แล้ว

      Matt Cocker answered this 2 comments above

  • @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

  • @prabowonugrohobudisejati5119
    @prabowonugrohobudisejati5119 8 ปีที่แล้ว

    sir whether the sensor can tsc3200 for liquid color sensor?

  • @xeither289
    @xeither289 2 ปีที่แล้ว

    БОГ СОЗДАЛ ТАКОЙ ПРЕКРАСНЫЙ МИР
    МНОГИЕ УЧЁНЫЕ ВЕРИЛИ В БОГА И ИСКАЛИ КАК БОГ СОЗДАЛ ТАКУЮ БАЛАНСИРОВАННУЮ ВСЕЛЕНУЮ!!!❤💕☦🙏💕❤☦

  • @kirankumar6228
    @kirankumar6228 7 ปีที่แล้ว

    i want to detect white colour only any help..

    • @kirankumar6228
      @kirankumar6228 7 ปีที่แล้ว

      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%

  • @xeither289
    @xeither289 2 ปีที่แล้ว

    ❤💕☦☦☦

  • @xeither289
    @xeither289 2 ปีที่แล้ว +1

    ☦💜❤

  • @BAEI_Akshata
    @BAEI_Akshata 2 ปีที่แล้ว

    Please share code....

  • @haiaseriksson6945
    @haiaseriksson6945 6 ปีที่แล้ว

    first

  • @charlibiris
    @charlibiris 5 ปีที่แล้ว

    It's time to buy skittles and a funnel

  • @nabim4985
    @nabim4985 2 ปีที่แล้ว

    *work