分享

How do I measure a negative voltage without a ADC?

 新用户5228KeDY 2022-06-23 发布于北京

纯笔记。

没整理。没翻译。没尝试。没时间。但有用。

本来想企图设计设计下学期的实验。

ADS1115MCP3421等等一众老外的差分ADC模块价格一路疯涨。有高手建议用AD7705/7706。但是搜索一下相关的Arduino库,很古旧,也少有建议使用。

碰到一个without ADC的讨论,其实应该是differenciral input,没准儿能用。有衰减,但简单。先记着,有时间试试。因为不涉及外来的电压,所以全部都转成Single End,一下子测负电压的代码就简单了。

the -1 to -3V that I'm measuring is the output of a LM337 that I want to monitor. –

Kevin Boyd Jun 21, 2010 at 6:23

related: Measure -20V to +20V voltage with pic –

davidcary

Jun 25, 2011 at 22:29

I don't have enough details to flesh out a complete answer, but if your PIC has a VREF- (negative reference voltage) pin then you can probably do this directly, without an additional inverter, through creative use of the reference voltages. –

Sparr Aug 16, 2013 at 2:04

An inverting amplifier does not need a negative rail to invert the voltage.

gschem

Try to think of your power rails as what supply your output. If you look at the circuit, all op-amp pins are tied to a voltage of 0V or higher. When your range of -1 to -3 comes in, it will show up as the exact opposite of 1 to 3 on the output. This also gives you some advantages as a buffer, as the input impedance of your pin will not affect this circuit very much (so long as Rin||Rf is large).

I agree that a simple resistor divider does the job -- just letting you know that this also works.

+1 -- this is the proper way to do it if you don't have an ADC taking in negative inputs. –

Jason S

Jun 20, 2010 at 19:41

3

No, the rails of the op-amp are the bounds for your output. Where a rail to rail op-amp will go very close to the bounds. You could, and many have, spent their life designing op-amps. There is no such thing as a perfect op-amp, but there is normally a perfect op-amp for a specific case. –

Kortuk Jun 21, 2010 at 14:03

4

On that note, in this configuration, if you surpass around -Vcc as your input your output will hit the Vcc rail. Some op-amps will not go within a volt or more of the rail, some op amps will go within 50mV. If you get a larger input signal, divide it by a larger amount, if you have a -1 to -10 V signal, divide by 2, problem solved. –

Kortuk Jun 21, 2010 at 14:04

2

@Kortuk - There is is never a perfect op-amp for any case. However, there is the best op-amp out of the available selection, when price is taken into consideration, for every project. –

Connor Wolf

Oct 19, 2010 at 4:27

3

@Fake Name, I think this is a case of a communication error. If it meets the specs you need and is affordable then you have the perfect op-amp. That would be my wording, I understand what you mean though. I accept the limitation and use perfect because I am positive. <3 –

Kortuk Oct 19, 2010 at 14:36

You could use a voltage divider, with one end hanging off the positive supply rail. Say you have one with equal resistors and a 5V power supply, this will result in a voltage between +2V and +1V for your -1 to -3V range.

+5V +

|

R

|

+-- OUT

|

R

|

IN -+

Share

Cite

Follow

This will require the IN terminal to sink a current of (5-Vin)/(2R), so you'll have to choose R large enough to not overwhelm the input with unwanted current. then, your ADC input will need to have at least an order of magnitude more input impedance than the R value, in order not to unduly load down the divider network. Which all may (or may not) be possible. To the data sheets! –

JustJeff Jun 20, 2010 at 13:35

3

-1: you'd better use precision resistors and a precision reference for 5V. –

Jason S

Jun 20, 2010 at 19:39

1

+1 for being the cheapest simplest way. But as Jason S says, precision will take effort, if that matters. –

DarenW Oct 15, 2010 at 20:34

3

Any noise on your positive rail will show up in your ADC. –

endolith Oct 15, 2010 at 21:37

If reference voltage is not present (e.g. MCU is not powered up) input may go deep minus in regard to the ground, damaging the input or MCU in whole. –

Anonymous Nov 6, 2020 at 7:42

/////////////////

You might not even need an op-amp. Some ADC's (like the MCP3304, see datasheet: http://ww1./downloads/en/DeviceDoc/21697e.pdf have a built in differential mode, where the ADC returns the difference of two channels, which can be a negative number. If you tie one channel to ground (called pseudo-differential mode), the ADC can accept a negative input voltage on the other, and translate it into a negative number, all without needing a negative voltage.

Of course, this only applies if your ADC supports this sort of thing. Many don't have differential mode at all.

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多