Non Inverting Op Amp output near power supply voltage when input voltage is at 0V

I have a simple non inverting op amp circuit.

I am using this to amplify a DC voltage. The positive input voltage will vary from 0V-5V.

My problem is that regardless of the input the output is about 22V.

The exact op amp I'm using is here.
Datasheet here

It seems to me that regardless of the input voltage that the output is the saturated max voltage based on the specs.

I'm 100% positive that the op amp is connected correctly, as I've checked the connections too many times to count. I also rebuilt the circuit on a different part of the bread board to be sure.

Voltage at the negative input = 3.6 V

I also replaced the op amp with a different op amp, datasheet here and got similar results where 0V into the positive input resulted in about 22V output.

• Have you looked at the output with a scope to see if it's oscillating? The OPA541 requires an external current limit setting resistor you don't show. Add your actual circuit showing all decoupling caps and other external components and maybe a picture of your layout. You mention a breadboard which is probably not the best way to prototype with one of these power amps. Also this is not a rail-to-rail I/O device. Look at the common mode input voltage range. Jan 27, 2021 at 0:13
• I don't know what's wrong with your circuit but be aware you don't need such monster power resistors in that circuit. Even if the opamp is pegged at 24V only 100mW will be dissipated in the resistors (24*24/5820). Jan 27, 2021 at 0:36
• Show us a pic of what you've actually built. Jan 27, 2021 at 0:52
• Datasheet here . Page 5 - common mode Vin range is 3v typ 6v worst case less than +/- Vs - you appear to be using it in singkle supply mode so ground is an illegal input voltage. On their cctc ground is mid wat between V+ and V- Jan 27, 2021 at 1:21
• Tip: the earth/ground symbol represents metal plates buried in the ground. They should only point downwards to ground - not into the sky as shown in your schematic. Jan 27, 2021 at 10:38