Author Topic: Voltage Divider vs. Op-Amp  (Read 2886 times)

0 Members and 1 Guest are viewing this topic.

Offline luissizzleTopic starter

  • Newbie
  • Posts: 9
  • Country: us
Voltage Divider vs. Op-Amp
« on: January 05, 2022, 07:23:01 pm »
Hey all,

I needed to read a 5V signal with a 3.3V MCU. I used an inverting op-amp with a VCC bias to map 0 to 5V to 3.3V to 0, respectively. The circuit works great (picture attached). Someone asked me why not just use a voltage divider, and I didn't have a good answer to that. A voltage divider with a zener voltage clamp would protect the input and accomplish the same thing. In this application, are there advantages to using the op-amp circuit that i'm not seeing?




- Luis Barragan
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 7140
  • Country: de
Re: Voltage Divider vs. Op-Amp
« Reply #1 on: January 05, 2022, 08:23:10 pm »
Well, you're inverting the input signal, so there must be a reason for that.
 

Offline luissizzleTopic starter

  • Newbie
  • Posts: 9
  • Country: us
Re: Voltage Divider vs. Op-Amp
« Reply #2 on: January 05, 2022, 09:55:55 pm »
Well, you're inverting the input signal, so there must be a reason for that.

that's a consequence of the op-amp circuit. The inversion is handled with the MCU
- Luis Barragan
 

Offline GerryR

  • Frequent Contributor
  • **
  • Posts: 256
  • Country: us
Re: Voltage Divider vs. Op-Amp
« Reply #3 on: January 05, 2022, 10:06:00 pm »
A simple divider would have worked, and you wouldn't have had to handle the inversion in the processor, but your solution is fine, just more work.
Still learning; good judgment comes from experience, which comes from bad judgment!!
 
The following users thanked this post: luissizzle

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1819
  • Country: ca
Re: Voltage Divider vs. Op-Amp
« Reply #4 on: January 05, 2022, 10:28:48 pm »
Quote
In this application, are there advantages to using the op-amp circuit that i'm not seeing?

None that I can see. A voltage divider would do just as well.
The only advantage I can see is future flexibility. ie: In the future, if you wanted to change a 0 - 1.5V signal to 3.3V - 0V all you'd need do is swap out some resistors on your PCB and thus avoid a PCB redo/mod. (Or some other ratio where you wanted to increase the voltage swing)
 
The following users thanked this post: luissizzle

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 10070
  • Country: us
Re: Voltage Divider vs. Op-Amp
« Reply #5 on: January 06, 2022, 02:25:04 am »
When you use an op amp, you are likely using high value divider resistors,  Perhaps on the order of 100k or so.  But the output impedance of the op amp will be quite low and this is sometimes required to drive the ADC.

The alternatives:  Low value resistors consuming excessive power sized to meet the ADC's input requirements or modest value resistors with a capacitor creating a low pass filter on the ADC input that limits high frequency response but provides a relatively low impedance to drive the ADC.

It's a tradeoff.  I would probably use the op amp if I had room and power was a consideration.
 
The following users thanked this post: luissizzle

Online ledtester

  • Super Contributor
  • ***
  • Posts: 4073
  • Country: us
Re: Voltage Divider vs. Op-Amp
« Reply #6 on: January 06, 2022, 02:37:28 am »
...
A voltage divider with a zener voltage clamp would protect the input and accomplish the same thing.
...

You haven't said what other rails are available or what guarantees there are about the input signal, but it seems that if you need to use a zener voltage clamp with the voltage divider you would also need some sort of input protection with the op-amp.
 
The following users thanked this post: luissizzle


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf