LED Music Player -- My First Arduino Project

Поделиться
HTML-код
  • Опубликовано: 20 мар 2013
  • The Arduino starter kit came yesterday, and here is my first Arduino project!
    Source code: github.com/Jianan-Li/misc-ard...
  • НаукаНаука

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

  • @borisdorofeev5602
    @borisdorofeev5602 6 лет назад +1

    Cool, thank you. It was a fun project to do. I'll go in later and try to modify the note array to get a different song out of it.

  • @bluewonder123
    @bluewonder123 10 лет назад

    This is awesome!!!!
    - Maddy from Baltimore

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

    Brilliant, well done!

  • @marcelolaguna2012
    @marcelolaguna2012 8 лет назад +1

    Obrigado por compartilhar!
    Funcionou perfeitamente.

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

    Perfect work :X

  • @ghostsniper9667
    @ghostsniper9667 6 лет назад +1

    man you are amazing...i did it..And it works..thanks a lot! ;) you are a genius !

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

      I have coding errors and can't upload
      Please help me
      I copied and pasted coding on ardunio software and had coding errors

  • @user-lq5dj6ef1o
    @user-lq5dj6ef1o 9 лет назад +3

    Hello I like your project a lot! can I ask what is the numbers you used for making this beautiful music?

  • @homie7893
    @homie7893 8 лет назад +2

    Hey, so I've been using your code to try to write a song and I really wanna add a second piezo buzzer to my code with a different melody and duration and all that but I tried to many different way and still can't figure it out...any advice?
    -Thank you!

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

    Cool project

  • @pooyamz
    @pooyamz 9 лет назад +11

    Replace green LED with white one to become a real patriot :) Good demo bro !

  • @karenroman290
    @karenroman290 8 лет назад +2

    +Jianan Li
    Can you put a picture up with the wiring? I am not able to get everything from the video

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

    good job mate

  • @Xhar.
    @Xhar. 6 лет назад

    Yo man got it to work nice Sub + thumbs up

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

    I am doing a project like the one shown here. 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?

  • @creativemario3039
    @creativemario3039 3 года назад

    Good work

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

    Gracias amigo

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

    Hi Jianan I know How the sizeof function work but I don't understand What "sizeof(NOTE_F5)" is used. Can you explain me please?

  • @chrismack1919
    @chrismack1919 9 лет назад +1

    Can u make an tutorial on how to make it plz

  • @hanisyaadhi6582
    @hanisyaadhi6582 3 года назад

    pls let me know what type of the buzzer??

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

    the arduino sketch is not recognizable this line " else if ( não ledOn) {". How should I proceed?

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

    de cuanto es la resistencia del pushbutton

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

    My code brings an error of terminante. should i use the pitches.h??or LED?

  • @devilscutbistro2433
    @devilscutbistro2433 8 лет назад +1

    at 0:35 the green led lights up but doesn't play the note..

  • @XXmoonangelX
    @XXmoonangelX 10 лет назад

    can you explain how to get the pitch.h file to sync with the sketch folder? this looks like a great project and i would like to try it out, im having the same problem as Malik Jordan with the error of NOTE_F5

    • @JiananLi
      @JiananLi  10 лет назад +1

      You should put the pitches.h file and the LEDMusicPlayer.ino sketch inside the same folder named LEDMusicPlayer. Then when you open the sketch using the Arduino IDE, the pitches.h file would show up as a second tab in the window, and it should be able to compile. Let me know if it works.

  • @music3listener4
    @music3listener4 10 лет назад

    can this still be done by putting battery to the arduino?

  • @Felshish
    @Felshish 3 года назад

    i cant do that with a problem that make me erase the code because ''F5'' was not declared in this scope

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

    Awesome

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

    very cool

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

    very nice

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

    Ohm resistors?

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

    Hello
    What is the circuit diagram?

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

    awesome

  • @JiananLi
    @JiananLi  10 лет назад

    Have you included the pitches.h in the sketch folder?

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

    Can you please put up the code you used

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

    Good man..

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

    What is the name of the component near the blue led? It's near the letters f and e. And what does it do?

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

      +The Eccentric Composer That is a momentary contact pushbutton switch. It is connected to one of the Arduino's input pins and when activated it sends 5volts to it.

    • @tim-214
      @tim-214 8 лет назад

      It's a tactile momentary button, pretty much acts as a switch.

  • @coyotestevens
    @coyotestevens 8 лет назад +3

    im getting this error message whats wrong
    Arduino: 1.6.7 (Windows 10), Board: "Arduino/Genuino Uno"
    sketch_jan29a:1: error: #include expects "FILENAME" or
    #include expects
    ^
    exit status 1
    #include expects "FILENAME" or
    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.

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

      +coyote stevens Me too

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

      +coyote stevens I think you won't get this error if you download the zip file of the entire repository: github.com/Jianan-Li/super-saiyan.

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

      +coyote stevens you put coyote into the library folder?

  • @malikjordan9351
    @malikjordan9351 10 лет назад +1

    I used the sketch from the link and tried to verify it and it came up with an error saying ''NOTE_F5' was not declared in this scope' has anyone else had this problem and how can I fix it?

  • @bob-ny6kn
    @bob-ny6kn 2 года назад

    Nice project. Pro tip: Put code you want to run once in setup() and leave loop() empty.

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

    Can you please tell me the code

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

    where is the schematic

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

    cool , can you teach us the codes, i need help in project, thanks

  • @ballobrehima1615
    @ballobrehima1615 2 года назад

    C'est très bien

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

    nice

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

    Should be red white & blue. Nice project.

  • @JellamayDayaguit
    @JellamayDayaguit Год назад +1

    Will you help me? I want to add more songs using one pushbutton. once I press the pushbutton, the music will change. HELP ME, plssss😔

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

    what is the code

  • @pharaohboy8657
    @pharaohboy8657 3 года назад +7

    I’m the 1000th like I’m feeling so thug life for making it 1K likes

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

    note f5 error is showing

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

    i wonder if i can use this to make a patriotic wall-e

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

    Those blue things are resistors right?

  • @karenroman290
    @karenroman290 8 лет назад +2

    +Jianan Li
    What resistor did you use? I cannot tell

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

      +Karen Roman a 110ohm one.

    • @di4352
      @di4352 7 лет назад +2

      Not 110ohm, its a 220ohm resistor with 1% tolerance

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

      Karen Roman 1% yymm good choice xD

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

      @@di4352 i have 330 ohm resistors, Will they be okay?

  • @music3listener4
    @music3listener4 10 лет назад

    may i know, which number are those wires connected to?

    • @JiananLi
      @JiananLi  10 лет назад

      If you're asking about the pins on the arduino that the wires are connected to, it's 5, 4, 3, for the three LEDs, 2 for the pushbutton, and 12 for the piezo speaker. You can find these defined in the code (the link is in the about section above). As for the resistors, the three LEDs are each connected to a 220 ohm resistor, and the pushbutton is connected to a 10k resistor. Let me know if you have more questions.

    • @music3listener4
      @music3listener4 10 лет назад

      ***** tym

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

      @@JiananLi which wires are the 3 at the very left connected to?

  • @music3listener4
    @music3listener4 10 лет назад

    did u used 5v or 3.3v ?

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

    how can we change the music?

    • @loredejazz
      @loredejazz 9 лет назад +1

      Renzdy Mejilla I checked up the link it has, and it has two codes, the first to define musical notes, and the second that runs the program with the circuit. In the second code, when you press the pushbutton, it triggers the start for the song, which is described in the piece of the "melody", it calls the sequence of notes you need from the first code, to reproduce that melody, and in a second part, it also describes the duration of each note for the song. So if you want to change the music, you would have to change the "melody" part, and describe the sequence of notes you need for another song, as well as the "duration" of each. Can't help you further, since I don't know how to read music, but if you do, or find the notes you need for the melody you desire, only write them in order, using that first code I told you about. (: Hope this helps, and not too late..

  • @bowzert
    @bowzert 10 лет назад

    Do it with chords, now! :)

  • @lesvideosdeFantomas
    @lesvideosdeFantomas 8 лет назад +1

    Includes not the comment I met the Code car there in two parts.

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

      +F4nt0mas Arduino : 1.6.7 Hourly Build 2015/11/27 03:44 (Windows 7), Carte : "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
      C:\Users\Fantin\Desktop\sketch_feb05d\sketch_feb05d.ino:10:21: fatal error: pitches.h: No such file or directory
      #include "pitches.h"
      ^
      compilation terminated.
      exit status 1
      Erreur lors de la compilation.
      Ce rapport contiendrait plus d'informations si l'option
      "Montrer les informations de sortie pendant la compilation"
      était activée dans Fichier > Préférences.

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

      +F4nt0mas I think you won't get this error if you download the zip file of the entire repository: github.com/Jianan-Li/super-saiyan.

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

      +Jianan Li OK thx .

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

      +Jianan Li Can you send me the full code please. Because always this message:
      Arduino : 1.6.7 (Windows 7), Carte : "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
      C:\Users\Fantin\AppData\Local\Temp\Rar$DIa0.743\LEDMusicPlayer\LEDMusicPlayer.ino:8:21: fatal error: pitches.h: No such file or directory
      #include "pitches.h"
      ^
      compilation terminated.
      exit status 1
      Erreur lors de la compilation.
      Ce rapport contiendrait plus d'informations si l'option
      "Montrer les informations de sortie pendant la compilation"
      était activée dans Fichier > Préférences.

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

      +Jianan Li No It's ok thank you for sharing this video!!^^

  • @dramatize21
    @dramatize21 9 лет назад +4

    whats code did you use?

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

      Linked in the description!

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

    Portuguese version: github.com/Jianan-Li/misc-arduino-sketches/blob/master/LEDMusicPlayer/LEDMusicPlayer.ino

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

    which music is it?

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

      robin thoelen the star spangled banner. The United States of Americas anthem.

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

      If you don't know this, you shouldn't be allowed on the internet.

  • @handiinu2.077
    @handiinu2.077 5 лет назад

    Just put some bacon and it is done
    Sorry for the bad jokes i am typing this at 2 am

  • @mohamedkhlifi1199
    @mohamedkhlifi1199 9 лет назад +3

    I would like to see the code please.

  • @giliardg.deoliveira5568
    @giliardg.deoliveira5568 6 лет назад

    If you wanna learn how Making Music with Arduino, leave a reply!

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

      HERE

    • @giliardg.deoliveira5568
      @giliardg.deoliveira5568 6 лет назад

      The complete course "Making Music with Arduino" is a 100% online course dedicated to the DIY culture lovers. In this course you will learn how to build your own MIDI controllers, easily and inexpensively, using the Arduino platform. You will learn, from scratch, programming and electronics, until you will be able to build a complete MIDI controller.>>>>go.hotmart.com/E1597324G

  • @NakNakFamilyBoySadded
    @NakNakFamilyBoySadded Год назад

    the code have an error it said like this
    Sorry, it seems like your code has some errors.
    8:10: fatal error: pitches.h: No such file or directory

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

    no tutorial????

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

    :)

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

    your first Arduino project is 100 times more difficult than mine

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

    La la la la +1 pls

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

    awesome