Really happy I found this video and hope you make another one soon. You're probably familiar with the ability of some opera singers to shatter a wine glass by singing a particular note. I thought it would be fun to do something similar, but I would play a particular note on my clarinet and and a hammer would come down and smash the glass. After watching this video, I think I now have the tools to do this, so thanks!
I think it would be very helpful to make the program take a sound sample during the countdown to determine the ambient noise level, set a volume threshold based on this, and then when cued have it iterate repeatedly through the available sampling memory for even half of a second, sensing for when a sample’s amplitude exceeds the threshold.
Hi, would you be able to explain your code more in depth? I'm working on a school project that is very similar to what you've done here, and I'd love to get a better understanding of your code!
Hi Sarena. Thanks for asking. On my website I give a bit more information. I am adding more information as questions are asked. Please go to clydelettsome.com/blog/2020/06/07/my-weekend-project-musical-note-detector-using-an-arduino/ to see the additional information posted thus far.
Hey Dr.! I have a project at my job i really need help with. Is there a way we can get on a call to help me better understand how to execute it. I would really appreciate it!
sir i want to ask something i tried your project for my science experiment and i faced some problems because i change arduino UNO to ESP32 which part of your code should i change into make it works?
In order to make the program display how close the played note was to the closest match in the storedNoteFreq array, I added the following in the section you titled "Find the closest note": noteLocation = i; cents = 1200 * log(storedNoteFreq[i]/signalFrequencyGuess)/log(2); if (cents < 0) { flatSharp = "flat"; cents = -cents; } else if (cents > 0) { flatSharp = "sharp"; } else if (cents = 0) { flatSharp = ""; } I then had this display in the printed output as... Serial.println(octaveRange); if (cents == 0) { Serial.println("You nailed it!") } else if (cents 0) { Serial.print("You were "); Serial.print(cents); Serial.print(" cents "); Serial.print(flatSharp); Serial.println("."); } What do you think? (NOTE: Don't forget to add "int cents = 0;" and String flatSharp = "";" to the variables at the very beginning.)
Hi Doctor Clyde, I measured the current of a mobile charger with a multimeter and i put a 1 ohm 3 watt resistor in series with the probes and the output of the charger and the output voltage and current is exactly the same as what written on charger. I tried with other chargers and the results are exactly like what it should be. Did i measure the current wrong?
Hi Toolman, It sounds like you did but do note the crrent showing on your multi meter will also be dependent on the resistor (load) you put in series also. Good Luck! Like, Share, and Subscribe.
Thanks for answering my questions. I use 1 ohm resistor to avoid exceeding the maximum current the chargers can give. Are there any other way to test the chargers output current with multimeters ?
I am not familiar with the Max 4466. I know it worked with the parts I used. Try the DEVMO. See my website for where you can purchase the DEVMO. clydelettsome.com/blog/2020/06/07/my-weekend-project-musical-note-detector-using-an-arduino/ Please like, share, and subscribe.
Hi Youraj, Thank you for asking. It should be. You may have to amplify the sound coming from your mp3 player. When I tested it, I needed to add PC speakers containing an amplify to boost the volume. Try it. Good luck! Please like, share and subscribe.
I just saw the project on fritzing, I'm not even interested in music but I watched the full video because of the clear explanation. Nice Job
Thank you!
LIke, Share, and Subscribe.
Really happy I found this video and hope you make another one soon. You're probably familiar with the ability of some opera singers to shatter a wine glass by singing a particular note. I thought it would be fun to do something similar, but I would play a particular note on my clarinet and and a hammer would come down and smash the glass. After watching this video, I think I now have the tools to do this, so thanks!
This is a very interesting concept! If I were you, I would add an RGB LED that changes color according to the notes that you play!
Thank you for the suggestion.
I think it would be very helpful to make the program take a sound sample during the countdown to determine the ambient noise level, set a volume threshold based on this, and then when cued have it iterate repeatedly through the available sampling memory for even half of a second, sensing for when a sample’s amplitude exceeds the threshold.
Great video Dr. L! Thank you
Thank you! Like, Share and Subscribe!
Dr Clyde, your content is awesome, I hope you keep making more videos. Subscribed.
Awesome work man.
Great to see you brother
You too
Dr. Clyde, I want to know where to get the free code. I try looking for it but didn't find it
nice project
Thanks.
Like, Share, Subscribe!
Hi, would you be able to explain your code more in depth? I'm working on a school project that is very similar to what you've done here, and I'd love to get a better understanding of your code!
Hi Sarena. Thanks for asking. On my website I give a bit more information. I am adding more information as questions are asked. Please go to clydelettsome.com/blog/2020/06/07/my-weekend-project-musical-note-detector-using-an-arduino/ to see the additional information posted thus far.
Hi Sarena I was wondering if you had the code and could share it
Hey Dr.! I have a project at my job i really need help with. Is there a way we can get on a call to help me better understand how to execute it. I would really appreciate it!
Hi Justin,
Thank you for asking. I charge for that type of help. Would your job willing to hire me as a consultant?
sir i want to ask something
i tried your project for my science experiment and i faced some problems because i change arduino UNO to ESP32
which part of your code should i change into make it works?
In order to make the program display how close the played note was to the closest match in the storedNoteFreq array, I added the following in the section you titled "Find the closest note":
noteLocation = i;
cents = 1200 * log(storedNoteFreq[i]/signalFrequencyGuess)/log(2);
if (cents < 0) {
flatSharp = "flat";
cents = -cents;
} else if (cents > 0) {
flatSharp = "sharp";
} else if (cents = 0) {
flatSharp = "";
}
I then had this display in the printed output as...
Serial.println(octaveRange);
if (cents == 0) {
Serial.println("You nailed it!")
} else if (cents 0) {
Serial.print("You were ");
Serial.print(cents);
Serial.print(" cents ");
Serial.print(flatSharp);
Serial.println(".");
}
What do you think?
(NOTE: Don't forget to add "int cents = 0;" and String flatSharp = "";" to the variables at the very beginning.)
Hi Doctor Clyde,
I measured the current of a mobile charger with a multimeter and i put a 1 ohm 3 watt resistor in series with the probes and the output of the charger and the output voltage and current is exactly the same as what written on charger.
I tried with other chargers and the results are exactly like what it should be.
Did i measure the current wrong?
Hi Toolman,
It sounds like you did but do note the crrent showing on your multi meter will also be dependent on the resistor (load) you put in series also.
Good Luck!
Like, Share, and Subscribe.
Thanks for answering my questions.
I use 1 ohm resistor to avoid exceeding the maximum current the chargers can give.
Are there any other way to test the chargers output current with multimeters ?
Hello. Thanks for the project. I dont know why doesnt works... Would be possible to use MAX 4466 instead of DEVMO? Thanks
I am not familiar with the Max 4466. I know it worked with the parts I used. Try the DEVMO. See my website for where you can purchase the DEVMO. clydelettsome.com/blog/2020/06/07/my-weekend-project-musical-note-detector-using-an-arduino/
Please like, share, and subscribe.
I'd change the text "calabration" into "Calibration" in the sketch....The way it is correctly spelled....Seems a bit sloppy this way...
does anyone know how to download the Arduino off his website ?
this is useful for approx 1khz frequency detection from mp3 songs?
Hi Youraj,
Thank you for asking. It should be. You may have to amplify the sound coming from your mp3 player. When I tested it, I needed to add PC speakers containing an amplify to boost the volume.
Try it. Good luck!
Please like, share and subscribe.
@@CALettsomePhDPE thanks
dude what's with the "Add to cart" $0.00 whole thing to download the code ? couldn't you just put it on github ?????
It is on Github also
Clyde Lettsome, PhD, PE there is no link anywhere