arrow-left-lightarrow-leftarrow-right-lightarrow-rightarrow-thin-left arrow-thin-right browser-search cup heart indicator laptop layers layout-4boxes layout-sideleft mail-heart mail map-pin mixer mouse nav paintbucket pencil-ruler phone picture play video

Output devices

  • Week 11

Connecting a speaker:

    Connecting a speaker is super smple. You just need one output pin and one ground pin. I first test all my circuits with an Arduino before integrating them in my board so that I know the connections and the component are correct.

Playing music with speaker

  • I got the code for the super mario theme song here. There is a melody, tempo and note definition, which defines the music to play.
    Single large image

  • I played twinkle twinkle little star melody using the guidelines on this Arduio website page. You can see some useful screenshots here.
    Single large image
    Single large image

    I integrated the speaker with my input devices and used it with a Atmega328p. You may see full details of this integration on my final project updates page

Single large image

    Here's a video of the board working