Generate a triangular waveform using Multisim/MATLAB

  • Thread starter Fatima Hasan
  • Start date
  • Tags Tags
    Waveform
16 replies · 4K views · last reply
Fatima Hasan
Messages
315
Reaction score
14
Homework Statement
Attached below.
Relevant Equations
-
Using any Electrical Engineering software:
Hand-drawn circuit schematic of a triangular waveform generator using two op-amps, with resistors R1 4.7 kΩ, R2 4.7 kΩ, R3 10 kΩ, R4 1.2 kΩ, R5 10 kΩ, R6 33 kΩ, a zener diode pair, a variable capacitor C, and output V0.


I tried to solve this question using Multisim. Here's my attempt:

Multisim schematic of an op-amp circuit: a 741 comparator stage (U1) feeding an integrator (U3) with feedback capacitor C1 100pF, resistors R1 10k, R2 4.7k, R3 33k, R5 10k, R6 1.2k, R7 4.7k, and zener diodes D1 and D2 SML4735, with an oscilloscope XSC1 at the output.
That's what I got :
Screenshot of a Multisim oscilloscope window (XSC1) showing a flat trace along the centre line with no waveform visible, and readings of Channel_A at -14.118 V and 0.000 V at 243.530 ms.


Kindly,could someone tell me where is my mistake ?
 
Does each small subsection work? I would try breaking it up into two op-amps then see if each one works with that setup.

I don't know much about the circuit setup in that software I am noticing that on the right op-amp the way the voltage rails are connected looks different from the first one. Is that okay or allowed?
 
Joshy said:
I am noticing that on the right op-amp the way the voltage rails are connected looks different from the first one. Is that okay or allowed?
It's the same as the figure shown above.
I didn't get any error.
 
Joshy said:
I don't know much about the circuit setup in that software
I tried to simulate in MATLAB but I didn't find op-amp 741.
 
Is C1 really connected to U3-6? I don't see a dot there.
 
DaveE said:
Is C1 really connected to U3-6? I don't see a dot there.
Yes, it is connected.
Multisim schematic of a 741 op-amp U3 with pin 2 inverting input and pin 3 non-inverting input, supply pins at VCC -15V and VDD 15V, and a variable capacitor C1 labelled 100pF, Key=A, 50%.
 
What's the VDD seemingly floating or is it connected to the offset? Right up against the offset pins on U3.

Earlier comment I was meaning between the left and right op-amp; not just the reference image. You assign VDD and VCC to each op-amp, but for some reason the one on the right says VCC and 15V. It's inconsistent. I suppose if the nets are equal then maybe it doesn't matter... wasn't sure.
 
Joshy said:
What's the VDD seemingly floating or is it connected to the offset? Right up against the offset pins on U3.

Earlier comment I was meaning between the left and right op-amp; not just the reference image. You assign VDD and VCC to each op-amp, but for some reason the one on the right says VCC and 15V. It's inconsistent. I suppose if the nets are equal then maybe it doesn't matter... wasn't sure.
I tried.. I didn't get the required waveform..
 
Can you break up the two op-amps around the center put and put an input voltage source to each one; measure the output to see if you're getting what you expect? Maybe omit R1 for now.
 
DaveE said:
At pin 6, the output?
No, I didn't connect the capacitor to pin 6.
Sorry for misunderstanding, I didn't read your previous question well.
 
Fatima Hasan said:
No, I didn't connect the capacitor to pin 6.
Sorry for misunderstanding, I didn't read your previous question well.
It should be. Try it that way.
 
DaveE said:
It should be. Try it that way.
Multisim schematic of an op-amp circuit with two 741 op-amps (U1, U3), diodes D1 and D2 (SML4735), resistors R1 to R6, R7, potentiometers R2 and R5, capacitor C1 100pF, and an oscilloscope XSC1.

The result:
Oscilloscope window (XSC1) showing a nearly flat red trace along the centre line of the grid, with a faint white segment at the far right; timebase 20 ms/Div, Channel A 5 V/Div, Channel B 5 V/Div.
 
Now check that every component at that node is connected. If you make all connections a "T" intersection with a dot, then you'll know. Or verify it some other way, like the netlist for example.
 
DaveE said:
Now check that every component at that node is connected. If you make all connections a "T" intersection with a dot, then you'll know. Or verify it some other way, like the netlist for example.
I checked. C1, R1, pin6 , and channel A (oscilloscope) are connected together at the same node, but the result is the same (straight line at the origin).
 
Are you sure C1 should be 100pF. My rough calculation says that the ramp of the triangle (the time it takes C1 to charge) should be about 7V/usec. That is much faster than a 741 op-amp can change it's output (slew rate is about 0.1 V/usec). Also, your oscilloscope is set in the msec range. That is an odd combination for a circuit like this. Still, I'm not sure why it wouldn't oscillate at some frequency.
Try a larger value for C1, like 0.1uF maybe.
 
  • Like
Likes   Reactions: Jody and Fatima Hasan
DaveE said:
Are you sure C1 should be 100pF. My rough calculation says that the ramp of the triangle (the time it takes C1 to charge) should be about 7V/usec. That is much faster than a 741 op-amp can change it's output (slew rate is about 0.1 V/usec). Also, your oscilloscope is set in the msec range. That is an odd combination for a circuit like this. Still, I'm not sure why it wouldn't oscillate at some frequency.
Try a larger value for C1, like 0.1uF maybe.
Got it !
After changing the value of the capacitor to 0.1uF.
Screenshot of an oscilloscope window titled Oscilloscope-XSC1 showing a red periodic triangular waveform on a black grid, repeating about nine cycles across the screen.


Thanks for your help.
 
  • Like
Likes   Reactions: DaveE