Changes between Version 5 and Version 6 of ControlSystems/Electrical/Training/Arduino/Lesson4
- Timestamp:
- Nov 3, 2019, 3:58:20 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/Electrical/Training/Arduino/Lesson4
v5 v6 6 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 7 8 * [http ://learning.codasign.com/index.php?title=Arduino_tone%28_%29 The simplest method]8 * [https://www.instructables.com/id/Arduino-Bascis-Playing-Sounds-and-Tones/ The simple overview] 9 9 * [https://www.arduino.cc/en/Tutorial/Melody Another approach] that's more complex, but more instructive 10 10 * [http://playground.arduino.cc/Code/MusicalAlgoFun a music program]