Does anyone know how to simulate audio Frequency in Pspice?

Started by Izzy, December 21, 2006, 08:15:15 PM

Previous topic - Next topic

Izzy

Hi, I have been builing few distortion circuit in Orcad - Capture CIS. But I donnt know how to send frequency into the circuit?
I know how to send DC and AC.  ;D

So does anyone know how to send  audio frequency into the circuit and try to find out how the audio signal will be  at a certain point of the circuit?

Help!  :-\

Paul Perry (Frostwave)


d95err

Quote from: Izzy on December 21, 2006, 08:15:15 PM
So does anyone know how to send  audio frequency into the circuit and try to find out how the audio signal will be  at a certain point of the circuit?

Use a Voltage Source. Set it to sine wave with the appropriate frequency and amplitude.

Sir H C

Several ways:

VPWL = piece-wise linear source.  Can be used to make some simple waveform and some spices let you make it a repeated waveform.

VSIN =  sine source.  Has freq, amplitude and other parameters.

VPULSE = pulse source, playing with the rise/fall times you can make triangle waveforms or square.


Izzy

I tried this MXR Distortion Plus circuit But it wont run at all. Says it nodes are floating and blah blah, this is what I get



Quote


**** 12/22/06 12:10:39 ******* PSpice 10.3.0 (Jan 2004) ******* ID# 1111111111
** Profile: "SCHEMATIC1-12"  [ D:\Users\Izzy\The MXR Project\mxr-pspicefiles\schematic1\12.sim ]


****     CIRCUIT DESCRIPTION


******************************************************************************




** Creating circuit file "12.cir"
** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

*Libraries:
* Profile Libraries :
* Local Libraries :
* From [PSPICE NETLIST] section of C:\Orcad\tools\PSpice\PSpice.ini file:
.lib "nom.lib"

*Analysis directives:
.TRAN  0 4 0
.PROBE V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))
.INC "..\SCHEMATIC1.net"



**** INCLUDING SCHEMATIC1.net ****
* source MXR
R_R11         0 N12494  10k 
R_R2         N12330 N12058  1m 
R_R3         N12314 N12330  1m 
V_V2         N12326 0 
+SIN 0 1v 1000 0 0 0
R_R4         0 N12330  1m 
R_R10         0 N22143  1k 
R_R5         N12314 N22509  10k 
V_V1         N12058 0 9Vdc
R_R6         N22057 N22143  4.7k 
R_R7         N12398 N12370  1m 
R_R8         N12494 N21731  10k 
D_D1         N12494 0 D1N4148_1
D_D2         0 N12494 D1N4148_1

**** RESUMING 12.cir ****
.END

ERROR -- Less than 2 connections at node N22509
ERROR -- Less than 2 connections at node N22057
ERROR -- Less than 2 connections at node N12398
ERROR -- Less than 2 connections at node N12370
ERROR -- Less than 2 connections at node N21731
ERROR -- Node N12398 is floating
ERROR -- Node N12370 is floating


Seljer

I think you're missing those dots an all off the connections between 2 components, not just the junctions (or wherever you can see a little gab in that schematic)

johngreene

Your schematic looks messed up. The netlist doesn't include any of the capacitors. There's a cap below the opamp that isn't connected to anything and has 150pF above it and 10pF below but no reference designator. C1 looks like it has a net running right through the middle of it. You shouldn't see connection dots on the end of the component unless there are 2 nets connected there. So C1, C6, and R5 have problems. A resistor value of 1m is 1 milliohm in Orcad. You need to lable it 1Meg. You also may want to put the proper symbol after the capacitor values to be sure they are correct. The default can be pF, nF, uF, whatever. I don't like to leave it undefined.

Correct all those errors and try it.

--john
I started out with nothing... I still have most of it.

Izzy

Thanks Guys for help.
I noticed that tiny bit of gap between the conenctor, but I tried to join it and iot wont join?
Is tehre anys ecret?
No matter how I tried to conenct between two element  some of them wont join without those tiny gaps.

