Hello! I'm looking to build a circuit where I will be able to play around with the resistance of things (water, soil, metal, etc) around me with a speaker but I would like to integrate a potentiometer to control the pitch and alter the sound with Arduino. I was wondering if any one have a clue how to connect the Arduino with the potentiometer to the circuit. I use an arduino uno r3. The blue and black wire are used to play with the resistance of things.
Here my circuit - I struggle with the how to make it work with my speaker, my blue and black wires, the arduino and the potentiometer :
If anyone have an idea