Help me understand op-amps use

I have a pressure sensor (MSP40 - GDF) that i want to use in my project. The pressure sensor outputs a max voltage of 75mV. I know I need to boost this to voltage measurable by arduino (Nano). I have choosen LM358 for this task. But Something isn't clear to me:

First Question:

From my understanding of voltage measurement in arduino:
0v = 0
5v = 1023 (integer rep)

if I boost the voltage from my sensor by a factor of 50 then the Max voltage will be 3.75v. This would be 767.25 (max).
I would love to achieve "1023", Do I need to sellect resistors combinations such that I would obtain max 5v in the output of the Op-Amp?

Second Question

LM358 is an IC with two Op-Amps. How do I configure the two Op-Amp to output 5v max with a max input of 75mA?

Yes.

Ignore one, choose feedback resistors to give a voltage gain of 5/0.075 around the other. However if you want to get a range of 0 - 5v on the op amp output then the LM358 probably isn't suitable, you would need a "rail to rail" op amp. Google is your friend - find tutorials on opamp circuits and data sheets.

1 Like

You might find this useful: Using Operational Amplifiers in your Arduino project

2 Likes

A Wheatstone Bridge needs a Intrumentation Amplifier.

There are a number of ways to measure pressure. You have a pressure sensor with a so called "Wheatstone Bridge". That is why the sensor has two outputs: +Output and -Output. There are two -Outputs, you can tie those together.
A normal circuit with a OpAmp has a certain input impedance. A "Instrumenation Amplifier" has a high input impedance, so it does not disturb the Wheatstone Bridge.

You could also forget this sensor and buy a sensor with a normal output, so you don't have this trouble.

The Arduino Uno has a differential amplifier with gain (and also with a high input impedance). That might work, but it is hard to understand and almost no one uses it.

For a test, you could connect +Output to a analog input and -Output to a other analog input. In the sketch you can calculate the difference.

This is a long topic, but it is a similar problem: Interfacing High Pressure Sensor M3021-000005-05KPG (te.com) with Arduino

2 Likes

Thank you all for your quick reply. I am happy with your recommendations. But, Since I can get a 5v/0.075v then what advantage will a rail to rail Op-amp be bringing? (just asking for more understanding). I forgot to mention that the min Output voltage of the sensor is 0.001v (which I would love to appear as 0v on the arduino's input).

What rail to rail op-amp will you recommend for this purpose?

OpAmps typically have a restricted output voltage range, like 1V to 4V from a 5V supply. Only rail-to-rail opamps can output their full supply voltage range.

2 Likes

Thank you DrDietrich. I really appreciate your help.

Yes.

5 / 0.075 = 66.666...
So you need a voltage gain of about 67 instead of 50.

Why calculate? Use a 5k and a 75 Ohm resistor for the negative feedback.

Loading down the output of a Wheatstone bridge is not how the measurement is made.

The application requires a high impedance instrumentation amplifier, like the popular INA121.

Intro to instrumentation amplifiers.

Here is an LM324 DIY version, which won't work as well as one of the custom TI products.

1 Like

A non-inverting amplifier

should not significantly load your sensor.

You can use an MCP6002 with R1=1k and R2=62k which will give you a gain of ABOUT 63;
so 0V in will give vout = 0V approx and
75mV in will give 4.725V out

While you COULD trim the values to get close to 0V - 5V out that would not be a good idea as it allows no "headroom". And even true "rail-rail" op amps can not maintain linearity when being worked exactly to their supply voltage limits.

Just adjust the readings in your program.

2 Likes

How do you connect the 6 pins of the sensor ?

Post the schematic of the part.
If a single opamp is going to be used in a differential amplifier configuration the resistance of the bridge arms will have to be known to calculate the needed gain resistors.

I would have used a HX710/711.
These 0-40kPa boards on ebay come with a HX710 instrumentation amp + 24-bit A/D,
Can be connected to the Arduino directly, and have a much higher resolution.
Leo..

2 Likes

@abdusalam7474,

Your other two topics on the same subject deleted.

Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.

Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.

Repeated duplicate posting could result in a temporary or permanent ban from the forum.

Could you take a few moments to Learn How To Use The Forum

It will help you get the best out of the forum in the future.

Thank you.

1 Like

I am sorry. The two are different questions. I used the draft option unknowing to me that the heading was a repeat of my previous question.

1 Like

If you set ADC's Vref-pin at 1.1V (INTERNAL), you can very well measure your input voltage (2 mV - 75 mV) without any amplification.

With Vref-pin set at 1.1V, the resolution of the ADC is : 1.1/1023 = 1.07 mV/LSBit.

Are you sure about that.
The wheatstone bridge of the sensor could output 2.5volt without pressure,
which is out of range for 1.1volt Aref.

OP shouldn't have bought a bare sensor.
These sensors come for a few dollars more on a breakout board that has an instrumentation amp and a 24-bit A/D included. Yep, a poor man always buys twice.
Leo..

2 Likes

OP is saying that the sensor outputs a max voltage of 75 mV.

A wheatstone bridge, powered by 5volt, has 2.5volt on it's two outputs.
Pressure generates a differential voltage between those two outputs, which is 0-75mV.
Leo..

1 Like