{"id":22483,"date":"2017-10-13T08:00:03","date_gmt":"2017-10-13T15:00:03","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=22483"},"modified":"2021-06-10T16:17:19","modified_gmt":"2021-06-10T23:17:19","slug":"new-product-introduction-pmod-color","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/new-product-introduction-pmod-color\/","title":{"rendered":"New Product Introduction &#8211; Pmod COLOR"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright\" src=\"http:\/\/cdn6.bigcommerce.com\/s-7gavg\/products\/591\/images\/4759\/PmodCOLOR_-_Rev_B_-_Oblique_-_600__90261.1507662286.1280.1280.png?c=2\" alt=\"Pmod COLOR, oblique view. \" width=\"246\" height=\"245\" \/>Announcing the addition of the\u00a0<a href=\"https:\/\/digilent.com\/shop\/pmod-color-color-sensor-module\/\">Pmod COLOR<\/a>\u00a0to the Pmod sensor family!<\/p>\n<p><strong>Description<\/strong><\/p>\n<p>Sensors are the bridge to the physical world for electronics, each one with its own anthropomorphic qualities to give new life to your projects. This one, the Digilent Pmod COLOR, bestows the ability of color distinction. It is a color light to digital converter module that reports digital values for red, green, blue (RGB) and clear light over a simple I2C bus. It incorporates a white LED to improve color determination in low light conditions, as well as an additional female header for daisy chaining multiple I2C modules together over the same I2C bus. All I2C Pmods require pull up jumpers on the SCL and SDA lines. Usually they are straight headers off the top of the board, however the jumpers on the Pmod COLOR had to be moved to the bottom of the board in order to not interfere with the sensitive color measurements!<\/p>\n<p>The onboard\u00a0<a class=\"urlextern\" title=\"http:\/\/ams.com\/eng\/Products\/Light-Sensors\/Color-Sensors\/TCS34725\" href=\"http:\/\/ams.com\/eng\/Products\/Light-Sensors\/Color-Sensors\/TCS34725\" rel=\"nofollow\">AMS TCS3472<\/a>\u00a0color light sensor integrates an IR blocking filter to accurately determine the color of objects as well as sense ambient light. The Pmod COLOR is highly sensitive with a wide dynamic range, making it ideal for use under varying lighting conditions and through attenuating materials.<\/p>\n<p><strong>How does it work?<\/strong><\/p>\n<p>The onboard AMS TCS3472 color light sensor consists of an infrared filters, four photodiodes, four analog-to-digital converters (ADCs), data registers, an I2C bus and a state machine. Light first passes through the infrared filters that coat each <a href=\"https:\/\/en.wikipedia.org\/wiki\/Photodiode\">photodiode<\/a>, eliminating the IR spectral component of the incoming light and improving accuracy of the measurements. After passing through the IR filter, the light enters the photodiodes, one red-filtered, one green-filtered, one blue-filtered and one clear or non-filtered. The photodiodes produce leakage current based on the intensity of RGB and clear light present. The current from each photodiode passes through an ADC and gets converted to a 16-bit digital value that is stored in the data registers. Users can then access the digital RGB and clear light values over a simple I2C bus and program their host board to take certain action based on the RGB components and intensity present.<\/p>\n<figure id=\"attachment_22496\" aria-describedby=\"caption-attachment-22496\" style=\"width: 677px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-22496\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/color-sensor-block-diagram-1024x556.png\" alt=\"\" width=\"677\" height=\"368\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/color-sensor-block-diagram-1024x556.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/color-sensor-block-diagram-600x326.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/color-sensor-block-diagram-768x417.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/color-sensor-block-diagram-800x434.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/color-sensor-block-diagram.png 1187w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><figcaption id=\"caption-attachment-22496\" class=\"wp-caption-text\"><em>Block diagram of the AMS TCS3472 color light sensor taken from the <a href=\"\/Users\/tbleythi\/Downloads\/TCS3472_Datasheet_EN_v2.pdf\">AMS TCS3472 datasheet.<\/a><\/em><\/figcaption><\/figure>\n<p>The Pmod COLOR also has an onboard white LED and four jumpers. The white LED is present to improve color measurements of objects and is very bright, therefor we recommend users do not stare directly at it. The jumpers are present to control the SCL and SDA pullups to VCC, enable\/disable the active-low interrupt pin, and to enable\/disable the white LED. More can be read about use of the jumpers in the Pmod COLOR <a href=\"https:\/\/digilent.com\/reference\/pmod\/pmodcolor\/reference-manual#applications_information\">reference manual<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-22499\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/pmod-color-walkaround-1-1024x576.png\" alt=\"\" width=\"702\" height=\"395\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/pmod-color-walkaround-1-1024x576.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/pmod-color-walkaround-1-600x338.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/pmod-color-walkaround-1-768x432.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/pmod-color-walkaround-1-800x450.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/pmod-color-walkaround-1.png 1280w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/p>\n<p><strong>Applications<\/strong><\/p>\n<p>Applications of the TCS3472 include\u00a0RGB LED backlight control, light color temperature measurement, ambient light sensing for display backlight control (which we&#8217;re all familiar with as its used in cell phones and tablets), fluid and gas analysis, and product color verification and sorting which is\u00a0frequently use for automation in the industrial space. If you&#8217;re interested at all in physics, be sure to check out the technical documents provided by AMS on\u00a0interesting topics such as color temperature measurement and colorimetry. AMS has also provided white papers on sensitivity to wavelength and temperature, improving lux accuracy, color classification for sorting, and other topics using this sensor. The list and links are below:<\/p>\n<ul class=\"content\">\n<li><a href=\"http:\/\/ams.com\/eng\/content\/view\/download\/409155\" target=\"_self\" rel=\"noopener\">Imroving Color Sensor Lux Accuracy<\/a><\/li>\n<li><a href=\"http:\/\/ams.com\/eng\/content\/view\/download\/145158\" target=\"_self\" rel=\"noopener\">Calculating Color Temperature and Illuminance<\/a><\/li>\n<li><a href=\"http:\/\/ams.com\/eng\/content\/view\/download\/145159\" target=\"_self\" rel=\"noopener\">Color Classification with the TCS230<\/a><\/li>\n<li><a href=\"http:\/\/ams.com\/eng\/content\/view\/download\/145160\" target=\"_self\" rel=\"noopener\">Sensing color with the TCS230<\/a><\/li>\n<li><a href=\"http:\/\/ams.com\/eng\/content\/view\/download\/145161\" target=\"_self\" rel=\"noopener\">Colorimetry Tutorial<\/a><\/li>\n<li><a href=\"http:\/\/ams.com\/eng\/content\/view\/download\/176836\" target=\"_self\" rel=\"noopener\">Photo Sensor Response Part I: Sensitivity to Wavelength<\/a><\/li>\n<li><a href=\"http:\/\/ams.com\/eng\/content\/view\/download\/176837\" target=\"_self\" rel=\"noopener\">Photo Sensor Response Part II: Sensitivity to Temperature<\/a><\/li>\n<li><a href=\"http:\/\/ams.com\/eng\/content\/view\/download\/176838\" target=\"_self\" rel=\"noopener\">Compensating for Light Flicker on Optical Sensors<\/a><\/li>\n<\/ul>\n<p>The\u00a0<a href=\"https:\/\/digilent.com\/shop\/pmod-color-color-sensor-module\/\">Pmod COLOR<\/a>\u00a0is designed to work with any Digilent FPGA, Zynq or MCU board. It can be plugged into any host port on a Digilent\u00a0<a href=\"https:\/\/digilent.com\/shop\/fpga-programmable-logic\/\">FPGA\u00a0<\/a>or Zynq system board. With Digilent microcontroller boards, a little more care needs to be taken to figure out which Pmod host port supports the I2C protocol. Once identified however, the\u00a0Pmod COLOR\u00a0should be easy to get up and running with any Digilent MCU board. Just follow the Quick Start section of the\u00a0<a href=\"https:\/\/digilent.com\/reference\/pmod\/pmodcolor\/reference-manual#applications_information\">reference manual<\/a>\u00a0to get started!<\/p>\n<p><strong>Getting Started<\/strong><\/p>\n<p>If you are an MCU user, we\u2019ve written some\u00a0<a href=\"https:\/\/digilent.com\/reference\/pmod\/pmodcolor\/start\">libraries and example code<\/a>\u00a0to illustrate how to start getting digital color data.\u00a0The example code was written in the Arduino IDE and should work smoothly with the Digilent core for Arduino. For download instructions, see our\u00a0<a href=\"https:\/\/digilent.com\/reference\/software\/digilent-core\/start\">tutorial<\/a>\u00a0on\u00a0how to get started with the Digilent core.<\/p>\n<p>If using the\u00a0Pmod COLOR\u00a0with a Digilent FPGA board, see our wiki page titled\u00a0<a href=\"https:\/\/digilent.com\/reference\/internal\/formatting\/tutorial_new\">Using Pmod IPs<\/a>\u00a0for instructions on how to use our drag and drop Pmod COLOR IP Core\u00a0with MicroBlaze designs. We&#8217;ve also done an additional color classification demo using the IP core that identifies colors presented on a monitor and prints &#8220;red,&#8221; &#8220;green,&#8221; &#8220;blue,&#8221; etc. to your screen.<\/p>\n<p>Questions or comments? Use the comment section below or visit the\u00a0<a href=\"https:\/\/forum.digilent.com\/\">Digilent Forum<\/a>!<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-22483 jlk' data-task='like' data-post_id='22483' data-nonce='1c819b3974' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-22483 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-22483 jlk' data-task='unlike' data-post_id='22483' data-nonce='1c819b3974' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-22483 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-22483 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Projects are not all black and white, so bring your work into color with the Pmod COLOR!<\/p>\n","protected":false},"author":26,"featured_media":22498,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[38,1554],"tags":[],"ppma_author":[4491],"class_list":["post-22483","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules","category-news"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/10\/pmod-color-walkaround.png","authors":[{"term_id":4491,"user_id":26,"is_guest":0,"slug":"talesab","display_name":"Talesa Bleything","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/4ebebd593afbf3d758e9127934708634ab09aeaa7fcfcf6151f4e9ceb9cf6d0e?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/22483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=22483"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/22483\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/22498"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=22483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=22483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=22483"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=22483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}