Version 3 (modified by 10 years ago) (diff) | ,
---|
Making Music
Your kit includes a tiny audio speaker .
You can use the speaker with your Arduino to make sounds and even play music.
You can connect your speaker to one of the arduino digital pins (red wire) and ground (black wire) and use the tone() function to generate sound! Because the wires on the speaker are very thin, it may be hard to get them into the holes on the arduino or breadboard. You can try using one lead from a resistor to push them in or ask a mentor or senior student for help. If needed, we can solder thicker wire leads to the ends of the speaker wires.
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 Thermin
Advanced Projects
Attachments (1)
- speaker.jpg (128.6 KB) - added by 6 years ago.
Download all attachments as: .zip