How To Play Musical Notes With Arduino

Поделиться
HTML-код
  • Опубликовано: 22 июл 2024
  • Using the tone function you can play musical notes with the Arduino of a given frequency and duration. If you want to play a tune you assemble those notes and duration into two separate arrays and call them using the tone function.
    Amazon amzn.to/2zMoNBW
    Arduino Uno Starter kit amzn.to/2hqWktS
    amzn.to/2ifN3FD
    You can help support this channel by using the Amazon affiliate link above for any of you future Amazon purchases. I will receive a small commission from Amazon at no additional cost to you which will enable me to produce continuing content for this channel.
    Thank you for your support.
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!
  • НаукаНаука

Комментарии • 30

  • @electro3976
    @electro3976 8 лет назад

    Great tutorial and video as always,very well explained and delivered.

  • @Almonds7
    @Almonds7 7 лет назад

    I exactly did the same thing what you did Mr.eTechTom. The code and everything, but without the potentiometer and resistor, all i get is a popping noise. Just one pop and that's it.

  • @KristinAlayna
    @KristinAlayna 7 лет назад

    I am doing a project like the one shown here. I also want to adds lights while the tune plays. Moreover, I want this to be done via a motion sensor and not a push button. What other parts will I need to make this happen?

  • @PianoHarmocGuy
    @PianoHarmocGuy 9 лет назад

    what is the model of the speaker u are using? thanks.

  • @matthewbuckler2368
    @matthewbuckler2368 8 лет назад

    I have a "OSEP Uno R3 Plus" (it is the same as an arduino) but I can only play 8 notes? Help !

  • @tlaxru3442
    @tlaxru3442 7 лет назад +1

    what is the name of book samples?

  • @cadillacescalade5428
    @cadillacescalade5428 10 месяцев назад

    Hi, I have a question I am using the same scenario except my tone is a Train crossing signal bell. It's about 6 seconds in length but I am using
    const int sounddata_length =
    Const unsigned char sounddata_length
    But Also I am using Audacity to turn my mp3 tones in to a wav format
    I am also haven to do a 2sec
    Time limit so they will fit.
    How can I make the Arduino except the whole 6 sec
    Of the bell tone. ?

  • @Vic.tor-_-
    @Vic.tor-_- 8 лет назад

    thanks a lot

  • @KristinAlayna
    @KristinAlayna 7 лет назад

    If anybody knows circuits and coding for Arduino can you PLEASE help me? I'm so upset. Days away from presentation and I'm still not done.

  • @ChaitanyaDhareshwar
    @ChaitanyaDhareshwar 5 лет назад +1

    You can use my playTunes tool at infinitybeam.io/playtune.html to help you generate Arduino ToneMelody-compatible Tunes. Have a bash making your own tunes for your Arduino-based project!

  • @mdnasiruddin700
    @mdnasiruddin700 6 лет назад

    how do you calculate time?

  • @angeladione3450
    @angeladione3450 4 года назад

    I'm new to arduino and needing to buy micro speakers....can these work for arduino? Any help is appreciated! I'm building a cabinet for children that makes sounds when you open the drawers...
    Internal Speaker 8 Ohm 0.5 W 20 mm Dia. Round Slim Internal Magnet Speaker for Toys

  • @sanb3586
    @sanb3586 5 лет назад

    Code would be appreciated thanks

  • @DupczacyBawol
    @DupczacyBawol 6 лет назад

    Great video. Maybe easier, it could be a good idea to decode the notes from an ascii string. The string could look like this "A4+,E3+,A4+,E3+,E4=,C4=,D4=". Easier? ;)

    • @Alirezaa8
      @Alirezaa8 5 лет назад

      What is the Name of the song?

  • @evanperrygiblin
    @evanperrygiblin 4 года назад

    so to have multiple speakers playing different notes, you just add CONSTANTS named e.g. SPEAKER2=10 ??? I'm trying to get 12 speakers to play different notes

  • @aaronaquino9048
    @aaronaquino9048 9 лет назад

    so the potentiometer is for volume control here? or does it serve other purpose?

  • @deemon8888
    @deemon8888 9 лет назад

    I got a lot of error which the first word of every line is pitches.h.ino , help please

    • @derockx
      @derockx 9 лет назад

      +Dee Mon u have to download the file pitches.h.ino from a website that idk

    • @gabrielleme00
      @gabrielleme00 8 лет назад

      +Dee Mon This link has the notes: www.arduino.cc/en/Tutorial/toneMelody - Sorry for being late :S

  • @xRyan7
    @xRyan7 9 лет назад

    ich möchte noch was über arduino :)

  • @ramishtewi6911
    @ramishtewi6911 7 лет назад

    give me book arduino of PDF
    pleas

  • @PENRIL86
    @PENRIL86 6 лет назад

    do, re, mi, fa ,sol , la , si , do ? only it

  • @fvazquez64
    @fvazquez64 5 лет назад +1

    Like if Woody Harrelson would teach Arduino... (sorry, I couldn't resist... )

  • @chufeng6223
    @chufeng6223 6 лет назад

    Without showing me the code its as if you shown me bullcrap.

    • @tmc200527
      @tmc200527  6 лет назад

      The program and library is from Jeremy Blum's book Exploring Arduino which you can download from here www.exploringarduino.com/content/ch5/

    • @chufeng6223
      @chufeng6223 6 лет назад

      Now it makes more sense. Thanks.

    • @Alirezaa8
      @Alirezaa8 5 лет назад

      What is the Name of song?