it
Figure 5. Add another data wire from the math block; this time
to the Y data port. Also, add a display block as shown —
outside of the inner loop and with Action set to Reset. This will
reset the screen after each time Eddie generates his sound
gauge, so that it doesn't overlap itself.
Wrapping Up
Hoorah! We’ve just delved into some awesome
programming projects with the sound sensor. We learned
Figure 6. Finally, add a . 10 second delay. This will make Eddie
generate the sound gauge 10 times a second.
how the sensor works, plus three different cool ways to
use it!
Be sure and join us again next month for The NXT Big
Thing! SV
66 SERVO 09.2011