... | @@ -2,4 +2,65 @@ |
... | @@ -2,4 +2,65 @@ |
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
## Lab notebook lesson 04 ## |
|
## Lab notebook lesson 4 ##
|
|
\ No newline at end of file |
|
**Date:** 23rd of February 2017
|
|
|
|
|
|
|
|
**Group members:** Samuel Bjørn Jessen, Mikkel Kaysen, Martin Wiberg Petersen and Peter Thorsen
|
|
|
|
|
|
|
|
**Activity duration:** ?? hours
|
|
|
|
|
|
|
|
## Goal ##
|
|
|
|
The goal of this lab session is to experiment with the **NXT Sound Sensor** and build a sound controlled robot.
|
|
|
|
We do this through the exercises described in the [lesson plan] (http://legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson3.dir/Lesson.html).
|
|
|
|
|
|
|
|
The goal is to make the LEGO robot follow a black line and stop at the end of the line when the car drives into a goal zone - a green rectangular piece of paper at the end of the black line.
|
|
|
|
|
|
|
|
## Plan ##
|
|
|
|
Follow the instructions given in the [lesson plan] (http://legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson4.dir/Lesson.html).
|
|
|
|
|
|
|
|
## Results ##
|
|
|
|
|
|
|
|
|
|
|
|
### Black White Detection ###
|
|
|
|
|
|
|
|
#### 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.
|
|
|
|
|
|
|
|
#### Execution ####
|
|
|
|
|
|
|
|
### Line Follower with Calibration ###
|
|
|
|
|
|
|
|
#### Description ####
|
|
|
|
As an application of the BlackWhiteSensor try the program LineFollowerCal.java. The program uses the simple class Car.java to move the car.
|
|
|
|
|
|
|
|
#### Execution ####
|
|
|
|
|
|
|
|
### ThreeColorSensor with Calibration ###
|
|
|
|
|
|
|
|
#### Description ####
|
|
|
|
Use the idea and structure of the BlackWhiteSensor to program a class ThreeColorSensor that can detect three colors: black, green and white. Make a test program that investigate the usefulness of the class.
|
|
|
|
|
|
|
|
#### Execution ####
|
|
|
|
|
|
|
|
### Line Follower that stops in a Goal Zone ###
|
|
|
|
|
|
|
|
#### Description ####
|
|
|
|
Use the ThreeColorSensor to make a line follower that stops in a green goal zone.
|
|
|
|
|
|
|
|
#### Execution ####
|
|
|
|
|
|
|
|
### PID Line Follower ###
|
|
|
|
|
|
|
|
#### Description ####
|
|
|
|
It is possible to make a line follower with just one light sensor that follows the line more smoothly and drive faster if a PID regulator is used, [2]. Try this.
|
|
|
|
|
|
|
|
#### Execution ####
|
|
|
|
|
|
|
|
### Color Sensor ###
|
|
|
|
|
|
|
|
#### 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.
|
|
|
|
|
|
|
|
Is it possible to use the color sensor for both following the black line and stop in the goal zone?
|
|
|
|
|
|
|
|
#### Execution #### |
|
|
|
\ No newline at end of file |