Color sensor
Verfasst: 11 Sep 2020, 16:11
Hi, i am using the colr sensor with the Ft duino. I have made a simple program to read the values from the sensor. I use the three known disks; white, blue, red. Even if I put them right on the sensor, the values I get are not similar; the vary to much to be of any use.
So, my question is:
- is this is a common 'problem' (in other words the color sensor is not much of a color sensor)
- or, do I not use the right input variables ( i use VOLTAGE)
Here is a part of the scetch. This one gives almost random values every time.
ftduino.input_set_mode(Ftduino::I8, Ftduino::VOLTAGE); // colorsensor
........
......
......
color = ftduino.input_get(Ftduino::I8);
Serial.println(color);
delay(2000);
So, my question is:
- is this is a common 'problem' (in other words the color sensor is not much of a color sensor)
- or, do I not use the right input variables ( i use VOLTAGE)
Here is a part of the scetch. This one gives almost random values every time.
ftduino.input_set_mode(Ftduino::I8, Ftduino::VOLTAGE); // colorsensor
........
......
......
color = ftduino.input_get(Ftduino::I8);
Serial.println(color);
delay(2000);