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.
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
Be sure and join us again next month for The NXT Big
66 SERVO 09.2011