... | ... | @@ -117,10 +117,10 @@ As seen in the above code snippet we implemented a ButtonListener that didn't in |
|
|
### Exercise 5 - Clap Controlled Car
|
|
|
|
|
|
#### Goal
|
|
|
Our goal is to make a method, using Sivan Toledos method[1], that detects clap, and compare this method to the SoundCtrCar.java.
|
|
|
Our goal is to make a method, using Sivan Toledos method[2], that detects clap, and compare this method to the SoundCtrCar.java[4].
|
|
|
|
|
|
#### Plan
|
|
|
We plan on writing the necessary code and use a Datalogger to record the data and afterwards conclude on the pattern.
|
|
|
We plan on writing the necessary code and use a Datalogger[3] to record the data and afterwards conclude on the pattern.
|
|
|
|
|
|
#### Results
|
|
|
|
... | ... | @@ -130,8 +130,10 @@ We plan on writing the necessary code and use a Datalogger to record the data an |
|
|
### Exercise 6 - Party Finder Robot
|
|
|
|
|
|
#### Goal
|
|
|
The goal is to make the robot drive towards the location with a loud sound.
|
|
|
|
|
|
#### Plan
|
|
|
We are going to do this by using the the raw-value from the sensor, for better precision, and by implementing another sensor, so there is two of them.
|
|
|
|
|
|
#### Results
|
|
|
|
... | ... | @@ -144,4 +146,5 @@ We plan on writing the necessary code and use a Datalogger to record the data an |
|
|
### References
|
|
|
1. leJos tutorial, [Threads, Listeners and Events.](http://lejos.sourceforge.net/nxt/nxj/tutorial/ListenersAndEvents/Listeners_Events.htm)
|
|
|
2. Sivan Toledo, [A Clap Counter](http://www.tau.ac.il/~stoledo/lego/ClapCounter/), Oct 2006.
|
|
|
3. [Data logger](http://en.wikipedia.org/wiki/Data_logger), Wikipedia. |
|
|
3. [Datalogger](http://en.wikipedia.org/wiki/Data_logger), Wikipedia.
|
|
|
4. Sourcecode can be found in [Lesson3programs.zip.](http://legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson3.dir/Lesson3programs.zip. |