Hello,
If anyone could help me or give me some advice it would be much appreciated!
I have been following some tutorials on youtube regarding how to make a metronome using a push button piezo and LED however i would like to incorporate the use of keyes ky008 5v laser and a receiver. The general idea being to break the laser at a certain frequency and for the piezo to feed back at whatever BMP the user broke the laser at. This would work alongside either an LCD display to demonstrate the specific bmp.
Thanks for any help guys, im a massive novice when it comes to this so either a PM or a comment with any pointers, advice or suggestions would be amazing!
Matt
What aspect of it is giving you difficulty?
How about a link to the tutorials you have been following? I'm really bad at guessing what people might have seen.
From the tutorials have you got a pushbutton based version working and just swap the button for a laser? Or how far have you got?
Steve
https://create.arduino.cc/projecthub/victorsj/tap-metronome-c13d46
Here is the initial tutorial i followed... I replaced the speaker with a piezo but im not sure how to adapt the code in order to make up for the changes.
Perhaps I'll buy another speaker i i have time. I plan to replace the push button with the laser and receiver but don't really know where to start in terms of adapting the code and how to actually get the push button itself functioning...
Ill send a picture of my project so far with the adaptations if needed later when i can.
Thanks for the speedy reply guys, sorry i took so long to reply myself but i've had some hardware failures with my pc that needed fixing before continuing the project.
Generally, you would record the time a sensor detects a break in the beam, record the next one, and subtract to get the difference. Average a few of those, and you have the period. Push button code is all over the place, just google it.
You shouldn't have to adapt the code to change from speaker to piezo. Just hardware make changes. You're being too vague about what you're doing to get good help.