... | @@ -21,14 +21,14 @@ Follow the instructions given in the [lesson plan] (http://legolab.cs.au.dk/Digi |
... | @@ -21,14 +21,14 @@ Follow the instructions given in the [lesson plan] (http://legolab.cs.au.dk/Digi |
|
### Black White Detection ###
|
|
### Black White Detection ###
|
|
|
|
|
|
#### Description ####
|
|
#### Description ####
|
|
First, you should mount the sensor on the LEGO 9797 car as described in LEGO Mindstorms Education NXT Base Set 9797 building instruction page 32 to page 34. Second, make a program that use and test the class BlackWhiteSensor.java. After calibration, place the car with the light sensor over different dark and bright areas and investigate how well the BlackWhiteSensor works.
|
|
First, you should mount the sensor on the LEGO 9797 car as described in LEGO Mindstorms Education NXT Base Set 9797 building instruction page 32 to page 34. Second, make a program that use and test the class _BlackWhiteSensor.java_. After calibration, place the car with the light sensor over different dark and bright areas and investigate how well the BlackWhiteSensor works.
|
|
|
|
|
|
#### Execution ####
|
|
#### Execution ####
|
|
|
|
|
|
### Line Follower with Calibration ###
|
|
### Line Follower with Calibration ###
|
|
|
|
|
|
#### Description ####
|
|
#### Description ####
|
|
As an application of the BlackWhiteSensor try the program LineFollowerCal.java. The program uses the simple class Car.java to move the car.
|
|
As an application of the BlackWhiteSensor try the program _LineFollowerCal.java_. The program uses the simple class _Car.java_ to move the car.
|
|
|
|
|
|
#### Execution ####
|
|
#### Execution ####
|
|
|
|
|
... | @@ -56,7 +56,7 @@ It is possible to make a line follower with just one light sensor that follows t |
... | @@ -56,7 +56,7 @@ It is possible to make a line follower with just one light sensor that follows t |
|
### Color Sensor ###
|
|
### Color Sensor ###
|
|
|
|
|
|
#### Description ####
|
|
#### Description ####
|
|
In the LEGO Mindstorms series there is also a color sensor. Use the test program ColorSensorSensor.java to investigate the information that the class ColorSensor provide in Full mode. Place the color sensor over black, white and green to figure out if the information provided can be used to distinguish the three colors.
|
|
In the LEGO Mindstorms series there is also a color sensor. Use the test program _ColorSensorSensor.java_ to investigate the information that the class ColorSensor provide in Full mode. Place the color sensor over black, white and green to figure out if the information provided can be used to distinguish the three colors.
|
|
|
|
|
|
Is it possible to use the color sensor for both following the black line and stop in the goal zone?
|
|
Is it possible to use the color sensor for both following the black line and stop in the goal zone?
|
|
|
|
|
... | | ... | |