MCP4231 Digital Potentiometer Circuit

That particular circuit won't allow the current through the transistor to vary with the 'Input'.

PE --
This will: