VMA325 COLOR SENSOR TCS3200 MODULE USER MANUAL
VMA325 USER MANUAL 1. Introduction To all residents of the European Union Important environmental information about this product This symbol on the device or the package indicates that disposal of the device after its lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted municipal waste; it should be taken to a specialized company for recycling. This device should be returned to your distributor or to a local recycling service. Respect the local environmental rules.
VMA325 5. Overview VMA325 The TCS230 senses colour light with the help of an 8 x 8 array of photodiodes. Then, using a current-tofrequency converter the readings from the photodiodes are converted into a square wave with a frequency directly proportional to the light intensity. Finally, using the Arduino ® board we can read the square wave output and get the results for the colour. supply voltage: 2.7 to 5.5 VDC dimensions : 28.4 x 28.4 mm 6. 7.
VMA325 Please also read the data sheet of the TCS2300, which is included in the VMA325.zip available from our website. // CODE BEGIN #include #include #include
VMA325 if(Level02 != 0) Level02 = HIGH; digitalWrite(S2, Level01); digitalWrite(S3, Level02); } void TSC_Count() { g_count ++ ; } void TSC_Callback() { switch(g_flag) { case 0: Serial.println("->WB Start"); TSC_WB(LOW, LOW); break; case 1: Serial.print("->Frequency R="); //lcd.setCursor(0,0); //lcd.print("Start"); Serial.println(g_count); g_array[0] = g_count; TSC_WB(HIGH, HIGH); break; case 2: Serial.print("->Frequency G="); Serial.
VMA325 } void setup() { TSC_Init(); lcd.init(); delay(100); lcd.backlight(); Wire.begin(); delay(100); lcd.setCursor(14,0); lcd.print("Color"); lcd.setCursor(0,3); lcd.print("S0:2 S1:3 S2:4 S3:5 OUT:6 LED:-"); Serial.begin(9600); Timer1.initialize(); // defaulte is 1s Timer1.attachInterrupt(TSC_Callback); attachInterrupt(0, TSC_Count, RISING); delay(4000); for(int i=0; i<3; i++) Serial.println(g_array[i]); g_SF[0] = 255.0/ g_array[0]; //R Scale factor g_SF[1] = 255.
VMA325 lcd.setCursor(0,1); lcd.print(" "); lcd.setCursor(0,2); lcd.print(" "); } // CODE END 8. More Information Please refer to the VMA325 product page on www.velleman.eu for more information. Use this device with original accessories only. Velleman nv cannot be held responsible in the event of damage or injury resulting from (incorrect) use of this device. For more info concerning this product and the latest version of this manual, please visit our website www.velleman.eu.
Velleman® Service and Quality Warranty Since its foundation in 1972, Velleman® acquired extensive experience in the electronics world and currently distributes its products in over 85 countries. All our products fulfil strict quality requirements and legal stipulations in the EU. In order to ensure the quality, our products regularly go through an extra quality check, both by an internal quality department and by specialized external organisations.