I am using a simple piezo speaker on my arduino mega. The speaker seems to work fine when connected to digital pins 0-13, but will not work on any other digital pins. I need it to be connected to the bottom of the mega, such as at pin 23, but it will not work. Is there a reason for this and a solution?
I guess you must have changed the program to try pin 23, but you didn't say or show the new code.
Paul
You might have used the wrong pin. A bit confusing with a Mega.
22 and 23 are not the first two pins starting from that corner, but the next pair.
The first pair is not numbered. It's VCC (5volt).
Leo..