This was my initial set-up (forgot to initially add resistor):
I tested my analog reader and speaker, and my analog worked but not my speaker.
I then messed with the circuit by moving around the resistor to see if that would help my speaker
And I replaced my speaker with another speaker to see if it was working because I soldered my actual speaker terribly (I ended up just getting better cables for my speaker).
The solution to my problem was that my resistor wasn’t complete in and the analog reading wasn’t in the correct pin for my speaker.
However, when running the code with my circuit, it only worked during the upload part of compiling? But wouldn’t after that? it would also improve the length of how long it worked by getting rid of delay.
link to a video of this happening- the sound also just cuts off? - MUST ASK YESEUL ABOUT THIS
My initial setup (no ground on the diagram?)
My problem running it may have been writing pitches.h library incorrectly? I tried using the example code and github’s pitches.h, but it still wouldn’t work?