... | ... | @@ -2,7 +2,7 @@ |
|
|
|
|
|
## Lab Notebook 3
|
|
|
|
|
|
**Date:** 26/02 2015
|
|
|
**Date:** 05/03 2015
|
|
|
|
|
|
**Group members participating:** Tine Hansen, Daniel Moltzen, Mads Eriksen, Lars Høeg
|
|
|
|
... | ... | @@ -21,12 +21,25 @@ Furthermore, we have an overall conclusion at the end of the notebook to summari |
|
|
### Exercise 1 - Black White Detection
|
|
|
|
|
|
#### Goal
|
|
|
To make a program that uses the class BlackWhiteSensor.java[1]. Furthermore test and investigate how well the BlackWhiteSensor.java[1] works.
|
|
|
|
|
|
#### Plan
|
|
|
We will first mount the black and white sensor in the LEGO 9797 car. Afterwards will we make a program that uses and tests the class BlackWhiteSensor.java[1]. We will then measure the light values of black, white, grey and green.
|
|
|
|
|
|
#### Results
|
|
|
|
|
|
| "color" | Light Value |
|
|
|
| -------- | ----------- |
|
|
|
| Black | 39+-1 |
|
|
|
| White | 58+-1 |
|
|
|
| Grey | 55+-1 |
|
|
|
| Green | 47+-1 |
|
|
|
|
|
|
##### Table 1: Light values
|
|
|
|
|
|
|
|
|
#### 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.
|
|
|
|
|
|
|
|
|
### Exercise 2 - Line Follower with Calibration
|
... | ... | @@ -54,7 +67,6 @@ Furthermore, we have an overall conclusion at the end of the notebook to summari |
|
|
### Exercise 5 - PID Line Follower
|
|
|
|
|
|
#### Goal
|
|
|
To make a program that uses the class BlackWhiteSensor.java[1]. Furthermore test and investigate how well the BlackWhiteSensor.java[1] works.
|
|
|
|
|
|
#### Plan
|
|
|
|
... | ... | |