... | ... | @@ -26,7 +26,10 @@ After Ida and Emil had to leave, Nicolai and Camilla took over the coding role a |
|
|
|
|
|
We began by rebuilding the robot, looking at the illustrations for the building instructions for *Express-Bot* [1, page 2] as well as the images provided in the lesson plan under *Building Instructions for a Base Vehicle*.
|
|
|
|
|
|
Caaaaan we build it? YES WE CAN!!! (perhaps insert picture of fancy AF Frej?)
|
|
|
![rebuilt robot](https://gitlab.au.dk/LEGO/lego-kode/raw/master/week8/img/IMG_2304.JPG)
|
|
|
|
|
|
*Figure 1: The robot's new look after rebuild - note the lovely flower; a celebration of spring and robots coming alive*
|
|
|
|
|
|
|
|
|
### Vehicle 1
|
|
|
We started by writing a program, **SoundLover.java** to have the robot drive forward proportional to sound received by a single sound sensor. The sound sensor appears to measure the dB value somewhere between 0 and 100. We base this on the fact that the absolute highest value seen in our most extreme experiments in our Lesson 3 exercises (where we also used the sound sensor), was a value of 92. As a result, we deem it reasonable to simply map the read sound value directly to motor power, so we pass the measured sound by *readValue()* along as a parameter to the motor power. Ideally we would run some more thorough experiments to figure out the exact range that the sound sensor can measure, but we opted not to do this. The result of running this program can be seen in (TODO: INSERT VIDEO)
|
... | ... | |