... | ... | @@ -20,7 +20,7 @@ The plan is to follow the instructions for Lesson 4 [1]. |
|
|
|
|
|
The NXT light sensor was mounted on the car, which was placed on page 69 of the LEGO Mindstorms Education NXT Base Set 9797 building instruction, as seen in the figure below.
|
|
|
|
|
|
![test setup ex 1](https://gitlab.au.dk/rene2014/lego/raw/master/pdfs/Images/4-1-1.jpg)
|
|
|
![Test setup for exercise 1](https://gitlab.au.dk/rene2014/lego/raw/master/pdfs/Images/1-1.jpg)
|
|
|
|
|
|
After the calibration the program successfully recognized white and black.
|
|
|
The detection was also tested on the remaining colors, where only the very bright colors returned white, and the rest returned black.
|
... | ... | @@ -40,7 +40,7 @@ else |
|
|
|
|
|
The LineFollowerCal application was programmed to the car and tested on a black line as shown in the figure below.
|
|
|
|
|
|
![test setup ex 2](https://gitlab.au.dk/rene2014/lego/raw/master/pdfs/Images/4-2-1.jpg)
|
|
|
![Test setup exercise 6](https://gitlab.au.dk/rene2014/lego/raw/master/Lesson4/Images/2-1.jpg)
|
|
|
|
|
|
When placed on the left hand side of the black line the car successfully followed the line, by zigzagging across the edge.
|
|
|
When placed on the right hand side of the black line the car turned once around itself before crossing the line, but without following it however.
|
... | ... | @@ -82,7 +82,7 @@ The control algorithm is wrapped in an LeJOS NXT application that is able to com |
|
|
|
|
|
The ColorSensorTest application was programmed to the car and tested on page 69 of the LEGO Mindstorms Education NXT Base Set 9797 building instruction, using the same setup as in exercise 1.
|
|
|
|
|
|
TODO, insert pic af test, steffan har det vidst
|
|
|
![Test setup for exercise 6](https://gitlab.au.dk/rene2014/lego/raw/master/Lesson4/Images/6-1.jpg)
|
|
|
|
|
|
The application shows both the raw sensor readings and the calculated rgb values, as well as an estimation of the color in question.
|
|
|
The application was able to correctly identify green and white, however the black color was very unpredictable.
|
... | ... | |