Arduino Color Sensing Tutorial - TCS230 TCS3200 Color Sensor

Поделиться
HTML-код
  • Опубликовано: 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:)

  • @tommasodemitri6887
    @tommasodemitri6887 7 лет назад +2

    thanks for the information,i like your english

  • @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 11 месяцев назад

      @@xeither289 cap

  • @rayyanburney3312
    @rayyanburney3312 8 лет назад

    hey dejan!
    keep up the great work buddy!

  • @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 11 месяцев назад

      cap@@xeither289

  • @rick31869
    @rick31869 5 лет назад

    THANK YOU AWESOME VID MY FRIEND !!!

  • @soldierlt666
    @soldierlt666 8 лет назад

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

  • @alfred8294
    @alfred8294 3 месяца назад

    Thanks! Excellent!

  • @bakchoddubs4868
    @bakchoddubs4868 8 лет назад

    amazingly good tutorial

  • @ShampooWow
    @ShampooWow 8 лет назад

    *_Awesome video! I like it_*

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

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

  • @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 11 месяцев назад

      cap@@xeither289

    • @august9468
      @august9468 7 месяцев назад

      do you have the code for this

  • @mahdilotfi4295
    @mahdilotfi4295 4 года назад

    Thanks. Was usefull

  • @xeither289
    @xeither289 2 года назад +1

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

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

  • @prathamva7392
    @prathamva7392 8 лет назад +1

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

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

  • @shafiqalom8408
    @shafiqalom8408 5 лет назад

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

  • @eduardomartinezcrucess8189
    @eduardomartinezcrucess8189 6 лет назад

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

  • @animationvideos9896
    @animationvideos9896 4 года назад +2

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

  • @prateeksahni3993
    @prateeksahni3993 6 лет назад

    Can this be used to make a multi-color line following robot?

  • @nelsondarwinpaktech3954
    @nelsondarwinpaktech3954 5 лет назад +2

    great

  • @ionnieboy
    @ionnieboy 5 лет назад

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

  • @washingtonoliveira3523
    @washingtonoliveira3523 6 лет назад

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

  • @nabim4985
    @nabim4985 2 года назад +1

    Hi Dejan, does wirk this sensor on monitor display?

  • @vinayvictory6696
    @vinayvictory6696 5 лет назад

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

  • @TusharSojitra96
    @TusharSojitra96 7 лет назад +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.

  • @vidhaniprakash5763
    @vidhaniprakash5763 4 года назад +1

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

  • @amgadmohamed8621
    @amgadmohamed8621 6 лет назад

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

  • @gehadmohsen9946
    @gehadmohsen9946 7 лет назад

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

  • @FTF96
    @FTF96 5 лет назад

    Will this work on a high gloss surface?

  • @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 11 месяцев назад

      cap@@xeither289

  • @angelresendez9272
    @angelresendez9272 3 года назад

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

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

  • @kalimorety
    @kalimorety 5 лет назад

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

  • @raghavgupta1998
    @raghavgupta1998 5 лет назад

    which is better in terms of accuracy- tcs230 or tcs3200????/ please sir

  • @hndrzp3064
    @hndrzp3064 4 года назад

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

  • @muhammadadeel9953
    @muhammadadeel9953 5 лет назад

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

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

  • @CristianoLini
    @CristianoLini 5 месяцев назад

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

  • @eltjomuntingman3241
    @eltjomuntingman3241 5 лет назад

    I love you man

  • @swatiwavare8509
    @swatiwavare8509 4 года назад

    Can I use these sensor for detection of green Grass?

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

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

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

  • @arandomhashbrown3756
    @arandomhashbrown3756 5 лет назад +2

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

  • @farziyafasool6600
    @farziyafasool6600 5 лет назад

    how do you add a library to it?

  • @jelmerwarns1173
    @jelmerwarns1173 3 года назад

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

  • @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 11 месяцев назад

      cap@@xeither289

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

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

  • @shridancediaries
    @shridancediaries 4 года назад

    Is the configuration same for TCS3200 ?

  • @mohitarora1701
    @mohitarora1701 4 года назад

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

  • @mazenmostafa396
    @mazenmostafa396 6 лет назад

    perfect

  • @xeither289
    @xeither289 2 года назад

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

  • @Kannanvathani
    @Kannanvathani 4 года назад +3

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

  • @keleker3913
    @keleker3913 3 года назад +1

    Can I make colorblind tool with this?

  • @Shima_n.n
    @Shima_n.n 4 года назад

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

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

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

  • @johnflores8810
    @johnflores8810 Год назад

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

  • @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 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 года назад +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)

  • @k.sanjai...
    @k.sanjai... 2 года назад

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

  • @yacahumax1431
    @yacahumax1431 Год назад

    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

  • @jisanbaidya7743
    @jisanbaidya7743 5 лет назад

    Can we use Arduino uno?

  • @sandirimanojkumar1683
    @sandirimanojkumar1683 5 лет назад

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

  • @philiorahgutomo6149
    @philiorahgutomo6149 4 года назад

    How do I use more than 1 color sensor tcs?

  • @sharleinezeacabugnason9628
    @sharleinezeacabugnason9628 5 лет назад

    Can I use this sensor for Bills Counting Project?

  • @winia69
    @winia69 4 года назад

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

  • @Sieg_
    @Sieg_ 5 лет назад

    Why i got negative and giant values?

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

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

  • @shripadkadam370
    @shripadkadam370 5 лет назад

    Can we use arduino uno? Instead of arduino mega?

  • @taruntanwar8369
    @taruntanwar8369 2 года назад

    Is it able to detect color of dust?

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

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

  • @mukhyalasreelaxmi4706
    @mukhyalasreelaxmi4706 6 лет назад

    Can we use normal ardiuno

    • @DudeBoerGaming
      @DudeBoerGaming 5 лет назад

      Any Arduino would work with this sensor.

  • @voldy3565
    @voldy3565 5 лет назад +1

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

  • @a_gentle_spirit
    @a_gentle_spirit 5 лет назад

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

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

  • @progamerz3114
    @progamerz3114 Год назад

    where can i get this code
    pls saay

  • @zarulafiq7860
    @zarulafiq7860 4 года назад

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

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

  • @arnavjindal3021
    @arnavjindal3021 7 лет назад

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

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

  • @prabowonugrohobudisejati5119
    @prabowonugrohobudisejati5119 8 лет назад

    sir whether the sensor can tsc3200 for liquid color sensor?

  • @Alexelectricalengineering
    @Alexelectricalengineering 8 лет назад

    Thumbs up :)

  • @nabim4985
    @nabim4985 2 года назад

    *work

  • @BAEI_Akshata
    @BAEI_Akshata 2 года назад

    Please share code....

  • @charlibiris
    @charlibiris 5 лет назад

    It's time to buy skittles and a funnel

  • @Jeet_ahir
    @Jeet_ahir 3 месяца назад

    Plz send a code bro 😄

  • @rick31869
    @rick31869 5 лет назад

    I WONDER IF THIS SENSOR COULD BE INCORPORATED IN THERMAL AND REGULAR NIGHT VISION !

  • @xeither289
    @xeither289 2 года назад +1

    ☦💜❤

  • @masterghostgg8008
    @masterghostgg8008 4 года назад

    Ni jala