Back to Basics: Rail to Rail Opamps

Today we discuss one of the most basic characteristic of an opamp.

Rail to Rail opamp purely means an opamp whose input and output stages are designed to operate with signal voltages that are very close to both power supply rails under specified conditions. Meaning on a ±5V supply a rail to rail opamp might accept inputs from about −4.9V to +4.9V and drive outputs from about −4.95V to +4.95V into a light load, instead of being limited to something like−4.3V to 4.7V like a non-rail-to-rail opamp.

The key spec behind this is the common-mode input voltage(the voltage that is sitting on both inputs) range. If the datasheet says Vcm = V− to V+ + 0.1V, the input really reaches both rails (and a bit beyond). If it instead says Vcm = V− to V+ − 1.2V on ±5V, the input is valid from −5V to only +3.8V, so it is rail to negative rail, not truly rail to rail. Whenever you pick an opamp, this single line tells you how close your real circuit can get to each rail.

You also need to watch the output swing. The datasheet tells you how close the output can get to each rail at a given load. Into 10kΩ it may sit a few tens of millivolts away. Into 1kΩ that gap can jump to a few hundred millivolts.

The rule of thumb I try to follow is to keep signals at least 0.1V inside each rail, unless the graphs clearly prove better. On a 3.3V front end, I budget 0.1V to 3.2V as the working range and treat anything closer as margin.

When you pick a device, filter by supply and package, then read the common mode range and the output swing at your load. Only after that, think about offset and noise. This habit avoids parts that look fine, but quietly clip the last few millivolts.

A mostly unknown fact is that many rail to rail input opamps use two input pairs that hand over near mid-supply, so their worst distortion often appears around mid-scale instead of at the rails.

If you liked the post, Share it with your friends!

Tech Explained: Electro-Vibration

Last week in the lab I was working on a PCB mounted on a metal surface powered by an AC to DC adapter. When I touched the painted metal surface, I felt faint buzzing/roughness on my fingers. With the power off, the same surface felt perfectly smooth. Initially, I had no idea what that feeling was. It made me go down a rabbit hole to find out what the issue was. Let’s discuss that today.

The feeling was not what you would attribute to while getting a shock. It was the same feeling when you run your finger over a rough surface. My first thought was that there was something wrong with the AC supply. I switched my switchboard to a new one at a different location in the lab, and the problem was gone. So the conclusion was it was something related to earthing. I took out a multimeter and measured the mains at the plug. Line to neutral was about 240V, which is normal. Line to earth was about 187V and neutral to earth about 53V. That told me the earth at this outlet was floating between line and neutral instead of being solidly tied to real ground.

Next, I measured between the metal body and a good earth point. Through the paint coating, I saw only about 15-20V AC, meaning a small AC voltage on the metal from the supply and wiring. That leakage current would be zero with a proper earth and you would never notice it. On this bad outlet, my body was the earth, closing the circuit through my fingers and feet and creating that electro-vibration feeling. Technically a mild shock.

In haptics, this effect is called electro-vibration or electro-adhesion. Its when a conductive surface at AC voltage with a thin insulator like paint turns your finger and the metal into a tiny capacitor. The changing electric field slightly changes friction between skin and surface. This creates the microtexture feeling. Googled it and found that this tech is used for creating cool new touch interfaces.

Although I feel like I’m glorifying a shock in this post, if you ever feel something like this, don’t experiment further. Turn OFF the AC and get your hand off it. Please keep this in mind and don’t be stupid like me.

If you liked the post, Share it with your friends!
1 2 3 4 5 6 97