Chapter 6. Make Some Noise!

Sound can be used to give a bot more personality. Think about how boring R2-D2 would be without all the chirps and whistles. Well, you can give your bot plenty to say by using the SOUND block. Sound isn't limited to just giving your bots character, though. Sounds can be useful as a way to judge your bot's progress through a maze, for example, with the bot programmed to issue specific sounds when it makes a left or encounters a dead end. And if you find that the sound you need for your robot doesn't exist—well, users of NXT-G 2.0 will find a new feature that allows them to record and use custom sounds using the SOUND block! Read on for all the details on the SOUND block.

The SOUND Block

When you drop in the SOUND block ...

Get Lego Mindstorms NXT-G Programming Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.