... | ... | @@ -37,6 +37,8 @@ We will first mount the black and white sensor in the LEGO 9797 car. Afterwards |
|
|
|
|
|
##### Table 1: Light values
|
|
|
|
|
|
The table shows that the detected values for the same color differs between +-1. This can be a cause of several things; eg. lighting conditions, not the same color on the whole line/zone, dust/dirt on the course.
|
|
|
|
|
|
|
|
|
#### Conclusion
|
|
|
The BlackWhiteSensor.java[1] class has a built-in black and white calibrator. Meaning that we choose the value for black and white and thereby its threshold. When calibrating it stores the the value in a variable. As seen in the table, the sensor varies its detected values between -+1. The small change happens in relation to where the sensor is placed and how the light in that place is.
|
... | ... | |