# OpAmp Voltage Troubles

**URL:** <https://forum.arduino.cc/t/opamp-voltage-troubles/1094907>\
**Category:** General Electronics\
**Created:** [February 26, 2023, 12:43am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907 "2023-02-26T00:43:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikaelsavage](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mikaelsavage/32/724033_2.png) [@mikaelsavage](https://forum.arduino.cc/u/mikaelsavage)\
**Post date:** [February 26, 2023, 12:43am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/1 "2023-02-26T00:43:40Z")

</div>

I am currently building a digital scale and need to detect the voltage values of a strain gauge. I have set my strain gauge up in a wheat stone bridge configuration and when bent, the gauge varies by 0.01 volts. I needed to amplify this, so I used an OpAmp set up as a differential amplifier to boost the signal. For now, I want to double the voltage differance and so I use 5K resisters in my bridge and 10K in the opamp. I should be getting .02volt but instead get 1.25 volts. It seems that it is dividing the suppied voltage by two instead of the difference and no matter what resistors I use this value remains the same. Eventually, I would like this to work by converting the .01 differance to 12v. Any help would be greatly appreciated

 ![opamp](https://europe1.discourse-cdn.com/arduino/original/4X/c/1/5/c158b3bca6cd8253c43681a64fc99d116285d653.jpeg)

---

<div class="post-metadata">

**Author:** ![DVDdoug](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dvddoug/32/671533_2.png) [@DVDdoug](https://forum.arduino.cc/u/DVDdoug)\
**Post date:** [February 26, 2023, 1:12am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/2 "2023-02-26T01:12:00Z")

</div>

Working with small signals and high gains (which you will eventually need) is tricky... You'll probably be fighting noise & instability, especially on a breadboard. ☹

**Most op-amps work best with positive & negative power supplies,** especially if you want the output to go all the way to zero. Your particular op-amp **may** not go lower than about 1V if there is no negative power supply. There are "rail to rail" op-amps but I assume they only get _close_ to the power supply.

> [@](#):
>
> I would like this to work by converting the .01 differance to 12v.

You can't feed more than 5V into the Arduino, and you would need a power supply of at least 12V.

Maybe buy one of [these](https://www.sparkfun.com/products/13879).

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [February 26, 2023, 2:06am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/3 "2023-02-26T02:06:27Z")

</div>

For a Wheatstone bridge, use an instrumentation amplifier like the INA125. They are designed for the purpose.

But for a strain gauge Wheatstone bridge, the HX711 is much easier to use, because it has a differential amplifier and ADC built in. A web search for "arduino hx711 strain gauge" will turn up lots of tutorials.

---

<div class="post-metadata">

**Author:** ![mikaelsavage](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mikaelsavage/32/724033_2.png) [@mikaelsavage](https://forum.arduino.cc/u/mikaelsavage)\
**Post date:** [February 26, 2023, 5:10am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/4 "2023-02-26T05:10:11Z")

</div>

For the project I'm working on, I have to stay with opamps and no daughter boards. Its not just the small voltage that's causing an issue. If I try to amplify even 3.3v is doesnt do anything. I think I may have the circuit set up incorrectly

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [February 26, 2023, 5:47am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/5 "2023-02-26T05:47:51Z")

</div>

Which opamp.  
Why do you power it from V-in instead of 5volt.  
Please post a circuit diagram (that Fritzy toddler picture is not a diagram).  
Leo..

---

<div class="post-metadata">

**Author:** ![TomGeorge](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomgeorge/32/215261_2.png) [@TomGeorge](https://forum.arduino.cc/u/TomGeorge)\
**Post date:** [February 26, 2023, 6:06am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/6 "2023-02-26T06:06:13Z")

</div>

Hi, @mikaelsavage

Can we please have a circuit diagram?  
An image of a hand drawn schematic will be fine, include ALL power supplies, component names and pin labels.

Thanks.. Tom.. 😃 👍 ☕ 🇦🇺

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [February 26, 2023, 6:46am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/7 "2023-02-26T06:46:38Z")

</div>

Where did you find a 5k resistor?  
Does your opamp have pin2 as vcc? Not impossible, but unusual...

---

<div class="post-metadata">

**Author:** ![johnerrington](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnerrington/32/340106_2.png) [@johnerrington](https://forum.arduino.cc/u/johnerrington)\
**Post date:** [February 26, 2023, 7:53am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/8 "2023-02-26T07:53:39Z")

</div>

> [@mikaelsavage](#):
>
> Eventually, I would like this to work by converting the .01 differance to 12v.

1: your diagram doesnt show a strain guage.

2: what are the specs of the strain guage (LINK Please)

3: a symmetrical whetstone bridge produces two outputs at Vcc/2. You need to cater for imbalance + or - so the output from the difference amplifier should also be at Vcc/2.

> [@mikaelsavage](#):
>
> an OpAmp

"AN Op Amp" isnt good enough. There are a few (countless) different ones.

Read this

> [@Using Operational Amplifiers in your Arduino project](https://forum.arduino.cc/t/using-operational-amplifiers-in-your-arduino-project/692648):
>
> Introduction: Using Op Amps to measure signals with an Arduino Who is this tutorial for? Well, not "newbies" or anyone happy to just connect together modules. If you have a LITTLE knowledge of electronics, have perhaps used a transistor or a FET to extend the output capability of an arduino, and want to learn about ways to handle different Analog inputs, than read on! What will you need? All you will need to carry out a few simple experiments is a breadboard, a couple of (very inexpensive) …

> [@mikaelsavage](#):
>
> I would like this to work by converting the .01 differance to 12v.

Why would you want 12V to measure with an arduino?

---

<div class="post-metadata">

**Author:** ![mikaelsavage](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mikaelsavage/32/724033_2.png) [@mikaelsavage](https://forum.arduino.cc/u/mikaelsavage)\
**Post date:** [February 26, 2023, 8:09am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/9 "2023-02-26T08:09:25Z")

</div>

The opamp I am using is an ina121p.  
Here is a drawn diagram and a virtual one. I am still quite new to these, so ask if something seems off.  
I chose Vin for my power supply because it will supply me 9 volts from the battery instead of the 5 volts. I believe this will allow me to reach a higher amplification rate. Correct me if I am wrong.  
The 5K resistors came in an elegoo electronics kit that I received a while back.  
I have also attached the opamp data sheet.  
[https://www.ti.com/lit/ds/symlink/ina121.pdf?ts=1677332744719](https://www.ti.com/lit/ds/symlink/ina121.pdf?ts=1677332744719)

[![](https://europe1.discourse-cdn.com/arduino/original/4X/4/8/2/4823cd4a152e94ec526d222a355f5d73907d4928.png)20230226\_010211.jpg](https://drive.google.com/file/d/1HCwLdUWvJYVpXxh4QmyiZXakfsKpV6EG/view?usp=drive_web)

 ![opamp.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/4/c/0/4c0254e824c6bdf46d744f5fe82bbda4dc6718eb.jpeg)

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [February 26, 2023, 8:23am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/10 "2023-02-26T08:23:03Z")

</div>

> [@mikaelsavage](#):
>
> The opamp I am using is an ina121p.

That's not just an opamp. It's an instrumentation amp.  
You currently have no gain resistor connected, so amplification is 1x.

The output can swing to 8volt on a 9volt supply, which could damage the Arduino pin.

Please redraw your diagram with the wheatstone bridge in the traditional diamond shape, so we won't have to stand on our heads to understand your connections.  
Leo..

---

<div class="post-metadata">

**Author:** ![TomGeorge](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomgeorge/32/215261_2.png) [@TomGeorge](https://forum.arduino.cc/u/TomGeorge)\
**Post date:** [February 26, 2023, 8:40am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/11 "2023-02-26T08:40:01Z")

</div>

Hi,  
Did you look at the application circuits on that datasheet?

What is the spec of your strain gauge?  
Can you please post link to data/spec of the strain gauge?

This is how your circuit in post #9 is configured.  
What is R1 doing, where is your strain gauge?

 ![uno-opamp-wheat](https://europe1.discourse-cdn.com/arduino/original/4X/4/e/0/4e0a7d68e505ea0f3b7f53ce3e45448ffd78674d.jpeg)

Tom.. 😃 👍 ☕ 🇦🇺

---

<div class="post-metadata">

**Author:** ![hammy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hammy/32/238813_2.png) [@hammy](https://forum.arduino.cc/u/hammy)\
**Post date:** [February 26, 2023, 9:12am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/12 "2023-02-26T09:12:03Z")

</div>

Don’t forget you will need to use a reference voltage for the ADC ( internal ?) for the Arduino part too. So you only need 1v full scale output .  
Circuit looks a bit odd , can you post all of it ?  
And …..

You can buy the Hx711 as a chip if you don’t want to have a breakout board .  
This has got to be the best route .

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [February 26, 2023, 10:41am UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/13 "2023-02-26T10:41:15Z")

</div>

Do you see that both vcc and ground are not connected to the correct pins in your fritzy diagram...

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [February 26, 2023, 3:29pm UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/14 "2023-02-26T15:29:49Z")

</div>

The INA121 is NOT an op amp. It is an instrumentation amplifier, as I already suggested that you use, and is used very differently than an op amp.

Spend some time studying the [INA121 data sheet](https://www.ti.com/lit/ds/symlink/ina121.pdf?ts=1677344924074&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FINA121), which included typical application circuits.

The bridge won't be useful with a single strain gauge unless you include some means of balancing it.

---

<div class="post-metadata">

**Author:** ![mikaelsavage](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mikaelsavage/32/724033_2.png) [@mikaelsavage](https://forum.arduino.cc/u/mikaelsavage)\
**Post date:** [February 26, 2023, 5:22pm UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/15 "2023-02-26T17:22:00Z")

</div>

So how would I use ina 121 to do what I need it to do since you recommend an instrumentation amplifier. Also, I forgot to add that the second 20k resistor is my strain guage. Came with a sparkfun kit and has no identification

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [February 26, 2023, 5:28pm UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/16 "2023-02-26T17:28:35Z")

</div>

> [@mikaelsavage](#):
>
> So how would I use ina 121

Read the data sheet, linked in post #14.  
 ![Capture](https://europe1.discourse-cdn.com/arduino/original/4X/0/2/5/025d3e44545143e827ccb6473eb869a295b6eda9.png)

> the second 20k resistor is my strain guage

There are no 20K resistors in the schematic.

---

<div class="post-metadata">

**Author:** ![mikaelsavage](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mikaelsavage/32/724033_2.png) [@mikaelsavage](https://forum.arduino.cc/u/mikaelsavage)\
**Post date:** [February 26, 2023, 6:01pm UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/17 "2023-02-26T18:01:17Z")

</div>

I am currently new to drawing circuits and the virtual one is what tinkercad converted for me. For a more clear circuit look at the drawing I had attached. I saw the diagram and understand that part. My issues, since being new to this, is taking that and implementing it on a breadboard. It looks like only one of the voltages goes into the ina on that picture, so would I need two ina121?

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [February 26, 2023, 6:05pm UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/18 "2023-02-26T18:05:55Z")

</div>

One INA121 is used to read one Wheatstone bridge, as shown in this schematic:

![Capture](https://europe1.discourse-cdn.com/arduino/original/4X/0/2/5/025d3e44545143e827ccb6473eb869a295b6eda9.png)

Please study the INA121 data sheet, and search on the web for tutorials: "arduino ina121 bridge", for example.

Very first hit for me: [instrumentation amplifier and Arduino - #4 by TomGeorge](https://forum.arduino.cc/t/instrumentation-amplifier-and-arduino/501034/4)

---

<div class="post-metadata">

**Author:** ![anon95813201](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@anon95813201](https://forum.arduino.cc/u/anon95813201)\
**Post date:** [February 26, 2023, 7:45pm UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/19 "2023-02-26T19:45:29Z")

</div>

The INA121 output will never go below 250mv (typical) if you use a single supply.  
You must use +/- supplies with the INA121.  
For single supply operation the AD623 would be good.

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [February 26, 2023, 7:47pm UTC](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907/20 "2023-02-26T19:47:09Z")

</div>

**[Bottom left circuit of that post](https://forum.arduino.cc/t/instrumentation-amplifier-and-arduino/501034/4)** would sort-off work, but an INA121 has limited output swing on a single 5volt supply. Expect poor range and poor resolution compared to a HX711.  
Leo..

[Next page](https://forum.arduino.cc/t/opamp-voltage-troubles/1094907.md?page=2)
