Author Topic: More help with OpAmps.  (Read 1092 times)

0 Members and 1 Guest are viewing this topic.

Offline jgalakTopic starter

  • Regular Contributor
  • *
  • Posts: 237
  • Country: us
  • KQ2Z
    • Blog, mostly about learning electronics.
More help with OpAmps.
« on: December 24, 2017, 04:15:59 am »
This time, it's a practical circuit I'm building.  I have a source voltage that varies 0-5V (right now I'm just manually setting the voltage, eventually it'll be fed a sine waves).  I need to resale that to be 0-2.5V.  Since the source isn't very stiff (it's an R2R ladder), and since the IC I have has two OpAmps in it, I decided to first use a buffer, for its hight input impedance, followed by an inverting amplifier with G=1/2.

I am using an LMC6482 single supply rail-to-rail opamp, fed 5V and ground at its V+ and V- pins.

Circuit attached. 

The buffer is working fine.  Voltage at point B is almost exactly the same as at point A (it's.7V when Vin is 0, but I can probably live with that).

However, the second stage doesn't seem to work.  In my first attempt, I grounded the non-inverting input.  That resulted in Vout staying around zero, regardless of Vin.  Having done some reading, I tried binding the non-inverting input with a voltage divider.  Now Vout sits around 2.5V, regardless of Vin.

Am I doing something obviously wrong?  OpAmps are fairly new to me, so I can't tell if it's a design problem or if I just effed up the breadboarding.
« Last Edit: December 24, 2017, 04:20:08 am by jgalak »
Blog, mostly about learning electronics: http://kq2z.com/
 

Offline jgalakTopic starter

  • Regular Contributor
  • *
  • Posts: 237
  • Country: us
  • KQ2Z
    • Blog, mostly about learning electronics.
Re: More help with OpAmps.
« Reply #1 on: December 24, 2017, 04:57:58 am »
Never mind.  Breadboarding error.   :palm:

I can't seem to delete the thread.  Could an admin please do so?
Blog, mostly about learning electronics: http://kq2z.com/
 

Offline grouchobyte

  • Regular Contributor
  • *
  • Posts: 244
  • Country: cn
Re: More help with OpAmps.
« Reply #2 on: December 24, 2017, 05:08:53 am »
Get yourself a spice simulator like LTSPICE. As you've probably already discovered, or soon to discover if you get more into this analog stuff, it can and many times saves you the :palm:
However, don't get too addicted to it. Its alot like porn in that its not like the real thing...

@grouchobyte

« Last Edit: December 24, 2017, 05:16:10 am by grouchobyte »
 
The following users thanked this post: jgalak

Offline jgalakTopic starter

  • Regular Contributor
  • *
  • Posts: 237
  • Country: us
  • KQ2Z
    • Blog, mostly about learning electronics.
Re: More help with OpAmps.
« Reply #3 on: December 24, 2017, 05:21:09 am »
LT Spice I'm having a lot of issues with.  Need to dig deeper into it.  But circuitlab.com was quite nice for this - showed me that the design was correct, and motivated me to start re-tracing the breadboarding for the N-th time. 

Now if only it was as easy to do DC sweeps in real life as it is in the simulator... :)
Blog, mostly about learning electronics: http://kq2z.com/
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: More help with OpAmps.
« Reply #4 on: December 24, 2017, 12:23:35 pm »
You can do a simple DC sweep easily with a PSOC, 8 bits (or PWM with
filter to 16+ bits) and measure any deviation from it with a PSOC,
to +/- .1% accuracy. The sweep ramp amplitude 4V, if more is needed
an external OpAmp could easily enhance.

See attached.

You can control ramp amplitude and frequency solely in code or by sensing
external pot by adding mux to A/D to respond to controls.

UART transmits error to windows or Linux terminal session, or to file. Or
with some coding over USB. Or datalog to a SDCARD.

Or an Arduino and PWM approach. To << accuracy.

Basically a one chip approach.



Regards, Dana.


Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 
The following users thanked this post: jgalak


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf