Color 7 click. PID: MIKROE 3062 Weight: 19 g

Similar documents
Pressure 4 click. PID: MIKROE 3020 Weight: 24 g

Accel 5 click. PID: MIKROE 3149 Weight: 24 g

Pedometer 3 Click. PID: MIKROE 3259 Weight: 24 g

PWR Meter click. PID: MIKROE 3169 Weight: 31 g

Thermo 6 click PID: MIKROE-2769

PIXI click PID: MIKROE Weight: 28 g

Gaussmeter click. PID: MIKROE 3099 Weight: 23 g

Flash 4 click. PID: MIKROE 3191 Weight: 24 g

ibutton click PID: MIKROE 3045 Weight: 31 g

DIGI POT 3 click. PID: MIKROE 3016 Weight: 25 g

BroadR-Reach click PID: MIKROE Weight: 26 g

Stepper 6 click. PID: MIKROE 3214 Weight: 26 g

SQI FLASH click. PID: MIKROE-2828 Weight: 22 g

Use the Grid-EYE click to detect absolute surface temperature without any contact. Or use it to detect the movement of people and objects.

RS485 3 click. How does it work? PID: MIKROE-2821

USB UART 4 click PID: MIKROE Weight: 23 g

ECG 2 click PID: MIKROE Weight: 30 g. Condition: New product. Table of contents

4G LTE E click (Europe)

GSM 4 click MIKROE Weight: 33 g

Prototyping Module Datasheet

1.6inch SPI Module user manual

ESPino - Specifications

SH1030 Rev Introduction. Ultra low power DASH7 Arduino Shield Modem. Applications. Description. 868 MHz. Features

4G LTE-E click (Europe)

Arduino Uno R3 INTRODUCTION

Page 1 of 11 Version 1.2 Release Date: PenMount PM2204 PCI Controller Board Data Sheet. Table of contents

USB-to-I2C. Ultra Hardware User s Manual.

USB-to-I2C. Professional Hardware User s Manual.

WM1030 Rev Introduction. Ultra low power DASH7 Modem. Applications. Description. 868 / 915 MHz. Features. WIZZILAB Technical datasheet 1/10

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

MTi 1-series Development Kit

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 1/24/2011

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

MTi 1-series Development Kit

keyestudio Keyestudio MEGA 2560 R3 Board

RN-174 WiFly Super Module

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

EPT-200TMP-TS-U2 TMP102 Temperature Sensor Docking Board Data Sheet

Growing Together Globally Serial Communication Design In Embedded System

Hello, and welcome to this presentation of the STM32 I²C interface. It covers the main features of this communication interface, which is widely used

Project Final Report Internet Ready Refrigerator Inventory Control System

Win-I2CUSB Hardware User s Manual

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

HZX N03 Bluetooth 4.0 Low Energy Module Datasheet

SimPLC. User Manual.

EXL x240 Graphic LCD Smart Module 3,8 SHORT FORM TECHNICAL SPECIFICATIONS. Via di Corticella, Bologna, Italy

Page 1 of 13 Version 1.5 Release Date: PenMount PM1410 PCI Controller Board Data Sheet. Table of contents

Edge Power International (HK) Ltd. Product Specification

ILI2511. ILI2511 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.4. Date: 2018/7/5

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

TouchCore351-ML16IP. Capacitive Touch Sensor Controller

Microcontroller. BV523 32bit Microcontroller. Product specification. Jun 2011 V0.a. ByVac Page 1 of 8

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

ARDUINO UNO REV3 Code: A000066

ARDUINO MEGA ADK REV3 Code: A000069

Web Site: Forums: forums.parallax.com Sales: Technical:

Microcontrollers and Interfacing

IP71B Ethernet Singlechip Interface Converter User Manual

ARDUINO MEGA 2560 REV3 Code: A000067

Arduino ADK Rev.3 Board A000069

FT800 Display Controller Board. Part Number: MCIB-15 Version: 1 Date: 25/02/2016 Revision History Description of change 25/02/2016 First draft

FXL6408 Fully Configurable 8-Bit I 2 C-Controlled GPIO Expander

Pmod modules are powered by the host via the interface s power and ground pins.

Pridgen Vermeer Robotics Xmega128 Manual

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5092 P-DIP-8-1

Product Family Specification

Amarjeet Singh. January 30, 2012

RN-171-EK Evaluation Board

Preliminary F40 SoC Datasheet

< W3150A+ / W5100 Application Note for SPI >

USB to SPI Bridge. Hardware Manual. Revision 1.0

E6486. User Manual. The New Vision of Touch

