wiki:ControlSystems/Electrical/Training/Arduino/Lesson4

Version 2 (modified by David Albert, 10 years ago) (diff)

--

Making Music

  • DEVICES: Speaker
  • THEORY: frequency, amplitude, software lookup tables
  • TOOLS: frequency counter and/or oscilloscope
  • HANDS-ON: use switches to make different tones. Make music using notes and note-to-frequency LUTs

Your kit includes a tiny speaker http://i.ebayimg.com/00/s/MTI4MFgxNjAw/z/iq4AAOSwgQ9Vli0r/$_35.JPG. You can use the speaker with your Arduino to make sounds and even play music.

Exercises:

  • Make a sound
  • Play a song (use an array for the notes and lookup tables for the frequencies)
  • Use switches to make an instrument
  • Examine the signal being sent to the speaker using an oscilloscope
  • NOTE: later, we'll build a thermain

Advanced Projects

better sound text to speech

Attachments (1)

Download all attachments as: .zip