Thanks for the reply. The volume can only be specified in levels from 0 to 7, so there's not much granularity that you can specify. The pops occur at both volume increase and decrease.
What do you mean?
The way you do this is put the audio output across the pot and take the input I too the amplifier at the wiper.
But that is so trivial I assume you are asking something else.
Grumpy_Mike, well, if you read TMRpcm docs, there is volume level from 0 to 7, and game isn't over ofcourse, there is the way to drive those values using the pot for sure, it is not documented how, but there is the way and I will find out, will figure out the volume (0) and (1) - for up and down and I am sure I will manage to drive the volume of TMRpcm using the potentiometer. You may think that 38,856 posts gives you authority to dismiss this as "game over" but it isn't the case, you can only have your opinion as I have mine. Cheers.
OKAY! Figured out how to change TMRpcm volume using the pot, solely and without an amp:
TMRpcm tmrpcm; // create an audio object
int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin
Then in the loop simply add:
val = analogRead(potpin); // reads the pot value (and this is between 0 and 1023)
val = map(val, 0, 1023, 0, 7); // this does the trick: scale it to use it for our need (values 0 to 7, instead 0 to 1023)
Thanks for your reply. I've attached a diagram of the speaker configuration that I'm using. Could you suggest how to modify it based on your suggestion to use a capacitor to possibly eliminate the popping.