I tried it again. Here is the pic. And there are errors again.
>:(

PenPen

You may need to hook those pins 1 and 5 to SOMETHING. SPice doesn't like dangling stuff. Maybe 100000000000K resistors to ground?

Sir H C

As said there are no caps in your netlist.  I would guess that either the netlister is not seeing them or their models don't exist and so it is ignoring them.  Should be a log file created, make sure that it is set to verbose and you should see what it is not finding.  I would guess you might need a library with the caps.

I haven't used P-Spice in years, but we used to get great replies when we would e-mail them questions (this was before Cadence bought them).

johngreene

If you double click on the green circle it will tell you what is wrong with that particular error. Obviously there is something wrong with all the caps. If you want, you can email me the design file and I'll take a look at it.

--john
I started out with nothing... I still have most of it.

joelap

This your first run with Pspice?

I had those green "christmas-wreath" like shapes when I first started learning PSpice.  turned out it was installed improperly.  Uninstall, and reinstall with any anti-virus or anti-spam turned OFF.  Then try the circuit again.  That worked for me at least.

Joe
- witty sig -

Izzy

No this is not my first run. We did some small projects in my university before. But just tiny once.haha

I think I will draw the schematics again.
And one thing Am I doign teh right with DC voltage and VSin?
I mean can they have common ground?

johngreene

Quote from: Izzy on December 23, 2006, 11:54:13 AM
No this is not my first run. We did some small projects in my university before. But just tiny once.haha

I think I will draw the schematics again.
And one thing Am I doign teh right with DC voltage and VSin?
I mean can they have common ground?


Yes
I started out with nothing... I still have most of it.

Izzy

Thanks John.

I tried it again with al;l new capacitor and it  didnt show any error.(even though there are tiny gaps which wont go away) hahaha

But there is still that green circuit in the opamp. I dont knwo why it is there, even thiough there are no errors.

BUT the voltage probe showed a straight line? Why is that?
here is the data

Quote
**** 12/23/06 12:31:47 ******* PSpice 10.3.0 (Jan 2004) ******* ID# 1111111111
** Profile: "SCHEMATIC1-12"  [ D:\Users\Izzy\Desktop\The MXR Project\mxr-pspicefiles\schematic1\12.sim ]


****     CIRCUIT DESCRIPTION


******************************************************************************




** Creating circuit file "12.cir"
** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

*Libraries:
* Profile Libraries :
* Local Libraries :
* From [PSPICE NETLIST] section of C:\Orcad\tools\PSpice\PSpice.ini file:
.lib "nom.lib"

*Analysis directives:
.TRAN  0 10 0
.PROBE V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))
.INC "..\SCHEMATIC1.net"



**** INCLUDING SCHEMATIC1.net ****
* source MXR
R_R11         0 N12494  10k 
R_R2         N12334 N12058  1meg 
R_R3         N25596 N12334  1meg 
V_V2         N12326 0 
+SIN 0 1v 1000 0 0 0
R_R4         0 N12334  1meg 
C_C2         0 N12326  .001uf 
R_R10         0 N33609  1k 
R_R5         N25596 N30411  10k 
V_V1         N12058 0 9Vdc
R_R6         N12370 N33609  4.7k 
R_R7         N12398 N12370  1meg 
C_C3         N30274 N12398  1uf 
R_R8         N12494 N30274  10k 
C_C1         0 N12334  1uf 
C_C4         N30411 N12326  .01uf 
C_C6         N12370 N12398  10pf 
D_D1         N12494 0 D1N4148_1
C_C5         N12494 0  .001uf 
D_D2         0 N12494 D1N4148_1

**** RESUMING 12.cir ****
.END

**** 12/23/06 12:31:47 ******* PSpice 10.3.0 (Jan 2004) ******* ID# 1111111111
** Profile: "SCHEMATIC1-12"  [ D:\Users\Izzy\Desktop\The MXR Project\mxr-pspicefiles\schematic1\12.sim ]


****     Diode MODEL PARAMETERS


******************************************************************************




               D1N4148_1       
          IS    2.682000E-09
           N    1.836       
         ISR    1.565000E-09
         IKF     .04417     
          BV  100           
         IBV  100.000000E-06
          RS     .5664       
          TT   11.540000E-09
         CJO    4.000000E-12
          VJ     .5         
           M     .3333       


**** 12/23/06 12:31:47 ******* PSpice 10.3.0 (Jan 2004) ******* ID# 1111111111
** Profile: "SCHEMATIC1-12"  [ D:\Users\Izzy\Desktop\The MXR Project\mxr-pspicefiles\schematic1\12.sim ]


****     INITIAL TRANSIENT SOLUTION       TEMPERATURE =   27.000 DEG C


******************************************************************************



NODE   VOLTAGE     NODE   VOLTAGE     NODE   VOLTAGE     NODE   VOLTAGE


(N12058)    9.0000 (N12326)    0.0000 (N12334)    4.5000 (N12370)    0.0000     

(N12398)    0.0000 (N12494) 463.1E-24 (N25596)    4.5000 (N30274) 463.1E-24     

(N30411)    4.5000 (N33609)    0.0000




    VOLTAGE SOURCE CURRENTS
    NAME         CURRENT

    V_V2         0.000E+00
    V_V1        -4.500E-06

    TOTAL POWER DISSIPATION   4.05E-05  WATTS



          JOB CONCLUDED

**** 12/23/06 12:31:47 ******* PSpice 10.3.0 (Jan 2004) ******* ID# 1111111111
** Profile: "SCHEMATIC1-12"  [ D:\Users\Izzy\Desktop\The MXR Project\mxr-pspicefiles\schematic1\12.sim ]


****     JOB STATISTICS SUMMARY


******************************************************************************



  Total job time (using Solver 1)   =       11.75



Izzy



Izzy

Yes I did tried putting 10000 M resistor to the both end and then to the ground. But it showed some error. So I took it off and it worked.

I checked the data sheet too. I think the pins are right.  :-\

johngreene

Your voltage probe is on the ground side of the resistor. All it is going to see is 0V.

--john
I started out with nothing... I still have most of it.