I built a circuit based on ESP8266, MCP41100 digital potentiometer and LM358 op-amp. Its purpose is to use it as 0-5V DAC, but I have the following problem:
I use LM358 as non-invering amplifier. It's connected to 5V from VIN ESP8266 pin, non-inv. input is connected to output of voltage divider made from digital potentiometer, inverting thorough 12k and 22k resistor to output and ground.
For some reason I cannot go above 3.3V on output. Could you tell me how to debug it? Everything except part with amplifier works as it should.