I want to make a metronome for a personal project, and while I (pretty much!) know what I am doing with the hardware and wiring side of things, I am lost on the programming front. I found this article (the raw code is here). This shows a step-by-step approach to building a metronome application in Python.
My questions are:
1- Can Python be used as a programming language with an Arduino Nano?
2- If yes, would it be possible to use the basic metronome code (minus the UI code) to program a physical metronome that runs off of an Arduino Nano, uses separate potentiometers to set Volume, Tempo (BPM), Time signature, and sound; and separate switches to control On/Off, Accent first beat, Tempo estimation and pause/play?
3- What would be the first steps in converting this code into a workable Arduino program using the inputs stated before?
Thanks for reading, any and all help is appreciated!
Many Thanks.
I looked at the Python code and I think the first step would be to toss it in the trash.
Then design and write a metronome program for some Arduino board or other.
Maybe someone did, if repurposing other ppls' code is how you wanna roll. Google "Arduino metronome" and poke around.
a physical metronome that runs off of an Arduino Nano, uses separate potentiometers to set Volume, Tempo (BPM), Time signature, and sound; and separate switches to control On/Off, Accent first beat, Tempo estimation and pause/play?
Sounds like a nice project. It would take you longer to rip the beating heart out of that Python pile than it would to write it from scratch.
Yes, I knew that, sorry if there was a misunderstanding in my writing, but I was asking what I would need to change to get it to work with an Arduino. After reading the advice I have gotten, the consensus seems to be to throw that code in the garbage after all.
That's what I was asking about. I know you can change the speed of a metronome(duh!) and sometimes the timbre, but I didn't know that it was possible to change the volume.