How to make music with an Arduino

Поділитися
Вставка
  • Опубліковано 25 сер 2024

КОМЕНТАРІ • 38

  • @n-o-i-d
    @n-o-i-d 3 роки тому +5

    Extremely well expliained, thank you!

  • @TechMalaya
    @TechMalaya 3 роки тому +1

    damn this is the valueable video that I have been searching about how to make a song using arduino. If can make it more using musing

  • @h8aidan
    @h8aidan 3 роки тому +1

    underrated, you really need to make more content

  • @anthonypelletier8978
    @anthonypelletier8978 5 років тому +6

    I have the same Arduino! Cheap and high quality.

    • @djfoxlink
      @djfoxlink 4 роки тому +2

      Yeah me too dudes

  • @fodotuv2633
    @fodotuv2633 3 роки тому +2

    Brooo this is amazing!

  • @nadersaid1329
    @nadersaid1329 4 роки тому +1

    ( 1 ) in pcm library
    how i can change sample from 8000 to 22000 or any sample.
    ( 2 ) pcm library it can run on
    nodmcu esp8266

  • @ashutoshmohanty
    @ashutoshmohanty 4 роки тому +3

    Thanks for the wonderful video. Can you tell how can i get note value of any music to program Arduino.

    • @CodeandMake
      @CodeandMake  3 роки тому

      You're welcome. Ideally you should refer to the score for the music, but I assume you are asking as a non-musician? If you are lucky the score will be annotated with the notes, otherwise you will require a little bit of knowledge of how to read it. For simple scores you should be able to read it with a little bit of research and patience. Once you have the notes and durations, you can use the diagram included in the video to figure out which numbers to use: ua-cam.com/video/Z1YvIFUIhLs/v-deo.html

  • @DIYRobotGirl
    @DIYRobotGirl 10 місяців тому

    would a 16th note be 4/16 = 0.4? time in video 6:40

  • @adilabusafa
    @adilabusafa 4 роки тому +1

    مشكور.

  • @myehia7195
    @myehia7195 3 роки тому

    Thanks

  • @joprieur7718
    @joprieur7718 4 роки тому +1

    great!

  • @vishalp6263
    @vishalp6263 5 років тому +2

    It's a birthday song I've done it

  • @attilazsalek1589
    @attilazsalek1589 2 роки тому

    Hi! Can I play two notes together on different output pins with only one Arduino? Thx for the answer.

  • @GrabThatPencil
    @GrabThatPencil 3 роки тому +1

    How do I put this in the void loop function? I want my music to loop

    • @CodeandMake
      @CodeandMake  3 роки тому +1

      Hi,
      Great question. To achieve this, you just need to move the for loop (lines 71 - 75 in this gist: gist.github.com/codeandmake/1add672bc7957135ac4e212360acbc98#file-gistfile1-txt-L71-L74 ) from the setup() function into the loop() function (line 141: gist.github.com/codeandmake/1add672bc7957135ac4e212360acbc98#file-gistfile1-txt-L141 ). You should leave the pinMode() call (line 68: gist.github.com/codeandmake/1add672bc7957135ac4e212360acbc98#file-gistfile1-txt-L68 ) in the setup() function.

    • @GrabThatPencil
      @GrabThatPencil 3 роки тому

      @@CodeandMake Thanks! New subscriber well earned!

  • @hiiiiiiii3853
    @hiiiiiiii3853 Рік тому

    Can I use speech instead of music?

  • @jensschroder8214
    @jensschroder8214 4 роки тому

    How does it sound?

  • @oliver-04
    @oliver-04 3 роки тому

    is there a website where i can input a mp3 and it will give me the correct code for the sound?

  • @phitrow
    @phitrow 4 роки тому

    in next for record video please to resize resolution your monitor to 720px.
    3:40

  • @electropuff6098
    @electropuff6098 3 роки тому

    it a problem with youre program; don't define speackerPin 12
    just 12-output and all is done

  • @Babak_Ahari
    @Babak_Ahari 4 роки тому

    Where is the result of codes?

  • @jeffpricefamily3905
    @jeffpricefamily3905 3 роки тому

    I am new to Arduino and would like to know how to code it in the loop, or could you point me to an example please. Tks.

    • @CodeandMake
      @CodeandMake  3 роки тому

      Hi Jeff,
      To achieve this, you just need to move the for loop (lines 71 - 75 in this gist: gist.github.com/codeandmake/1add672bc7957135ac4e212360acbc98#file-gistfile1-txt-L71-L74 ) from the setup() function into the loop() function (line 141: gist.github.com/codeandmake/1add672bc7957135ac4e212360acbc98#file-gistfile1-txt-L141 ).
      You should leave the pinMode() call (line 68: gist.github.com/codeandmake/1add672bc7957135ac4e212360acbc98#file-gistfile1-txt-L68 ) in the setup() function.

    • @jeffpricefamily3905
      @jeffpricefamily3905 3 роки тому

      @@CodeandMake Awesome ! Much Tks.

    • @jeffpricefamily3905
      @jeffpricefamily3905 3 роки тому

      Can Arduino play more than one note at a time ? Tks.

  • @LeonardoLisboaBr
    @LeonardoLisboaBr 2 роки тому

    Totally dissapointing not showing the music in the end!!!

  • @mikecurley69
    @mikecurley69 2 роки тому

    Lame that there is no demo. Doesn't motivate me to try it myself.

  • @thejackal5099
    @thejackal5099 3 роки тому

    This is a rick roll isn't it?

  • @Bearmund
    @Bearmund 4 роки тому +1

    It's so fucking annoying when a video doesn't demo the music!

  • @yigitsamast6046
    @yigitsamast6046 4 роки тому

    Hiçmi türk yok

  • @ben_jammin242
    @ben_jammin242 3 роки тому +1

    This was terrible. With no actual demonstration the viewer has no idea what to expect as results. So it's impossible to tell if I want to watch this, let alone try it. Try again.

    • @CodeandMake
      @CodeandMake  3 роки тому +2

      I'm sorry you do not like it. I hope you find a tutorial you enjoy.

    • @ben_jammin242
      @ben_jammin242 3 роки тому +2

      @@CodeandMake dude, im sorry. Totally woke up on the wrong side on the bed. Wasn't right of me to take it out on you. Please keep making content. Im sure this is plenty valuable content.