Arduino Tutorial: Learn how to play sound with Arduino by building a DIY Micro Piano. Easy Project
HTML-код
- Опубликовано: 17 июн 2016
- In this video we are going to learn how to make sound with Arduino. We are going to build a simple Micro Piano in order to demonstrate the capabilities of the tone function. Let's start!
Playing back sound is great for adding audio feedback to our projects. So far we were using displays or LEDs in order to provide feedback to the user of the project. Today we will learn how to make sound with Arduino and as you are going to find out, it is very easy.
💻 Code & Parts: educ8s.tv/arduino-micro-piano/
Want to learn to code?
👨💻 Check my new RUclips channel: bit.ly/3tku2n0
🎮 My Android Game: bit.ly/QuizOfKnowledge Наука
Glad you finally got at 3d printer! Truly a great tool!
Mine worked. Very satisfying, lol! I salvage all the parts from old electronics boards. Got the buzzer from a microwave.
So how would I do this, if I wanted to output the sound to a 3/4 inch jack, and use 88 switches instead of 7?
I have done this project before since I also have the starter kit!
What do you do to upload the code? Do you just transfer the sketch from Notepad ++ to the IDE? What do you do, please help me.
you really helped me bro, thanks!
hey the .cpp in the library its can be open with wordpad and notepad and can edit the file
How do you play two or more notes at the same time ? Tks.
Great video Thanks. Is it possible to modify the volume of tones?
Regards
great job have to try this one
This is great. What is the greatest number of sounds that the arduino could play? I am trying to make something that will play around 16 sounds.
Thank you.
how should i save my files in which folder im really new to this
Thanks!!! Work for me
You're great continue like that
This is a very nice and enticing project. I will put this on my next project. Thank you for posting this instruction.
can somebody help me to fix this error undefined reference to `loop'
Thank you very much :)
great vid thx chief
السلام عليك
I want to Tighten phone and arduino // USB // Do I need a driver
i tried it but only 6th button is working.What abut remaining?
graet video! can I do it with respberry pi?
How about a video about programming an arduino with a FTDI Breakout?
error compiling this for ardunio uno. plzzzz help
works perfectly
Why does the codes change from the notepad to the IDE?..
what is the unit of frequency here??
Hay do you know how to make a floating stone
Can you use a speaker instead of a buzzer?
hi man, i want to see preview of the your 3d printer if you want.
Thanks, it works!
Corbos, started ths project yesterday. Should you be able to get a tone when every button is pressed without loading the code? Like in the vid.Just a method to check my wiring.
If i can use a touch switch , then the effect would be more good.
I don't think you need to use PWM pins for the buzzer. Use just any pin. This library provides square wave using software only.
I'm going to try it... But I think that to talk to the speaker the arduino must make a pwm signal because you can have different frequency.
The instructions in the arduino starter kit said to just connect the push buttons in a resistor ladder to analog pin input 0 (A0.)
I followed your instructions code and schematics but it behave strangely... It keeps looping on one tone without pressing any key
What resistence si that
Thank you you have really usefull videos!!
ok lil bro
hey nick! i have an great idea!
a watersensor +rf wireless module +arduino +relay
got it already? when the ground is dry the relay goes on, on a distance, wireless!
i would really much like this!
it just keeps making a noise and the buttons wont do anything
+1 for the review! :-)
nice video thx
excellent.
I always encounter a problem with the "wiring.h". It says it is missing.
I think u have to change it to arduino.h
the code is not opening why
Thank u
I want to make a 3 minute timer and once time has arrived, beep to be heard.
What happens when you press two buttons at the same time?
the first button that plays will go, and the second will only play if you stop holding the first one.
Can you use an active buzzer? What is the different between a buzzer and piezo speaker?
A piezo speaker is like a normal speaker, but small, low quality and low volume. You need to play a signal through it. Connecting it to power will just make it click.
A buzzer has an oscillator built in, so you only need apply electricity to it to get a sound. These can be very loud even with low voltages.
+John Bailey Which one should I use for this tutorial?
I want its circuit diagram
Circuit diagram??
Hola. Me podrías decir cuáles son las resistencias que necesito. Porque el link está caído;(
cool
Can this work on the raspberry pi model B please?
Everything can work on raspberry. Search for the raspberry gpio
I recommend using python on raspberry
i have one problem, when i turn on arduino the buzzer started on, and just only one button do something, other 6 button do nothing. i'm so sorry for mistakes, im brazilian!!
Você é muito bom em falar lá Engle
I tried doing this code and it only plays one note infinitely.... I followed every step and it still won't work...
the thingiverse link is missing in description :)
Sorry, fixed!
Buttons 5,6,7 work fine, but 1-4 are silent. Help?
there is no help in this world
the codes dont work :( i get this error:
Arduino:1.8.3 (Windows 10), Tarjeta:"Arduino/Genuino Uno"
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer0_pin_port'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer0_pin_mask'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer1_pin_port'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer1_pin_mask'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer2_pin_port'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer2_pin_mask'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer0_toggle_count'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer1_toggle_count'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer2_toggle_count'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `__vector_7'
sketch\Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compilando para la tarjeta Arduino/Genuino Uno.
Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
lol
Tengo el mismo error
Did you ever find the solution?
¿alguna vez encontraste la solución?
I changed wiring.h to Arduino.h and it doesn't work
can i use arduino nano for this project
Yes of course!
what have i to do with the library?
I can't see
I just got an error compiling! Pls Help!!!!
Fixed it by moving it to C:\ProgramFiles (86x)\Arduino. Hope this helps!
are you sure about the song ?
The 5th String it sounds like Mary had a little lamb 🤔
why is your arduino different from mine arduino uno?
I think...It's his own 3D printed
are u stupid or dum or both? you can't 3d print arduino you moron. he made it. ok. go to his channel and see one of the video named making arduino uno.
@@imperialrecker7111 No, that's why all PCBs don't exist.
@@boing7644 lol
3:50 the frame that you forgot to blur! your welcome !
Don't worry there is nothing secret there. It is just distracting! Cheers!
ok i am literally doing the project now! so could you give me the arduino code only plz
i am sorry i am not good in arduino
plz answer me as soon as possible plz
check the video description its all there
Stairway to Heaven?
3:49 whoops i can see the left side of your docs while you blurred it earlier
+MEe$ :-) there is nothing secret there. It is just distracting
+educ8s.tv aha okay :D
Merry had a little lamb
hello i have error...
Arduino: 1.8.9 (Mac OS X), Board: "Arduino/Genuino Uno"
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer0_pin_port'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer0_pin_mask'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer1_pin_port'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer1_pin_mask'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer2_pin_port'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer2_pin_mask'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer0_toggle_count'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer1_toggle_count'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `timer2_toggle_count'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `__vector_7'
sketch/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Are you Greek?
lOnDoN bRiDgE iS FaLlInG DoWn
John Paul Empino sa fb
Mary had a Little lamb
poor programing. thi could sound much better. the output is turned on and off. that is what make the noise. the output must be on all the time an only digital interupt by software emulation must be trigger by buttons.
I know what song he played, it is mary had a little lamb if anyone is wondering
dont thank me its fine
wow thanks so much for that help
dont worry bout it
Pls
BRO
Answer me
error compiling this for ardunio uno. plzzzz help
I have made piano on my channel so visit it and make like mine its working properly
I followed your instructions code and schematics but it behave strangely... It keeps looping on one tone without pressing any key
Merry had a little lamb
Pls