Appendix A. Making Electronic Sounds
Sound is a very personal part of any project. Everyone has his particular vision of how something should sound. The Trinket Animal project in Chapter 6 used customizable sounds. This type of sound generation can be added to many Trinket projects.
The Arduino tone
function does not work with the Arduino IDE used to program Trinket. This is not a hindrance, though, as tone generation can be done simply with a tiny bit of code.
To experiment with sounds, you can use a sound creation program on Trinket or other Arduino compatibles. The program shown in this appendix comes with several preprogrammed sounds:
-
A bird chirp (best)
-
Cat meows (a “meeee-ow,” a “me-oooow,” and a “mew”)
-
Dog sounds (“ruff” and “arf”) ...
Get Getting Started with Adafruit Trinket 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.