Go Down

Topic: New library for TCS230 RGB Color Sensor (Read 4 times) previous topic - next topic

marco_c

#5
Feb 26, 2013, 02:06 am Last Edit: Feb 26, 2013, 02:21 am by marco_c Reason: 1
Did you connect OUT to pin 5? The Freqcount library counts frequency on that pin.

You also need to decide how to set s0 and s1. I would suggest you set them for 100% output (both 5v from memory)

Edit: your sensor looks like mine. It needs to be modified as explained in the PDF file that is in the library folder with the .cpp file if you want to use the OE line for control.
Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Bajdi

Oops I hadn't seen the pdf file  :smiley-red: I've just read it and cut the trace on my board. It was connected to ground just like yours. I've just uploaded the calibrate sketch and it works. Thanks for making the library and writing the pdf file. Not many libraries are that well documented  :)

marco_c

No problems. I hope you have fun with the sensor. It actually works quite well if the calibration is right.
Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Jualtase

I just want to say thank you for the library.
I'm new with Arduino and for my first project I'm making a color sorter machine with the TCS230.



grunftz

hello

nice job, but i get a timer 2 error

In file included from C:\arduino-1.0.5\libraries\FreqCount\FreqCount.cpp:27:
C:\arduino-1.0.5\libraries\FreqCount\/util/timers.h: In function 'void timer_shutdown()':
C:\arduino-1.0.5\libraries\FreqCount\/util/timers.h:453: error: 'TCCR2B' was not declared in this scope

and can't solve it...using arduino uno

zhx in advance

Go Up