Below is the LTspice simulation:
I used one of the rail-rail op amps available in LTspice, but just about any RR op amp should work.
The U2 pot is to tweak the offset to compensate for component and supply voltage tolerances.
I attached the .asc file, which you can simulate by clicking on it.

I used one of the rail-rail op amps available in LTspice, but just about any RR op amp should work.
The U2 pot is to tweak the offset to compensate for component and supply voltage tolerances.
I attached the .asc file, which you can simulate by clicking on it.

Attachments
-
1.4 KB Views: 8
Last edited:
