Download Print this page
Velleman VMA325 User Manual

Velleman VMA325 User Manual

Color sensor module

Advertisement

Quick Links

VMA325
COLOR SENSOR TCS3200 MODULE
USER MANUAL

Advertisement

loading

Summary of Contents for Velleman VMA325

  • Page 1 VMA325 COLOR SENSOR TCS3200 MODULE USER MANUAL...
  • Page 2: Safety Instructions

     Nor Velleman nv nor its dealers can be held responsible for any damage (extraordinary, incidental or indirect) – of any nature (financial, physical…) arising from the possession, use or failure of this product.
  • Page 3: Pin Layout

    OUT======D2 LED======D7 OE======GND Connect your VMA325 to your microcontroller (VMA100) as above. Download the library and data sheet from our website. Open the Arduino IDE and import the three libraries. LiquidCrystal_I2C.h is only needed if you are also connecting an I2C LCD to your controller.
  • Page 4 VMA325 Please also read the data sheet of the TCS2300, which is included in the VMA325.zip available from our website. // CODE BEGIN #include <TimerOne.h> #include <Wire.h> #include <LiquidCrystal_I2C.h> //This is only needed if You connect a I2C LCD to Your microcontroller LiquidCrystal_I2C lcd(0x27,20,4);...
  • Page 5 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=");...
  • Page 6 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.0/ g_array[1] ;...
  • Page 7: Copyright Notice

    © COPYRIGHT NOTICE The copyright to this manual is owned by Velleman nv. All worldwide rights reserved. No part of this manual may be copied, reproduced, translated or reduced to any electronic medium or otherwise without the prior written consent of the copyright holder.
  • Page 8 • Velleman® can decide to replace an article with an equivalent article, or to refund the retail value totally or partially when the complaint is valid and a free repair or replacement of the article is impossible, or if the expenses are out of proportion.

This manual is also suitable for:

Tcs3200