Adafruit Terminal Block Breakout FeatherWing

KJ Joystick I 2 C Development Kit Programming and Application Note. Knowles Acoustics Maplewood Drive Itasca, IL 60143

LATCHING FIBER OPTIC 1xN SWITCHES

USER GUIDE ARDBOX ANALOG

BT 31 Data Sheet. Amp ed RF Technology Inc.

BLE Bluetooth Low Energy Modules SBC2112-B. Preliminary Specification. Version 1.0

Product Specification

ec-test-mate Hardware Reference Manual

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5096 P-DIP-8-1

RN-134. WiFly GSX Super Module SuRF Board. Features. Description. Applications. ~ page 1 ~ rn-134-ds v1.

Ultratronics v1.0 DATASHEET

AS Channels Capacitive Touch Sensor IC From Santa Clara, United States of America

RN-174. WiSnap M2 Super Module. Features. Description. Applications. ~ page 1 ~ rn-174-ds v1.1 6/1/2011

ORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE

Breeze Board. Type A. User Manual.

PAN502x Capacitive Touch Controller Datasheet

ILI2312. ILI2312 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.03.

SILICON MICROSTRUCTURES

Breeze Board. Type B. User Manual.

Accelerometer with Analog and Digital I/O for StackableUSB USB1600

3.2inch SPI Module MSP3218 User Manual

1. Features and Benefits

USER'S MANUAL PICEBS2. Hes-so//Valais / ISI / sap - version 1.0 PICEBS2-1/10

IPC. Preliminary Data Brief. IPC High speed phase current sensor with digital interface Draft Review Released

BV4615. Dual Interface Zero Keypad. Product specification. Dec 2009 V0.a. ByVac Page 1 of 11

Please refer to "4. Evaluation Board" on page 2 for more information about these steps. Figure 1. System Connections

xpico 200 Series Evaluation Kit User Guide

1. Introduction NM7010A Features. WIZnet Inc.

Transcription:

Color 7 click PID: MIKROE 3062 Weight: 19 g Color 7 click is a very accurate color sensing Click board which features the TCS3472 color light to digital converter with IR filter, from ams. It contains a 3x4 matrix of photosensitive elements, which can sense red, green, blue and clear light component. Additional IR resistive coating reduces the influence of the IR component of the light spectrum. Four low noise 16bit ADCs ensure the high dynamic range, making this sensor suitable to be used behind dark glass. This sensor offers a fast I2C interface for the communication with the host MCU. Ability to measure light without the influence of the IR makes this device a good choice for Ambient Light Sensing (ALS). In addition to high accuracy and sensitivity, this color sensor also offers a programmable interrupt pin, used to trigger an interrupt on the host MCU. This allows more efficient controller firmware to be written. Features, such as the high dynamic range, programmable gain and integration time, very high sensitivity, interrupt pin with programmable events, and more, make this Click board an ideal solution for LED lighting color management, ambient light sensing for display backlight control, product color verification and sorting, and other similar applications that require an accurate color and ambient light sensing.

How does it work? The sensor component used on the Color 6 click is the TCS3472 color light to digital converter with IR filter, from ams. The color sensor is made out of a 4x3 matrix of photosensitive elements photodiodes, which are placed under red, green, and blue colored filters. One group of photodiodes has no color filter, thus sensing the clear light. All the photodiodes are coated with an IR resistive layer, which prevents the influence of the IR part of the spectrum on the color readings. Besides the color sensing elements, the TCS3472 has four 16bit ADCs that convert the photodiode current into a 16bit value, available for reading. Finally, the TCS3472 IC contains a state machine, which controls the operation of the IC. After the Power ON reset, the device is set in the low power mode (Sleep mode). An I2C Start condition will wake up the device and it transitions to the Idle state. After checking the content of the Enable register PON bit. If set, the device will resume in Idle mode, and after setting the AEN bit of the Enable register, the sampling cycle is started. Another bit (WEN) determines if the device will start in Wait mode, or it will start the sampling cycle, with the integration time, defined by the user firmware. Integration time affects the sensitivity and the resolution of ADCs. After the conversion is complete, the device returns to idle state, repeating the whole cycle, depending on the states of these bits. There are two modes of measurement available on this Click board. It can use the CONT (continuous measurement), or the CMD (single measurement) measurement modes. The CONT mode outputs data continuously, using a time delay determined by the content of the BREAK register, while the CMD mode allows one measurement to be performed per command. After a single measurement is performed, the device can fall back to the Power Down or Standby state, while working in CMD mode. This is determined by the appropriate bits in the configuration registers and allows for a lower power consumption if required by the application.

