Changes between Version 5 and Version 6 of ControlSystems/Electrical/Training/Arduino/Lesson4


Ignore:
Timestamp:
Nov 3, 2019, 3:58:20 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/Electrical/Training/Arduino/Lesson4

    v5 v6  
    66You 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.
    77
    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]
    99* [https://www.arduino.cc/en/Tutorial/Melody Another approach] that's more complex, but more instructive
    1010* [http://playground.arduino.cc/Code/MusicalAlgoFun a music program]