If you want to start with a Debug Interface model for calibration; I recommend to follow this steps.
- Install ArduinoMenu library from Library Manager.
- Install Ticker library from Library Manager.
- Install Neurona library from Library Manager.
- Install this library from command line in Arduino/libraries folder.
git clone https://github.com/blascarr/TCS3200.git
git submodule init
git submodule update
This example is a Debug menu model in order to calibrate and test TCS3200 properly to start with Color sensor properly.
First of all, you need to calibrate dark and white raw color from CALIBRATE SENSOR→DARK CALIBRATION and CALIBRATE SENSOR→WHITE CALIBRATION. It will save this color reference in EEPROM.
Once we have Raw Reference for Black and White saved in Arduino, we should calibrate different Colors from CALIBRATE SENSOR→MANUAL CALIBRATION.
TCS3200 is a library for color detection with TCS3200 module.
The main objective is improve the performance detection of differente range colors for simple robotic applications.
- Compute time event intervals to read input signal for non-blocking systems.
- Mapping in different range values for colors.
- EEPROM memory for save some calibration data and color list.
- Callback method to request color while sensor is working and detect color changes.
- Support to Neurona classication Multi Layer Perceptron by Morettic.
- Assign interruption pin to the INPUT signal to calculate samples.
- Tests in platformio.
Print these pieces to create this test workspace.
This library is used in Colorino Project as a classificator model with Lacasitos.
Blascarr invests time and resources providing this open source code like some other libraries, please respect the job and support open-source software.