delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-help-bounces using -f |
X-Recipient: | geda-help AT delorie DOT com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=20120113; | |
h=date:from:to:subject:message-id:mail-followup-to:references | |
:mime-version:content-type:content-disposition:in-reply-to | |
:user-agent; | |
bh=YAKjIEO4riR86o7CZIy4gEtc8TbgnUSBU06RYz1Dew0=; | |
b=g6aw8CYSG2IPAiBZlV0HPEEmFK6/6L80yHs2r26U0XVsAV3GZykhFTDKW65wWhvr1d | |
PdxP+OvXiMb2aPmhJAqJpK09JN1EuEAvvpQ8Oiprc5UYwqlvG+d3ICqvcLrcZq/+twhp | |
I0jXQ7L1OyPj7nhWVfb20u0bBX2HW7tnoIdZ7UvskkO+M45sL7IBWK1maBjagu97dRdJ | |
WZmopWAX9ygJmCUc2IG/pi29ENNIHbOpjJFQHREZy9pIKLfsJVCs6iwGF3A/VVX5iMVD | |
ZBtLk3wKC/5m7Fy42ouV2FvR1Rq9/cNC5RhEwK3QRisuKaoKXq3X17qFf1FLoJCgwNq2 | |
YpUA== | |
X-Received: | by 10.152.206.67 with SMTP id lm3mr12724598lac.16.1416218198207; |
Mon, 17 Nov 2014 01:56:38 -0800 (PST) | |
Date: | Mon, 17 Nov 2014 12:56:35 +0300 |
From: | Vladimir Zhbanov <vzhbanov AT gmail DOT com> |
To: | geda-help AT delorie DOT com |
Subject: | Re: [geda-help] newbie: automatic way to find a model |
Message-ID: | <20141117095634.GA23131@localhost.localdomain> |
Mail-Followup-To: | geda-help AT delorie DOT com |
References: | <CAJvHTNzU26FpikzGkmkx6xcZawUZWMFSKkfeSnHALhZ8j5RFGQ AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAJvHTNzU26FpikzGkmkx6xcZawUZWMFSKkfeSnHALhZ8j5RFGQ@mail.gmail.com> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
Reply-To: | geda-help AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-help AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Thu, Oct 30, 2014 at 12:05:15AM +1100, Jack Andrews wrote: > Hi, > My interest is > - bread-boarding some hardware ideas > - saving time messing with hardware by using simulation > So I ended up looking at [ng]spice and gschem > This is my first day and I'm quite pleased with my progress - all > credit due to gEDA. > I drew up the start of a current mirror in gschem and > $ gnetlist -v -g spice-sdb current-mirror #see current mirror in > shell script below > and the body of the output was: > B2 5 7 0V > R4 1 unconnected_pin-1 7 5K > B1 7 6 12V > Q1 2 2 6 unknown > Q2 4 2 6 unknown > R3 3 5 5K > R2 4 3 10K > R1 2 1 10K > .end > In my schematic, I specified Q{1,2} as 2N2222 - but to run ngspice, I > seem to need to find the model for 2N2222. I'm sure the question has > been asked before: > . is there an automated way to find the model for 2N2222? Probably spicelib could help you. Please read [1] and search for the link there. > If this is currently done manually, I'd like to contribute some work. > (I'm in software by day). > Also, note the R4 VARIABLE_RESISTOR is being used as a variable > resistor (not a potentiometer) so there is a floating node. What is > the best way of drawing what I want? And then, how do I get spice to > vary the resistor in 33 steps? Maybe use a VCR > voltage-controlled-resistor and vary the voltage control? Starting to > get vague now... I think you ought to read the "Parameter sweep" section in the ngspice manual. For your resistor you can make a subschematic with two resistors in it. HTH, Vladimir [1] http://wiki.geda-project.org/geda:ngspice_and_gschem
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |