... | ... | @@ -29,12 +29,13 @@ threshold = (58+36)/2 = 47 |
|
|
Depending on the lighting in the room, the timeday and so on, the threshold will change.
|
|
|
|
|
|
### Exercise 2
|
|
|
Note: the light values depend on the light level in the room in general, which makes them unreliable as general values.
|
|
|
|
|
|
| Color | White | Black | Green | Grey |
|
|
|
|------------|-------|-------|-------|------|
|
|
|
| Light vale | 39-42 | 29 | 35 | 36-42 |
|
|
|
|
|
|
Here we turned off the red LED light, which made the sensor more exposed to the environmental light. As such the light values became lower overall, since only the reflection of the environmental light is used.
|
|
|
This point also became apparent when we recorded the light value for 'Grey', which was closer to the loft lamp - the value should naturally not be as high as white.
|
|
|
|
|
|
### Exercise 3
|
|
|
|
|
|
The sample interval indicates how often the robot should react to its environment. A large sample interval leads to a slow reaction to color shifts between black and white and therefore rough movement, while a small sample interval makes the robot follow the line more precisely.
|
... | ... | |