gEDA-user: Wrong Pinout for LM337
Hi geda-user@ The LM337 symbol (lm337-1.sym) has a wrong pinout. The correct is: 1 - ADJ 2 - VIN 3 - VOUT The current version in gEDA has a pinout equal to LM317, which is a mistake. Thank you. -- Daniel Bolgheroni dan...@bolgh.eng.br http://devio.us/~dbolgheroni ASCII ribbon campaign ( ) against HTML e-mailX / \ (and no top-post also, please) ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Two Power Supplies in gschem
On Sun, Apr 03, 2011 at 01:05:42AM +0200, Stefan Salewski wrote: It is not easy for beginners, and my english is really bad today, sorry. I hope someone other can explain it in better words. As said, it would be nice to see an entry in FAQ. Just fixing a few things: - geda:faq-schem not geda-faq:schem - C-x f 72, M-x auto-fill-mode :) I will try. Thank you all. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: Two Power Supplies in gschem
Hi geda-user@, I'm kinda new to gschem (in fact, first time learning a electronics cad software) and a little confused about the power pins issue. I read the geda-faq:gschem and found that it's a good practice to NOT hide the power pins. Is this related to the design of the symbol? Are there some (generic) attribute common to all symbols that makes the power pin visible? I'm trying to draw a circuit that uses 2 different power supplies, 12V and 5V. Are there any other good way to design this type of circuit? Any old topic in archive might be helpful too. Thank you in advance. -- Daniel Bolgheroni dan...@bolgh.eng.br dbolgher...@gmail.com ASCII ribbon campaign ( ) against HTML e-mailX / \ (and no top-post also, please) -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v2.0.17 (OpenBSD) mQENBE12k9sBCADUPbXg0856cP4mvqpWp5nJH3AZMDLmgZOZj9dIMs/XP7UjgNmk 15yFMvouD0zmvPYYUOsETvxWV9em5JcR7u0hkddvVOxxeyMz+nA+hwYJnRYnHqcG lgoC2qT0uFBP6TE0wFOVrCp2LwJdsvm7VrviSn5jujwyNLEcPLR0vkOsgv3ki9Hk cQMAikLLex/a3SfJ+vWQD3fXCAW6KaY9kRjHFLNYhY5bNfSR7n1zJM5miMBPJ4mT Cqw5vsoORsb9cLcelrdEppu8exLZdZ1Zj3egLOXbv139E48HvMp57kl6j0J6ILKn Lbw6PXlERiGjl/oofNkhwolF+LqfKtnHwED/ABEBAAG0J0RhbmllbCBCb2xnaGVy b25pIDxkYW5pZWxAYm9sZ2guZW5nLmJyPokBOAQTAQIAIgUCTXaT2wIbAwYLCQgH AwIGFQgCCQoLBBYCAwECHgECF4AACgkQrP6t3uVIorPQmQf8DAFwvXvfo87cpG9f Msrbe9qvXzY87/WpVY7c1Y+to+CyUccsTMDXaDCz9FKb/vC+TzMsZUuNyIPo9aol cziOMiGR+Lp+uoo/F80vaRCwkW/oZ0PJK2apfLDQzTNoFLeelns2YoJaFccYCew+ 9XbJoB2Wl0Wwwhr0u7iAgV8kOqjclmxFfGN8kQB14BQyrCBzfWoiVhxHZRuyUXm1 t/vSmOWrV1Lt7lrFIs3L3SomJcWbKyvkPimJc0vWugRMJ5VbDwm0Tbj8wts7FLNA fxOn5PZHSRrChFexttJDlQvy14AWFVGWBTJ9zvKhS3T/FHCRnec9v51NlW2wJWQ5 v2t91rkBDQRNdpPbAQgA28mqYxlV7DGk8TKYDkrCTifNzzPwV1G68FjigLGC76H+ wDOGfr6iXBad0Z0PDx36CKdhNMojAev5SDv7FQRTXKB5OCbcL5AQ1KuaZ4OsJEky rPYXtbf9MEAX5ZncR50jNZ1X6kzsvZyqs8/gGiwiNxhFNKfcjZAsV0I/zzbWBM7C ndgxURL12CiDKitwQUgE+61AGjbffJXx+oom2x1njaVGUMnkcOV0APC2FOcCre1D qjcZKxeDSRSg6GWIfoGOgLofiDLGa9xHH+8dUlCrNmn2DZqTx7d7et3GZe9rq9ZN Mioyeple946ooKgRKwkKa5FJpXeMo5Icg22rn5LPRQARAQABiQEfBBgBAgAJBQJN dpPbAhsMAAoJEKz+rd7lSKKzHssH/2R1LD3J53tp0qT0X9tMupRaJnTcQ4+L6SlN G3D6WcxXD0QM56y4WjD92kGOzAnHZ5gCoa4jo72EhTIClXnuM6oorC8pxij2Jg88 mhG+5xCNqXAVw1NLafuf+X4DqW2sAfCCjYyvqTYrrmaeL78sAu+4oqZlb6tQVv90 9HCSh5ovQUP4LoDT+7Tx2Dj0HSExNz9Xyb8IuhTj6q8JhEeAZWjl23McY0DbDkCD UuUno+8h/vItjut6Idbl0yZ6tgCnUokh5Ks8rnd3hgjVFNF/M1ilvTRulnhJrQXl 606lzufMLu8Xxv0NA+eXfcBHjp+iyMGEZNbeB6/8/MlsBgzxIaQ= =qt9b -END PGP PUBLIC KEY BLOCK- ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: Looking for spice models that work with ngspice
I am looking for a 2N3416 spice model for ngspice. In any case, where can I look for comprehensive ngspice models? Thanks- Dan ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Verifying ngspice with an RLC sample in given link
On 03/02/2011 09:55 AM, Vladimir Zhbanov wrote: On Tue, Mar 01, 2011 at 05:59:42PM -0800, Daniel B. Thurman wrote: Hi, I found the time to go back to my past and revisit spice (used older Berkeley spice then) so I tried a simple RLC circuit from the following link and using ngspice: http://www.allaboutcircuits.com/vol_2/chpt_6/3.html Unfortunately, I was not able to duplicate the plots as shown in the above link. I am assuming that the author is using something other than ngspice or I am doing something wrong? Attached is the rlc.sch file with the same circuit sans the circuit netlist but it can be easily generated: gnetlist -o rlc.cir -g spice-sdb rlc.sch The contents of rlc.cir is: * * Spice file generated by gnetlist * * spice-sdb version 4.28.2007 by SDB -- * * provides advanced spice netlisting capability.* * Documentation at http://www.brorson.com/gEDA/SPICE/ * * *== Begin SPICE netlist of main design L1 0 3 10mH C1 3 2 10uF R1 1 2 1 V1 1 0 dc 0 ac 1 sin .end L1 is 100mH there. Could it help? -- VZh ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user Duh oh! That worked! Reminder to self: Get some hi-powered glasses and strong coffee! Thanks! ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Looking for spice models that work with ngspice
On 03/02/2011 10:03 AM, yamazakir2 wrote: regular spice models work for ngspice On Wed, Mar 2, 2011 at 9:55 AM, Daniel B. Thurman d...@cdkkt.com wrote: I am looking for a 2N3416 spice model for ngspice. In any case, where can I look for comprehensive ngspice models? Thanks- Dan Ok... but 2N3416 does not exist in the ngspice library - so where can one get it? ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Verifying ngspice with an RLC sample in given link
On 03/02/2011 10:05 AM, Daniel B. Thurman wrote: On 03/02/2011 09:55 AM, Vladimir Zhbanov wrote: On Tue, Mar 01, 2011 at 05:59:42PM -0800, Daniel B. Thurman wrote: Hi, I found the time to go back to my past and revisit spice (used older Berkeley spice then) so I tried a simple RLC circuit from the following link and using ngspice: http://www.allaboutcircuits.com/vol_2/chpt_6/3.html Unfortunately, I was not able to duplicate the plots as shown in the above link. I am assuming that the author is using something other than ngspice or I am doing something wrong? Attached is the rlc.sch file with the same circuit sans the circuit netlist but it can be easily generated: gnetlist -o rlc.cir -g spice-sdb rlc.sch The contents of rlc.cir is: * * Spice file generated by gnetlist * * spice-sdb version 4.28.2007 by SDB -- * * provides advanced spice netlisting capability.* * Documentation at http://www.brorson.com/gEDA/SPICE/ * * *== Begin SPICE netlist of main design L1 0 3 10mH C1 3 2 10uF R1 1 2 1 V1 1 0 dc 0 ac 1 sin .end L1 is 100mH there. Could it help? -- VZh Duh oh! That worked! Reminder to self: Get some hi-powered glasses and strong coffee! Thanks! There seems to be a problem; v(3) plot is inverted, otherwise the other nodes probes look good. Perhaps this has to do with vm which is not a recognized vector, so I just used v for node probes. Other than that, it looks good. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Verifying ngspice with an RLC sample in given link
On 03/02/2011 10:30 AM, Daniel B. Thurman wrote: On 03/02/2011 10:05 AM, Daniel B. Thurman wrote: On 03/02/2011 09:55 AM, Vladimir Zhbanov wrote: On Tue, Mar 01, 2011 at 05:59:42PM -0800, Daniel B. Thurman wrote: Hi, I found the time to go back to my past and revisit spice (used older Berkeley spice then) so I tried a simple RLC circuit from the following link and using ngspice: http://www.allaboutcircuits.com/vol_2/chpt_6/3.html Unfortunately, I was not able to duplicate the plots as shown in the above link. I am assuming that the author is using something other than ngspice or I am doing something wrong? Attached is the rlc.sch file with the same circuit sans the circuit netlist but it can be easily generated: gnetlist -o rlc.cir -g spice-sdb rlc.sch The contents of rlc.cir is: * * Spice file generated by gnetlist * * spice-sdb version 4.28.2007 by SDB -- * * provides advanced spice netlisting capability.* * Documentation at http://www.brorson.com/gEDA/SPICE/ * * *== Begin SPICE netlist of main design L1 0 3 10mH C1 3 2 10uF R1 1 2 1 V1 1 0 dc 0 ac 1 sin .end L1 is 100mH there. Could it help? -- VZh Duh oh! That worked! Reminder to self: Get some hi-powered glasses and strong coffee! Thanks! There seems to be a problem; v(3) plot is inverted, otherwise the other nodes probes look good. Perhaps this has to do with vm which is not a recognized vector, so I just used v for node probes. Other than that, it looks good. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user Problem solved. It was 'vm' and I recognized C/L are inverted plot WRT each other as expected. So to get the mags, one has to do: plot 100*mag(v1#branch) mag(v(2,3)) mag(v(3)) which amounts to the same thing. All is well thanks for pointing out the error! ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Looking for spice models that work with ngspice
On 03/02/2011 10:33 AM, yamazakir2 wrote: unless you need some kind of precision accuracy just use any standard npn model, adjust parasitics and beta based on datasheet On Wed, Mar 2, 2011 at 10:26 AM, Daniel B. Thurman d...@cdkkt.com wrote: On 03/02/2011 10:03 AM, yamazakir2 wrote: regular spice models work for ngspice On Wed, Mar 2, 2011 at 9:55 AM, Daniel B. Thurman d...@cdkkt.com wrote: I am looking for a 2N3416 spice model for ngspice. In any case, where can I look for comprehensive ngspice models? Thanks- Dan Ok... but 2N3416 does not exist in the ngspice library - so where can one get it? Ok, thanks. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Looking for spice models that work with ngspice
On 03/02/2011 01:44 PM, Andy Fierman wrote: Fairchild no longer make the 2N3416 so there is no longer a direct link to it. However, after a bit of educated guesswork it turns out that you can still get their model. Follow this link then fill in the form. http://www.fairchildsemi.com/cgi-bin/email_model.cgi?file=2N3416.mod Andy. www.signality.co.uk Ok, thanks for the link! I downloaded the 2N3416.mod file and saved it to the desktop What I did so far is: 1) Create the 2N3416 symbol file: + cd /usr/share/gEDA/sym/transistor + cp 2N-1.sym 2N3416-1.sym + edited 2N3416-1.sym and replaced all to 3416 2) Where do I put the 2N3416.mod file? ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: Verifying ngspice with an RLC sample in given link
Hi, I found the time to go back to my past and revisit spice (used older Berkeley spice then) so I tried a simple RLC circuit from the following link and using ngspice: http://www.allaboutcircuits.com/vol_2/chpt_6/3.html Unfortunately, I was not able to duplicate the plots as shown in the above link. I am assuming that the author is using something other than ngspice or I am doing something wrong? Attached is the rlc.sch file with the same circuit sans the circuit netlist but it can be easily generated: gnetlist -o rlc.cir -g spice-sdb rlc.sch The contents of rlc.cir is: * * Spice file generated by gnetlist * * spice-sdb version 4.28.2007 by SDB -- * * provides advanced spice netlisting capability.* * Documentation at http://www.brorson.com/gEDA/SPICE/ * * *== Begin SPICE netlist of main design L1 0 3 10mH C1 3 2 10uF R1 1 2 1 V1 1 0 dc 0 ac 1 sin .end Since the following was probably added manually: .ac lin 20 100 200 .plot ac i(v1) so, I added this in manually and ngspice seems to have ignored it when started, so at this point I left it out. I restarted ngspice: ngspice rlc.cir ** ** ngspice-21plus : Circuit level simulation program ** The U. C. Berkeley CAD Group ** Copyright 1985-1994, Regents of the University of California. ** Please submit bug-reports to: ngspice-b...@lists.sourceforge.net ** Creation Date: Thu Jul 22 17:58:52 UTC 2010 ** Circuit: * gnetlist -o rlc.cir -g spice-sdb rlc.sch ngspice 1 - ac lin 20 100 200 -- manually typed in Doing analysis at TEMP = 27.00 and TNOM = 27.00 No. of Data Rows : 20 ngspice 2 - plot i(v1) v(2,3) v(3) -- manually typed in I noted that I had to leave out 'ac' in plot command line as ngspice did not recognize this vector... Anyway, the plot results did not match what was given in the link. What I was looking for was a peak as shown in the link but it looked more like a lowpass filter what am I doing wrong? Thanks- rlc.sch Description: application/kicad-schematic ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: KJWave
KURT PETERS wrote: Dan, Is the model for the 1N4004 in the same directory as your Spice netlist? I think you can also actually cut and paste the 1N4004 model to the end of the spice netlist you're using as well. Otherwise, I really can't help you there, since that's a GnuCap/ngspice question. Kurt Message: 10 Date: Mon, 27 Jul 2009 18:44:49 -0700 From: Daniel B. Thurman d...@cdkkt.com Subject: gEDA-user: KJWave To: gEDA Users geda-user@moria.seul.org Message-ID: 4a6e5811.4000...@cdkkt.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed I am testing out KJWaves with the following net: * Spice netlister for gnetlist .OPT NOPAGE NOMOD .WIDTH OUT=133 R1 Vin 1 1k C1 0 1 1u D1 1 Vout 1N4004 .END I have tried using both gnucap and ngspice using KJWaves, neither seems to be able to find the 1N4004 diode model So how do I get KJWave (or gnucap or ngspice) to resolve this model from the model library if one is needed? Thanks! Dan I am simply trying to follow the tutorial given here: http://www.johannes-bauer.com/electronics/ I have been able to get the 1N4004 model recognized with the netlist below: == * Spice netlister for gnetlist .AC DEC 100 10.0 100 .SAVE V(VIN) .OPT NOPAGE NOMOD .WIDTH OUT=133 .OPT NOPAGE NOMOD .WIDTH OUT=133 .OPT NOPAGE NOMOD .WIDTH OUT=133 .OPT NOPAGE NOMOD .WIDTH OUT=133 VIN 1 0 sin(0 0.1 5meg) dc=0 ac=1NOTE1 R1 VIN 1 1k C1 0 1 1u D1 1 VOUT 1N4004 .model 1N4004 D .print tran v(VIN) v(VOUT) .tran 0 0.4 .001 .plot tran v(VIN) v(VOUT) .END == Note1: I added this line because I could out how to translate the following: Vcc ( vin 0 ) pulse iv= 0. pv= 5. delay=NA( 0.) rise=NA( 0.) fall=NA( 0.) width= 0.01 period= 0.02 KJWave shows in the 'Simulation' tab: == OUTPUTGnucap 0.35 OUTPUTThe Gnu Circuit Analysis Package OUTPUTNever trust any version less than 1.0 OUTPUTCopyright 1982-2006, Albert Davis OUTPUTGnucap comes with ABSOLUTELY NO WARRANTY OUTPUTThis is free software, and you are welcome OUTPUTto redistribute it under certain conditions OUTPUTaccording to the GNU General Public License. OUTPUTSee the file COPYING for details. OUTPUT* Spice netlister for gnetlist OUTPUT#Time v(VIN) v(VIN) v(VOUT) OUTPUT 0. 0. 0. 0. OUTPUT 0.001 679.f 679.03f189.f OUTPUT 0.002 1.358p 1.3581p379.f OUTPUT 0.003 2.765p 2.7647p771.f OUTPUT 0.004 2.716p 2.7161p757.f OUTPUT 0.005 1.212p 1.2124p338.f OUTPUT 0.006 2.619p 2.619p 730.f OUTPUT 0.007 1.115p 1.1152p311.f OUTPUT 0.008 5.432p 5.4323p1.515p OUTPUT 0.009 6.839p 6.8389p1.907p OUTPUT 0.01 8.246p 8.2455p2.299p OUTPUT 0.011 15.473p15.473p4.314p OUTPUT 0.012 16.88p 16.88p 4.707p OUTPUT 0.013 18.286p18.286p5.099p OUTPUT 0.014 19.693p19.693p5.491p OUTPUT 0.015 21.099p21.099p5.883p OUTPUT 0.016 22.506p22.506p6.275p OUTPUT 0.017 18.092p18.092p5.045p OUTPUT 0.018 25.319p25.319p7.06p OUTPUT 0.019 32.547p32.547p9.075p OUTPUT 0.02 28.133p28.133p7.844p OUTPUT 0.021 35.36p 35.36p 9.859p OUTPUT 0.022 42.587p42.587p11.875p OUTPUT 0.023 38.173p38.173p10.644p OUTPUT 0.024 45.401p45.401p12.659p OUTPUT 0.025 40.986p40.986p11.428p OUTPUT 0.026 48.214p48.214p13.443p OUTPUT 0.027 55.441p55.441p15.459p OUTPUT 0.028 51.027p51.027p14.228p OUTPUT 0.029 58.254p58.254p16.243p OUTPUT 0.03 53.84p 53.84p 15.012p OUTPUT 0.031 61.068p61.068p17.028p OUTPUT 0.032 68.295p68.295p19.043p OUTPUT 0.033 63.881p63.881p17.812p OUTPUT 0.034 59.467p59.467p16.581p OUTPUT 0.035 78.336p78.336p21.842p OUTPUT 0.036 73.922p73.922p20.612p OUTPUT 0.037 69.508p69.508p19.381p OUTPUT 0.038 88.376p88.376p24.642p OUTPUT 0.039 83.962p83.962p23.411p OUTPUT 0.04 79.548p79.548p22.18p OUTPUT 0.041 98.417p98.417p27.442p OUTPUT 0.042 94.003p94.003p26.211p OUTPUT 0.043 89.589p89.589p24.98p OUTPUT 0.044 85.175p85.175p23.749p OUTPUT 0.045 104.04p104.04p29.01p OUTPUT 0.046 99.629p99.629p27.78p OUTPUT 0.047 95.215p95.215p26.549p OUTPUT 0.048 114.08p114.08p31.81p OUTPUT 0.049 109.67p109.67p30.579p OUTPUT 0.05 105.26p105.26p29.348p
Re: gEDA-user: Learning Spice: TwoStageAmp example
KURT PETERS wrote: I would go here: [1]http://sourceforge.net/projects/kjwaves/ [2]http://ngspice.sourceforge.net/kjwaves.html Enjoy! Kurt Message: 7 Date: Fri, 24 Jul 2009 08:28:04 -0700 From: Daniel B. Thurman d...@cdkkt.com Subject: Re: gEDA-user: Learning Spice: TwoStageAmp example To: gEDA user mailing list geda-user@moria.seul.org Message-ID: 4a69d304.2020...@cdkkt.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed KURT PETERS wrote: I had similar problems way back when so I wrote KJWaves. Have you tried that? There's a tutorial for it on the ngspice web site. Kurt I checked to see if EJ Waves on the Fedora repository, it isn't. I checked the NgSpice site, and could not locate it. Perhaps you might provide a link to where I can find, download, and test this out? Thanks- Dan References 1. http://sourceforge.net/projects/kjwaves/ 2. http://ngspice.sourceforge.net/kjwaves.html Thanks! Um, one thing about your tutorial, you might show a picture of how: We can plot the sum of vectors v(4) and v(5) like in the picture below: as I cannot figure this one out... Try to be as detailed as possible for noobs like myself - every bit of detail helps! Dan ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Learning Spice: TwoStageAmp example
KURT PETERS wrote: At this point, I don't have time to modify that tutorial, but to calculate a mathematical function: 0. click the mathematical function button 1. select the variable on the left 2. click the corresponding button which will place the variable in one of the function entries 3. select the second variable on the left 4. click the corresonding other button 5. select the add to plot check box 5.5 check Include box 6. plot result I don't have it in front of me, but the order of selecting the mathematical function should be able to be changed. You can unselect the ones on the left (using CTRL-click) to make sure they're not plotted if you don't want them. Let me know if that works for you. Kurt KURT PETERS wrote: I had similar problems way back when so I wrote KJWaves. Have you tried that? There's a tutorial for it on the ngspice web site. Kurt I checked to see if EJ Waves on the Fedora repository, it isn't. I checked the NgSpice site, and could not locate it. Perhaps you might provide a link to where I can find, download, and test this out? Thanks- Dan References 1. http://sourceforge.net/projects/kjwaves/ 2. http://ngspice.sourceforge.net/kjwaves.html Thanks! Um, one thing about your tutorial, you might show a picture of how: We can plot the sum of vectors v(4) and v(5) like in the picture below: as I cannot figure this one out... Try to be as detailed as possible for noobs like myself - every bit of detail helps! Dan I got it. Thanks! ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: KJWave
I am testing out KJWaves with the following net: * Spice netlister for gnetlist .OPT NOPAGE NOMOD .WIDTH OUT=133 R1 Vin 1 1k C1 0 1 1u D1 1 Vout 1N4004 .END I have tried using both gnucap and ngspice using KJWaves, neither seems to be able to find the 1N4004 diode model So how do I get KJWave (or gnucap or ngspice) to resolve this model from the model library if one is needed? Thanks! Dan ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Learning Spice: TwoStageAmp example
KURT PETERS wrote: I had similar problems way back when so I wrote KJWaves. Have you tried that? There's a tutorial for it on the ngspice web site. Kurt I checked to see if EJ Waves on the Fedora repository, it isn't. I checked the NgSpice site, and could not locate it. Perhaps you might provide a link to where I can find, download, and test this out? Thanks- Dan ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Learning Spice: TwoStageAmp example
al davis wrote: On Monday 20 July 2009, Daniel B. Thurman wrote: Also, I would appreciate it if someone could point me to a tutorial or sample project that shows how one can do spice simulation! Did you look at what Stefan suggested for Gnucap? Yes, I did Very basic: http://www.johannes-bauer.com/electronics/ I have gotten all the way though to the point of trying to display the curves with `gwave'. The problem is with Fedora's 9/10/11 gwave builds, or so I think. It seems there is a problem with gwave builds on Fedora. As reported, if you start `gwave mycircuit.out', nothing appears at all, but then seconds later a crash dump appears on the command line where initiated and bugzilla pops up with the crash file to be saved. If starting `gwave' by itself, the application pops up, but then selecting `File-Read File...' results in the with dump errors and the bugzilla application pops up for crash dump saves. I reported this problem on the Fedora-Users mailing list and so far no response. I tried to build gwave from sources but there was a problem in which make was failing to locate gnome2 modules, so I gave up. I also downloaded the ngspice source, did a build, and all compiled with success, but issuing a `make check' revealed that the tests fail short starting with the bipolar models and quits where there are many more tests to go. For some reason, it seems I cannot get a simulation to work with the gEDA tools and I thought I was doing something very wrong, and that is why I was asking for a tutorial explaining, step-by-step, so as to demonstrate that the these tools actually work. So far, it has not, with the tutorials I have been working with. And gnucap documentation: http://wiki.gnucap.org/dokuwiki/doku.php?id=gnucap:manual ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: Learning Spice: TwoStageAmp example
Please bear with me as I am trying to learn how to use gEDA tools and all of it's nuances. For starters, I have focused on the simple document: ngspice.pdf which is a tutorial involving a simple RC circuit. So far, so good. But then I wanted to try other examples, and started to look at the TwoStageAmp provided by: Stuart Brorson from his website. I tried to run this under ngspice, but it seems that ngspice does not like the `file' command and it seems to have trouble locating the 2N3904 spice model: A snippet of TwoStageAmp.ckt file, showing the `file=' commands: === [...] { T 26600 56100 5 10 1 1 0 0 refdes=A1 T 27800 55800 5 10 1 1 0 0 model-name=2N3904 T 27000 55600 5 10 1 1 0 0 file=/usr/local/geda/share/models/spice/bjt/2N3904.mod } C 26500 54600 1 0 0 spice-include-1.sym { T 26600 55000 5 10 1 1 0 0 refdes=A2 T 27000 54700 5 10 1 1 0 0 file=/home/user/Desktop/gEDA/Projects/TwoStageAmp/Simulation.cmd } C 26500 53700 1 0 0 spice-directive-1.sym { T 26600 54100 5 10 1 1 0 0 refdes=A3 T 26600 53800 5 10 1 1 0 0 value=.TEMP 0 25 100 } [...] === I tried to run this under ngspice, and I tried two different sources: (1) source TwoStageAmp.ckt Uses `file=' (2) source output.net (already provided from zip file) Uses `.INCLUDE ' And both exhibit the same errors: === $ ngspice ** ** ngspice-18 : Circuit level simulation program ** The U. C. Berkeley CAD Group ** Copyright 1985-1994, Regents of the University of California. ** Please submit bug-reports to: ngspice-b...@lists.sourceforge.net ** Creation Date: Sun Jan 11 17:45:58 EST 2009 ** ngspice 1 - source TwoStageAmp.ckt /home/user/Desktop/gEDA/TwoStageAmp/Simulation.cmd: No such file or directory Circuit: * Error on line 13 : q1 vcoll1 vbase1 vem1 2n3904 unable to find definition of model - default assumed Error on line 14 : q2 vcoll2 vbase2 vem2 2n3904 unable to find definition of model - default assumed ngspice 2 - === $ more output.net * Spice file generated by gnetlist * spice-SDB version by SDB -- provides advanced * spice netlisting capability. * Documentation at http://www.brorson.com/gEDA/SPICE/ C2 2 Vbase2 2.2uF R4 0 Vbase2 2.8K R3 Vbase2 Vcc 28K R8 Vcoll1 2 1 CE2 0 Vem2 1pF RE2 0 Vem2 100 RC1 Vcoll1 Vcc 3.3K Q2 VColl2 Vbase2 Vem2 2N3904 C1 1 Vbase1 2.2uF .TEMP 0 25 100 .INCLUDE /home/user/Desktop/gEDA/TwoStageAmp/Simulation.cmd .model 2N3904 NPN(IS=1E-14 VAF=100 + Bf=300 IKF=0.4 XTB=1.5 BR=4 + CJC=4E-12 CJE=8E-12 RB=20 RC=0.1 RE=0.1 + TR=250E-9 TF=350E-12 ITF=1 VTF=2 XTF=3 Vceo=40 Icrating=200m mfg=Philips) VCC Vcc 0 DC 15V Vinput Vin 0 DC 1.6V AC 10MV SIN(0 1MV 1KHZ) CE1 0 Vem1 1pF Cout VColl2 Vout 2.2uF $ ngspice ** ** ngspice-18 : Circuit level simulation program ** The U. C. Berkeley CAD Group ** Copyright 1985-1994, Regents of the University of California. ** Please submit bug-reports to: ngspice-b...@lists.sourceforge.net ** Creation Date: Sun Jan 11 17:45:58 EST 2009 ** ngspice 1 - source output.net /home/user/Desktop/gEDA/TwoStageAmp/Simulation.cmd: No such file or directory Circuit: * spice file generated by gnetlist Error on line 12 : q2 vcoll2 vbase2 vem2 2n3904 unable to find definition of model - default assumed Error on line 29 : q1 vcoll1 vbase1 vem1 2n3904 unable to find definition of model - default assumed ngspice 2 - quit ngspice-18 done === The next thing I tried was to run this under Gnu Spice GUI: Gnu Spice GUI: *** PROCESS COMMAND *** /usr/bin/ngspice -n -b /home/user/Desktop/gEDA/Projects/TwoStageAmp/TwoStageAmp.ckt *** PROCESS RESPONSE ** Circuit: * Error on line 13 : q1 vcoll1 vbase1 vem1 vcoll1 2n3904 unable to find definition of model 2n3904 - default assumed Error on line 14 : q2 vcoll2 vbase2 vem2 vcoll2 2n3904 unable to find definition of model 2n3904 - default assumed Doing analysis at TEMP = 27.00 and TNOM = 27.00 Initial Transient Solution -- Node Voltage --- 10 vbase10.967069 2 9.17832 vbase2 1.25265 vem1 0.178179 vem2 0.440361 vcoll2 10.64 vout 0 vcoll1 9.17832 vcc 15 vin 0 vinput#branch
gEDA-user: Is it possible to change gschem's default colors?
Noob here! I am trying to learn how to use gEDA, but mostly interested in testing out the spice tools. When I start gschem editor, I get a black background with white boarders and have a hard time seeing any symbols with clarity due to contrast. I would like to reverse the colors: white background with black borders. I cannot seem to find any Preferences in order to change the colors of gschem's background, foreground, text colors, etc. so that I can see the symbols being displayed therein. Can someone direct me as to how this can be done? Thanks! Dan ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Is it possible to change gschem's default colors?
Stefan Salewski wrote: On Wed, 2009-07-15 at 12:34 -0700, Daniel B. Thurman wrote: Noob here! I am trying to learn how to use gEDA, but mostly interested in testing out the spice tools. When I start gschem editor, I get a black background with white boarders and have a hard time seeing any symbols with clarity due to contrast. I would like to reverse the colors: white background with black borders. I cannot seem to find any Preferences in order to change the colors of gschem's background, foreground, text colors, etc. so that I can see the symbols being displayed therein. Can someone direct me as to how this can be done? Thanks! Dan http://www.geda.seul.org/wiki/geda:faq-gschem#how_can_i_have_a_different_background_color_other_than_black ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user Thanks! Dan ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: Is there a basic tutorial: Schematic-Netlists-Spice?
Noob here! I am trying to ramp up to speed, primarily in creating a schematic diagram, to generating netlists, so that I can begin with spice analysis. I just to get my feet wet, I created a *simple* circuit consisting of a VAC source, a resistor, and a capacitor so that I can understand the process from start to finish. I have started out using gschem in creating a schematic as follows: V1 = 100VAC C1 = 100UF R1 = 100K But I could not figure out what to do next in generating a netlist using gschem at this point Is there a step-by-step tutorial around somewhere for the beginner? ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Is there a basic tutorial: Schematic-Netlists-Spice?
John Doty wrote: On Jul 15, 2009, at 2:56 PM, Daniel B. Thurman wrote: Is there a step-by-step tutorial around somewhere for the beginner? www.brorson.com/gEDA/SPICE/intro.html John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ j...@noqsi.com ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user I have read and followed the instructions: (1) Download and install the spice model package into the directory: /usr/local/geda/share/models/ Otherwise, edit file: TwoStageAmp.sch and update the pathname to where spice/bjt/2N3904.mod is located. (2) Edit the file: TwoStageAmp.sch and update the pathname to where Simulation.cmd file is located. I have used the Gnu Spice Gui tool, was able to directly load the TwoStageAmp.sch file and it automatically generated the netlist internally but could not figure out how to do the simulation part. As a wild try, I have changed the values of: DC Analysis: == Start Voltage = 1V Stop Voltage = 15V Step Increment = 1V Signal Source = Vcc AC Analysis: == Start Frequency = 1.00 Hz Stop Frequency = 10.00 kHz Steps/Decade = 1 Signal Source = Vinput 10.00 mV Transient Analysis: == Start Time = 0.00 msec Stop Time = 100 msec Step Increment = 1.00 msec Signal Source = Vinput, Sinsoid: Amplitude=1mV, Frequency=1 Khz Running the simulator, the console says: == *** PROCESS COMMAND *** /usr/bin/ngspice -n -b /home/me/Desktop/gEDA/TwoStageAmp/TwoStageAmp.ckt *** PROCESS RESPONSE ** Circuit: * Error on line 19 : q1 vcoll1 vbase1 vem1 2n3904 unable to find definition of model - default assumed Error on line 20 : q2 vcoll2 vbase2 vem2 2n3904 unable to find definition of model - default assumed Doing analysis at TEMP = 27.00 and TNOM = 27.00 AC operating point failed - Last Node Voltages -- Node Last VoltagePrevious Iter - 1 00 vbase1 3.04089e-137 4.85117e-151 2 -9.4771e-1370 vbase2-2.98549e-139-1.77611e-153 vem11.2428e-138 3.70095e-151 vem2 -4.05949e-141-6.14736e-154 vcoll2 1.57882e-139 2.39084e-153 vout 00 vcoll1 -9.4771e-137-8.55212e-151 2n390400 vcc 00 vin 00 vinput#branch 00 vcc#branch-2.74852e-1400 DC solution failed - Last Node Voltages -- Node Last VoltagePrevious Iter - 1 00 vbase1 3.04089e-137 4.85117e-151 2 -9.4771e-1370 vbase2-2.98549e-139-1.77611e-153 vem11.2428e-138 3.70095e-151 vem2 -4.05949e-141-6.14736e-154 vcoll2 1.57882e-139 2.39084e-153 vout 00 vcoll1 -9.4771e-137-8.55212e-151 2n390400 vcc 00 vin 00 vinput#branch 00 vcc#branch-2.74852e-1400 Transient solution failed - Last Node Voltages -- == Follows with a popup error that says: Couldn't find the data section in the results file. So, what am I doing wrong? Thanks Dan ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user