... | ... | @@ -23,12 +23,20 @@ Today, we will do the exercises 1-6 by following the instructions. |
|
|
### Exercise 1
|
|
|
Use the light percent values for black and white to explain how the threshold value could be obtained from a reading above black and white
|
|
|
|
|
|
| header 1 | header 2 |
|
|
|
| Color | Light percent values |
|
|
|
| -------- | -------- |
|
|
|
| cell 1 | cell 2 |
|
|
|
| cell 3 | cell 4 |
|
|
|
|
|
|
|
|
|
| White | 53% |
|
|
|
| Blue | 33% |
|
|
|
| Green | 38% |
|
|
|
| Red | 62% |
|
|
|
| Yellow | 50% |
|
|
|
| Black | 28% |
|
|
|
|
|
|
In program blackWhiteThreshold = 45.
|
|
|
We can find our threshold value by this way:
|
|
|
(53-28/2)+28 = 40.5
|
|
|
|
|
|
The value 40.5 is pretty close to the blackwhite threshold in the program. The difference between our threshold on 40.5 and 45 can come from different readings from the sensor on finding black and white color.
|
|
|
### Exercise 2
|
|
|
|
|
|
### Excerise 3
|
... | ... | |