{"id":80275,"date":"2024-06-19T14:42:06","date_gmt":"2024-06-19T18:42:06","guid":{"rendered":"https:\/\/www.engineersgarage.com\/?p=80275"},"modified":"2024-10-09T00:04:49","modified_gmt":"2024-10-09T04:04:49","slug":"how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino","status":"publish","type":"post","link":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/","title":{"rendered":"How to use the TCS230\/TCS3200 color-recognition sensor with Arduino"},"content":{"rendered":"<p><span data-preserver-spaces=\"true\">Color detection is the process of identifying and distinguishing colors within an image, video, scene, or object. Many embedded and robotic applications require this feature, as it\u2019s useful for sorting, selection, test strip reading, path determination, and more.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Two standard sensors used for color detection include TCS230 or TCS3200. TCS3200 recognizes various colors based on their wavelength and is easy to interface with any microcontroller using GPIO. TCS230 is slightly more sensitive, detecting a narrower range of colors with higher precision.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">In this project, we\u2019ll interface the TCS230\/TCS3200 sensor (either can be used) with Arduino Mega, calibrate the sensor, and derive the RGB values for specific colors.\u00a0<\/span><\/p>\n<p><strong><span data-preserver-spaces=\"true\">Components required<\/span><\/strong><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Arduino UNO\/Arduino Mega x1<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">TCS230\/TCS3200 color sensor x1<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Connecting\/DuPont wires<\/span><\/li>\n<\/ol>\n<p><strong><span data-preserver-spaces=\"true\">The color-recognition sensors<br \/>\n<\/span><\/strong><span data-preserver-spaces=\"true\">TCS230 and TCS3200 sensors detect and measure the intensity of light across different wavelengths to determine the color of an object. They can detect various colors using an array of photodiodes with different filters.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">TCS230\/TCS3200 contains four white LEDs that light up the object in front of it.\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-01-TCS230-TCS3200-Color-Sensor.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-80276\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-01-TCS230-TCS3200-Color-Sensor.jpg\" alt=\"\" width=\"560\" height=\"560\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-01-TCS230-TCS3200-Color-Sensor.jpg 800w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-01-TCS230-TCS3200-Color-Sensor-300x300.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-01-TCS230-TCS3200-Color-Sensor-150x150.jpg 150w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-01-TCS230-TCS3200-Color-Sensor-768x768.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-01-TCS230-TCS3200-Color-Sensor-238x238.jpg 238w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-01-TCS230-TCS3200-Color-Sensor-600x600.jpg 600w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>Typically, color-recognition sensors have four channels: red, green, blue, and clear (no filter). The TCS3200 has an array of photodiodes with four filters. In total, it has 16 photodiodes with red, green, and blue filters that are sensitive to red, green, and blue wavelengths; and it has 16 photodiodes without filters.<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-02-Color-Filters.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-80277\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-02-Color-Filters.png\" alt=\"\" width=\"501\" height=\"389\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-02-Color-Filters.png 663w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-02-Color-Filters-300x233.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-02-Color-Filters-307x238.png 307w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-02-Color-Filters-216x168.png 216w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\n<p>These sensors control the integration time during which they collect light. This allows them flexibility in adapting to different lighting conditions for greater color-recognition accuracy. TCS230\/TCS3200 provide analog output signals proportional to each color channel&#8217;s light intensity. They also have a frequency-to-voltage converter that converts the color information into a voltage signal, which can be easily measured.<\/p>\n<p>Additionally, TCS230\/TCS3200 uses a modulation and filtering technique to eliminate ambient light interference, further improving the accuracy of color detection. By selectively choosing the photodiode filter readings, the strength of colors can be identified.<\/p>\n<p>These sensors operate at a voltage of 2.7~5.5V DC and have the below pin diagram.<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-03-TCS230-TCS3200-pinout.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80278\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-03-TCS230-TCS3200-pinout.png\" alt=\"\" width=\"492\" height=\"522\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-03-TCS230-TCS3200-pinout.png 492w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-03-TCS230-TCS3200-pinout-283x300.png 283w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-03-TCS230-TCS3200-pinout-224x238.png 224w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/a><\/p>\n<p>Description of the TCS230\/TCS3200 pin configuration:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-04-TCS230-TCS3200-pin-configuration.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-80279\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-04-TCS230-TCS3200-pin-configuration-1024x242.png\" alt=\"\" width=\"740\" height=\"175\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-04-TCS230-TCS3200-pin-configuration-1024x242.png 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-04-TCS230-TCS3200-pin-configuration-300x71.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-04-TCS230-TCS3200-pin-configuration-768x181.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-04-TCS230-TCS3200-pin-configuration-368x87.png 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-04-TCS230-TCS3200-pin-configuration.png 1067w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<p>Pins S2 and S3 are used to read the light intensity of a particular color. The photodiodes are connected in parallel, so setting S2 and S3 to LOW and HIGH in different combinations allows the photodiodes to be matched to the corresponding colors.<\/p>\n<p>The colors are selected as per the following table.<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-05-TCS230-TCS3200-Filter-Selection.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80280\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-05-TCS230-TCS3200-Filter-Selection.png\" alt=\"\" width=\"341\" height=\"156\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-05-TCS230-TCS3200-Filter-Selection.png 341w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-05-TCS230-TCS3200-Filter-Selection-300x137.png 300w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/a><\/p>\n<p>Pins S0 and Si scale the output frequency to 100%, 20%, or 2% of the preset parameters. Scaling the output optimizes the sensor readings for different microcontrollers or frequency counters.<\/p>\n<p>When using Arduino, 20% is typical. Scaling using pins S0 and S1 is done according to the following table.<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-06-TCS230-TCS3200-Scaling-Selection.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80281\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-06-TCS230-TCS3200-Scaling-Selection.png\" alt=\"\" width=\"462\" height=\"161\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-06-TCS230-TCS3200-Scaling-Selection.png 462w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-06-TCS230-TCS3200-Scaling-Selection-300x105.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-06-TCS230-TCS3200-Scaling-Selection-368x128.png 368w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/a><\/p>\n<p><strong>Circuit connections<br \/>\n<\/strong>For this project, we\u2019ll connect the TCS230\/TCS3200 color sensor with the Arduino Mega as follows:<\/p>\n<ul>\n<li>Connect TCS230\/TCS3200\u2019s S0, S1, S2, S3, and ouput pins of with Arduino\u2019s GPIO13, GPIO12, GPIO11, GPIO10, and GPIO9, respectively.<\/li>\n<li>Next connect TCS230\/TCS3200\u2019s VCC and GND pins with Arduino\u2019s 5Vout and ground pins, respectively.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-07-Arduino-TCS3200-Circuit-Diagram.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-80282\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-07-Arduino-TCS3200-Circuit-Diagram-1024x751.png\" alt=\"\" width=\"650\" height=\"477\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-07-Arduino-TCS3200-Circuit-Diagram-1024x751.png 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-07-Arduino-TCS3200-Circuit-Diagram-300x220.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-07-Arduino-TCS3200-Circuit-Diagram-768x563.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-07-Arduino-TCS3200-Circuit-Diagram-325x238.png 325w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/P48-07-Arduino-TCS3200-Circuit-Diagram.png 1260w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<p><strong>Arduino sketch<\/strong><\/p>\n<style>\n.gist-data{    height:250px; \/\/ Any height    overflow: auto;<br \/>}<\/style>\n<p><script src=\"https:\/\/gist.github.com\/Ajak58a\/28d8dc91f401c9415219bb1541b4f417.js\"><\/script><\/p>\n<p><strong><span data-preserver-spaces=\"true\">How it works<br \/>\n<\/span><\/strong><span data-preserver-spaces=\"true\">Arduino reads the light intensity of each color using the TCS230\/TCS3200 sensor by choosing the red, green, and blue channels one after the other. The \u201cread\u201d values are mapped to their appropriate calibrated values for an RBG color output. Note that the RGB color value is only obtained after calibration.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">The sensor is affected by ambient light. So, the color-detection calibration is only possible after the ambient light calibration. These RGB values do not match the true RGB color values, but they\u2019re a decent estimate and valuable for sorting or selecting objects.\u00a0<\/span><\/p>\n<p><strong>Calibration<br \/>\n<\/strong>The TCS230\/TCS3200 sensor must be calibrated in the same light in which it will be used. Print the red (#FF0000), green (#00FF00), and blue (#0000FF) colors on a sheet, along with a color for testing as shown in the image below.<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-10-at-5.49.46\u202fPM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-80283\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-10-at-5.49.46\u202fPM.png\" alt=\"\" width=\"472\" height=\"675\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-10-at-5.49.46\u202fPM.png 716w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-10-at-5.49.46\u202fPM-210x300.png 210w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-10-at-5.49.46\u202fPM-166x238.png 166w\" sizes=\"auto, (max-width: 472px) 100vw, 472px\" \/><\/a><\/p>\n<p>First, put the sensor on the \u201ctrue red\u201d color and note the readings for the red, green, and blue channels. Repeat for the \u201ctrue green\u201d and \u201ctrue blue\u201d colors.<\/p>\n<p>When the sensor is on the true red color, the frequency output of the red channel will be at its lowest. When it\u2019s on true green or true blue, the frequency output will be at its highest for either color. The lowest frequency is mapped at 255 and the highest recorded frequency is mapped at 0.<\/p>\n<p>After obtaining each color&#8217;s minimum and maximum values, map them in the sketch using the map() function. This is already done in the sketch above. But you\u2019ll need to do so based on the lighting in your environment. This way, the sensor will be calibrated for the ambient light conditions in your project\u2019s operating conditions.<\/p>\n<p><strong><span data-preserver-spaces=\"true\">The code<br \/>\n<\/span><\/strong><span data-preserver-spaces=\"true\">The sketch begins by defining the pin assignments for the TCS230\/TCS3200 color sensor. Next, the variables are declared for storing the RGB values. In the setup() function, the pins connected to S0, S1, S2, and S3 are set as digital outputs, and the pin connected to TCS230\/TCS3200 is set as a digital input. The S0 pin is set to HIGH, and the S1 is set to LOW &#8212; selecting for 20% scaling, which is most suitable for Arduino. The baud rate for the serial communication is set to 9600 bps.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">In the loop() function, Arduino first selects the sensor\u2019s red channel by setting the S2 and S3 pins to LOW. It reads the frequency of the red color, mapping to its calibrated values using the map function. The value for the red filter is printed to the serial port. Arduino then selects the sensor\u2019s green channel by setting the S2 and S3 pins to HIGH. It reads the frequency of the green color, mapping to its calibrated values using the map function. The value for the green filter is printed to the serial port.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Lastly, Arduino selects the sensor\u2019s blue channel by setting the S2 pin to LOW and the S3 pin to HIGH. It reads the frequency of the blue color, mapping to its calibrated values using the map function. The value for the blue filter is printed to the serial port.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">This provides an approximate RGB color value, which is useful in selecting or sorting objects.\u00a0<\/span><\/p>\n<p><strong>Video demonstration<\/strong><\/p>\n<p><iframe loading=\"lazy\" title=\"How to use the TCS230\/TCS3200 color-recognition sensor with Arduino\" width=\"740\" height=\"416\" src=\"https:\/\/www.youtube.com\/embed\/81q9Yi8rgf4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Color detection is the process of identifying and distinguishing colors within an image, video, scene, or object. Many embedded and robotic applications require this feature, as it\u2019s useful for sorting, selection, test strip reading, path determination, and more.\u00a0 Two standard sensors used for color detection include TCS230 or TCS3200. TCS3200 recognizes various colors based on&hellip;<\/p>\n","protected":false},"author":387,"featured_media":80284,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[32,13,1853,1871],"tags":[1175,550,4353,4352,2042,4355,4354],"class_list":{"2":"type-post","18":"entry","19":"has-post-thumbnail"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.2 (Yoast SEO v25.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>TCS230\/TCS3200 color detection sensor with Arduino Mega<\/title>\n<meta name=\"description\" content=\"Arduino reads light intensity of each color using TCS230\/TCS3200 sensor by choosing the red, green, and blue channels one after the other.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use the TCS230\/TCS3200 color-recognition sensor with Arduino\" \/>\n<meta property=\"og:description\" content=\"Arduino reads light intensity of each color using TCS230\/TCS3200 sensor by choosing the red, green, and blue channels one after the other.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"Engineers Garage\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engineersgarage\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png\" \/>\n\t<meta property=\"og:image:width\" content=\"795\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nikhil Agnihotri\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:site\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nikhil Agnihotri\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/\"},\"author\":{\"name\":\"Nikhil Agnihotri\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/3c71105e3b40a1fd12c79c15602914b6\"},\"headline\":\"How to use the TCS230\/TCS3200 color-recognition sensor with Arduino\",\"datePublished\":\"2024-06-19T18:42:06+00:00\",\"dateModified\":\"2024-10-09T04:04:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/\"},\"wordCount\":1054,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png\",\"keywords\":[\"Arduino\",\"color\",\"colordetection\",\"electronicprojects\",\"sensors\",\"tcs230\",\"tcs3200\"],\"articleSection\":[\"Arduino Projects\",\"Electronic Projects\",\"Featured Contributions\",\"Video\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/\",\"url\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/\",\"name\":\"TCS230\/TCS3200 color detection sensor with Arduino Mega\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png\",\"datePublished\":\"2024-06-19T18:42:06+00:00\",\"dateModified\":\"2024-10-09T04:04:49+00:00\",\"description\":\"Arduino reads light intensity of each color using TCS230\/TCS3200 sensor by choosing the red, green, and blue channels one after the other.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#primaryimage\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png\",\"width\":795,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.engineersgarage.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use the TCS230\/TCS3200 color-recognition sensor with Arduino\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.engineersgarage.com\/#website\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"name\":\"Engineers Garage\",\"description\":\"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News\",\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.engineersgarage.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\",\"name\":\"Engineer's Garage - WTWH Media\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"width\":372,\"height\":52,\"caption\":\"Engineer's Garage - WTWH Media\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/engineersgarage\",\"https:\/\/x.com\/EngineersGarage\",\"https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/3c71105e3b40a1fd12c79c15602914b6\",\"name\":\"Nikhil Agnihotri\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d26b31563fa36169891c8c7d312e9b33de8a0e3da1340ec14ef2de84d5c43497?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d26b31563fa36169891c8c7d312e9b33de8a0e3da1340ec14ef2de84d5c43497?s=96&r=g\",\"caption\":\"Nikhil Agnihotri\"},\"url\":\"https:\/\/www.engineersgarage.com\/author\/nikhil-agnihotri\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"TCS230\/TCS3200 color detection sensor with Arduino Mega","description":"Arduino reads light intensity of each color using TCS230\/TCS3200 sensor by choosing the red, green, and blue channels one after the other.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/","og_locale":"en_US","og_type":"article","og_title":"How to use the TCS230\/TCS3200 color-recognition sensor with Arduino","og_description":"Arduino reads light intensity of each color using TCS230\/TCS3200 sensor by choosing the red, green, and blue channels one after the other.","og_url":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/","og_site_name":"Engineers Garage","article_publisher":"https:\/\/www.facebook.com\/engineersgarage","og_image":[{"width":795,"height":500,"url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png","type":"image\/png"}],"author":"Nikhil Agnihotri","twitter_card":"summary_large_image","twitter_creator":"@EngineersGarage","twitter_site":"@EngineersGarage","twitter_misc":{"Written by":"Nikhil Agnihotri","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#article","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/"},"author":{"name":"Nikhil Agnihotri","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/3c71105e3b40a1fd12c79c15602914b6"},"headline":"How to use the TCS230\/TCS3200 color-recognition sensor with Arduino","datePublished":"2024-06-19T18:42:06+00:00","dateModified":"2024-10-09T04:04:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/"},"wordCount":1054,"commentCount":0,"publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"image":{"@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png","keywords":["Arduino","color","colordetection","electronicprojects","sensors","tcs230","tcs3200"],"articleSection":["Arduino Projects","Electronic Projects","Featured Contributions","Video"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/","url":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/","name":"TCS230\/TCS3200 color detection sensor with Arduino Mega","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#primaryimage"},"image":{"@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png","datePublished":"2024-06-19T18:42:06+00:00","dateModified":"2024-10-09T04:04:49+00:00","description":"Arduino reads light intensity of each color using TCS230\/TCS3200 sensor by choosing the red, green, and blue channels one after the other.","breadcrumb":{"@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#primaryimage","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator.png","width":795,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.engineersgarage.com\/how-to-detect-diffrent-colors-using-tcs230-tcs3200-sensor-with-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.engineersgarage.com\/"},{"@type":"ListItem","position":2,"name":"How to use the TCS230\/TCS3200 color-recognition sensor with Arduino"}]},{"@type":"WebSite","@id":"https:\/\/www.engineersgarage.com\/#website","url":"https:\/\/www.engineersgarage.com\/","name":"Engineers Garage","description":"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News","publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.engineersgarage.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.engineersgarage.com\/#organization","name":"Engineer's Garage - WTWH Media","url":"https:\/\/www.engineersgarage.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","width":372,"height":52,"caption":"Engineer's Garage - WTWH Media"},"image":{"@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/engineersgarage","https:\/\/x.com\/EngineersGarage","https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw"]},{"@type":"Person","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/3c71105e3b40a1fd12c79c15602914b6","name":"Nikhil Agnihotri","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d26b31563fa36169891c8c7d312e9b33de8a0e3da1340ec14ef2de84d5c43497?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d26b31563fa36169891c8c7d312e9b33de8a0e3da1340ec14ef2de84d5c43497?s=96&r=g","caption":"Nikhil Agnihotri"},"url":"https:\/\/www.engineersgarage.com\/author\/nikhil-agnihotri\/"}]}},"featured_image_src":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator-600x400.png","featured_image_src_square":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2024\/01\/Color-detection-sensors-rotator-600x500.png","author_info":{"display_name":"Nikhil Agnihotri","author_link":"https:\/\/www.engineersgarage.com\/author\/nikhil-agnihotri\/"},"_links":{"self":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/80275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/users\/387"}],"replies":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/comments?post=80275"}],"version-history":[{"count":0,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/80275\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media\/80284"}],"wp:attachment":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media?parent=80275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/categories?post=80275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/tags?post=80275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}