... | ... | @@ -156,11 +156,11 @@ The illustration in Figure 6 ("Figure 7" in the lesson plan) shows the sound sen |
|
|
|
|
|
*Figure 6: The diagrammatic illustration of Vehicle 3 provided as Figure 7 in the lesson plan*
|
|
|
|
|
|
We wrote a program, ***RaveBot.java*** [9], that seeks towards places with both high sound levels and high light levels. The program mostly consists of a mash of our previous programs ***SoundLover.java*** and ***LightLover.java***, where we simply add together the two values received from the sensors and then divide by two (halving the impact of each sensor), using the resulting value as the motor power for the corresponding motor according to the drawing in Figure 6. The result can be seen in Video 10.
|
|
|
We wrote a program, ***RaveBot.java*** [9], that seeks towards places with both high sound levels and high light levels. The program mostly consists of a mash of our previous programs ***SoundLover.java*** and ***LightLover.java***, where we simply add together the two values received from the sensors and then divide by two (halving the impact of each sensor), using the resulting value as the motor power for the corresponding motor according to the drawing in Figure 6. The result can be seen in Video 9.
|
|
|
|
|
|
[![RaveBot: Activate](http://img.youtube.com/vi/8bv9QNYc14I/0.jpg)](https://www.youtube.com/watch?v=8bv9QNYc14I)
|
|
|
|
|
|
*Video 10: Robot running the RaveBot program*
|
|
|
*Video 9: Robot running the RaveBot program*
|
|
|
|
|
|
The video shows the robot correctly powering up the appropriate motor to seek towards light when registering it. However, the robot most often stops when registering sound, with a slight veering towards the sound source. This is expected, as our inhibitory implementation of the sound sensor causes it to give a great deal of power to both sensors when there is no sound present. If one e.g whistles near one sound sensor, the opposite sound sensor is bound to pick up a great deal of sound as well (although not as much), resulting in lower motor power for both motors. All in all, the combination of sensors works reasonably well, but it could be argued that it would be possible to find a more refined way of calculating the combination of sensor readings, rather than the pretty naive "average of the two" approach that we have used.
|
|
|
|
... | ... | @@ -194,7 +194,6 @@ TODO |
|
|
[15] [Video 6]()
|
|
|
[16] [Video 7]()
|
|
|
[17] [Video 8]()
|
|
|
[18] [Video 9](...........TODO)
|
|
|
[19] [Video 10]()
|
|
|
[18] [Video 10]()
|
|
|
|
|
|
[TODO: video refs, they are missing in file-repo, so must be transfered] |
|
|
\ No newline at end of file |