The LM2904 does not have rail-to-rail inputs or outputs. With a 3.3 V supply, it is not guaranteed to handle voltages above 1.3 V.
The LM358LV/LM321LV would be able to handle up to 2.3 V. The TLV9002/TLV9001 has rail-to-rail I/Os.
The LM2904 is a low-cost device; offset drift over time is not specified, and is likely to be different for different die designs.
Cheaper and better replacements would be LM2904B(A), or LM2904LV/LM358LV/LMV358A at low voltages.
These devices were designed as replacements for each other; the actual behaviour is the same.
But the LM358(-N) does not have rail-to-rail outputs; if you care about the output voltage range, you should use an amplifier like the LM358LV or TLV9002.
This looks as if you are exceeding the valid input common-mode range. In this case, the behaviour is undefined, and different dies can clip or saturate.
The LM358LV would require a smaller headroom, but you should use an op-amp with rail-to-rail inputs…
Hi Suy,
keep in mind that the LM358 is a dino. It was a sensational OPAmp at the time it came to the market many decades ago. But today we have better suited OPAmps. You may want to replace the LM358 by the LM358LV:
Shown are seven different input signal…
Hi Rona,
I would give the LM358LV in combination with a small signal NPN a try. This OPAmp seems to be optimally suited for this circuit and doesn't seem to need any phase lead compensation. There isn't even the least ringing in the step response and…
I wondered if the LMV358-N was an acquired National Semi variant of the LMV358, as mentioned for the LM358-N here https://e2e.ti.com/support/amplifiers-group/amplifiers/f/amplifiers-forum/809184/faq-lm358lv-what-is-the-difference-between-the-lm358-lm358b…
The datasheet requires a headroom of 3 V to both rails. But this is the range for which the other electrical characteristics are guaranteed in the worst case. The schematic implies that the typical behaviour will be similar to the NJM022M.
This is not…
Cathy,
For less performance and lower cost, there is LM358B
For better performance and similar cost, there is TL072H or TL082H
If you can lower supply to 5V, there is LM358LV