Could anyone help me, please?
I am working in a project which I need to use a color sensor. Firstly, I chose the Hitechnic sensor, because acording to my studies, the reading's Hitechnic sensor doesn't change a lot with the variation environment light. But I don't understand the returned values. For example, I use the following code for reading:
green = cs.getRGBComponent(Color.GREEN);
blue = cs.getRGBComponent(Color.BLUE);
So the returned values are bigger than 255. Sometimes it works, but why sometimes? The values are changing a lot. I don't know if it's because the position (I put the sensor in tilt position, because I am using the version 2 and I saw in a blog). I thought that the reason was the calibration. So I calibrated it, but the problem continued.
Now I am using the LEGO sensor, I tried this sensor in LEGO's program, and I saw that its reading is OK. I am thinking about using the LEGO sensor, because I know that it works. But I also know that the Hitechnic sensor is better, I wanted to use the Hitechnic sensor. Help me?
I hope that you understand me. My English isn't well.
Thank you! I wait your response anxiously. =)
This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests