... | ... | @@ -64,16 +64,17 @@ The next task was to map the raw values to the range [-100, 100], in order for t |
|
|
[TODO: Insert videooo (killed the radio star) - Ida: Thank you, Nicolai, nu har man den på hjernen (min venindes kommentar: Thanks Obama)]
|
|
|
*Video 4: The robot running SoundReactor.java*
|
|
|
|
|
|
After being thoroughly confused by draw int for a while (THANK YOU NXT!?!!11), we managed to get it working. As can be seen in the video, the robot drives forward and backward according to sound level reasonably appropriately, although it appears that when driving backwards the noise/vibrations caused by the robot is enough of an increase in the values picked up by the sensor that the robot immediately slows down its backwards driving and even drives forward a bit.
|
|
|
After being thoroughly confused by draw int for a while (TODO: Ida forstår ikke det her - det var da ikke DrawInt, der forvirrede os?), we managed to get it working. As can be seen in the video, the robot drives forward and backward according to sound level reasonably appropriately, although it appears that when driving backwards the noise/vibrations caused by the robot is enough of an increase in the values picked up by the sensor that the robot immediately slows down its backwards driving and even drives forward a bit.
|
|
|
|
|
|
We wrote a program, ***SoundHater.java***, as the inhibitory version of ***SoundLover.java***. The program is exactly the same as the SoundLover program, except we don't invert the read value. The result is shown in Video 5. The robot accurately stops when hearing loud noises and drives forward under low sound levels.
|
|
|
|
|
|
[TODO: insert SoundHater video]
|
|
|
*Video 5: The robot running SoundHater.java*
|
|
|
|
|
|
We made a program **TinyDancer.java**, where we initially made the robot turn left if read sound level was over 50, and turn right if under 50. The robot kept constantly turning left, as the sound level caused by itself was too high. Result can be seen in [Video spin-to-win]
|
|
|
Finally, we made the program ***TinyDancer.java***, where we initially made the robot turn left if the sensor measured a sound level above 50 (TODO Ida: som i 50 procent? Eller dB?), and turn right if the value was less than 50. The robot kept constantly turning left as the sound level caused by itself was too high. This can be seen in Video 6.
|
|
|
|
|
|
[Insert spin me right round baby right round]
|
|
|
[TODO: Insert spin me right round baby right round]
|
|
|
*Video 6: TinyDancer robot constantly turning left*
|
|
|
|
|
|
We then tried with increasing the values of the threshold for turning left or right, to 80, then 90 and lastly settled on a magic number 93 before we were satisfied with the left-to-right ratio. We lastly realized that the robot wasn't dancing, it was just driving forward with either the left or right motor. So we made the made the motor that wasn't currently driving forward drive backwards with the same amount of power, so the robot would stand in spot and 'dance', instead of driving around. Result can be seen in [insert fabulous video of Frej showin' some mooves]
|
|
|
|
... | ... | |