Changes between Version 2 and Version 3 of ControlSystems/Electrical/Training/Arduino/Lesson4
- Timestamp:
- Sep 28, 2015, 12:27:52 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/Electrical/Training/Arduino/Lesson4
v2 v3 1 1 = Making Music = 2 * DEVICES: Speaker3 * THEORY: frequency, amplitude, software lookup tables4 * TOOLS: frequency counter and/or oscilloscope5 * HANDS-ON: use switches to make different tones. Make music using notes and note-to-frequency LUTs6 2 7 Your kit includes a tiny speaker[[Image(http://i.ebayimg.com/00/s/MTI4MFgxNjAw/z/iq4AAOSwgQ9Vli0r/$_35.JPG, align=right)]].3 Your kit includes a tiny [http://electronics.howstuffworks.com/speaker6.htm audio speaker] [[Image(http://i.ebayimg.com/00/s/MTI4MFgxNjAw/z/iq4AAOSwgQ9Vli0r/$_35.JPG, align=right)]]. 8 4 You can use the speaker with your Arduino to make sounds and even play music. 9 5 6 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. 7 8 * [http://www.instructables.com/id/Arduino-Basics-Making-Sound/ Instructable] 10 9 * [http://playground.arduino.cc/Code/MusicalAlgoFun a music program] 11 10 * [https://www.arduino.cc/en/Tutorial/PlayMelody music with volume control] 12 * [http://www.instructables.com/id/Arduino-Basics-Making-Sound/ Instructable]13 11 * [http://makezine.com/projects/make-35/advanced-arduino-sound-synthesis/ Advanced sound and waveform generator] 14 12 … … 18 16 * Use switches to make an instrument 19 17 * Examine the signal being sent to the speaker using an oscilloscope 20 * NOTE: later, we'll build a thermain18 * NOTE: later, we'll build a [https://learn.adafruit.com/adafruit-arduino-lesson-10-making-sounds/pseudo-theramin Thermin] 21 19 22 20 == Advanced Projects ==