This provides a visual reference for wiring of the components. They aren't true to scale, just meant to be used as reference.
- VOUT from CPX to VIN on PAM8302
- GND from CPX to GND on PAM8302
- A0 from CPX to Pot
- Pot to GND on CPX
- Pot to A+ on PAM8302
- A- from PAM8302 to GND on PAM8302
- Button to GND on CPX
- Button to A4 on CPX
- Speaker to -+audio output on PAM8302
- TRS to GND and A4 on CPX
- Battery to Pot / JST Extension
The circuit diagram was assembled in the Fritzing software. All of the components are contained in the source so they can be reused to make new projects. Download and modify the circuit diagram.