Home

Color Sensor Module User Guide

image

Contents

1. ELEC Freaks www elecfreaks com Color Sensor Module User Guide Color Sensor Module Introduction The Color sensor module base on TCS3200 which is a programmable color light to frequency converter it could filter RGB data from source light and convert it to a square wave 50 duty cycle with frequency directly proportional to light intensity irradiance The full scale output frequency can be scaled by one of three preset values via two control input pins SO S1 Selectable Options 2 20 100 frequency and pin S2 S3 control the filter of RGB Digital inputs and digital output allow interface to a microcontroller or other logic circuitry directly Output enable OE places the output in the high impedance state for multiple unit sharing of a microcontroller input line At last user can calculate the color of the light by RGB values ELEC Freaks www elecfreaks com Hardware and Software Preparation Hardware OP Jumper Wire 2 Color Sensor Module 3 Arduino UNO 4 Paper with 4 colors J 1P Jumper Wire x3 6 Mini USB Cable Software Arduino IDE 1 0 X Photoshop color picker Step1 Upload the Code SES e Tee TS UNO s Freaduino ELEC Freaks www elecfreaks com Connect the Arduino UNO to PC with the Mini USB Cable Open the Arduino IDE1 0 X and download code from our WIKI If your IDE do not have TimerOne Library please Download it from here Choose the corresp
2. hen the mark 2 is the scale factor Then use the scale factor for adjusting the RGB value to 255 as Mark 3 ELEC Freaks www elecfreaks com Step 3 Test colors with RGB value 1 The normal measurement distance is 0 2cm so we put the color sensor module on the paper another part 2 Open the Serial Monitor and now you have got the object s RGB value like 13 14 14 which means you have got the object color H jiso E lL 4 D ae s a 0 cef Chp pegis cfs C fis M 83 CB fi Y 83 oddete K 73 RA Web gie 3 Open photoshop color picker and the RGB value 13 14 14 means it is black
3. onding board and serial port Compiling sketch until Done uploading appears O AOON Step 2 Adjust the White Balance 1 We use TCS3200 chip for color sensor module 2 The color sensor module power supply is from 3 27V to 5 5V 3 Connect the Arduino UNO and Color Sensor with Jumper Wire as below SO connect to D6 OUT connect to D2 S1 connect to D5 VCC connect to VCC S2 connect to D4 GND connect to GND S3 connect to D3 OE connect to GND ELEC Freaks www elecfreaks com so E s2 OUT HM GND msi s3 W VCC OE 1312111098 76543210 a UNO 012345 S 4 Use white objects to perform white balance correction after doing that do not move the color sensor module and light source to ensure the accuracy of white balance value therefore we put the color sensor on the paper white part like below ELEC Freaks www elecfreaks com 5 Open Arduino IDE and click Serial Monitor and set the BaudRate as 9600 6 The Serial Monitor would display lots of parameter values and we choose some of them to explain to you Frequency R 1126 Frequency BoTT4 Freqguencey G T T gt Freguency K 112T Frequenecr BzTT6 Frequenecy GoTdoT Frequency R 11le2f Frequencyr Bots rFrequency Gord PRE End fa IW Antoscroll Ho line ending eeno baud As the figure the mark 1 is the RGB value at 1S period The RGB value is Red 1126 Green 07 and Blue 774 T

Download Pdf Manuals

image

Related Search

Related Contents

Weller T0054485799  Sony VF-MPTH Operating Instructions  Ives 7255/55J User's Manual  

Copyright © All rights reserved.
Failed to retrieve file