Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Triangular Wave Guidance

Status
Not open for further replies.
blah2222 said:
So, I figured that since I actually was able to get the circuit working on the breadboard, that something was up with the PSpice modelling, so I downloaded the trial version of Multi, which is A BAJILLION times better!

Hi, the problem with pspice might have been the opamp model. I've found that some of the models that come with spice simulators don't work.
 
Ah, I see. So what you're saying is that my work above to calculate the threshold peak voltages of the capacitor triangular wave aren't really accurate?

Hi again,

I was talking about what you were saying about the difference between the amplifier hook up and the Schmitt Trigger hook up.

To further and more simply illustrate the difference you can get with different initial conditions, for a second (or even less) imagine that you connect the positive supply to the negative power pin of the op amp and the negative supply rail to the positive power pin of the op amp. You'd get a very different solution than either one we talked about so far :)
 
blah2222 said:
Does anyone have a clue what's going on with my triangular peaks?

Yes, you are seeing sample errors. Its caused by not having enough resolultion in your simulation. Try to turn up the number of points in the simulation setup applet. I don't know what it's called in your simulator; look at the documentation for simulation points or time division or similar.
 
Last edited:
(post deleted)
 
Last edited:
Hey, I tried that but the peaks are still clipped. When I zoomed in I noticed that it is because the astable multivibrator doesn't go immediately rail-to-rail, it has some delay slope and it causes the triangular wave to be clipped.

Is there a certain parameter that classifies this rail-to-rail time? I thought since the signal is so slow that it would be a fast rise/fall. Any ideas?

EDIT***

Never mind, I modified the time step and it made things look better, the peaks aren't consistent, not clipped though.
 
Last edited:
Hi again,

That's strange that the peaks are not consistent. I tried a quick sim and they looked ok once i used a simple limiter circuit on the output of the first op amp. The limiter makes the positive and negative peaks equal. Maybe try LT Spice.
 
EDIT***

Awesome! I just realized that the R-R op-amp that I was using (LT1801CMS8) is a dual op-amp, so I used the 2/2 amp for the integrator, and it worked perfectly. I figured out that the peak voltages were under this relation, with the help of this tutorial (last bunch of slides): https://www.electro-tech-online.com/custompdfs/2011/08/Chapter_4_Op_Amp_Oscillators.pdf

I tweaked the resistors to allow for the peak voltage that I wanted, and voila! I have to do some more testing, but this is a very good result!

**broken link removed**

**broken link removed**

I am now wondering what kind of buffering, if I need it all, I will need to use this to drive electrode biasing.
 
Last edited:
Hi,

How much output current do you need for the driver?
 
In answer to your original question the offset of the output triangle wave is IMHO due to the inherent input offset voltage of one or other op-amp (see the op-amp datasheet for a likely value) being subjected to amplifier gain. Try connecting a high value (probably megohms) trimmer resistor between one of the op-amp inputs and one or other supply rail to see if you can compensate for this.
 
Last edited:
At a maximum, this thing should be able to deliver between 100 uA to 30 mA. The datasheet for the chip says it has an output current of 50 mA. I am just wondering if this triangular signal will be distorted at all, or if there are any precautions that I should take.

JP
 
Hi,

Well with an output current capability of 50ma i would think it could handle 30ma, but if you can test it to make sure that's always a good idea.
Maybe calculate or simulate to find the current through the capacitor while it is ramping and add that to the output just to make sure.
 
Both the op amps are part of a closed feedback circuit.
Provided the op amp can source/sink the required peak load current without going into current limit, it will drive the load with negligible distortion.

It will either work perfectly, or clip horribly if you hit the brick wall of internal current limit.

Make absolutely sure your op amp can comfortably reach 30mA over your intended supply voltage and temperature range.
 
Hi,

Well with an output current capability of 50ma i would think it could handle 30ma, but if you can test it to make sure that's always a good idea.
Maybe calculate or simulate to find the current through the capacitor while it is ramping and add that to the output just to make sure.

Both the op amps are part of a closed feedback circuit.
Provided the op amp can source/sink the required peak load current without going into current limit, it will drive the load with negligible distortion.

It will either work perfectly, or clip horribly if you hit the brick wall of internal current limit.

Make absolutely sure your op amp can comfortably reach 30mA over your intended supply voltage and temperature range.

Thank you both for you suggestions, I will try to simulate these with my entire system.

Another thing that I am worried about is powering my entire system. I will be using this chip, along with three other op-amps. Is a +/- 3 V dual coin cell battery setup sufficient?

Thanks again,
JP
 
Progress... but still need more help!

Hey all, I really appreciate the help that everyone has given me. My project is moving forward well, but I have hit another stumbling block, and I am hoping someone can help me diagnose the problem.

I have managed to get the triangular wave working, and I connected my entire circuit in Multisim and simulated it. Here is the basic circuit:

**broken link removed**

Between the WE and RE, the circuit can be modelled as: R + R||C. The same is between CE and RE. I have measured these values with an impedance analyzer and have come up with a range of 1 uF to 10 uF for the parallel capacitors, and roughly 1k to 10k for the parallel resistors. The resistors in series have <100 ohm.

The circuit is works by passing the Vbias voltage across the WE and RE electrodes. My problem is when I simulate it, I can't get the inverting input of the transimpedance amplifier to stay at ground. Here are my circuit and simulations:

**broken link removed**

**broken link removed**

----- Vbias from triangular oscillator
----- -Vbias set to reference electrode
----- Inverting input of transimpedance amplifier
----- Output of transimpedance amplifier

I am essentially trying to model my chemical solution based on the data that I measured. For this system to work, I really need the yellow signal (inverting input of the transimpedance amplifier) to be zero constantly.

Anyone have any ideas, this one's a toughy. Thanks!
JP
 
Last edited:
U5A seems to have no purpose, and I think it's hosing your circuit. If you actually need it, insert another voltage follower, like U1A before it.
 
The output on U5A is the voltage proportional to the desired current flowing through the system. It's basically a transimpedance amplifier, and I need it there.
 
The inverting input of U5a should be a virtual ground, just as you say.
If there is significant voltage at that node, it can only be because U5a is not working properly.
Check the resistor values are what you believe they are, and that U5a is not dead, and that it has both Vdd and Vss supplies present. Also look very carefully at all the connections to U5a. It should work, but something there is faulty.
 
The output on U5A is the voltage proportional to the desired current flowing through the system. It's basically a transimpedance amplifier, and I need it there.

Then use a follower, as I suggested.
 
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top