Files

157 lines
5.7 KiB
Markdown
Raw Permalink Normal View History

2020-03-19 21:06:45 +08:00
# COLOR
2018-12-25 16:04:58 +08:00
<el-tag effect="plain">SKU:U009</el-tag>
2020-03-19 14:40:22 +08:00
2020-10-27 23:34:31 +08:00
<div class="product_pic"><img src="assets/img/product_pics/unit/color/unit_color_01.webp"></div>
2018-12-25 16:04:58 +08:00
## Description
2020-12-11 16:09:47 +08:00
**COLOR** is color recognition unit integrated with **TCS3472** chipset. As the name says, **COLOR** is able to detect color value and return RGB data as response.
2019-03-26 10:06:32 +08:00
**Identify color principle:**
2020-12-11 16:09:47 +08:00
The TCS3472 chipset integrated with 3*4 array of filtered photodiodes and a 16 bit analog-to-digital embedded converters. Out of the 12 photodiodes, 3 have red filters, 3 have green filters, 3 have blue filters and 3 have no filter (clear), which gives a total range of RGBA (RGB + Transparency)
2019-03-26 10:06:32 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/color/unit_color_07.webp">
2019-03-26 10:06:32 +08:00
2020-12-11 16:09:47 +08:00
When detecting the color of an object the TCS3472 returns data from four channels: red(R), green(G), blue(B) and clear(C)(non-filtered). The response from the red, green and blue channels (RGB) can be used to determine a particular sources chromaticity coordinates (x, y).
2019-03-26 10:06:32 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/color/unit_color_04.webp">
2019-03-26 10:06:32 +08:00
Chromaticity Calculation Process Overview:
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/color/unit_color_05.webp">
2019-03-26 10:06:32 +08:00
When we get coordinates (x, y), please reference the below figure so as to get the recommended color.
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/color/unit_color_06.webp">
2019-03-26 10:06:32 +08:00
2019-05-05 11:28:54 +08:00
This Unit communicates with the M5Core via the GROVE A interface(I2C). Address is 0x29.
2018-12-25 16:04:58 +08:00
2019-05-05 11:28:54 +08:00
## Product Features
2018-12-25 16:04:58 +08:00
2019-05-05 11:28:54 +08:00
- Detection range: -40℃~85℃
- GROVE interface, support [UIFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
- Two Lego-compatible holes
2018-12-25 16:04:58 +08:00
2020-12-11 16:09:47 +08:00
## Includes
2018-12-25 16:04:58 +08:00
2019-03-26 10:06:32 +08:00
- 1x COLOR Unit
- 1x Grove Cable
2020-02-12 16:55:19 +08:00
## Applications
2019-03-26 10:06:32 +08:00
- Product Color Verification
- Color tracking robot
2018-12-25 16:04:58 +08:00
2020-05-21 17:55:38 +08:00
## Specification
2020-12-11 16:09:47 +08:00
2020-05-21 17:55:38 +08:00
<table class="table-1">
<thead>
<tr>
<th>Resources</th>
<th>Parameter</th>
</tr>
</thead>
<tbody>
<tr>
<td>IC</td>
<td>TCS3472</td>
</tr>
<tr>
<td>Workingtemperaturerange</td>
<td>-40°C~85°C</td>
</tr>
<tr>
2021-02-05 17:58:59 +08:00
<td>Communication protocol</td>
<td>I2C0x29</td>
2020-05-21 17:55:38 +08:00
</tr>
<tr>
2020-11-18 19:00:45 +08:00
<td>Net weight</td>
2020-05-29 16:36:24 +08:00
<td>4g</td>
2020-05-21 17:55:38 +08:00
</tr>
<tr>
2020-05-29 16:36:24 +08:00
<td>Gross weight</td>
<td>17g</td>
</tr>
<tr>
<td>Product Size</td>
<td>32.2*24.2*8.2mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>67*53*12mm</td>
2020-05-21 17:55:38 +08:00
</tr>
</tbody>
</table>
2020-12-11 16:09:47 +08:00
## Related Links
2018-12-25 16:04:58 +08:00
2019-10-22 20:47:41 +08:00
- **Datasheet** - [TCS3472](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/TCS3472_en.pdf)
2018-12-25 16:04:58 +08:00
2019-06-11 19:20:48 +08:00
## EasyLoader
2018-12-29 14:46:55 +08:00
2020-03-23 16:39:38 +08:00
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial](en/arduino/arduino_development), M5StickC/V/T/ATOM series can be used without driver)
2019-06-13 18:06:23 +08:00
2020-03-23 16:39:38 +08:00
<div class="easyloader-box">
<div style="background-color:white;">
2020-04-08 14:09:44 +08:00
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
2020-03-23 16:39:38 +08:00
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_Color_UNIT_With_M5Core.exe">Windows</a>
2020-04-14 17:55:39 +08:00
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_Color_UNIT_With_M5Core.dmg">MacOS</a>
2020-03-23 16:39:38 +08:00
<!-- <a>Linux</a>
<a>MacOS</a> -->
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/Color_UNIT.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>Description:</p>
<p>The sensor collects the current CRGB value and prints it out through the serial port.</p>
</div>
</div>
</div>
2019-06-11 19:20:48 +08:00
2018-12-25 16:04:58 +08:00
## Schematic
<img src="assets/img/product_pics/unit/color_sch.JPG">
### PinMap
<table>
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>COLOR Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
2019-03-07 19:14:00 +08:00
</table>
2020-03-19 21:06:45 +08:00
## Example
2019-03-07 19:14:00 +08:00
2021-02-05 16:54:45 +08:00
### 1. Arduino
2019-03-07 19:14:00 +08:00
2020-04-30 14:13:25 +08:00
The code below is incomplete. To get the complete code, please click [here](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/COLOR_TCS3472)
2020-03-19 21:06:45 +08:00
2020-12-11 16:09:47 +08:00
After burning this example firmware, PC serial terminal will print original value RGBC (red, green, blue, clear).
2020-03-19 21:06:45 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/unit_example/COLOR/example_unit_color_result_01.webp">
2020-03-19 21:06:45 +08:00
### 2. UIFlow
2021-02-05 16:54:45 +08:00
- [Click here to download the UIFlow example](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/COLOR/UIFlow)
2020-03-19 21:06:45 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/color/color.webp">
2020-02-11 18:00:45 +08:00
2020-12-11 16:09:47 +08:00
<el-divider content-position="right">Last updated: 2020-12-11</el-divider>
2020-02-11 18:00:45 +08:00
<script>
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/color-unit';
anchor_search(purchase_link);
scrollFunc();
2020-12-11 16:09:47 +08:00
</script>