The interrupt engine allows low and high thresholds to be defined. The conversion value is compared with values set as the low and high threshold, and if any of the threshold values is exceeded, the interrupt event will be generated. The interrupt will assert the INT pin of the IC, routed to the mikrobus INT pin. The interrupt pin will remain asserted until host clears the interrupt flag by the appropriate command. Another interrupt engine feature is the persistence filter. This allows the number of the consecutive threshold exceed occurrences to be made before triggering an interrupt, avoiding erratic or false interrupt triggering. This pin is an open drain topology, and when asserted, it will be driven to a LOW logic state. It is set to a HIGH state when inactive, by the pull up resistor. The Click board itself uses a very low number of external components. In fact, it only uses a few resistors for pulling the I2C/INT lines to a HIGH logic level when not asserted. The low number of external components simplify the design with this IC, allowing it to be used in a wide range of applications. I2C bus lines are routed to the appropriate mikrobus pins, offering simple and reliable interfacing with the host MCU. Please note that this Click board can work only with 3.3V MCUs and it is not 5V tolerant. The device datasheet contains all the necessary information about the registers and their values. However, the Click board comes supported by a library, which contains functions which greatly simplify the development of the applications, cutting time to market. Specifications Type Optical Applications It's an ideal solution for LED lighting color management, ambient light sensing for display backlight control, product color verification and sorting, and other similar applications, etc. On-board modules TCS3472 color light to digital converter with IR filter, from ams sensors company Key Features High dynamic range, high sensitivity, greatly reduced influence of IR spectrum, programmable analog gain and integration time, low number of external components required. Interface I2C

Input Voltage 3.3V Click board size M (42.9 x 25.4 mm) Pinout diagram This table shows how the pinout on Color 7 click corresponds to the pinout on the mikrobus socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 INT Interrupt NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 SCL I2C Clock NC 6 MOSI SDA 11 SDA I2C Data Power supply 3.3V 7 3.3V 5V 10 NC Ground GND 8 GND GND 9 GND Ground

Color 7 click electrical specifications Description Min Typ Max Unit ADC resolution - 16 - bit Gain scaling 4-60 X I2C clock speed - - 400 khz Onboard settings and indicators Label Name Default Description PWR PWR - Power LED indicator Software support We provide a demo application for Color 6 click on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards. Library Description The library initializes and defines the I2C bus driver and drivers that offer a choice for writing data in the register. The library includes functions for configuring the chip for measurement, reading one color ratio and light color value. The color value is calculated by converting the RGBC value to HSL value. The user also has the function color7_getcolor() which checks the color of the light.

Key functions: void color7_writebyte(uint8_t reg, uint8_t _data) - Functions for write one byte in register float color7_getcolorvalue() - Functions for reading the color value in HSL. uint8_t color7_getcolor(float color_value) - Functions for detecting colors. float color7_readcolorratio(uint8_t color) - Functions for reading the color ratio. Example description The application is composed of three sections: System Initialization - Initializes the I2C module. Application Initialization - Initializes the driver init and the configuration chip for measurement. Application Task - (code snippet) - Reads the light color and checks which color of the light is detected by the sensor. If the light color is detected, the detected color message is logged on the USB-UART. void applicationtask() colorvalue = color7_getcolorvalue(); iscolor = color7_getcolor(colorvalue); switch(iscolor) case 1: mikrobus_logwrite(" Color: ORANGE ", _LOG_LINE); case 2: mikrobus_logwrite(" Color: RED ", _LOG_LINE); case 3: mikrobus_logwrite(" Color: PINK ", _LOG_LINE); case 4: mikrobus_logwrite(" Color: PURPLE ", _LOG_LINE); case 5: mikrobus_logwrite(" Color: BLUE ", _LOG_LINE); case 6: mikrobus_logwrite(" Color: CYAN ", _LOG_LINE);

case 7: mikrobus_logwrite(" Color: GREEN ", _LOG_LINE); case 8: mikrobus_logwrite(" Color: YELLOW ", _LOG_LINE); default: Delay_100ms(); The full application code, and ready to use projects can be found on our Libstock page. Other MikroElektronika libraries used in the example: I2C UART Additional notes and information Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message. mikrosdk This click board is supported with mikrosdk MikroElektronika Software Development Kit. To ensure proper operation of mikrosdk compliant click board demo applications, mikrosdk should be downloaded from the LibStock and installed for the compiler you are using. For more information about mikrosdk, visit the official page.

https://www.mikroe.com/color 7 click?search_query=mikroe 3062&results=1 7 11 18