background image

 

VMA325 

V. 01 – 19/03/2018 

©Velleman nv 

5.

 

Overview 

VMA325

 

The TCS230 senses colour light with the help of an 8 x 8 array of photodiodes. Then, using a current-to-
frequency 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.

 

Pin Layout 

GND 

ground 

OUT 

output frequency 

S0 

output frequency scaling selection input 

S1 

output frequency scaling selection input 

S2 

photodiode type selection input 

S3 

photodiode type selection input 

5 VDC power supply 

ground 

OE 

output enable, must be connected to G (ground) 

LED 

LED enable input , low=ON 

 

7.

 

Example 

Connection. 

V======5V 

GND======GND 

S0======D3 
S1======D4 
S2======D5 
S3======D6 

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. 
Load the VMA325_code sketch into the IDE, compile and upload. 
Start the serial monitor. You should see a result like this:  
 

Содержание VMA325

Страница 1: ...VMA325 COLOR SENSOR TCS3200 MODULE USER MANUAL ...

Страница 2: ...tions of the device before actually using it All modifications of the device are forbidden for safety reasons Damage caused by user modifications to the device is not covered by the warranty Only use the device for its intended purpose Using the device in an unauthorised way will void the warranty Damage caused by disregard of certain guidelines in this manual is not covered by the warranty and th...

Страница 3: ...output frequency scaling selection input S1 output frequency scaling selection input S2 photodiode type selection input S3 photodiode type selection input V 5 VDC power supply G ground OE output enable must be connected to G ground LED LED enable input low ON 7 Example Connection V 5V GND GND S0 D3 S1 D4 S2 D5 S3 D6 OUT D2 LED D7 OE GND Connect your VMA325 to your microcontroller VMA100 as above D...

Страница 4: ...S3 3 define OUT 2 define LED 7 int g_count 0 count the frequency int g_array 3 store the RGB value int g_flag 0 filter of RGB queue float g_SF 3 save the RGB Scale factor Init TSC230 and setting Frequency void TSC_Init pinMode S0 OUTPUT pinMode S1 OUTPUT pinMode S2 OUTPUT pinMode S3 OUTPUT pinMode OUT INPUT pinMode LED OUTPUT digitalWrite S0 LOW OUTPUT FREQUENCY SCALING 2 digitalWrite S1 HIGH digi...

Страница 5: ...cd 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 println g_count g_array 1 g_count TSC_WB LOW HIGH break case 3 Serial print Frequency B Serial println g_count Serial println WB End g_array 2 g_count TSC_WB HIGH LOW break default g_count 0 break void TSC_WB int Level0 int Level1 White Balance g_count 0 g_flag TS...

Страница 6: ...al println g_array i g_SF 0 255 0 g_array 0 R Scale factor g_SF 1 255 0 g_array 1 G Scale factor g_SF 2 255 0 g_array 2 B Scale factor Serial println g_SF 0 Serial println g_SF 1 Serial println g_SF 2 for int i 0 i 3 i Serial println int g_array i g_SF i void loop g_flag 0 for int i 0 i 3 i Serial println int g_array i g_SF i lcd setCursor 0 1 lcd print int g_array i g_SF i lcd setCursor 0 1 lcd p...

Страница 7: ... 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 The information in this manual is subject to change without prior 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 transla...

Страница 8: ...n shocks falls dust dirt humidity and by the article as well as its contents e g data loss compensation for loss of profits consumable goods parts or accessories that are subject to an aging process during normal use such as batteries rechargeable non rechargeable built in or replaceable lamps rubber parts drive belts unlimited list flaws resulting from fire water damage lightning accident natural...

Отзывы: