Drich98

joined 1 year ago
[–] Drich98@discuss.tchncs.de 0 points 1 year ago (1 children)

But that's the thing, it outputs 10V even when the 5V rail from Arduino is disconnected at V+ (pin 3).

[–] Drich98@discuss.tchncs.de 1 points 1 year ago* (last edited 1 year ago) (3 children)

I tied the Arduino's GND to the power supply GND, the output is still 10V, tried different ICs as well, not really sure what the issue is at this point. Tying the non inverting input pin to ground does turn OFF the LED, but the led stays on regardless if the 5V is coming from the arduino or not, it seems that the op amp outputs 10V regardless of the non-inverting pin, however if I use different resistors to lower the gain or change the input voltage to 3.3V instead of 5V, I do get the output voltage. I just don't understand how there can be 10V at the output with no voltage from the inverting or non-inverting pin.

[–] Drich98@discuss.tchncs.de 0 points 1 year ago (5 children)

Here's a schematic representation of what I built on the breadboard, establishing the same ground point works but the LED still turns on even when V+ is disconnected from the 5V Arduino pin.

[–] Drich98@discuss.tchncs.de 0 points 1 year ago* (last edited 1 year ago) (1 children)

I understand your caution, however I understand the theory behind OP-Amps, theory can only go so far which is why I'm building a circuit on a breadboard now. I should clarify that the basic rules for ideal op-amps I have a grasp of, although I can never seem to remember these rules. For example, I have the formulas for a BJT and MOSFET transistors memorized because I spent a lot of time reading and using them in practical applications. Op-amps I have spent a lot of time reading but no time building circuits, which is essentially what I am trying to do now. I have a degree in EE, and at this point this is one of the basic components that wasn't covered much in university, nor did reading or doing practice problems help. I'm very much a hands on learner, I can read formulas and equations all day but if I don't apply what I learned I'll forget it after several days unless I repeatedly practice.

 

Since I never understood op-amps from reading or practicing problems I wanted to build a circuit to probe around and use different resistor values to set the amplification.

Currently I am attempting to build an LM358 Non-Inverting Op Amp. I am using my power supply for a +/- 12V rail, and my Arduino Uno for my 5V supply at the V+ input pin. I have chosen two 1k resistors to amplify the signal to 10V at the output and put and led as a indication that the circuit is working.

My questions are as follows:

  1. Is the ground for the voltage rail and input signal the same?
  2. What exactly is wrong with the circuit I built? I want the LED to only turn on when 5V is supplied at the input, right now the LED can turn on if I connect the ground to the voltage rail supply even without an input voltage.
  3. I've seen the post on Adafruit with the feedback resistors connected to the same ground as the rail supply, but the circuit diagram does not show where the input voltage ground is? Link: https://blog.adafruit.com/2012/06/13/ask-an-educator-making-a-non-inverting-op-amp-circuit-on-a-breadboard/