Ausgabe 18.08.2017
Copyright by Joy-IT
1
TCS3200 Color Sensor
3
Страница 1: ...Ausgabe 18 08 2017 Copyright by Joy IT 1 TCS3200 Color Sensor 3...
Страница 2: ...Ausgabe 18 08 2017 Copyright by Joy IT 2 3 TCS3200 Color Sensor Index 1 Connecting the sensor 2 Installing the library 3 Usage example code 4 Support...
Страница 3: ...product Please note our following instructions 1 Connecting the sensor Connect the color sensor as seen in the following image to the pins of your Arduino The two pins LED and GND which are next to ea...
Страница 4: ...er the code to your Arduino you need to add the Bevor Sie den entsprechen Quellcode auf Ihren Arduino bertragen muss zun chst die TimerOne Bibliothek hinzugef gt werden Dazu klicken Sie bitte wie im B...
Страница 5: ...by Joy IT 5 3 2 Installing the library Before you can transfer the code to your Arduino you need to add the TimerOne library to your Arduino libraries Therefore click on Sketch Include Libary Manage L...
Страница 6: ...Ausgabe 18 08 2017 Copyright by Joy IT 6 3 In the now opening libary manager you need to search for the TimerOne libary Install the library TCS3200 Color Sensor...
Страница 7: ...define S0 6 define S1 5 define S2 4 define S3 3 define OUT 2 int g_count 0 int g_array 3 int g_flag 0 float g_SF 3 void TSC_Init pinMode S0 OUTPUT pinMode S1 OUTPUT pinMode S2 OUTPUT pinMode S3 OUTPUT...
Страница 8: ...eak case 1 Serial print Frequency R Serial println g_count g_array 0 g_count TSC_WB HIGH HIGH Filter without green break case 2 Serial print Frequency G Serial println g_count g_array 1 g_count TSC_WB...
Страница 9: ...Serial begin 9600 Timer1 initialize 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 Value g_SF 1 2...
Страница 10: ...y questions left or if you encounter any problems feel free to contact us by mail phone or by our ticket supportsystem on our website E Mail service joy it net Ticket System http support joy it net Ph...