├── README.md ├── buttons ├── cancel.png ├── delete.png ├── disc.png ├── grow.png ├── icbut.png ├── netlist.png ├── new.png ├── normal.png ├── ok.png ├── open.png ├── openmenu.png ├── process-stop.png ├── redo.png ├── rotate.png ├── run.png ├── save.png ├── select.png ├── text.png ├── undo.png ├── wire.png └── zoom.png ├── canvas ├── buttons │ ├── grow.png │ └── normal.png └── canvas.html ├── favicon.ico ├── gnucapjs ├── Makeem++ ├── gnucap-io.js ├── gnucap-ugly.js ├── gnucap.html ├── grid.png ├── testplot.html └── webtronics_gnucap.appcache ├── icons ├── .logo.png-autosave.kra ├── logo.png ├── logo128.jpg ├── logo128.png ├── logo16.png └── logo48.png ├── schematic.html ├── script ├── canvg.js ├── chipmaker.js ├── connections.js ├── gui.js ├── netlist.js ├── primatives.js ├── prototype.js ├── rgbcolor.js ├── schematic.js ├── utils.js └── wtx2kicad.js ├── spice.php ├── style ├── canvas.css ├── schematic.css └── web.png └── webtronix_server ├── amplifier ├── inst-amp.svg └── op-amp.svg ├── audio └── speaker.svg ├── capacitors ├── capacitor.svg ├── polar-cap.svg └── variablecap.svg ├── digital ├── adc_bridge.svg ├── and.svg ├── dac_bridge.svg ├── nand.svg ├── nor.svg ├── not.svg ├── or.svg ├── source.svg ├── xnor.svg └── xor.svg ├── diodes ├── diode.svg ├── led.svg ├── photodiode.svg ├── scr.svg ├── triac.svg ├── trigger.svg ├── varicap.svg └── zener.svg ├── frequency └── crystal.svg ├── ic ├── 3_pins.svg ├── 4_pins.svg └── 5_pins.svg ├── inductors ├── coil.svg ├── tapcoil.svg └── transformer.svg ├── parts.json ├── power ├── ac.svg ├── battery.svg ├── current.svg ├── ground.svg ├── namewire.svg └── positive.svg ├── predefined └── 555.svg ├── resistors ├── photo-resistor.svg ├── potentiometer.svg ├── resistor.svg ├── testresistor.svg └── vari-resistor.svg ├── spice ├── 2n7000.mod ├── 555.mod ├── ad620a.mod ├── ad8221.mod ├── bat54.mod ├── bjt.lib ├── digital.lib ├── diode.lib ├── dsource.mod ├── ina128.mod ├── irf150.mod ├── irf530.mod ├── irfz44n.mod ├── jfet.lib ├── lm324.mod ├── lm339.mod ├── lm358.mod ├── lm741.mod ├── mosfet.lib ├── mymodels.lib ├── mysubckt.mod ├── ne555.mod ├── tl06x.mod ├── tl07x.mod ├── tl08x.mod ├── ua741.mod └── varicap.lib ├── switches ├── ncpb.svg ├── nopb.svg ├── spst-relay.svg └── spst-switch.svg ├── test ├── analysis.svg └── scope.svg ├── transistors ├── njfet.svg ├── nmosfet.svg ├── npn.svg ├── phototrans.svg ├── pjfet.svg ├── pmosfet.svg └── pnp.svg └── webtronix_server.html /README.md: -------------------------------------------------------------------------------- 1 | Webtronix is broken due to browser compatibility issues 2 | --- 3 | GOAL 4 | ------ 5 | 6 | The schematic is the language of electronics. Webtronix exists to simplify posting of schematics and improve discussion of electronic circuits.The output is SVG so it will open in most browsers. It uses Emscripten compiled Gnucap to do simulation. 7 | 8 | Webtronix is not meant to replace professional tools, it is meant to complement them. I feel that free tools are a necessity and open source and standardization have a great advantage. 9 | 10 | 1.To create schematics that can easily be shared for discussion and improvements. 11 | 12 | 2.To create Schematics that can simulate and verify circuits. 13 | 14 | 3.To use the web in ways that benefit the users. 15 | 16 | I have big ideas for web based engineering tools and I would love to be part of a related project. 17 | 18 | DEMO 19 | ------ 20 | 21 | 22 | [Try the Demo.](http://logical.github.io/webtronix/schematic.html) 23 | 24 | 25 | If you have problems running the demo or if you have suggestions, please send me an email or create an issue. 26 | 27 | This demo stores gnucap-ugly.js in browser cache to keep from re-downloading it.It is 3.8mb. 28 | 29 | 30 | LATEST 31 | ------ 32 | Mostly I am using webtronix myself because I only run linux and there are not a lot of choicese for simulating circuits. 33 | 34 | -------------------------------------------------------------------------------- /buttons/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/cancel.png -------------------------------------------------------------------------------- /buttons/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/delete.png -------------------------------------------------------------------------------- /buttons/disc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/disc.png -------------------------------------------------------------------------------- /buttons/grow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/grow.png -------------------------------------------------------------------------------- /buttons/icbut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/icbut.png -------------------------------------------------------------------------------- /buttons/netlist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/netlist.png -------------------------------------------------------------------------------- /buttons/new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/new.png -------------------------------------------------------------------------------- /buttons/normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/normal.png -------------------------------------------------------------------------------- /buttons/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/ok.png -------------------------------------------------------------------------------- /buttons/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/open.png -------------------------------------------------------------------------------- /buttons/openmenu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/openmenu.png -------------------------------------------------------------------------------- /buttons/process-stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/process-stop.png -------------------------------------------------------------------------------- /buttons/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/redo.png -------------------------------------------------------------------------------- /buttons/rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/rotate.png -------------------------------------------------------------------------------- /buttons/run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/run.png -------------------------------------------------------------------------------- /buttons/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/save.png -------------------------------------------------------------------------------- /buttons/select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/select.png -------------------------------------------------------------------------------- /buttons/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/text.png -------------------------------------------------------------------------------- /buttons/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/undo.png -------------------------------------------------------------------------------- /buttons/wire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/wire.png -------------------------------------------------------------------------------- /buttons/zoom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/buttons/zoom.png -------------------------------------------------------------------------------- /canvas/buttons/grow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/canvas/buttons/grow.png -------------------------------------------------------------------------------- /canvas/buttons/normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/canvas/buttons/normal.png -------------------------------------------------------------------------------- /canvas/canvas.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/favicon.ico -------------------------------------------------------------------------------- /gnucapjs/Makeem++: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -x 3 | set -e 4 | 5 | EMSCRIPTEN_PATH="PUT YOUR EMSCRIPTEN PATH HERE " 6 | OPTIMIZE="-O2 -s USE_TYPED_ARRAYS=2 -s DISABLE_EXCEPTION_CATCHING=0 " 7 | CCP="$EMSCRIPTEN_PATH/em++" 8 | CC="$EMSCRIPTEN_PATH/emcc" 9 | CFLAGS="$OPTIMIZE -DEMSCRIPTEN -DUNIX -DNDEBUG -Dlinux -DSPICE_3f -DPREDICTOR -DAN_pz -DAN_disto -DAN_noise -DHAS_STDLIB -fPIC -I./ -I../include -I../../include -I../Include " 10 | CCFLAGS="$CFLAGS -std=c++98" 11 | 12 | JFET(){ 13 | cd models-spice3f5/jfet 14 | 15 | $CCP $CCFLAGS -I../Include ../Gnucap/spice-wrapper.cc -c -o ../Gnucap/spice-wrapper.bc 16 | $CC $CFLAGS -I../Include ../Include/devsup.c -c -o ../Include/devsup.bc 17 | 18 | declare -a BCFILES=$(find -name *.bc) 19 | for BCFILE in ${BCFILES[@]};do 20 | rm $BCFILE 21 | done 22 | 23 | #models first 24 | declare -a SOURCES=(jfet jfetacld jfetask jfetdel jfetdest jfetdist jfetdset 25 | jfetic jfetload jfetmask jfetmdel jfetmpar 26 | jfetnoi jfetpar jfetpzld jfetset jfettemp jfettrun 27 | ) 28 | 29 | for CCFILE in ${SOURCES[@]}; do 30 | $CC $CFLAGS -Wno-implicit-function-declaration -I../Include -I../Gnucap -c $CCFILE.c -o O/$CCFILE.bc 31 | done 32 | cd O 33 | $CC $OPTIMIZE $(ls *.bc) ../../Gnucap/spice-wrapper.bc ../../Include/devsup.bc -o d_jfet.bc 34 | cd ../../.. 35 | } 36 | 37 | 38 | LIB(){ 39 | 40 | cd lib 41 | declare -a BCFILES=$(find -name *.bc) 42 | for BCFILE in ${BCFILES[@]};do 43 | rm $BCFILE 44 | done 45 | declare -a SOURCES=(m_expression_dump m_expression_in 46 | m_expression_reduce 47 | m_base_in m_base_math m_fft m_spline 48 | ap_construct ap_convert ap_error ap_get ap_match ap_skip 49 | l_ftos l_pmatch l_timer l_trim l_wmatch 50 | io io_contr io_error io_findf io_out io_xopen 51 | u_function u_lang u_nodemap u_opt1 u_opt2 52 | u_parameter u_prblst u_probe u_sim_data u_xprobe 53 | d_subckt d_logic d_logicmod 54 | e_base e_card e_node e_model e_compon 55 | e_elemnt e_ccsrc e_storag e_cardlist 56 | bm_cond bm_value bm 57 | c__cmd c_attach c_file 58 | findbr plot globals) 59 | for CCFILE in ${SOURCES[@]}; do 60 | $CCP $CCFLAGS $CCFILE.cc -c -o O/$CCFILE.bc 61 | done 62 | # link 63 | cd O 64 | 65 | $CCP $OPTIMIZE $(ls *.bc) -o libgnucap.bc 66 | cd ../.. 67 | } 68 | 69 | 70 | APPS(){ 71 | cd apps 72 | declare -a BCFILES=$(find -name *.bc) 73 | for BCFILE in ${BCFILES[@]};do 74 | rm $BCFILE 75 | done 76 | #models first 77 | declare -a SOURCES=(d_mos1 d_mos2 d_mos3 78 | d_mos4 d_mos5 d_mos6 d_mos7 d_mos8 79 | d_mos123 d_mos_base d_mos 80 | d_bjt d_diode ) 81 | 82 | for CCFILE in ${SOURCES[@]}; do 83 | $CCP -c $CCFLAGS O/$CCFILE.cc -o O/$CCFILE.bc 84 | done 85 | 86 | SOURCES=( 87 | d_admit d_cap d_cccs d_ccvs d_coil 88 | d_cs d_poly_g d_poly_cap d_res d_switch 89 | d_trln d_vcg d_vcr d_vcvs d_vs 90 | d_meter 91 | 92 | bm_complex bm_exp bm_fit bm_generator 93 | bm_model bm_poly bm_posy bm_pulse bm_pwl bm_sffm 94 | bm_sin bm_tanh bmm_table bmm_semi 95 | 96 | c_clear c_comand c_delete c_exp c_genrat 97 | c_list c_measure c_modify c_param c_prbcmd 98 | c_status c_sweep c_sim c_system 99 | 100 | s__init s__out s__solve 101 | s_ac s_dc s_fo 102 | s_tr s_tr_set s_tr_swp 103 | 104 | lang_spice lang_spectre lang_verilog 105 | 106 | func_core measure_eval 107 | measure_max measure_min measure_slewrate measure_cross 108 | measure_integral measure_average measure_rms measure_at signon 109 | ) 110 | for CCFILE in ${SOURCES[@]}; do 111 | $CCP $CCFLAGS $CCFILE.cc -c -o O/$CCFILE.bc 112 | done 113 | # link 114 | cd O 115 | 116 | $CCP $OPTIMIZE $(ls *.bc) -o libgnucap-default-plugins.bc 117 | 118 | cd ../.. 119 | } 120 | 121 | MAIN(){ 122 | #get the functions to export from the so file 123 | cd main 124 | 125 | declare -a BCFILES=$(find -name *.bc) 126 | for BCFILE in ${BCFILES[@]};do 127 | rm $BCFILE 128 | done 129 | declare -a SOURCES=(main) 130 | for CCFILE in ${SOURCES[@]}; do 131 | $CCP $CCFLAGS $CCFILE.cc -c -o O/$CCFILE.bc 132 | done 133 | # link 134 | cd O 135 | 136 | 137 | EMCC_DEBUG=1 $CC $OPTIMIZE ../../lib/O/libgnucap.bc ../../models-spice3f5/jfet/O/d_jfet.bc ../../apps/O/libgnucap-default-plugins.bc main.bc -o gnucap.html --embed-file temp 138 | 139 | cd ../.. 140 | 141 | } 142 | 143 | case "$1" in 144 | jfet) 145 | JFET 146 | ;; 147 | apps) 148 | APPS 149 | ;; 150 | lib) 151 | LIB 152 | ;; 153 | main) 154 | MAIN 155 | ;; 156 | *) 157 | JFET 158 | LIB 159 | APPS 160 | MAIN 161 | esac 162 | 163 | #command to minify 164 | #uglifyjs -v main/O/gnucap.js > main/O/gnucap-ugly.js 165 | 166 | -------------------------------------------------------------------------------- /gnucapjs/gnucap-io.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | // var statusElement = document.getElementById('gnucap_scope_display_div'); 4 | // var progressElement = document.getElementById('progress'); 5 | // var spinnerElement = document.getElementById('spinner'); 6 | var spice={}; 7 | 8 | Module = { 9 | 10 | preRun: [function(){ 11 | FS.writeFile("/spice.cir",spice.netlist); 12 | for(file in spice.includes){ 13 | FS.writeFile(file,spice.includes[file]); 14 | } 15 | }], 16 | postRun:[function(){ 17 | }], 18 | arguments:["-b","/spice.cir"], 19 | print:function(text) { 20 | text = Array.prototype.slice.call(arguments).join(' '); 21 | postMessage(text+'\n'); 22 | }, 23 | printErr: function(text) { 24 | text = Array.prototype.slice.call(arguments).join(' '); 25 | if (0) { // XXX disabled for safety typeof dump == 'function') { 26 | dump(text + '\n'); // fast, straight to the real console 27 | } else { 28 | console.log(text); 29 | } 30 | 31 | }, 32 | setStatus: function(text) { 33 | if (!Module.setStatus.last) Module.setStatus.last = { time: Date.now(), text: '' }; 34 | if (text === Module.setStatus.text) return; 35 | var m = text.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/); 36 | var now = Date.now(); 37 | if (m && now - Date.now() < 30) return; // if this is a progress update, skip it if too soon 38 | if (m) { 39 | text = m[1]; 40 | } else { 41 | //code is finished 42 | if (!text){ 43 | postMessage("SIMULATION COMPLETED"); 44 | } 45 | } 46 | }, 47 | }; 48 | self.addEventListener("message", function(e) { 49 | spice=e.data; 50 | 51 | // the passed-in data is available via e.data.netlist 52 | importScripts("gnucap-ugly.js"); 53 | }, false); 54 | Module.TOTAL_MEMORY=67108864; 55 | Module.setStatus('Downloading...'); 56 | -------------------------------------------------------------------------------- /gnucapjs/gnucap.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Emscripten-Generated Code 7 | 32 | 33 | 34 |
Downloading...
35 | 267 | 268 | 269 | 270 | 271 | 272 | -------------------------------------------------------------------------------- /gnucapjs/grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/gnucapjs/grid.png -------------------------------------------------------------------------------- /gnucapjs/testplot.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 40 | 41 | 42 | 43 | 45 | 46 | 48 | 49 | -------------------------------------------------------------------------------- /gnucapjs/webtronics_gnucap.appcache: -------------------------------------------------------------------------------- 1 | CACHE MANIFEST 2 | #09-15-2015 3 | 4 | CACHE: 5 | gnucap-io.js 6 | gnucap-ugly.js 7 | -------------------------------------------------------------------------------- /icons/.logo.png-autosave.kra: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/icons/.logo.png-autosave.kra -------------------------------------------------------------------------------- /icons/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/icons/logo.png -------------------------------------------------------------------------------- /icons/logo128.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/icons/logo128.jpg -------------------------------------------------------------------------------- /icons/logo128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/icons/logo128.png -------------------------------------------------------------------------------- /icons/logo16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/icons/logo16.png -------------------------------------------------------------------------------- /icons/logo48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/icons/logo48.png -------------------------------------------------------------------------------- /schematic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Webtronix schematic editor. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 24 |
25 | 26 |
27 | Circuit 28 | 29 | 30 | 31 | 32 | 33 |
34 |
35 | History 36 | 37 | 38 |
39 |
40 | Settings 41 |
42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 |
connectionsgraph
inverthelp
52 |
53 |
54 |
55 | 56 |
57 |
58 |
59 | 60 |
61 | 62 | 63 |
64 | 65 |
66 | GNUCAP 67 |
68 | EMSCRIPTEN 69 | 70 | 71 | 72 | 73 | 74 |
75 | 80 | 83 |
84 |
85 | 88 | 89 |
Mode: Draw Rectangle
90 | 91 | 92 | 93 |
94 | 97 | 98 | 118 | 119 | 122 | 123 | 126 | 129 | 171 | 172 | 175 | 200 | 201 | 202 | 205 | 206 | 211 | 212 | 213 | 216 | 217 | 235 | 236 | 239 | 253 | 254 |
255 | 256 | 257 | -------------------------------------------------------------------------------- /script/chipmaker.js: -------------------------------------------------------------------------------- 1 | var chipmaker={ 2 | 3 | clear:function(elem){ 4 | 5 | if ( elem.hasChildNodes() ) 6 | { 7 | while ( elem.childNodes.length >= 1 ) 8 | { 9 | elem.removeChild( elem.firstChild ); 10 | 11 | } 12 | } 13 | elem.removeAttribute('connects'); 14 | 15 | 16 | }, 17 | 18 | openmaker:function(){ 19 | $("webtronics_chip_display").parentNode.removeChild($("webtronics_chip_display")); 20 | var div=new Element("div",{id:"webtronics_chip_display"}); 21 | $("webtronics_chips_box").insertBefore(div,$("webtronics_chips_box").firstChild); 22 | document.forms['webtronics_chips_form'].reset(); 23 | $("webtronics_chip_spice_select").options.length=0; 24 | $("webtronics_chip_spice_select").appendChild(new Element("option",{"value":""}).update("none")); 25 | 26 | for(var part in webtronics.model){ 27 | $("webtronics_chip_spice_select").insert(new Element("option",{"value":part}).update(part)); 28 | } 29 | }, 30 | 31 | 32 | createwtx:function(pins){ 33 | var data=new Element("metadata",{"class":"part"}) 34 | .update(new Element("wtx:part",{"xmlns:wtx":"http://code.google.com/p/webtronics"}) 35 | .insert(new Element("wtx:pins").insert(pins)) 36 | .insert(new Element("wtx:id").update("u")) 37 | .insert(new Element("wtx:type").update("u")) 38 | .insert(new Element("wtx:name").update("model")) 39 | .insert(new Element("wtx:category").update("ic")) 40 | .insert(new Element("wtx:value")) 41 | .insert(new Element("wtx:label")) 42 | .insert(new Element("wtx:spice")) 43 | .insert(new Element("wtx:flip")) 44 | .insert(new Element("wtx:model"))); 45 | 46 | return data; 47 | /* 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | r 57 | r 58 | resistor 59 | resistors 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | */ 68 | }, 69 | drawchip:function(h,v){ 70 | var svgNamespace = 'http://www.w3.org/2000/svg'; 71 | var svg; 72 | var fontsize=8; 73 | svgRoot=document.createElementNS(svgNamespace, "svg"); 74 | svgRoot.setAttributeNS(null, 'stroke','black'); 75 | svgRoot.setAttributeNS(null, 'width','99%'); 76 | svgRoot.setAttributeNS(null, 'height','99%'); 77 | var chipG = svgRoot.getElementsByTagName("g")[0]; 78 | 79 | chipG=document.createElementNS(svgNamespace, 'g'); 80 | chipG.setAttributeNS(null, 'stroke', 'black'); 81 | chipG.setAttributeNS(null, 'stroke-width', '2px'); 82 | svgRoot.appendChild(chipG); 83 | /*space between pins*/ 84 | var space=20; 85 | /*length of pins */ 86 | var pinl=10; 87 | var y=space 88 | var start=pinl; 89 | var hor=h*space; 90 | var pincount=0; 91 | var connections=new Element("wtx:analog"); 92 | if(h==0) 93 | { 94 | hor=60; 95 | y=pinl; 96 | start=0; 97 | } 98 | 99 | svg = document.createElementNS(svgNamespace, 'rect'); 100 | svg.setAttributeNS(null, 'x', pinl); 101 | svg.setAttributeNS(null, 'y', start); 102 | svg.setAttributeNS(null, 'width', hor); 103 | svg.setAttributeNS(null, 'height', v*space); 104 | svg.setAttributeNS(null, 'fill','none'); 105 | 106 | chipG.appendChild(svg); 107 | /* left horizontal pins*/ 108 | for(;y<(v*space+start+10);y+=space){ 109 | svg = document.createElementNS(svgNamespace, 'line'); 110 | svg.setAttributeNS(null, 'x1',0 ); 111 | svg.setAttributeNS(null, 'y1', y); 112 | svg.setAttributeNS(null, 'x2', pinl); 113 | svg.setAttributeNS(null, 'y2', y); 114 | chipG.appendChild(svg); 115 | 116 | svg = document.createElementNS(svgNamespace, 'text'); 117 | svg.setAttributeNS(null, 'x', 0); 118 | svg.setAttributeNS(null, 'y', y); 119 | svg.setAttributeNS(null, 'font-size', fontsize); 120 | svg.setAttributeNS(null, 'stroke','blue'); 121 | svg.setAttributeNS(null, 'stroke-width','0px'); 122 | 123 | svg.appendChild(document.createTextNode(pincount+1)); 124 | chipG.appendChild(svg); 125 | connections.insert(new Element("wtx:node",{"index":pincount,"x":"0","y":y})); 126 | pincount++; 127 | } 128 | y=space 129 | start=pinl; 130 | hor=h*space; 131 | 132 | if(h==0) 133 | { 134 | hor=60; 135 | y=pinl; 136 | start=0; 137 | } 138 | /*vertical bottom pins*/ 139 | for(var x=space;x=y;y2-=space){ 171 | svg = document.createElementNS(svgNamespace, 'line'); 172 | svg.setAttributeNS(null, 'x1',hor ); 173 | svg.setAttributeNS(null, 'y1',y2); 174 | svg.setAttributeNS(null, 'x2',hor+pinl); 175 | svg.setAttributeNS(null, 'y2',y2); 176 | chipG.appendChild(svg); 177 | 178 | svg = document.createElementNS(svgNamespace, 'text'); 179 | svg.setAttributeNS(null, 'x', hor); 180 | svg.setAttributeNS(null, 'y', y2); 181 | svg.setAttributeNS(null, 'font-size', fontsize); 182 | svg.setAttributeNS(null, 'stroke','blue'); 183 | svg.setAttributeNS(null, 'stroke-width','0px'); 184 | 185 | svg.appendChild(document.createTextNode(pincount+1)); 186 | chipG.appendChild(svg); 187 | connections.insert(new Element("wtx:node",{"index":pincount,"x":hor+pinl,"y":y2})); 188 | pincount++; 189 | } 190 | y=space 191 | start=pinl; 192 | hor=h*space-pinl; 193 | if(h==0){ 194 | hor=60; 195 | y=pinl; 196 | start=0; 197 | } 198 | /*vertical top pins*/ 199 | for(var x=h*space;x>=space;x-=space){ 200 | svg = document.createElementNS(svgNamespace, 'line'); 201 | svg.setAttributeNS(null, 'x1',x ); 202 | svg.setAttributeNS(null, 'y1', 0); 203 | svg.setAttributeNS(null, 'x2', x); 204 | svg.setAttributeNS(null, 'y2', pinl); 205 | chipG.appendChild(svg); 206 | 207 | svg = document.createElementNS(svgNamespace, 'text'); 208 | svg.setAttributeNS(null, 'font-size', fontsize); 209 | svg.setAttributeNS(null, 'stroke','blue'); 210 | svg.setAttributeNS(null, 'stroke-width','0px'); 211 | svg.appendChild(document.createTextNode(pincount+1)); 212 | chipG.appendChild(svg); 213 | var box=svg.getBoundingClientRect(); 214 | svg.setAttributeNS(null, 'x', x); 215 | svg.setAttributeNS(null, 'y', fontsize); 216 | connections.insert(new Element("wtx:node",{"index":pincount,"x":x,"y":0})); 217 | pincount++; 218 | } 219 | 220 | 221 | svg=document.createElementNS(svgNamespace,'circle'); 222 | svg.setAttributeNS(null, 'cx', 20); 223 | svg.setAttributeNS(null, 'cy', start+10); 224 | svg.setAttributeNS(null, 'r', 3); 225 | chipG.id = 'U-' + createUUID(); 226 | chipG.appendChild(svg); 227 | chipG.appendChild(this.createwtx(connections)); 228 | return svgRoot; 229 | } 230 | } 231 | -------------------------------------------------------------------------------- /script/primatives.js: -------------------------------------------------------------------------------- 1 | Schematic.prototype.createtext = function(str,color,x,y){ 2 | var svg; 3 | 4 | svg = document.createElementNS(this.svgNs, 'text'); 5 | svg.setAttributeNS(null, 'x', x); 6 | svg.setAttributeNS(null, 'y', y); 7 | svg.setAttributeNS(null, 'font-size', this.fontsize); 8 | svg.setAttributeNS(null, 'fill', color); 9 | svg.setAttributeNS(null, 'stroke-width', '0px'); 10 | 11 | svg.appendChild(document.createTextNode(str)); 12 | return svg; 13 | } 14 | 15 | 16 | Schematic.prototype.createtspan=function(str,dx,dy){ 17 | var tspan = document.createElementNS(this.svgNs, 'tspan'); 18 | tspan.setAttributeNS(null, 'dx', dx); 19 | tspan.setAttributeNS(null, 'dy', dy); 20 | tspan.appendChild(document.createTextNode(str)); 21 | return tspan; 22 | } 23 | 24 | 25 | Schematic.prototype.createline = function(lineColor,lineWidth,left, top,right,bottom){ 26 | var svg; 27 | 28 | 29 | svg = document.createElementNS(this.svgNs, 'line'); 30 | 31 | svg.setAttributeNS(null, 'x1', left); 32 | svg.setAttributeNS(null, 'y1', top); 33 | svg.setAttributeNS(null, 'x2', right); 34 | svg.setAttributeNS(null, 'y2', bottom ); 35 | 36 | if (lineColor.length == 0) 37 | lineColor = 'none'; 38 | svg.setAttributeNS(null, 'stroke', lineColor); 39 | svg.setAttributeNS(null, 'stroke-width', lineWidth); 40 | 41 | return svg; 42 | 43 | } 44 | 45 | Schematic.prototype.createrect = function(color,opacity,x, y,width,height){ 46 | 47 | var svg = document.createElementNS(this.svgNs, 'rect'); 48 | svg.setAttributeNS(null, 'x', x); 49 | svg.setAttributeNS(null, 'y', y); 50 | svg.setAttributeNS(null, 'width', width); 51 | svg.setAttributeNS(null, 'height', height); 52 | svg.setAttributeNS(null, 'fill-opacity', opacity); 53 | svg.setAttributeNS(null, 'fill', color); 54 | svg.setAttributeNS(null, 'stroke', color); 55 | svg.setAttributeNS(null, 'stroke-width', '1'); 56 | return svg; 57 | 58 | } 59 | 60 | 61 | Schematic.prototype.createdot =function(lineColor,x,y,radius){ 62 | 63 | var svg; 64 | 65 | 66 | svg = this.container.ownerDocument.createElementNS(this.svgNs, 'circle'); 67 | svg.setAttributeNS(null, 'cx', x); 68 | svg.setAttributeNS(null, 'cy', y); 69 | svg.setAttributeNS(null, 'r', radius ); 70 | 71 | if (lineColor.length == 0) 72 | lineColor = 'none'; 73 | svg.setAttributeNS(null, 'stroke', lineColor); 74 | svg.setAttributeNS(null, 'fill', lineColor); 75 | 76 | return svg; 77 | } 78 | 79 | 80 | -------------------------------------------------------------------------------- /script/utils.js: -------------------------------------------------------------------------------- 1 | 2 | function openfile(Name,response){ 3 | var text; 4 | //console.log(Name); 5 | new Ajax.Request(Name,{ 6 | method:'get', 7 | asynchronous:true, 8 | contentType:"text/xml", 9 | onSuccess: function(transport){ 10 | response(transport.responseText); 11 | }, 12 | onFailure: function(){ 13 | console.log('Could not load file...'); 14 | response("Could not load file...\n"); 15 | }, 16 | onException: function(req,exception) { 17 | console.log(exception); 18 | alert("file load Exception "+Name); 19 | return true; 20 | }, 21 | }); 22 | 23 | } 24 | 25 | //http://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy 26 | 27 | function request(address, file, response){ 28 | 29 | var server=document.createElement("iframe"); 30 | server.style.display="none"; 31 | server.id=file; 32 | server.src=address+"/webtronix_server.html"; 33 | 34 | $("webtronics_main_window").appendChild(server); 35 | 36 | function receiveMessage(event){ 37 | if(event.data.filename==file){ 38 | console.log("received file"); 39 | server.parentNode.removeChild(server); 40 | response(event.data.text); 41 | } 42 | 43 | }; 44 | window.addEventListener("message", receiveMessage, false); 45 | //console.log(iframe.contentWindow.location.hostname); 46 | server.addEventListener("load",function(){ 47 | server.contentWindow.postMessage(file, "*" ); 48 | }); 49 | // server.src=url+"/webtronix_server.html?file="+file; 50 | } 51 | 52 | // This code was written by Tyler Akins and has been placed in the 53 | // public domain. It would be nice if you left this header intact. 54 | // Base64 code from Tyler Akins -- http://rumkin.com 55 | 56 | // schiller: Removed string concatenation in favour of Array.join() optimization, 57 | // also precalculate the size of the array needed. 58 | 59 | 60 | function encode64(input) { 61 | if(window.btoa){ 62 | return window.btoa(input); 63 | } 64 | // base64 strings are 4/3 larger than the original string 65 | var output = new Array( Math.floor( (input.length + 2) / 3 ) * 4 ); 66 | var chr1, chr2, chr3; 67 | var enc1, enc2, enc3, enc4; 68 | var i = 0, p = 0; 69 | var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; 70 | 71 | do { 72 | chr1 = input.charCodeAt(i++); 73 | chr2 = input.charCodeAt(i++); 74 | chr3 = input.charCodeAt(i++); 75 | 76 | enc1 = chr1 >> 2; 77 | enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); 78 | enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); 79 | enc4 = chr3 & 63; 80 | 81 | if (isNaN(chr2)) { 82 | enc3 = enc4 = 64; 83 | } 84 | else if (isNaN(chr3)) { 85 | enc4 = 64; 86 | } 87 | 88 | output[p++] = _keyStr.charAt(enc1); 89 | output[p++] = _keyStr.charAt(enc2); 90 | output[p++] = _keyStr.charAt(enc3); 91 | output[p++] = _keyStr.charAt(enc4); 92 | } while (i < input.length); 93 | 94 | return output.join(''); 95 | } 96 | 97 | function createUUID() 98 | { 99 | return [7].map(function(length) { 100 | var uuidpart = ""; 101 | for (var i=0; i 34 | 35 | 36 | 37 | 38 | 39 | 40 | r 41 | r 42 | resistor 43 | resistors 44 | 45 | 46 | 47 | 48 | 49 | 50 | */ 51 | /* 52 | # 53 | # BATTERY 54 | # 55 | DEF BATTERY BT 0 0 Y Y 1 F N 56 | F0 "BT" 0 200 50 H V C CNN 57 | F1 "BATTERY" 0 -190 50 H V C CNN 58 | F2 "" 0 0 60 H V C CNN 59 | F3 "" 0 0 60 H V C CNN 60 | DRAW 61 | C 0 0 150 0 1 6 N 62 | P 2 0 1 0 -100 0 -150 0 N 63 | P 2 0 1 6 -100 90 -100 -89 N 64 | P 2 0 1 6 -31 50 -31 -50 N 65 | P 2 0 1 6 39 90 39 -89 N 66 | P 2 0 1 0 100 0 150 0 N 67 | P 2 0 1 6 100 50 100 -50 N 68 | X + 1 -300 0 150 R 50 50 1 1 P 69 | X - 2 300 0 150 L 50 50 1 1 P 70 | ENDDRAW 71 | */ 72 | 73 | function part2lib(part){ 74 | 75 | 76 | 77 | 78 | 79 | } 80 | 81 | //webtronix parts contain path|circle|rect|line|text 82 | 83 | function wtxparts2kicadlib(){ 84 | 85 | var kicadlib=""; 86 | var parts=webtronics.circuit.svgRoot.getElementsByTagName("g").uniq(); 87 | for(var part in parts){ 88 | var kicadpart=""; 89 | 90 | //locate the pins 91 | var kicadpins=""; 92 | var nodes = webtronics.circuit.getwtxtagname(part,"node"); 93 | nodes.sort(function(a,b){if (a.index > b.index)return 1;if (a.index < b.index)return -1;return 0;}); 94 | for(var pin in nodes){ 95 | //find the line that is this pin 96 | var kicadpin="x ~ "+ webtronics.circuit.getwtxattribute(pin,"index") ; 97 | var point={x:webtronics.getwtxattribute(pin,"x"),y:webtronics.getwtxattribute(pin,"y")}; 98 | var lines={}; 99 | for(var l in part.getElementsByTagName("line")){ 100 | var x1 = l.getAttribute("x1"); 101 | var y1 = l.getAttribute("y1"); 102 | var x2 = l.getAttribute("x2"); 103 | var y2 = l.getAttribute("y2"); 104 | 105 | //pin end 106 | if((Math.abs(x1-point.x)<5)&&(Math.abs(y1-point.y)<5))kicadpin+=" "+ (x1*10) +" "+(y1*10); 107 | else if((Math.abs(x1-point.x)<5)&&(Math.abs(y1-point.y)<5))kicadpin+=" "+ (x2*10) +" "+(y2*10); 108 | else continue; 109 | //pin length 110 | if(x1 == x2) kicadpin += " " + (y1-y2*10); 111 | else kicadpin += " " + (x1-x2*10); 112 | 113 | //pin direction 114 | if(point.y y2)kicadpin+=" U"; 116 | else if(point.x < x2)kicadpin+=" R"; 117 | else kicadpin += " L"; 118 | //finish 119 | kicadpin += " 40 40 1 1 U"; 120 | 121 | kicadpins += kicadpin + "\n"; 122 | 123 | 124 | 125 | 126 | } 127 | } 128 | kicadpart+=kicadpins; 129 | 130 | 131 | var elems=part.getElementsByTagName("*") 132 | for(elem in elems){ 133 | switch(elem.tagName){ 134 | case "path": 135 | 136 | 137 | break; 138 | case "text": 139 | 140 | 141 | break; 142 | case "rect": 143 | 144 | 145 | break; 146 | case "line": 147 | 148 | 149 | break; 150 | case "circle": 151 | 152 | 153 | break; 154 | default: 155 | console.log(elem.tagName+ " not recognized"); 156 | break; 157 | } 158 | } 159 | kicadlib += kicadpart; 160 | } 161 | console.log(kicadlib); 162 | return kicadlib; 163 | } 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | -------------------------------------------------------------------------------- /spice.php: -------------------------------------------------------------------------------- 1 | $tempout"); 45 | 46 | try{ 47 | $image = new Imagick($tempimage); 48 | $image->setImageFormat("png"); 49 | header('Content-type: text/plain'); 50 | echo "data:image/png;base64,".base64_encode ( $image); 51 | } 52 | catch(Exception $e){ 53 | header('Content-type: text/plain'); 54 | echo file_get_contents($tempout); 55 | } 56 | 57 | #header('Content-length: '.strlen($output)); 58 | unlink($tempimage); 59 | unlink($tempout); 60 | 61 | 62 | ?> 63 | -------------------------------------------------------------------------------- /style/canvas.css: -------------------------------------------------------------------------------- 1 | body{ 2 | position:absolute; 3 | overflow:hidden; 4 | height:100%; 5 | width:100%; 6 | background-color:#000000; 7 | border-width: 0px; 8 | margin: 0px; 9 | padding: 0px; 10 | cursor:crosshair; 11 | -moz-user-select:none; 12 | -webkit-user-select:none; 13 | -ms-user-select:none; 14 | } 15 | 16 | .inv g,.inv rect,.inv line{ 17 | fill:black; 18 | stroke:white; 19 | } 20 | 21 | .inv circle,.inv text{ 22 | fill:white; 23 | stroke:white; 24 | } 25 | 26 | 27 | #information.inv>rect,.inv .schematic_tracker *,#information.inv>line{ 28 | fill:yellow; 29 | stroke:yellow; 30 | } 31 | #information.inv>circle{ 32 | fill:green; 33 | stroke:green; 34 | } 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /style/web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/style/web.png -------------------------------------------------------------------------------- /webtronix_server/amplifier/inst-amp.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | u 34 | u 35 | inst-amp 36 | amplifier 37 | 38 | 39 | 40 | true 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | + 51 | _ 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /webtronix_server/amplifier/op-amp.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | u 35 | u 36 | op-amp 37 | amplifier 38 | 39 | 40 | 41 | true 42 | 43 | 44 | 45 | 46 | 47 | 48 | + 49 | 50 | _ 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /webtronix_server/audio/speaker.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | r 25 | r 26 | testresistor 27 | resistors 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 43 | 48 | 52 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /webtronix_server/capacitors/capacitor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | c 24 | c 25 | capacitor 26 | capacitors 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 38 | 42 | 46 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /webtronix_server/capacitors/polar-cap.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | r 23 | r 24 | polar-cap 25 | capacitors 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 37 | 41 | 45 | 49 | + 55 | 56 | 57 | -------------------------------------------------------------------------------- /webtronix_server/capacitors/variablecap.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | c 23 | c 24 | varicap 25 | capacitors 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 38 | 42 | 46 | 50 | 54 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /webtronix_server/digital/adc_bridge.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | ada 18 | 19 | ada 20 | 21 | adc_bridge 22 | 23 | digital 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /webtronix_server/digital/and.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | and 22 | 23 | and 24 | and 25 | digital 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 37 | 41 | 45 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /webtronix_server/digital/dac_bridge.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | ad 22 | ad 23 | dac_bridge 24 | digital 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 37 | 41 | 48 | 52 | 56 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /webtronix_server/digital/nand.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | nand 26 | 27 | nand 28 | nand 29 | digital 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 41 | 45 | 49 | 53 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /webtronix_server/digital/nor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | nor 26 | 27 | nor 28 | nor 29 | digital 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 42 | 46 | 50 | 56 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /webtronix_server/digital/not.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | inv 24 | 25 | inv 26 | not 27 | digital 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 40 | 44 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /webtronix_server/digital/or.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | or 24 | 25 | or 26 | or 27 | digital 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 40 | 44 | 48 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /webtronix_server/digital/source.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | clock 13 | 14 | xclock 15 | source 16 | digital 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /webtronix_server/digital/xnor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | xnor 27 | 28 | xnor 29 | xnor 30 | digital 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /webtronix_server/digital/xor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | xor 27 | 28 | xor 29 | xor 30 | digital 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /webtronix_server/diodes/diode.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | d 13 | 14 | d 15 | diode 16 | diodes 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /webtronix_server/diodes/led.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | d 23 | 24 | d 25 | led 26 | diodes 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 40 | 44 | 48 | 52 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /webtronix_server/diodes/photodiode.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | d 23 | 24 | d 25 | photodiode 26 | diodes 27 | 28 | 29 | 30 | 31 | 32 | 33 | 37 | 41 | 46 | 50 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /webtronix_server/diodes/scr.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | d 24 | 25 | d 26 | scr 27 | diodes 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 40 | 44 | 48 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /webtronix_server/diodes/triac.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | d 23 | 24 | d 25 | triac 26 | diodes 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 38 | 42 | 47 | 51 | 59 | 63 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /webtronix_server/diodes/trigger.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | d 23 | 24 | d 25 | trigger 26 | diodes 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 39 | 43 | 47 | 51 | 55 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /webtronix_server/diodes/varicap.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | d 13 | 14 | d 15 | varicap 16 | diodes 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /webtronix_server/diodes/zener.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | d 23 | 24 | d 25 | zener 26 | diodes 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 39 | 43 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /webtronix_server/frequency/crystal.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | d 13 | 14 | d 15 | crystal 16 | frequency 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /webtronix_server/ic/3_pins.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | u 24 | u 25 | 3_pins 26 | ic 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 38 | 43 | 47 | 55 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /webtronix_server/ic/4_pins.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | u 25 | u 26 | 4_pins 27 | ic 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /webtronix_server/ic/5_pins.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | u 26 | ic 27 | u 28 | ic 29 | 30 | 31 | 32 | false 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /webtronix_server/inductors/coil.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | l 24 | 25 | l 26 | coil 27 | inductors 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /webtronix_server/inductors/tapcoil.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | l 25 | 26 | l 27 | tapcoil 28 | inductors 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /webtronix_server/inductors/transformer.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | l 30 | 31 | l 32 | transformer 33 | inductors 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 55 | 59 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /webtronix_server/parts.json: -------------------------------------------------------------------------------- 1 | { 2 | "parts":{ 3 | "ic":{ 4 | "3_pins":{}, 5 | "4_pins":{}, 6 | "5_pins":{} 7 | }, 8 | 9 | "amplifier":{ 10 | "op-amp":{ 11 | "help":"ux + - v- out v+ model

directive = include model file", 12 | "values":{ 13 | "lm324":["lm324.mod"], 14 | "lm358":["lm358.mod"], 15 | "741":["ua741.mod","lm741.mod"], 16 | "tl08x":["tl08x.mod"], 17 | "tl07x":["tl07x.mod"], 18 | "tl06x":["tl06x.mod"] 19 | } 20 | }, 21 | "inst-amp":{ 22 | "values":{ 23 | "ina128":["ina128.mod"], 24 | "ina333":["ina333.mod"], 25 | "ad620a":["ad620a.mod"], 26 | "ad8221":["ad8221.mod"] 27 | } 28 | } 29 | }, 30 | "digital":{ 31 | 32 | "adc_bridge":{ 33 | "ideal_adc":["digital.lib"] 34 | }, 35 | "dac_bridge":{ 36 | "ideal_dac":["digital.lib"] 37 | }, 38 | "source":{ 39 | "clk":["dsource.mod"] 40 | }, 41 | "and":{ 42 | "and(rise = 0.5e-9 fall = 0.3e-9)":[], 43 | "and1":["digital.lib"] 44 | }, 45 | "nand":{ 46 | "nand1":["digital.lib"] 47 | }, 48 | "nor":{ 49 | "nor1":["digital.lib"] 50 | }, 51 | "not":{ 52 | "inv1":["digital.lib"] 53 | }, 54 | "or":{ 55 | "or1":["digital.lib"] 56 | }, 57 | "xnor":{ 58 | "xnor":["digital.lib"] 59 | }, 60 | "xor":{ 61 | "xor":["digital.lib"] 62 | } 63 | }, 64 | 65 | "resistors":{ 66 | "photo-resistor":{}, 67 | "resistor":{ 68 | "help":"rx 1 2 value
rx = part id
value = 0-xMeg", 69 | "values":{ 70 | "10":[""], 71 | "100":[""], 72 | "1K":[""], 73 | "10K":[""], 74 | "100K":[""], 75 | "1.0Meg":[""], 76 | "10Meg":[""] 77 | } 78 | }, 79 | 80 | "vari-resistor":{}, 81 | "potentiometer":{} 82 | }, 83 | "transistors":{ 84 | "njfet":{ 85 | "values":{ 86 | "mpf102":["jfet.lib"], 87 | "2n3819":["jfet.lib"], 88 | "2n5457":["jfet.lib"], 89 | "2n5458":["jfet.lib"] 90 | 91 | } 92 | }, 93 | "npn":{ 94 | "values":{ 95 | 96 | "2n3904":["bjt.lib"], 97 | "2n2222":["bjt.lib"], 98 | "2n3055":["bjt.lib"] 99 | } 100 | }, 101 | "pjfet":{}, 102 | "pnp":{ 103 | "values":{ 104 | "2n3906":["bjt.lib"], 105 | "2n2907":["bjt.lib"] 106 | } 107 | }, 108 | "nmosfet":{ 109 | "values":{ 110 | "2n7000":["2n7000.mod"], 111 | "irf150":["irf150.mod"], 112 | "irf530":["irf530.mod"], 113 | "irfz44n":["irfz44n.mod"] 114 | } 115 | }, 116 | "phototrans":{}, 117 | "pmosfet":{} 118 | }, 119 | "audio":{ 120 | "speaker":{} 121 | }, 122 | 123 | "diodes":{ 124 | "diode":{ 125 | "values":{ 126 | 127 | "1n4148":["diode.lib"], 128 | "1n4007":["diode.lib"], 129 | "1n34a":["diode.lib"], 130 | "1n5711":["diode.lib"], 131 | "hsms286":["diode.lib"], 132 | "hsms282":["diode.lib"], 133 | "bat42":["diode.lib"], 134 | "bat54":["bat54.mod"] 135 | 136 | }, 137 | "help":"dx a k model
a=anode
k=kathode" 138 | 139 | }, 140 | "varicap":{ 141 | "values":{ 142 | "bb112":["varicap.lib"] 143 | } 144 | }, 145 | "led":{}, 146 | "photodiode":{}, 147 | "scr":{}, 148 | "triac":{}, 149 | "trigger":{}, 150 | "zener":{} 151 | }, 152 | "switches":{ 153 | 154 | "ncpb":{}, 155 | "nopb":{}, 156 | "spst-relay":{}, 157 | "spst-switch":{} 158 | }, 159 | "capacitors":{ 160 | "capacitor":{ 161 | "help":"cx 1 2 value", 162 | 163 | "values":{ 164 | 165 | "1pf":[""], 166 | "10pf":[""], 167 | "100pf":[""], 168 | "1nf":[""], 169 | "10nf":[""], 170 | "100nf":[""], 171 | "1uf":[""], 172 | "10uf":[""], 173 | "100uf":[""] 174 | 175 | } 176 | }, 177 | "polar-cap":{}, 178 | "variablecap":{} 179 | }, 180 | "frequency":{ 181 | "crystal":{} 182 | }, 183 | "inductors":{ 184 | "coil":{ 185 | "help":"lx 1 2 value

coupling directive
couples 2 inductors

kx lx lx value
lx = inductor id's
value = coupling", 186 | "values":{ 187 | "1h":[""], 188 | "100mh":[""], 189 | "10mh":[""], 190 | "1mh":[""], 191 | "100uh":[""], 192 | "10uh":[""], 193 | "1uh":[""], 194 | "100nh":[""], 195 | "10nh":[""], 196 | "1h":[""] 197 | } 198 | }, 199 | "tapcoil":{}, 200 | "transformer":{} 201 | }, 202 | "power":{ 203 | "current":{ 204 | 205 | "values":{ 206 | "DC 1ma":[""], 207 | "DC 10ma":[""], 208 | "DC 100ma":[""], 209 | "DC 1a":[""], 210 | "SIN(0 1ma 1KHZ)":[""], 211 | "SIN(0 10ma 1KHZ)":[""] 212 | } 213 | }, 214 | "ac":{ 215 | "help":"Choose an ac source value for 'value or model'

To do AC sweep

1. choose 'AC 1 sin'

2. Fill the spice directive with sweep parameters

3. Fill the measurements feild with the value to be measured, such as 'i(r1)' to measure the current through r1.", 216 | "values":{ 217 | "SIN(0 5v 1KHZ)":[""], 218 | "SIN(0 12v 60HZ)":[""], 219 | "SIN(0 120v 60HZ)":[""], 220 | "PWL(0 0 10ns 0 10ns 5 20ns 5)R=0":[""], 221 | "PULSE(0v 1v 0s 0s 0s 2ns 4ns)":[""], 222 | "PULSE(0v 3.3v 0s 0s 0s 8.3ms 16.6ms)":[""], 223 | "SFFM( 0 1V 20K 5 1K)":[""], 224 | "AC 1 SIN":[".ac lin 1000 1hz 100hz "] 225 | 226 | } 227 | }, 228 | "battery":{ 229 | "values":{ 230 | "dc 5v":[""], 231 | "dc 9v":[""], 232 | "dc 12v":[""] 233 | } 234 | }, 235 | "ground":{ 236 | "help":"Every circuit needs a ground for simulation to work.", 237 | "values":{} 238 | }, 239 | "namewire":{ 240 | "help":"Wires with the same name behave as if they where connected.", 241 | "values":{} 242 | } 243 | }, 244 | 245 | 246 | "test":{ 247 | "scope":{ 248 | "help":".TRAN step total
step = step size
total = total length of time", 249 | "values":{ 250 | ".probe fourier":[".fourier 0 1meg 1k"], 251 | ".print tran":[".TRAN 1NS 100NS", 252 | ".TRAN 1NS 1000NS 500NS", 253 | ".TRAN 10NS 1US UIC", 254 | ".TRAN 1ms 100ms"] 255 | 256 | } 257 | } 258 | } 259 | }, 260 | "model":{ 261 | "555":["555.mod"] 262 | } 263 | } 264 | -------------------------------------------------------------------------------- /webtronix_server/power/ac.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | v 13 | v 14 | ac 15 | power 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | + 29 | _ 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /webtronix_server/power/battery.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | v 23 | v 24 | battery 25 | power 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 37 | 41 | 45 | 49 | 53 | 57 | + 63 | _ 69 | 70 | 71 | -------------------------------------------------------------------------------- /webtronix_server/power/current.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | i 13 | i 14 | current 15 | power 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /webtronix_server/power/ground.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | gnd 24 | gnd 25 | ground 26 | power 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 39 | 43 | 47 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /webtronix_server/power/namewire.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | wire 23 | wire 24 | namewire 25 | power 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 41 | 45 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /webtronix_server/power/positive.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | wire 26 | wire 27 | positive 28 | power 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 45 | 49 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /webtronix_server/predefined/555.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 555 29 | u 30 | 555 31 | model 32 | 555 33 | 34 | 35 | false 36 | 37 | 38 | 45 | 7 46 | 47 | 48 | 49 | 6 50 | 51 | 52 | 53 | 2 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 8 62 | 63 | 64 | 4 65 | 66 | 67 | 68 | 5 69 | 70 | 71 | 1 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 3 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /webtronix_server/resistors/photo-resistor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | r 27 | r 28 | photoresistor 29 | resistors 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 42 | 46 | 50 | 54 | 58 | 63 | 67 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /webtronix_server/resistors/potentiometer.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | r 28 | r 29 | potentiometer 30 | resistors 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 42 | 46 | 50 | 55 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /webtronix_server/resistors/resistor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | r 22 | r 23 | resistor 24 | resistors 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 38 | 42 | 46 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /webtronix_server/resistors/testresistor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | r 22 | r 23 | testresistor 24 | resistors 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 37 | 41 | 45 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /webtronix_server/resistors/vari-resistor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | r 26 | r 27 | variresistor 28 | resistors 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 41 | 45 | 49 | 53 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /webtronix_server/spice/2n7000.mod: -------------------------------------------------------------------------------- 1 | * 2N7000 model 2 | * External Node Designations 3 | * Node 1 -> Drain 4 | * Node 2 -> Gate 5 | * Node 3 -> Source 6 | 7 | .SUBCKT 2n7000 1 2 3 8 | M1 9 7 8 8 MM L=100u W=100u 9 | 10 | .MODEL MM NMOS LEVEL=1 IS=1e-32 11 | +VTO=2.236 LAMBDA=0 KP=0.0932174 12 | +CGSO=1.79115e-07 CGDO=1.0724e-11 13 | 14 | RS 8 3 1.10523 15 | D1 3 1 MD 16 | 17 | .MODEL MD D IS=2.71011e-10 RS=0.0140826 N=1.5 BV=60 18 | +IBV=1e-05 EG=1.16084 XTI=3.00131 TT=0 19 | +CJO=3.41211e-11 VJ=4.67429 M=0.899864 FC=0.1 20 | 21 | RDS 3 1 2.4e+11 22 | RD 9 1 0.0001 23 | RG 2 7 2.18034 24 | D2 4 5 MD1 25 | 26 | .MODEL MD1 D IS=1e-32 N=50 27 | +CJO=7.93181e-11 VJ=0.643298 M=0.9 FC=1e-08 28 | 29 | D3 0 5 MD2 30 | .MODEL MD2 D IS=1e-10 N=0.400165 RS=3.00002e-06 31 | 32 | RL 5 10 1 33 | FI2 7 9 VFI2 -1 34 | VFI2 4 0 0 35 | EV16 10 0 9 7 1 36 | CAP 11 10 1.58786e-10 37 | FI1 7 9 VFI1 -1 38 | VFI1 11 6 0 39 | RCAP 6 10 1 40 | D4 0 6 MD3 41 | 42 | .MODEL MD3 D IS=1e-10 N=0.400165 43 | .ENDS 2n7000 44 | -------------------------------------------------------------------------------- /webtronix_server/spice/555.mod: -------------------------------------------------------------------------------- 1 | . 2 | .SUBCKT 555 34 32 30 19 23 33 1 21 3 | * G TR O R F TH D V 4 | Q4 25 2 3 QP 5 | Q5 34 6 3 QP 6 | Q6 6 6 8 QP 7 | R1 9 21 4.7K 8 | R2 3 21 830 9 | R3 8 21 4.7K 10 | Q7 2 33 5 QN 11 | Q8 2 5 17 QN 12 | Q9 6 4 17 QN 13 | Q10 6 23 4 QN 14 | Q11 12 20 10 QP 15 | R4 10 21 1K 16 | Q12 22 11 12 QP 17 | Q13 14 13 12 QP 18 | Q14 34 32 11 QP 19 | Q15 14 18 13 QP 20 | R5 14 34 100K 21 | R6 22 34 100K 22 | R7 17 34 10K 23 | Q16 1 15 34 QN 24 | Q17 15 19 31 QP 25 | R8 18 23 5K 26 | R9 18 34 5K 27 | R10 21 23 5K 28 | Q18 27 20 21 QP 29 | Q19 20 20 21 QP 30 | R11 20 31 5K 31 | D1 31 24 DA 32 | Q20 24 25 34 QN 33 | Q21 25 22 34 QN 34 | Q22 27 24 34 QN 35 | R12 25 27 4.7K 36 | R13 21 29 6.8K 37 | Q23 21 29 28 QN 38 | Q24 29 27 16 QN 39 | Q25 30 26 34 QN 40 | Q26 21 28 30 QN 41 | D2 30 29 DA 42 | R14 16 15 100 43 | R15 16 26 220 44 | R16 16 34 4.7K 45 | R17 28 30 3.9K 46 | Q3 2 2 9 QP 47 | .MODEL DA D (RS=40 IS=1.0E-14 CJO=1PF) 48 | .MODEL QP PNP (level=1 BF=20 BR=0.02 RC=4 RB=25 IS=1.0E-14 VA=50 NE=2) 49 | + CJE=12.4P VJE=1.1 MJE=.5 CJC=4.02P VJC=.3 MJC=.3 TF=229P TR=159N) 50 | .MODEL QN NPN (level=1 IS=5.07F NF=1 BF=100 VAF=161 IKF=30M ISE=3.9P NE=2 51 | + BR=4 NR=1 VAR=16 IKR=45M RE=1.03 RB=4.12 RC=.412 XTB=1.5 52 | + CJE=12.4P VJE=1.1 MJE=.5 CJC=4.02P VJC=.3 MJC=.3 TF=229P TR=959P) 53 | .ENDS 54 | -------------------------------------------------------------------------------- /webtronix_server/spice/ad620a.mod: -------------------------------------------------------------------------------- 1 | * AD620A SPICE Macro-model 2 | * Description: Amplifier 3 | * Generic Desc: 30/36V Bipolar, Inamp, prec G=1-10,000 4 | * Developed by: ARG/ADSC 5 | * Revision History: 08/10/2012 - Updated to new header style 6 | * 1.0 - Added V2,V3,V12,V13 and D3,D4,D15,D16 to clamp inputs to Q3,Q4 to prevent output phase reversal. 7 | * Copyright 1990, 2012 by Analog Devices, Inc. 8 | * 9 | * Refer to http://www.analog.com/Analog_Root/static/techSupport/designTools/spiceModels/license/spice_general.html for License Statement. Use of this model 10 | * indicates your acceptance with the terms and provisions in the License Statement. 11 | * 12 | * BEGIN Notes: 13 | * 14 | * Not Modeled: 15 | * 16 | * Parameters modeled include: 17 | * This version of the AD620 model simulates the worst-case parameters of the 'A' grade. 18 | * The worst-case parameters 19 | * used correspond to those in the data sheet. 20 | * 21 | * END Notes 22 | * 23 | * Node assignments 24 | * non-inverting input 25 | * | inverting input 26 | * | | positive supply 27 | * | | | negative supply 28 | * | | | | output 29 | * | | | | | ref 30 | * | | | | | | rg1 31 | * | | | | | | | rg2 32 | * | | | | | | | | 33 | *.SUBCKT AD620A 1 2 99 50 46 20 7 8 34 | .SUBCKT AD620A 1 7 8 2 50 20 46 99 35 | * 36 | * INPUT STAGE 37 | * 38 | I1 7 50 5.002E-6 39 | I2 8 50 5.002E-6 40 | IOS 3 4 0.5E-9 41 | VIOS 21 3 125E-6 42 | CCM 3 4 2E-12 43 | CD1 3 0 2E-12 44 | CD2 4 0 2E-12 45 | Q1 5 4 7 QN1 46 | Q2 6 21 8 QN1 47 | D1 7 4 DX 48 | D2 8 21 DX 49 | R1 1 3 400 50 | R2 2 4 400 51 | R3 99 5 100E3 52 | R4 99 6 100E3 53 | R5 7 9 24.7E3 54 | R6 8 10 24.7E3 55 | E1 9 46 (11,5) 375E6 56 | E2 10 46 (11,6) 375E6 57 | V1 99 11 0.5 58 | RV1 99 11 1E3 59 | CC1 5 9 4E-12 60 | CC2 6 10 4E-12 61 | * 62 | * DIFFERENCE AMPLIFIER AND POLE AT 1MHZ 63 | * 64 | I3 18 50 5E-6 65 | R7 99 12 11.937E3 66 | R8 99 15 11.937E3 67 | R9 14 18 1.592E3 68 | R10 17 18 1.592E3 69 | R11 9 13 10E3 70 | R12 13 46 10E3 71 | Q3 12 13 14 QN2 72 | Q4 15 16 17 QN2 73 | R13 19 16 10E3 74 | R14 16 20 10E3 75 | C1 12 15 6.667E-12 76 | EOOS 19 10 POLY (38,98) 1.5E-3 223.872 77 | *EREF 98 0 POLY(2) (99,0) (50,0) 0 0.5 0.5 78 | EREF1 98 97 poly (99,0) 0 0.5 0.5 79 | EREF2 97 0 poly (50,0) 0 0.5 0.5 80 | D3 13 51 DX 81 | D4 16 52 DX 82 | V2 99 51 0.7 83 | V3 99 52 0.7 84 | D15 53 13 DX 85 | D16 54 16 DX 86 | V12 53 50 0.7 87 | V13 54 50 0.7 88 | * 89 | * GAIN STAGE AND DOMINANT POLE AT 0.667HZ 90 | * 91 | R16 25 98 35.810E9 92 | C2 25 98 6.667E-12 93 | G1 98 25 (12,15) 83.776E-6 94 | V6 99 26 1.53 95 | V7 27 50 1.33 96 | D7 25 26 DX 97 | D8 27 25 DX 98 | * 99 | * POLE AT 10MHZ 100 | * 101 | R17 40 98 1 102 | C3 40 98 15.916E-9 103 | G2 98 40 (25,98) 1 104 | * 105 | * COMMON MODE STAGE WITH ZERO AT 708HZ 106 | * 107 | *E3 36 98 POLY(2) (1,98) (2,98) 0 0.5 0.5 108 | E4 36 96 poly (1,98) 0 0.5 0.5 109 | E5 96 98 poly (2,98) 0 0.5 0.5 110 | R18 36 38 1E6 111 | R19 38 98 1 112 | C5 36 38 224.812E-12 113 | * 114 | * OUTPUT STAGE 115 | * 116 | GSY 99 50 POLY (99,50) 1.1725E-3 3.125E-6 117 | RO1 99 45 250 118 | RO2 45 50 250 119 | L1 45 46 1E-6 120 | GO1 45 99 (99,40) 4E-3 121 | GO2 50 45 (40,50) 4E-3 122 | GC1 43 50 (40,45) 4E-3 123 | GC2 44 50 (45,40) 4E-3 124 | F1 45 0 V4 1 125 | F2 0 45 V5 1 126 | V4 41 45 1.65 127 | V5 45 42 1.65 128 | D9 50 43 DY 129 | D10 50 44 DY 130 | D11 99 43 DX 131 | D12 99 44 DX 132 | D13 40 41 DX 133 | D14 42 40 DX 134 | * 135 | * MODELS USED 136 | * 137 | .MODEL DX D(IS=1E-12) 138 | .MODEL DY D(IS=1E-12 BV=50) 139 | .MODEL QN1 NPN(BF=2.5E3 KF=0.7E-15 AF=1) 140 | .MODEL QN2 NPN(BF=250 KF=0.5E-14 AF=1) 141 | .ENDS AD620A 142 | 143 | 144 | -------------------------------------------------------------------------------- /webtronix_server/spice/ad8221.mod: -------------------------------------------------------------------------------- 1 | * AD8221 SPICE Macro-model 2 | * Description: Amplifier 3 | * Generic Desc: 30/36V Bipolar, IN AMP, Hi CMRR ,Single 4 | * Developed by: PRB IAP ADI 5 | * Revision History: 08/10/2012 - Updated to new header style 6 | * 1.0 (10/2010) - Changed Negative Zero stage to remove the 7 | * negative capacitor value. 8 | * Copyright 2012 by Analog Devices. 9 | * 10 | * Refer to http://www.analog.com/Analog_Root/static/techSupport/designTools/spiceModels/license/spice_general.html for License Statement. Use of this model 11 | * indicates your acceptance with the terms and provisions in the License Statement. 12 | * 13 | * BEGIN Notes: 14 | * 15 | * Not Modeled: 16 | * Temperature effects 17 | * PSRR 18 | * Parameters modeled include: 19 | * 20 | * END Notes 21 | * 22 | * Node assignments 23 | * inverting input 24 | * | RG 25 | * | | RG 26 | * | | | non_inverting input 27 | * | | | | negative supply 28 | * | | | | | ref 29 | * | | | | | | output 30 | * | | | | | | | positive supply 31 | * | | | | | | | | 32 | .SUBCKT AD8221 IN+ RG+ RG- IN- -Vs REF VOUT +Vs 33 | ** INPUT STAGER1 sub_out sub_neg 10E3 34 | R1 sub_out sub_neg 10E3 35 | R2 sub_neg Inverting_Out 10E3 36 | R3 sub_pos noninverting_out 10001 37 | R4 REF sub_pos 10k 38 | R5 RG- N003 24700 39 | R6 RG+ N010 24724 40 | D3 N003 P001 D 41 | D4 P002 N003 D 42 | V3 P002 VNEGx 0.94 43 | V4 VPOSx P001 .71 44 | D5 N010 P003 D 45 | D6 P004 N010 D 46 | V5 P004 VNEGx 0.94 47 | V6 VPOSx P003 .71 48 | D7 N005 P005 D 49 | D8 P006 N005 D 50 | V7 P006 VNEGx 2.0 51 | V8 VPOSx P005 1.7 52 | D9 N016 P007 D 53 | D10 P008 N016 D 54 | V9 P008 VNEGx 2.0 55 | V10 VPOSx P007 1.7 56 | D11 N009 P009 D 57 | D12 P010 N009 D 58 | V11 P010 N017 1.7 59 | V12 N008 P009 1.7 60 | D13 REF P011 D 61 | D14 P012 REF D 62 | V13 P012 VNEGx .3 63 | V14 VPOSx P011 .3 64 | D15 sub_pos P013 D 65 | D16 P014 sub_pos D 66 | V15 P014 VNEGx 0.9 67 | V16 VPOSx P013 0.9 68 | E4 Inverting_Out 0 N003 0 1 69 | E5 noninverting_out 0 N010 0 1 70 | V1 VBIAS +Vs 20 71 | I1 VBIAS Pos_Fdbk 20E-6 72 | I2 VBIAS Inv_Fdbk 20E-6 73 | C1 N003 Inv_Fdbk 9.235e-12 74 | C2 N010 Pos_Fdbk 9.2e-12 75 | E8 N002 0 N005 0 1 76 | E9 N013 0 N016 0 1 77 | VOSI_Neg N004 IN- 25E-6 78 | VOSI_Pos IN+ N014 24E-6 79 | VOSO VOUT N009 300E-6 80 | C3 RG- 0 .200e-12 81 | C4 RG+ 0 .135e-12 82 | I23 IN- 0 1.4E-9 83 | I24 IN+ 0 0.8E-9 84 | G1 0 IN+ N018 N019 .0025e-9 85 | R13 IN+ N018 10e9 86 | R14 N018 IN- 10e9 87 | R15 +Vs N019 10e9 88 | R16 N019 -Vs 10e9 89 | G2 0 IN- N018 N019 .0025e-9 90 | E10 VPOSx 0 +Vs 0 1 91 | I3 +Vs -Vs 900E-6 92 | G3 +Vs -Vs +Vs -Vs 1e-6 93 | E11 VNEGx 0 -Vs 0 1 94 | 95 | H3 N006 N004 V24 4.5 96 | V24 N001 0 0 97 | R19 N001 0 .0166 98 | H4 VX sub_out V25 64 99 | V25 N007 0 0 100 | R20 N007 0 .0166 101 | H5 N015 N014 V26 4.5 102 | V26 N011 0 0 103 | R21 N011 0 .0166 104 | G4 0 N005 N006 N005 1 105 | G5 0 N016 N015 N016 1 106 | G6 0 N003 VBIAS Inv_Fdbk 1 107 | G7 0 N010 VBIAS Pos_Fdbk 1 108 | G8 0 sub_out sub_pos sub_neg 1 109 | R10 N005 0 10e9 110 | R7 N003 0 10E9 111 | R11 N016 0 10E9 112 | R8 N010 0 10E9 113 | R9 sub_out 0 10E9 114 | Q1 Pos_Fdbk N013 RG+ 0 NPN 115 | Q2 Inv_Fdbk N002 RG- 0 NPN 116 | G9 0 N012 VY N009 1 117 | G10 0 N009 N012 0 .002 118 | R12 N012 0 1e10 119 | R17 N009 0 500 120 | C5 N012 0 1.4e-7 121 | C6 N009 0 700e-12 122 | C8 VY 0 1e-9 123 | *G11 0 VY VALUE = { LIMIT( 1*V(VX,VY), .002, -.002) } 124 | g11 0 vy vx vy fit ( -18, -.002 18, .002 ) order=1 above=.002 below=-.002 125 | R22 VY 0 1e9 126 | R18 VBIAS Inv_Fdbk 1e9 127 | R23 Pos_Fdbk VBIAS 1e9 128 | D1 sub_out P015 D 129 | V2 VPOSx P015 1.7 130 | D2 P016 sub_out D 131 | V17 P016 VNEGx 1.7 132 | 133 | H1 VPOSx N008 POLY(1) VOSO 0 0 8000 134 | H2 N017 VNEGx POLY(1) VOSO 0 0 8000 135 | 136 | * MODELS USED 137 | * 138 | .model D D 139 | .model NPN NPN 140 | .ENDS AD8221 141 | 142 | -------------------------------------------------------------------------------- /webtronix_server/spice/bat54.mod: -------------------------------------------------------------------------------- 1 | .SUBCKT bat54 1 3 2 | * The Resistor R1 does not reflect 3 | * a physical device. Instead it 4 | * improves modeling in the reverse 5 | * mode of operation. 6 | * 7 | R1 1 3 3.6E+07 8 | D1 1 3 BAT54 9 | * 10 | .MODEL BAT54 D( 11 | + IS = 2.117E-07 12 | + N = 1.016 13 | + BV = 36 14 | + IBV = 1.196E-06 15 | + RS = 2.637 16 | + CJO = 1.114E-11 17 | + VJ = 0.2013 18 | + M = 0.3868 19 | + FC = 0 20 | + TT = 0 21 | + EG = 0.69 22 | + XTI = 2) 23 | * 24 | .ENDS BAT54 25 | -------------------------------------------------------------------------------- /webtronix_server/spice/bjt.lib: -------------------------------------------------------------------------------- 1 | 2 | 3 | .model 2N2222 NPN(IS=14.34F XTI=3 EG=1.11 VAF= 74.03 BF=255.9 4 | + NE=1.307 ISE=14.34F IKF=.2847 XTB=1.5 BR=6.092 NC=2 5 | + ISC=0 IKR=0 RC=1 CJC=7.306P MJC=.3416 VJC=.75 FC=.5 6 | + CJE=22.01P MJE=.377 VJE=.75 TR=46.91N TF=411.1P ITF=.6 7 | + VTF=1.7 XTF=3 RB=10) 8 | 9 | .MODEL 2N2907 PNP (IS=15.294E-15 BF=297.85 VAF=100 IKF=1.6607 ISE=29.577E-15 10 | + NE=1.5507 BR=476 VAR=100 IKR=2.2270 ISC=7.6418E-9 NC=2.1591 NK=.97918 11 | + RB=2.4875 RC=.69253 CJE=33.186E-12 VJE=.8716 MJE=.40799 CJC=15.649E-12 12 | + VJC=.56868 MJC=.3619 TF=456.18E-12 XTF=22.393 VTF=28.493 ITF=.62109 13 | + TR=10.000E-9 ) 14 | 15 | .model 2N3904 NPN(Is=6.734f Xti=3 Eg=1.11 Vaf=74.03 Bf=416.4 Ne=1.259 16 | + Ise=6.734f Ikf=66.78m Xtb=1.5 Br=.7371 Nc=2 Isc=0 Ikr=0 Rc=1 17 | + Cjc=3.638p Mjc=.3085 Vjc=.75 Fc=.5 Cje=4.493p Mje=.2593 Vje=.75 18 | + Tr=239.5n Tf=301.2p Itf=.4 Vtf=4 Xtf=2 Rb=10) 19 | 20 | 21 | .model 2n3906 PNP(Is=455.9E-18 Xti=3 Eg=1.11 Vaf=33.6 Bf=204.7 Ise=7.558f 22 | + Ne=1.536 Ikf=.3287 Nk=.9957 Xtb=1.5 Var=100 Br=3.72 23 | + Isc=529.3E-18 Nc=15.51 Ikr=11.1 Rc=.8508 Cjc=10.13p Mjc=.6993 24 | + Vjc=1.006 Fc=.5 Cje=10.39p Mje=.6931 Vje=.9937 Tr=10n Tf=181.2p 25 | + Itf=4.881m Xtf=.7939 Vtf=10 Rb=10) 26 | 27 | *2N3055 28 | *Si 115W 70V 15A 20kHz pkg:TO-3 3,2,1 29 | 30 | .MODEL 2N3055 NPN(IS=4.66E-12 BF=360 VAF=100 IKF=0.25 ISE=3.339E-11 31 | + BR=2 ISC=5E-9 RB=3 IRB=0.001 RBM=0.4 RC=0.04 CJE=5.802E-10 VJE=1.2 32 | + MJE=0.45 TF=8E-8 XTF=1 ITF=3 PTF=120 CJC=2.121E-10 MJC=0.4 TR=2.55E-6 33 | + XTB=1 ) 34 | 35 | -------------------------------------------------------------------------------- /webtronix_server/spice/digital.lib: -------------------------------------------------------------------------------- 1 | .model and1 and(rise = 0.5e-9 fall = 0.3e-9) 2 | 3 | .model nand1 nand(rise = 0.5e-9 fall = 0.3e-9) 4 | 5 | .model or1 or(rise = 0.5e-9 fall = 0.3e-9) 6 | 7 | .model nor1 nor(rise = 0.5e-9 fall = 0.3e-9) 8 | 9 | .model xor1 xor(rise = 0.5e-9 fall= 0.3e-9) 10 | 11 | .model inv1 inv(rise = 0.5e-9 fall = 0.3e-9) 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /webtronix_server/spice/diode.lib: -------------------------------------------------------------------------------- 1 | .model 1n4007 D(IS=3.872n RS=1.66E-02 N=1.776 XTI=3.0 EG=1.110 2 | + CJO=1.519E-11 M=0.3554 VJ=0.5928 FC=0.5 ISR=1.356E-09 3 | + NR=2.152 BV=1000.0 IBV=1.0E-03 Tt=4u) 4 | 5 | .model 1n4148 D(Is=5.84n N=1.94 Rs=.7017 Ikf=44.17m Xti=3 Eg=1.11 Cjo=.95p 6 | + M=.55 Vj=.75 Fc=.5 Isr=11.07n Nr=2.088 Bv=100 Ibv=100u Tt=11.07n) 7 | 8 | .MODEL 1N34A D(bv=75 cjo=0.5e-12 eg=0.67 ibv=18e-3 9 | + is=2e-7 rs=7 n=1.3 vj=0.1 m=0.27 ) 10 | 11 | 12 | .MODEL 1N5711 D (IS=5.5987E-9 N=1.0023 RS=30.053 IKF=19.036 CJO=1.7605E-12 13 | + M=.20029 VJ=.3905 ISR=24.229E-9 NR=4.1695 FC=0.5 TT=0 XTI=2) 14 | 15 | .MODEL bat42 D (IS=480.77E-6 N=4.9950 RS=40.150E-3 IKF=20.507 16 | + EG=.69 XTI=2 CJO=13.698E-12 M=.50005 VJ=.38464 ISR=10.010E-21 17 | + FC=0.5 NR=4.9950 TT=0) 18 | 19 | .MODEL mmsd301t1 d(IS=7.59492e-08 RS=4.93246 N=1.53455 EG=0.608881 20 | +XTI=4 BV=30 IBV=1e-05 CJO=2.26925e-12 21 | +VJ=0.4 M=0.260918 FC=0.5 TT=2.98638e-09 22 | +KF=0 AF=1) 23 | 24 | .MODEL hsms286 D(IS=5E-8, CJO=0.18E-12, VJ=.65, BV=7, IBV=10E-5 25 | + EG=0.69, N=1.08, RS=5, XTI=2, M=0.5) 26 | 27 | .MODEL hsms282 D(IS=4.8E-8, CJO=0.649E-12, VJ=.56, BV=26.7, IBV=10E-4 28 | + EG=0.69, N=1.067, RS=7.8, XTI=2, M=0.5) 29 | -------------------------------------------------------------------------------- /webtronix_server/spice/dsource.mod: -------------------------------------------------------------------------------- 1 | .SUBCKT clk 1 2 | 3 | vclk 0 1 pulse(0 -5 0 0 0 1m 2m) 4 | 5 | .ENDS 6 | 7 | -------------------------------------------------------------------------------- /webtronix_server/spice/ina128.mod: -------------------------------------------------------------------------------- 1 | 2 | 3 | * INA128 4 | ***************************************************************************** 5 | * (C) Copyright 2011 Texas Instruments Incorporated. All rights reserved. 6 | ***************************************************************************** 7 | ** This model is designed as an aid for customers of Texas Instruments. 8 | ** TI and its licensors and suppliers make no warranties, either expressed 9 | ** or implied, with respect to this model, including the warranties of 10 | ** merchantability or fitness for a particular purpose. The model is 11 | ** provided solely on an "as is" basis. The entire risk as to its quality 12 | ** and performance is with the customer. 13 | ***************************************************************************** 14 | * 15 | * This model is subject to change without notice. Texas Instruments 16 | * Incorporated is not responsible for updating this model. 17 | * 18 | ***************************************************************************** 19 | * 20 | ** Released by: Analog eLab Design Center, Texas Instruments Inc. 21 | * Part: INA128 22 | * Date: 08JUL2011 23 | * Model Type: ALL IN ONE 24 | * Simulator: PSPICE 25 | * Simulator Version: 16.0.0.p001 26 | * EVM Order Number: N/A 27 | * EVM Users Guide: N/A 28 | * Datasheet: SBOS051B - OCTOBER 1995 - REVISED FEBRUARY 2005 29 | * 30 | * Model Version: 1.0 31 | * 32 | ***************************************************************************** 33 | * 34 | * Updates: 35 | * 36 | * Version 1.0 : 37 | * Release to Web 38 | * 39 | ***************************************************************************** 40 | * COMMENTS 41 | * CONNECTIONS: + 42 | * | - 43 | * | | V+ 44 | * | | | V- 45 | * | | | | Out 46 | * | | | | | REF 47 | * | | | | | | RG1 48 | * | | | | | | | RG2 49 | * | | | | | | | | 50 | * PIN CONFIG FOR INA128 1 2 3 4 5 8 9 10 51 | ***************************************************************************** 52 | *Webtronix pin config + rg1 rg2 - v- ref out v+ 53 | .SUBCKT INA128 1 9 10 2 4 8 5 3 54 | 55 | X1 15 17 3 4 11 A1_128E 56 | X2 15 16 3 4 12 A2_128E 57 | X3 14 13 3 4 5 A3_128E 58 | * 59 | R1 11 13 40.0000K 60 | R2 13 5 39.996K 61 | R3 12 14 40.0000K 62 | R4 14 8 40.0000K 63 | CIN 13 14 4.0000PF 64 | * 65 | R1FB 9 11 25.000K 66 | CC1 17 11 5.0000PF 67 | R2FB 10 12 25.000K 68 | CC2 16 12 5.0000PF 69 | CG1 9 0 10.0000PF 70 | CG2 10 0 8.0000PF 71 | * 72 | RCE 17 9 20G 73 | * 74 | I1 3 16 DC 20.00E-6 75 | I2 3 17 DC 20.00E-6 76 | IB1CAN 3 42 DC 40.00E-9 77 | IB2CAN 3 46 DC 40.00E-9 78 | IBAL 0 4 DC 6.5E-6 79 | * 80 | D1 15 17 DX 81 | D2 15 16 DX 82 | * 83 | Q1 16 42 10 QX 84 | Q2 17 46 9 QX 85 | * 86 | V1 3 15 DC 1.700 87 | 88 | * INPUT PROTECTION 89 | RIN1 1 41 1K 90 | I11 41 42 .7MA 91 | S11 41 42 1 41 SP 92 | DI1 43 41 DX 93 | I12 4 43 DC .8MA 94 | S12 4 43 1 41 SM 95 | 96 | RIN2 2 45 1K 97 | I21 45 46 .7MA 98 | S21 45 46 2 45 SP 99 | DI2 47 45 DX 100 | I22 4 47 DC .8MA 101 | S22 4 47 2 45 SM 102 | 103 | * Anti-inversion clamps * 104 | VSET1 3 40 DC 2.0 105 | QSET1 4 40 42 QY 106 | VSET2 3 44 DC 2.0 107 | QSET2 4 44 46 QY 108 | 109 | .model sp vswitch(ron=10 roff=100E3 von=.7 voff=1) 110 | .model sm vswitch(ron=10 roff=100E3 von=-.7 voff=-1) 111 | .MODEL DX D(IS=1.0E-24) 112 | .MODEL QX NPN(IS=800.0E-18 BF=500) 113 | .MODEL QY PNP(IS=800.0E-18 BF=500) 114 | .ENDS INA128 115 | * 116 | * connections: non-inverting input 117 | * | inverting input 118 | * | | positive power supply 119 | * | | | negative power supply 120 | * | | | | output 121 | * | | | | | 122 | .subckt A1_128E 1 2 3 4 5 123 | * 124 | c1 11 12 2.887E-12 125 | c2 6 7 10.00E-12 126 | css 10 99 1.000E-30 127 | dc 5 53 dx 128 | de 54 5 dx 129 | dlp 90 91 dx 130 | dln 92 90 dx 131 | dp 4 3 dx 132 | * egnd 99 0 poly(2) (3,0) (4,0) 0 .5 .5 133 | egnd 99 0 3 0 .5 134 | egnd 99 0 4 0 .5 135 | * fb 7 99 poly(5) vb vc ve vlp vln 0 79.58E6 -80E6 80E6 80E6 -80E6 136 | fb 7 99 vb 79.58E6 137 | fb 7 99 vc -80E6 138 | fb 7 99 ve 80E6 139 | fb 7 vlp 80E6 140 | fb 7 vln -80E6 141 | ga 6 0 11 12 1.257E-3 142 | gcm 0 6 10 99 125.7E-12 143 | iss 3 10 dc 50.00E-6 144 | hlim 90 0 vlim 1K 145 | j1 11 2 10 jx 146 | j2 12 1 10 jx 147 | r2 6 9 100.0E3 148 | rd1 4 11 795.8 149 | rd2 4 12 795.8 150 | ro1 8 5 10 151 | ro2 7 99 10 152 | rss 10 99 4.000E6 153 | vb 9 0 dc 0 154 | vc 3 53 dc 1.5 155 | ve 54 4 dc .9 156 | vlim 7 8 dc 0 157 | vlp 91 0 dc 14 158 | vln 0 92 dc 14 159 | 160 | * OUTPUT SUPPLY MIRROR 161 | FQ3 0 20 POLY(1) VLIM 0 1 162 | DQ1 20 21 DX 163 | DQ2 22 20 DX 164 | VQ1 21 0 0 165 | VQ2 22 0 0 166 | FQ1 3 0 POLY(1) VQ1 120u 1 167 | FQ2 0 4 POLY(1) VQ2 120u -1 168 | RP 3 4 3.00E6 169 | 170 | .model dx D(Is=800.0E-18) 171 | .model jx PJF(Is=15.00E-12 Beta=31.58E-3 Vto=-1) 172 | .ends 173 | 174 | * connections: non-inverting input 175 | * | inverting input 176 | * | | positive power supply 177 | * | | | negative power supply 178 | * | | | | output 179 | * | | | | | 180 | .subckt A2_128E 1 2 3 4 5 181 | * 182 | c1 11 12 2.887E-12 183 | c2 6 7 10.00E-12 184 | css 10 99 1.000E-30 185 | dc 5 53 dx 186 | de 54 5 dx 187 | dlp 90 91 dx 188 | dln 92 90 dx 189 | dp 4 3 dx 190 | egnd 99 0 poly(2) (3,0) (4,0) 0 .5 .5 191 | fb 7 99 poly(5) vb vc ve vlp vln 0 79.58E6 -80E6 80E6 80E6 -80E6 192 | ga 6 0 11 12 1.257E-3 193 | gcm 0 6 10 99 125.7E-12 194 | iss 3 10 dc 50.00E-6 195 | hlim 90 0 vlim 1K 196 | j1 11 2 10 jx 197 | j2 12 1 10 jx 198 | r2 6 9 100.0E3 199 | rd1 4 11 795.8 200 | rd2 4 12 795.8 201 | ro1 8 5 10 202 | ro2 7 99 10 203 | rss 10 99 4.000E6 204 | vb 9 0 dc 0 205 | vc 3 53 dc 1.5 206 | ve 54 4 dc .9 207 | vlim 7 8 dc 0 208 | vlp 91 0 dc 14 209 | vln 0 92 dc 14 210 | 211 | * OUTPUT SUPPLY MIRROR 212 | FQ3 0 20 POLY(1) VLIM 0 1 213 | DQ1 20 21 DX 214 | DQ2 22 20 DX 215 | VQ1 21 0 0 216 | VQ2 22 0 0 217 | FQ1 3 0 POLY(1) VQ1 120u 1 218 | FQ2 0 4 POLY(1) VQ2 120u -1 219 | RP 3 4 3.00E6 220 | 221 | .model dx D(Is=800.0E-18) 222 | .model jx PJF(Is=15.00E-12 Beta=31.58E-3 Vto=-1) 223 | .ends 224 | 225 | * connections: non-inverting input 226 | * | inverting input 227 | * | | positive power supply 228 | * | | | negative power supply 229 | * | | | | output 230 | * | | | | | 231 | .subckt A3_128E 1 2 3 4 5 232 | * 233 | c1 11 12 2.730E-12 234 | c2 6 7 15.00E-12 235 | dc 5 53 dx 236 | de 54 5 dx 237 | dlp 90 91 dx 238 | dln 92 90 dx 239 | dp 4 3 dx 240 | egnd 99 0 poly(2) (3,0) (4,0) 0 .5 .5 241 | fb 7 99 poly(5) vb vc ve vlp vln 0 163.2E6 -160E6 160E6 160E6 -160E6 242 | ga 6 0 11 12 122.5E-6 243 | gcm 0 6 10 99 12.25E-12 244 | iee 10 4 dc 63.95E-6 245 | hlim 90 0 vlim 1K 246 | q1 11 2 13 qx 247 | q2 12 1 14 qx 248 | r2 6 9 100.0E3 249 | rc1 3 11 8.162E3 250 | rc2 3 12 8.162E3 251 | re1 13 10 7.327E3 252 | re2 14 10 7.327E3 253 | ree 10 99 3.127E6 254 | ro1 8 5 300 255 | ro2 7 99 300 256 | vb 9 0 dc 0 257 | vc 3 53 dc 1.500 258 | ve 54 4 dc 1.400 259 | vlim 7 8 dc 0 260 | vlp 91 0 dc 5 261 | vln 0 92 dc 14 262 | 263 | *OUTPUT SUPPLY MIRROR 264 | FQ3 0 20 POLY(1) VLIM 0 1 265 | DQ1 20 21 DX 266 | DQ2 22 20 DX 267 | VQ1 21 0 0 268 | VQ2 22 0 0 269 | FQ1 3 0 POLY(1) VQ1 206.7E-6 1 270 | FQ2 0 4 POLY(1) VQ2 206.7E-6 -1 271 | RQ 3 4 1.87e6 272 | .model dx D(Is=800.0E-18) 273 | .model qx NPN(Is=800.0E-18 Bf=318.8) 274 | .ends 275 | -------------------------------------------------------------------------------- /webtronix_server/spice/irf150.mod: -------------------------------------------------------------------------------- 1 | 2 | .SUBCKT irf150 1 2 3 100 3 | ************************************** 4 | * Model Generated by MODPEX * 5 | *Copyright(c) Symmetry Design Systems* 6 | * All Rights Reserved * 7 | * UNPUBLISHED LICENSED SOFTWARE * 8 | * Contains Proprietary Information * 9 | * Which is The Property of * 10 | * SYMMETRY OR ITS LICENSORS * 11 | *Commercial Use or Resale Restricted * 12 | * by Symmetry License Agreement * 13 | ************************************** 14 | * Model generated on Dec 17, 96 15 | * MODEL FORMAT: SPICE3 16 | * Symmetry POWER MOS Model (Version 1.0) 17 | * External Node Designations 18 | * Node 1 -> Drain 19 | * Node 2 -> Gate 20 | * Node 3 -> Source 21 | M1 9 7 8 8 MM L=100u W=100u 22 | * Default values used in MM: 23 | * The voltage-dependent capacitances are 24 | * not included. Other default values are: 25 | * RS=0 RD=0 LD=0 CBD=0 CBS=0 CGBO=0 26 | .MODEL MM NMOS LEVEL=1 IS=1e-32 27 | +VTO=4.07861 LAMBDA=0.000761669 KP=19.0218 28 | +CGSO=3.57784e-05 CGDO=4.96221e-07 29 | RS 8 3 0.0216597 30 | D1 3 1 MD 31 | .MODEL MD D IS=2.01865e-09 RS=0.11592 N=1.5 BV=100 32 | +IBV=0.001 EG=1 XTI=1 TT=1e-07 33 | +CJO=3.28974e-09 VJ=4.39387 M=0.659734 FC=0.1 34 | RDS 3 1 3.2e+06 35 | RD 9 1 0.00224103 36 | RG 2 7 12.1 37 | D2 4 5 MD1 38 | * Default values used in MD1: 39 | * RS=0 EG=1.11 XTI=3.0 TT=0 40 | * BV=infinite IBV=1mA 41 | .MODEL MD1 D IS=1e-32 N=50 42 | +CJO=3.78329e-09 VJ=0.607074 M=0.893797 FC=1e-08 43 | D3 0 5 MD2 44 | * Default values used in MD2: 45 | * EG=1.11 XTI=3.0 TT=0 CJO=0 46 | * BV=infinite IBV=1mA 47 | .MODEL MD2 D IS=1e-10 N=0.402271 RS=3.00001e-06 48 | RL 5 10 1 49 | FI2 7 9 VFI2 -1 50 | VFI2 4 0 0 51 | EV16 10 0 9 7 1 52 | CAP 11 10 3.78329e-09 53 | FI1 7 9 VFI1 -1 54 | VFI1 11 6 0 55 | RCAP 6 10 1 56 | D4 0 6 MD3 57 | * Default values used in MD3: 58 | * EG=1.11 XTI=3.0 TT=0 CJO=0 59 | * RS=0 BV=infinite IBV=1mA 60 | .MODEL MD3 D IS=1e-10 N=0.402271 61 | .ENDS irf150 62 | 63 | -------------------------------------------------------------------------------- /webtronix_server/spice/irf530.mod: -------------------------------------------------------------------------------- 1 | *Feb 16, 2010 2 | *Doc. ID: 90181, Rev. A 3 | *File Name: part irf530_PS.txt and part irf530_PS.spi 4 | *This document is intended as a SPICE modeling guideline and does not 5 | *constitute a commercial product data sheet. Designers should refer to the 6 | *appropriate data sheet of the same number for guaranteed specification 7 | *limits. 8 | .SUBCKT irf530 1 2 3 100 9 | ************************************** 10 | * Model Generated by MODPEX * 11 | *Copyright(c) Symmetry Design Systems* 12 | * All Rights Reserved * 13 | * UNPUBLISHED LICENSED SOFTWARE * 14 | * Contains Proprietary Information * 15 | * Which is The Property of * 16 | * SYMMETRY OR ITS LICENSORS * 17 | *Commercial Use or Resale Restricted * 18 | * by Symmetry License Agreement * 19 | ************************************** 20 | * Model generated on Apr 24, 96 21 | * Model format: SPICE3 22 | * Symmetry POWER MOS Model (Version 1.0) 23 | * External Node Designations 24 | * Node 1 -> Drain 25 | * Node 2 -> Gate 26 | * Node 3 -> Source 27 | M1 9 7 8 8 MM L=100u W=100u 28 | * Default values used in MM: 29 | * The voltage-dependent capacitances are 30 | * not included. Other default values are: 31 | * RS=0 RD=0 LD=0 CBD=0 CBS=0 CGBO=0 32 | .MODEL MM NMOS LEVEL=1 IS=1e-32 33 | +VTO=3.87932 LAMBDA=0.00393789 KP=7.05019 34 | +CGSO=6.11314e-06 CGDO=1e-11 35 | RS 8 3 0.073836 36 | D1 3 1 MD 37 | .MODEL MD D IS=9.70956e-10 RS=0.0137423 N=1.31938 BV=300 38 | +IBV=0.00025 EG=1 XTI=4 TT=1e-07 39 | +CJO=1.03141e-09 VJ=1.46661 M=0.501224 FC=0.5 40 | RDS 3 1 4e+06 41 | RD 9 1 0.0001 42 | RG 2 7 9.77071 43 | D2 4 5 MD1 44 | * Default values used in MD1: 45 | * RS=0 EG=1.11 XTI=3.0 TT=0 46 | * BV=infinite IBV=1mA 47 | .MODEL MD1 D IS=1e-32 N=50 48 | +CJO=7.50724e-10 VJ=0.801667 M=0.67327 FC=1e-08 49 | D3 0 5 MD2 50 | * Default values used in MD2: 51 | * EG=1.11 XTI=3.0 TT=0 CJO=0 52 | * BV=infinite IBV=1mA 53 | .MODEL MD2 D IS=1e-10 N=0.401518 RS=3e-06 54 | RL 5 10 1 55 | FI2 7 9 VFI2 -1 56 | VFI2 4 0 0 57 | EV16 10 0 9 7 1 58 | CAP 11 10 7.50724e-10 59 | FI1 7 9 VFI1 -1 60 | VFI1 11 6 0 61 | RCAP 6 10 1 62 | D4 0 6 MD3 63 | * Default values used in MD3: 64 | * EG=1.11 XTI=3.0 TT=0 CJO=0 65 | * RS=0 BV=infinite IBV=1mA 66 | .MODEL MD3 D IS=1e-10 N=0.401518 67 | .ENDS 68 | 69 | -------------------------------------------------------------------------------- /webtronix_server/spice/irfz44n.mod: -------------------------------------------------------------------------------- 1 | *Aug 17, 2010 2 | *Doc. ID: 90561, Rev. A 3 | *File Name: irfz44n_PS.txt and irfz44n_PS.spi 4 | *This document is intended as a SPICE modeling guideline and does not 5 | *constitute a commercial product datasheet. Designers should refer to the 6 | *appropriate data sheet of the same number for guaranteed specification 7 | *limits. 8 | .SUBCKT irfz44n 1 2 3 9 | ************************************** 10 | * Model Generated by MODPEX * 11 | *Copyright(c) Symmetry Design Systems* 12 | * All Rights Reserved * 13 | * UNPUBLISHED LICENSED SOFTWARE * 14 | * Contains Proprietary Information * 15 | * Which is The Property of * 16 | * SYMMETRY OR ITS LICENSORS * 17 | *Commercial Use or Resale Restricted * 18 | * by Symmetry License Agreement * 19 | ************************************** 20 | * Model generated on Apr 24, 96 21 | * Model format: SPICE3 22 | * Symmetry POWER MOS Model (Version 1.0) 23 | * External Node Designations 24 | * Node 1 -> Drain 25 | * Node 2 -> Gate 26 | * Node 3 -> Source 27 | M1 9 7 8 8 MM L=100u W=100u 28 | * Default values used in MM: 29 | * The voltage-dependent capacitances are 30 | * not included. Other default values are: 31 | * RS=0 RD=0 LD=0 CBD=0 CBS=0 CGBO=0 32 | .MODEL MM NMOS LEVEL=1 IS=1e-32 33 | +VTO=3.56214 LAMBDA=0 KP=39.3974 34 | +CGSO=1.25255e-05 CGDO=2.2826e-07 35 | RS 8 3 0.0133305 36 | D1 3 1 MD 37 | .MODEL MD D IS=9.64635e-13 RS=0.00967689 N=1.01377 BV=55 38 | +IBV=0.00025 EG=1.08658 XTI=2.9994 TT=1e-07 39 | +CJO=1.39353e-09 VJ=0.5 M=0.42532 FC=0.5 40 | RDS 3 1 2.2e+06 41 | RD 9 1 0.0001 42 | RG 2 7 2.20235 43 | D2 4 5 MD1 44 | * Default values used in MD1: 45 | * RS=0 EG=1.11 XTI=3.0 TT=0 46 | * BV=infinite IBV=1mA 47 | .MODEL MD1 D IS=1e-32 N=50 48 | +CJO=1.52875e-09 VJ=0.5 M=0.584414 FC=1e-08 49 | D3 0 5 MD2 50 | * Default values used in MD2: 51 | * EG=1.11 XTI=3.0 TT=0 CJO=0 52 | * BV=infinite IBV=1mA 53 | .MODEL MD2 D IS=1e-10 N=0.408752 RS=3e-06 54 | RL 5 10 1 55 | FI2 7 9 VFI2 -1 56 | VFI2 4 0 0 57 | EV16 10 0 9 7 1 58 | CAP 11 10 2.06741e-09 59 | FI1 7 9 VFI1 -1 60 | VFI1 11 6 0 61 | RCAP 6 10 1 62 | D4 0 6 MD3 63 | * Default values used in MD3: 64 | * EG=1.11 XTI=3.0 TT=0 CJO=0 65 | * RS=0 BV=infinite IBV=1mA 66 | .MODEL MD3 D IS=1e-10 N=0.408752 67 | .ENDS 68 | 69 | -------------------------------------------------------------------------------- /webtronix_server/spice/jfet.lib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | .model 2n3819 NJF(Beta=1.304m Rd=1 Rs=1 Lambda=2.25m Vto=-3 Is=33.57f Cgd=1.6p Pb=1 Fc=.5 Cgs=2.414p Kf=9.882E-18 Af=1) 5 | 6 | .model mpf102 NJF (Beta=1.04m Rd=1 Rs=1 Lambda=2m Vto=-3.41 Is=33.57f Cgd=1.6p Pb=1 Fc=.5 Cgs=2.414p Kf=11.73E-18 Af=1) 7 | 8 | .model 2n5457 NJF(Beta=1.125m Rd=1 Rs=1 Lambda=2.3m Vto=-1.372 Is=181.3f Cgd=4p Pb=.5 Fc=.5 Cgs=4.627p Kf=10.45E-18 Af=1) 9 | 10 | .model 2n5458 NJF(Beta=488.9u Rd=1 Rs=1 Lambda=3.167m Vto=-2.882 Is=181.3f Cgd=4p Pb=.5 Fc=.5 Cgs=4.627p Kf=4.284E-18 Af=1) 11 | -------------------------------------------------------------------------------- /webtronix_server/spice/lm324.mod: -------------------------------------------------------------------------------- 1 | * WARNING : please consider following remarks before usage 2 | * 3 | * 1) All models are a tradeoff between accuracy and complexity (ie. simulation 4 | * time). 5 | * 2) Macromodels are not a substitute to breadboarding, they rather confirm the 6 | * validity of a design approach and help to select surrounding component values. 7 | * 8 | * 3) A macromodel emulates the NOMINAL performance of a TYPICAL device within 9 | * SPECIFIED OPERATING CONDITIONS (ie. temperature, supply voltage, etc.). 10 | * Thus the macromodel is often not as exhaustive as the datasheet, its goal 11 | * is to illustrate the main parameters of the product. 12 | * 13 | * 4) Data issued from macromodels used outside of its specified conditions 14 | * (Vcc, Temperature, etc) or even worse: outside of the device operating 15 | * conditions (Vcc, Vicm, etc) are not reliable in any way. 16 | * 17 | * 18 | ** Standard Linear Ics Macromodels, 1993. 19 | ** CONNECTIONS : 20 | * 1 INVERTING INPUT 21 | * 2 NON-INVERTING INPUT 22 | * 3 OUTPUT 23 | * 4 POSITIVE POWER SUPPLY 24 | * 5 NEGATIVE POWER SUPPLY 25 | .SUBCKT LM324 2 1 4 5 3 26 | *************************** 27 | .MODEL MDTH D IS=1E-8 KF=3.104131E-15 CJO=10F 28 | * INPUT STAGE 29 | CIP 2 5 1.000000E-12 30 | CIN 1 5 1.000000E-12 31 | EIP 10 5 2 5 1 32 | EIN 16 5 1 5 1 33 | RIP 10 11 2.600000E+01 34 | RIN 15 16 2.600000E+01 35 | RIS 11 15 2.003862E+02 36 | DIP 11 12 MDTH 400E-12 37 | DIN 15 14 MDTH 400E-12 38 | VOFP 12 13 DC 0 39 | VOFN 13 14 DC 0 40 | IPOL 13 5 1.000000E-05 41 | CPS 11 15 3.783376E-09 42 | DINN 17 13 MDTH 400E-12 43 | VIN 17 5 0.000000e+00 44 | DINR 15 18 MDTH 400E-12 45 | VIP 4 18 2.000000E+00 46 | FCP 4 5 VOFP 3.400000E+01 47 | FCN 5 4 VOFN 3.400000E+01 48 | FIBP 2 5 VOFN 2.000000E-03 49 | FIBN 5 1 VOFP 2.000000E-03 50 | * AMPLIFYING STAGE 51 | FIP 5 19 VOFP 3.600000E+02 52 | FIN 5 19 VOFN 3.600000E+02 53 | RG1 19 5 3.652997E+06 54 | RG2 19 4 3.652997E+06 55 | CC 19 5 6.000000E-09 56 | DOPM 19 22 MDTH 400E-12 57 | DONM 21 19 MDTH 400E-12 58 | HOPM 22 28 VOUT 7.500000E+03 59 | VIPM 28 4 1.500000E+02 60 | HONM 21 27 VOUT 7.500000E+03 61 | VINM 5 27 1.500000E+02 62 | EOUT 26 23 19 5 1 63 | VOUT 23 5 0 64 | ROUT 26 3 20 65 | COUT 3 5 1.000000E-12 66 | DOP 19 25 MDTH 400E-12 67 | VOP 4 25 2.242230E+00 68 | DON 24 19 MDTH 400E-12 69 | VON 24 5 7.922301E-01 70 | .ENDS 71 | -------------------------------------------------------------------------------- /webtronix_server/spice/lm339.mod: -------------------------------------------------------------------------------- 1 | * LM339 VOLTAGE COMPARATOR "MACROMODEL" SUBCIRCUIT 2 | * CREATED USING PARTS VERSION 4.03 ON 03/07/90 AT 14:17 3 | * REV (N/A) 4 | * CONNECTIONS: NON-INVERTING INPUT 5 | * | INVERTING INPUT 6 | * | | POSITIVE POWER SUPPLY 7 | * | | | NEGATIVE POWER SUPPLY 8 | * | | | | OPEN COLLECTOR OUTPUT 9 | * | | | | | 10 | .SUBCKT LM339 1 2 3 4 5 11 | * 12 | F1 9 3 V1 1 13 | IEE 3 7 DC 100.0E-6 14 | VI1 21 1 DC .75 15 | VI2 22 2 DC .75 16 | Q1 9 21 7 QIN 17 | Q2 8 22 7 QIN 18 | Q3 9 8 4 QMO 19 | Q4 8 8 4 QMI 20 | .MODEL QIN PNP(IS=800.0E-18 BF=2.000E3) 21 | .MODEL QMI NPN(IS=800.0E-18 BF=1002) 22 | .MODEL QMO NPN(IS=800.0E-18 BF=1000 CJC=1E-15 TR=807.4E-9) 23 | E1 10 4 9 4 1 24 | V1 10 11 DC 0 25 | Q5 5 11 4 QOC 26 | .MODEL QOC NPN(IS=800.0E-18 BF=20.29E3 CJC=1E-15 TF=942.6E-12 TR=543.8E-9) 27 | DP 4 3 DX 28 | RP 3 4 46.3E3 29 | .MODEL DX D(IS=800.0E-18) 30 | * 31 | .ENDS 32 |  33 | -------------------------------------------------------------------------------- /webtronix_server/spice/lm358.mod: -------------------------------------------------------------------------------- 1 | *////////////////////////////////////////////////////////////////////// 2 | * (C) National Semiconductor, Inc. 3 | * Models developed and under copyright by: 4 | * National Semiconductor, Inc. 5 | 6 | *///////////////////////////////////////////////////////////////////// 7 | * Legal Notice: This material is intended for free software support. 8 | * The file may be copied, and distributed; however, reselling the 9 | * material is illegal 10 | 11 | *//////////////////////////////////////////////////////////////////// 12 | * For ordering or technical information on these models, contact: 13 | * National Semiconductor's Customer Response Center 14 | * 7:00 A.M.--7:00 P.M. U.S. Central Time 15 | * (800) 272-9959 16 | * For Applications support, contact the Internet address: 17 | * amps-apps@galaxy.nsc.com 18 | 19 | *////////////////////////////////////////////////////////// 20 | *LM358 DUAL OPERATIONAL AMPLIFIER MACRO-MODEL 21 | *////////////////////////////////////////////////////////// 22 | * 23 | * connections: non-inverting input 24 | * | inverting input 25 | * | | positive power supply 26 | * | | | negative power supply 27 | * | | | | output 28 | * | | | | | 29 | * | | | | | 30 | .SUBCKT LM358 1 2 99 50 28 31 | * 32 | *Features: 33 | *Eliminates need for dual supplies 34 | *Large DC voltage gain = 100dB 35 | *High bandwidth = 1MHz 36 | *Low input offset voltage = 2mV 37 | *Wide supply range = +-1.5V to +-16V 38 | * 39 | *NOTE: Model is for single device only and simulated 40 | * supply current is 1/2 of total device current. 41 | * Output crossover distortion with dual supplies 42 | * is not modeled. 43 | * 44 | ****************INPUT STAGE************** 45 | * 46 | IOS 2 1 5N 47 | *^Input offset current 48 | R1 1 3 500K 49 | R2 3 2 500K 50 | I1 99 4 100U 51 | R3 5 50 517 52 | R4 6 50 517 53 | Q1 5 2 4 QX 54 | Q2 6 7 4 QX 55 | *Fp2=1.2 MHz 56 | C4 5 6 128.27P 57 | * 58 | ***********COMMON MODE EFFECT*********** 59 | * 60 | I2 99 50 75U 61 | *^Quiescent supply current 62 | EOS 7 1 POLY(1) 16 49 2E-3 1 63 | *Input offset voltage.^ 64 | R8 99 49 60K 65 | R9 49 50 60K 66 | * 67 | *********OUTPUT VOLTAGE LIMITING******** 68 | V2 99 8 1.63 69 | D1 9 8 DX 70 | D2 10 9 DX 71 | V3 10 50 .635 72 | * 73 | **************SECOND STAGE************** 74 | * 75 | EH 99 98 99 49 1 76 | G1 98 9 POLY(1) 5 6 0 9.8772E-4 0 .3459 77 | *Fp1=7.86 Hz 78 | R5 98 9 101.2433MEG 79 | C3 98 9 200P 80 | * 81 | ***************POLE STAGE*************** 82 | * 83 | *Fp=2 MHz 84 | G3 98 15 9 49 1E-6 85 | R12 98 15 1MEG 86 | C5 98 15 7.9577E-14 87 | * 88 | *********COMMON-MODE ZERO STAGE********* 89 | * 90 | *Fpcm=10 KHz 91 | G4 98 16 3 49 5.6234E-8 92 | L2 98 17 15.9M 93 | R13 17 16 1K 94 | * 95 | **************OUTPUT STAGE************** 96 | * 97 | F6 50 99 POLY(1) V6 300U 1 98 | E1 99 23 99 15 1 99 | R16 24 23 17.5 100 | D5 26 24 DX 101 | V6 26 22 .63V 102 | R17 23 25 17.5 103 | D6 25 27 DX 104 | V7 22 27 .63V 105 | V5 22 21 0.27V 106 | D4 21 15 DX 107 | V4 20 22 0.27V 108 | D3 15 20 DX 109 | L3 22 28 500P 110 | RL3 22 28 100K 111 | * 112 | ***************MODELS USED************** 113 | * 114 | .MODEL DX D(IS=1E-15) 115 | .MODEL QX PNP(BF=1.111E3) 116 | * 117 | .ENDS 118 | *$ 119 | -------------------------------------------------------------------------------- /webtronix_server/spice/lm741.mod: -------------------------------------------------------------------------------- 1 | *////////////////////////////////////////////////////////////////////// 2 | * (C) National Semiconductor, Inc. 3 | * Models developed and under copyright by: 4 | * National Semiconductor, Inc. 5 | 6 | *///////////////////////////////////////////////////////////////////// 7 | * Legal Notice: This material is intended for free software support. 8 | * The file may be copied, and distributed; however, reselling the 9 | * material is illegal 10 | 11 | *//////////////////////////////////////////////////////////////////// 12 | * For ordering or technical information on these models, contact: 13 | * National Semiconductor's Customer Response Center 14 | * 7:00 A.M.--7:00 P.M. U.S. Central Time 15 | * (800) 272-9959 16 | * For Applications support, contact the Internet address: 17 | * amps-apps@galaxy.nsc.com 18 | 19 | *////////////////////////////////////////////////////////// 20 | *LM741 OPERATIONAL AMPLIFIER MACRO-MODEL 21 | *////////////////////////////////////////////////////////// 22 | * 23 | * connections: non-inverting input 24 | * | inverting input 25 | * | | positive power supply 26 | * | | | negative power supply 27 | * | | | | output 28 | * | | | | | 29 | * | | | | | 30 | .SUBCKT LM741/NS 1 2 99 50 28 31 | * 32 | *Features: 33 | *Improved performance over industry standards 34 | *Plug-in replacement for LM709,LM201,MC1439,748 35 | *Input and output overload protection 36 | * 37 | ****************INPUT STAGE************** 38 | * 39 | IOS 2 1 20N 40 | *^Input offset current 41 | R1 1 3 250K 42 | R2 3 2 250K 43 | I1 4 50 100U 44 | R3 5 99 517 45 | R4 6 99 517 46 | Q1 5 2 4 QX 47 | Q2 6 7 4 QX 48 | *Fp2=2.55 MHz 49 | C4 5 6 60.3614P 50 | * 51 | ***********COMMON MODE EFFECT*********** 52 | * 53 | I2 99 50 1.6MA 54 | *^Quiescent supply current 55 | EOS 7 1 POLY(1) 16 49 1E-3 1 56 | *Input offset voltage.^ 57 | R8 99 49 40K 58 | R9 49 50 40K 59 | * 60 | *********OUTPUT VOLTAGE LIMITING******** 61 | V2 99 8 1.63 62 | D1 9 8 DX 63 | D2 10 9 DX 64 | V3 10 50 1.63 65 | * 66 | **************SECOND STAGE************** 67 | * 68 | EH 99 98 99 49 1 69 | G1 98 9 5 6 2.1E-3 70 | *Fp1=5 Hz 71 | R5 98 9 95.493MEG 72 | C3 98 9 333.33P 73 | * 74 | ***************POLE STAGE*************** 75 | * 76 | *Fp=30 MHz 77 | G3 98 15 9 49 1E-6 78 | R12 98 15 1MEG 79 | C5 98 15 5.3052E-15 80 | * 81 | *********COMMON-MODE ZERO STAGE********* 82 | * 83 | *Fpcm=300 Hz 84 | G4 98 16 3 49 3.1623E-8 85 | L2 98 17 530.5M 86 | R13 17 16 1K 87 | * 88 | **************OUTPUT STAGE************** 89 | * 90 | F6 50 99 POLY(1) V6 450U 1 91 | E1 99 23 99 15 1 92 | R16 24 23 25 93 | D5 26 24 DX 94 | V6 26 22 0.65V 95 | R17 23 25 25 96 | D6 25 27 DX 97 | V7 22 27 0.65V 98 | V5 22 21 0.18V 99 | D4 21 15 DX 100 | V4 20 22 0.18V 101 | D3 15 20 DX 102 | L3 22 28 100P 103 | RL3 22 28 100K 104 | * 105 | ***************MODELS USED************** 106 | * 107 | .MODEL DX D(IS=1E-15) 108 | .MODEL QX NPN(BF=625) 109 | * 110 | .ENDS 111 | *$ 112 | -------------------------------------------------------------------------------- /webtronix_server/spice/mosfet.lib: -------------------------------------------------------------------------------- 1 | 2 | .MODEL 2N7002 NMOS(LEVEL=3 RS=0.0405 NSUB=1.0E15 3 | + DELTA=0.1 KAPPA=0.0506 TPG=1 CGDO=6.1716E-10 4 | + RD=1.22 VTO=2.00 VMAX=1.0E7 ETA=0.0223089 5 | + NFS=6.6E10 TOX=1.0E-7 LD=1.698E-9 UO=862.425 6 | + XJ=6.4666E-7 THETA=1.0E-5 CGSO=9.10E-9 L=2.5E-6 7 | + W=0.5E-2) 8 | 9 | -------------------------------------------------------------------------------- /webtronix_server/spice/mymodels.lib: -------------------------------------------------------------------------------- 1 | 2 | .MODEL 1PS66SB17 D 3 | + IS = 1.419E-09 4 | + N = 1.022 5 | + BV = 6 6 | + IBV = 2.45E-06 7 | + RS = 5.112 8 | + CJO = 7.662E-13 9 | + VJ = 0.1681 10 | + M = 0.1995 11 | + FC = 0.5 12 | + EG = 0.69 13 | + XTI = 2 14 | 15 | .MODEL 1PS66SB82 D 16 | + IS = 1.042E-8 17 | + N = 1.029 18 | + BV = 17 19 | + IBV = 0.001 20 | + RS = 5.567 21 | + CJO = 9.779E-13 22 | + VJ = 0.2925 23 | + M = 0.194 24 | + FC = 0.5 25 | + EG = 0.69 26 | + XTI = 2 27 | 28 | ************************************** 29 | * Model Generated by MODPEX * 30 | *Copyright(c) Symmetry Design Systems* 31 | * All Rights Reserved * 32 | * UNPUBLISHED LICENSED SOFTWARE * 33 | * Contains Proprietary Information * 34 | * Which is The Property of * 35 | * SYMMETRY OR ITS LICENSORS * 36 | *Commercial Use or Resale Restricted * 37 | * by Symmetry License Agreement * 38 | ************************************** 39 | * Model generated on Apr 9, 98 40 | * MODEL FORMAT: PSpice 41 | .MODEL Dmmbd352lt1 d 42 | +IS=1.65959e-08 RS=3.94417 N=1.45612 EG=0.735199 43 | +XTI=0.530968 BV=1000 IBV=0.0001 CJO=9.20067e-13 44 | +VJ=1.5 M=0.2 FC=0.5 TT=1e-09 45 | +KF=0 AF=1 46 | 47 | -------------------------------------------------------------------------------- /webtronix_server/spice/mysubckt.mod: -------------------------------------------------------------------------------- 1 | * AD8630 SPICE Macro-model 2 | * Description: Amplifier 3 | * Generic Desc: 2.7/5V, CMOS, OP, Zero Drift, RRIO, 4X 4 | * Developed by: RM / ADSiv 5 | * Revision History: 08/10/2012 - Updated to new header style 6 | * 1.0 (07/2010) 7 | * Copyright 2010, 2012 by Analog Devices 8 | * 9 | * Refer to http://www.analog.com/Analog_Root/static/techSupport/designTools/spiceModels/license/spice_general.html for License Statement. Use of this model 10 | * indicates your acceptance of the terms and provisions in the License Statement. 11 | * 12 | * BEGIN Notes: 13 | * 14 | * Not Modeled: 15 | * 16 | * Parameters modeled include: 17 | * 18 | * END Notes 19 | * 20 | * Node Assignments 21 | * noninverting input 22 | * | inverting input 23 | * | | positive supply 24 | * | | | negative supply 25 | * | | | | output 26 | * | | | | | 27 | * | | | | | 28 | .SUBCKT AD8630 1 2 99 50 45 29 | * 30 | * INPUT STAGE 31 | * 32 | M1 4 7 8 8 PIX L=1E-6 W=174.1E-6 33 | M2 6 2 8 8 PIX L=1E-6 W=174.1E-6 34 | M3 11 7 10 10 NIX L=1E-6 W=174.1E-6 35 | M4 12 2 10 10 NIX L=1E-6 W=174.1E-6 36 | RC1 4 14 0.001E+3 37 | RC2 6 16 0.001E+3 38 | RC3 17 11 0.001E+3 39 | RC4 18 12 0.001E+3 40 | RC5 14 50 6E+3 41 | RC6 16 50 6E+3 42 | RC7 99 17 6E+3 43 | RC8 99 18 6E+3 44 | *Set teh secondary pole at 17MHz using c1,c2 and RC5.. 45 | C1 14 16 5.40E-12 46 | C2 17 18 5.40E-12 47 | I1 99 8 100E-6 48 | I2 10 50 100E-6 49 | V1 99 9 0.3 50 | V2 13 50 0.3 51 | D1 8 9 DX 52 | D2 13 10 DX 53 | * POLY font rewritten to make it work under gnucap 54 | * EOS 7 1 POLY(3) (22,98) (73,98) (81,98) 1E-6 1 1 1 55 | EOS1 7 1 22 98 .5 56 | EOS2 7 1 73 98 .5 57 | EOS3 1 1 81 98 .5 58 | 59 | 60 | 61 | IOS 1 2 25E-12 62 | * 63 | * CMRR 120dB, ZERO AT 20Hz 64 | * 65 | ECM1 21 98 POLY(2) (1,98) (2,98) 0 .5 .5 66 | RCM1 21 22 50E+6 67 | CCM1 21 22 159E-12 68 | RCM2 22 98 50 69 | * 70 | * PSRR=115dB, ZERO AT 20Hz 71 | * 72 | RPS1 70 0 1E+6 73 | RPS2 71 0 1E+6 74 | CPS1 99 70 1E-5 75 | CPS2 50 71 1E-5 76 | EPSY 98 72 POLY(2) (70,0) (0,71) 0 1 1 77 | RPS3 72 73 28.9E+6 78 | CPS3 72 73 .25E-9 79 | RPS4 73 98 40 80 | * 81 | * VOLTAGE NOISE REFERENCE OF 20nV/rt(Hz) 82 | * 83 | VN1 80 98 0 84 | RN1 80 98 16.45E-3 85 | HN 81 98 VN1 20 86 | RN2 81 98 1 87 | * 88 | * INTERNAL VOLTAGE REFERENCE 89 | * 90 | EREF 98 0 POLY(2) (99,0) (50,0) 0 .5 .5 91 | GSY 99 50 (99,50) 44E-6 92 | EVP 97 98 (99,50) 0.5 93 | EVN 51 98 (50,99) 0.5 94 | * 95 | * LHP ZERO AT 17MHz, POLE AT 50.3MHz 96 | * 97 | E1 32 98 POLY(2) (4,6) (11,12) 0 .6689 .6689 98 | R2 32 33 3.164E+3 99 | R3 33 98 9.362E+3 100 | C3 32 33 1E-12 101 | * 102 | * GAIN STAGE 103 | * 104 | G1 98 30 (33,98) 25E-6 105 | R1 30 98 2.46E+9 106 | CF 45 30 12.4E-12 107 | D3 30 97 DX 108 | D4 51 30 DX 109 | * 110 | * OUTPUT STAGE 111 | * 112 | M5 45 46 99 99 POX L=1E-6 W=1.47E-3 113 | M6 45 47 50 50 NOX L=1E-6 W=1.90E-3 114 | EG1 99 46 POLY(1) (98,30) 0.5303 1 115 | EG2 47 50 POLY(1) (30,98) 0.5058 1 116 | * 117 | * MODELS 118 | * 119 | .MODEL POX PMOS (LEVEL=2,KP=10E-6,VTO=-0.328,LAMBDA=0.01,RD=0) 120 | .MODEL NOX NMOS (LEVEL=2,KP=10E-6,VTO=+0.328,LAMBDA=0.01,RD=0) 121 | .MODEL PIX PMOS (LEVEL=2,KP=100E-6,VTO=-1,LAMBDA=0.01) 122 | .MODEL NIX NMOS (LEVEL=2,KP=100E-6,VTO=+1,LAMBDA=0.01) 123 | .MODEL DX D(IS=1E-14,RS=5) 124 | .ENDS AD8630 125 | * 126 | 127 | 128 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /webtronix_server/spice/ne555.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/logical/webtronix/cb2967c47290dfbc300f3973080c1b80a5718999/webtronix_server/spice/ne555.mod -------------------------------------------------------------------------------- /webtronix_server/spice/tl06x.mod: -------------------------------------------------------------------------------- 1 | 2 | ** Standard Linear Ics Macromodels, 1993. 3 | ** CONNECTIONS : 4 | * 1 INVERTING INPUT 5 | * 2 NON-INVERTING INPUT 6 | * 3 OUTPUT 7 | * 4 POSITIVE POWER SUPPLY 8 | * 5 NEGATIVE POWER SUPPLY 9 | .SUBCKT TL07X 2 1 4 5 3 10 | ********************************************************** 11 | .MODEL MDTH D IS=1E-8 KF=5.306587E-14 CJO=10F 12 | * INPUT STAGE 13 | CIP 2 5 1.000000E-12 14 | CIN 1 5 1.000000E-12 15 | EIP 10 5 2 5 1 16 | EIN 16 5 1 5 1 17 | RIP 10 11 1.130435E+00 18 | RIN 15 16 1.130435E+00 19 | RIS 11 15 2.476554E-01 20 | DIP 11 12 MDTH 400E-12 21 | DIN 15 14 MDTH 400E-12 22 | VOFP 12 13 DC 0 23 | VOFN 13 14 DC 0 24 | IPOL 13 5 2.300000E-04 25 | CPS 11 15 4.091333E-08 26 | DINN 17 13 MDTH 400E-12 27 | VIN 17 5 3.000000e+00 28 | DINR 15 18 MDTH 400E-12 29 | VIP 4 18 0.000000E+00 30 | FCP 4 5 VOFP 6.096957E+00 31 | FCN 5 4 VOFN 6.096957E+00 32 | * AMPLIFYING STAGE 33 | FIP 5 19 VOFP 8.217391E+02 34 | FIN 5 19 VOFN 8.217391E+02 35 | RG1 19 5 1.112645E+06 36 | RG2 19 4 1.112645E+06 37 | CC 19 29 1.300000E-08 38 | HZTP 30 29 VOFP 7.743183E+02 39 | HZTN 5 30 VOFN 7.743183E+02 40 | DOPM 19 22 MDTH 400E-12 41 | DONM 21 19 MDTH 400E-12 42 | HOPM 22 28 VOUT 3.750000E+03 43 | VIPM 28 4 1.500000E+02 44 | HONM 21 27 VOUT 3.750000E+03 45 | VINM 5 27 1.500000E+02 46 | EOUT 26 23 19 5 1 47 | VOUT 23 5 0 48 | ROUT 26 3 9.384786E+01 49 | COUT 3 5 1.000000E-12 50 | DOP 19 25 MDTH 400E-12 51 | VOP 4 25 3.259753E+00 52 | DON 24 19 MDTH 400E-12 53 | VON 24 5 3.259753E+00 54 | .ENDS TL07X 55 | -------------------------------------------------------------------------------- /webtronix_server/spice/tl07x.mod: -------------------------------------------------------------------------------- 1 | 2 | * 1 INVERTING INPUT 3 | * 2 NON-INVERTING INPUT 4 | * 3 OUTPUT 5 | * 4 POSITIVE POWER SUPPLY 6 | * 5 NEGATIVE POWER SUPPLY 7 | .SUBCKT TL06X 2 1 4 5 3 8 | ********************************************************** 9 | .MODEL MDTH D IS=1E-8 KF=1.175758E-14 CJO=10F 10 | * INPUT STAGE 11 | CIP 2 5 1.000000E-12 12 | CIN 1 5 1.000000E-12 13 | EIP 10 5 2 5 1 14 | EIN 16 5 1 5 1 15 | RIP 10 11 4.000000E+00 16 | RIN 15 16 4.000000E+00 17 | RIS 11 15 9.848265E-01 18 | DIP 11 12 MDTH 400E-12 19 | DIN 15 14 MDTH 400E-12 20 | VOFP 12 13 DC 0 21 | VOFN 13 14 DC 0 22 | IPOL 13 5 6.500000E-05 23 | CPS 11 15 2.981372E-08 24 | DINN 17 13 MDTH 400E-12 25 | VIN 17 5 3.000000e+00 26 | DINR 15 18 MDTH 400E-12 27 | VIP 4 18 3.000000E+00 28 | FCP 4 5 VOFP 2.076923E+00 29 | FCN 5 4 VOFN 2.076923E+00 30 | * AMPLIFYING STAGE 31 | FIP 5 19 VOFP 5.384615E+02 32 | FIN 5 19 VOFN 5.384615E+02 33 | GVNEG 5 19 5 13 1.311224E-06 34 | GVPOS 5 19 4 13 1.311224E-06 35 | RG1 19 5 1.626871E+05 36 | RG2 19 4 1.626871E+05 37 | CC 19 29 1.000000E-08 38 | HZTP 30 29 VOFP 2.558489E+03 39 | HZTN 5 30 VOFN 2.558489E+03 40 | DOPM 19 22 MDTH 400E-12 41 | DONM 21 19 MDTH 400E-12 42 | HOPM 22 28 VOUT 3.750000E+03 43 | VIPM 28 4 9.000000E+01 44 | HONM 21 27 VOUT 9.000000E+03 45 | VINM 5 27 9.000000E+01 46 | EOUT 26 23 19 5 1 47 | VOUT 23 5 0 48 | ROUT 26 3 100 49 | COUT 3 5 1.000000E-12 50 | DOP 19 25 MDTH 400E-12 51 | VOP 4 25 2.290897E+00 52 | DON 24 19 MDTH 400E-12 53 | VON 24 5 2.290897E+00 54 | .ENDS TL06X 55 | 56 | ** Standard Linear Ics Macromodels, 1993. 57 | ** CONNECTIONS : 58 | * 1 INVERTING INPUT 59 | * 2 NON-INVERTING INPUT 60 | * 3 OUTPUT 61 | * 4 POSITIVE POWER SUPPLY 62 | * 5 NEGATIVE POWER SUPPLY 63 | .SUBCKT TL07X 2 1 4 5 3 64 | ********************************************************** 65 | .MODEL MDTH D IS=1E-8 KF=5.306587E-14 CJO=10F 66 | * INPUT STAGE 67 | CIP 2 5 1.000000E-12 68 | CIN 1 5 1.000000E-12 69 | EIP 10 5 2 5 1 70 | EIN 16 5 1 5 1 71 | RIP 10 11 1.130435E+00 72 | RIN 15 16 1.130435E+00 73 | RIS 11 15 2.476554E-01 74 | DIP 11 12 MDTH 400E-12 75 | DIN 15 14 MDTH 400E-12 76 | VOFP 12 13 DC 0 77 | VOFN 13 14 DC 0 78 | IPOL 13 5 2.300000E-04 79 | CPS 11 15 4.091333E-08 80 | DINN 17 13 MDTH 400E-12 81 | VIN 17 5 3.000000e+00 82 | DINR 15 18 MDTH 400E-12 83 | VIP 4 18 0.000000E+00 84 | FCP 4 5 VOFP 6.096957E+00 85 | FCN 5 4 VOFN 6.096957E+00 86 | * AMPLIFYING STAGE 87 | FIP 5 19 VOFP 8.217391E+02 88 | FIN 5 19 VOFN 8.217391E+02 89 | RG1 19 5 1.112645E+06 90 | RG2 19 4 1.112645E+06 91 | CC 19 29 1.300000E-08 92 | HZTP 30 29 VOFP 7.743183E+02 93 | HZTN 5 30 VOFN 7.743183E+02 94 | DOPM 19 22 MDTH 400E-12 95 | DONM 21 19 MDTH 400E-12 96 | HOPM 22 28 VOUT 3.750000E+03 97 | VIPM 28 4 1.500000E+02 98 | HONM 21 27 VOUT 3.750000E+03 99 | VINM 5 27 1.500000E+02 100 | EOUT 26 23 19 5 1 101 | VOUT 23 5 0 102 | ROUT 26 3 9.384786E+01 103 | COUT 3 5 1.000000E-12 104 | DOP 19 25 MDTH 400E-12 105 | VOP 4 25 3.259753E+00 106 | DON 24 19 MDTH 400E-12 107 | VON 24 5 3.259753E+00 108 | .ENDS TL07X 109 | -------------------------------------------------------------------------------- /webtronix_server/spice/tl08x.mod: -------------------------------------------------------------------------------- 1 | ** Standard Linear Ics Macromodels, 1993. 2 | ** CONNECTIONS : 3 | * 1 INVERTING INPUT 4 | * 2 NON-INVERTING INPUT 5 | * 3 OUTPUT 6 | * 4 POSITIVE POWER SUPPLY 7 | * 5 NEGATIVE POWER SUPPLY 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | .SUBCKT TL08x 2 1 4 5 3 20 | ********************************************************** 21 | .MODEL MDTH D IS=1E-8 KF=5.306587E-14 CJO=10F 22 | * INPUT STAGE 23 | CIP 2 5 1.000000E-12 24 | CIN 1 5 1.000000E-12 25 | EIP 10 5 2 5 1 26 | EIN 16 5 1 5 1 27 | RIP 10 11 1.130435E+00 28 | RIN 15 16 1.130435E+00 29 | RIS 11 15 2.476554E-01 30 | DIP 11 12 MDTH 400E-12 31 | DIN 15 14 MDTH 400E-12 32 | VOFP 12 13 DC 0 33 | VOFN 13 14 DC 0 34 | IPOL 13 5 2.300000E-04 35 | CPS 11 15 4.091333E-08 36 | DINN 17 13 MDTH 400E-12 37 | VIN 17 5 3.000000e+00 38 | DINR 15 18 MDTH 400E-12 39 | VIP 4 18 0.000000E+00 40 | FCP 4 5 VOFP 6.096957E+00 41 | FCN 5 4 VOFN 6.096957E+00 42 | * AMPLIFYING STAGE 43 | FIP 5 19 VOFP 8.217391E+02 44 | FIN 5 19 VOFN 8.217391E+02 45 | RG1 19 5 1.112645E+06 46 | RG2 19 4 1.112645E+06 47 | CC 19 29 1.300000E-08 48 | HZTP 30 29 VOFP 7.743183E+02 49 | HZTN 5 30 VOFN 7.743183E+02 50 | DOPM 19 22 MDTH 400E-12 51 | DONM 21 19 MDTH 400E-12 52 | HOPM 22 28 VOUT 3.750000E+03 53 | VIPM 28 4 1.500000E+02 54 | HONM 21 27 VOUT 3.750000E+03 55 | VINM 5 27 1.500000E+02 56 | EOUT 26 23 19 5 1 57 | VOUT 23 5 0 58 | ROUT 26 3 9.384786E+01 59 | COUT 3 5 1.000000E-12 60 | DOP 19 25 MDTH 400E-12 61 | VOP 4 25 3.259753E+00 62 | DON 24 19 MDTH 400E-12 63 | VON 24 5 3.259753E+00 64 | .ENDS TL08x 65 | -------------------------------------------------------------------------------- /webtronix_server/spice/ua741.mod: -------------------------------------------------------------------------------- 1 | * UA741 OPERATIONAL AMPLIFIER "MACROMODEL" SUBCIRCUIT 2 | * CREATED USING PARTS RELEASE 4.01 ON 07/05/89 AT 09:09 3 | * (REV N/A) SUPPLY VOLTAGE: +/-15V 4 | * CONNECTIONS: NON-INVERTING INPUT 5 | * | INVERTING INPUT 6 | * | | POSITIVE POWER SUPPLY 7 | * | | | NEGATIVE POWER SUPPLY 8 | * | | | | OUTPUT 9 | * | | | | | 10 | .SUBCKT UA741 1 2 3 4 5 11 | * 12 | C1 11 12 4.664E-12 13 | C2 6 7 20.00E-12 14 | DC 5 53 DX 15 | DE 54 5 DX 16 | DLP 90 91 DX 17 | DLN 92 90 DX 18 | DP 4 3 DX 19 | * EGND 99 0 POLY(2) (3,0) (4,0) 0 .5 .5 20 | * FB 7 99 POLY(5) VB VC VE VLP VLN 0 10.61E6 -10E6 10E6 10E6 -10E6 21 | * POLY font rewritten to make it work under gnucap 22 | * egnd 99 0 poly(2) (3,0) (4,0) 0 .5 .5 23 | egnd1 99 98 3 0 .5 24 | egnd2 98 0 4 0 .5 25 | * POLY font rewritten to make it work under gnucap 26 | * fb 7 99 poly(5) vb vc ve vlp vln 0 10.61E6 -10E6 10E6 10E6 -10E6 27 | fb1 7 99 vb 10.61E6 28 | fb2 7 99 vc -10E6 29 | fb3 7 99 ve 10E6 30 | fb4 7 99 vlp 10E6 31 | fb5 7 99 vln -10E6 32 | 33 | 34 | GA 6 0 11 12 137.7E-6 35 | GCM 0 6 10 99 2.574E-9 36 | IEE 10 4 DC 10.16E-6 37 | HLIM 90 0 VLIM 1K 38 | Q1 11 2 13 QX 39 | Q2 12 1 14 QX 40 | R2 6 9 100.0E3 41 | RC1 3 11 7.957E3 42 | RC2 3 12 7.957E3 43 | RE1 13 10 2.740E3 44 | RE2 14 10 2.740E3 45 | REE 10 99 19.69E6 46 | RO1 8 5 150 47 | RO2 7 99 150 48 | RP 3 4 18.11E3 49 | VB 9 0 DC 0 50 | VC 3 53 DC 2.600 51 | VE 54 4 DC 2.600 52 | VLIM 7 8 DC 0 53 | VLP 91 0 DC 25 54 | VLN 0 92 DC 25 55 | .MODEL DX D(IS=800.0E-18) 56 | .MODEL QX NPN(IS=800.0E-18 BF=62.50) 57 | .ENDS 58 | 59 | -------------------------------------------------------------------------------- /webtronix_server/spice/varicap.lib: -------------------------------------------------------------------------------- 1 | .MODEL BB112 D (IS=75.8P RS=1.4 N=1.72 BV=15.9 IBV=50N 2 | + CJO=692P VJ=.845 M=.576 TT=360N) 3 | -------------------------------------------------------------------------------- /webtronix_server/switches/ncpb.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | s 23 | s 24 | ncpb 25 | switches 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 37 | 40 | 44 | 48 | 52 | 56 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /webtronix_server/switches/nopb.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | s 25 | s 26 | nopb 27 | switches 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 39 | 43 | 47 | 51 | 55 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /webtronix_server/switches/spst-relay.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | relay 20 | relay 21 | spst-relay 22 | switches 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /webtronix_server/switches/spst-switch.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | s 24 | s 25 | nopb 26 | switches 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 39 | 44 | 48 | 52 | 56 | 60 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /webtronix_server/test/analysis.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {"pins": 6 | { 7 | "analog":[], 8 | "digital":[] 9 | } 10 | } 11 | 12 | analysis 13 | analysis 14 | analysis 15 | test 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Analysis 24 | 25 | 26 | -------------------------------------------------------------------------------- /webtronix_server/test/scope.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | plot 12 | plot 13 | scope 14 | 15 | test 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /webtronix_server/transistors/njfet.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | j 15 | j 16 | njfet 17 | transistors 18 | 19 | 20 | 21 | true 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | G 33 | D 34 | S 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /webtronix_server/transistors/nmosfet.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | m 30 | m 31 | nmosfet 32 | transistors 33 | 34 | 35 | 36 | true 37 | 38 | 39 | 40 | 41 | G 42 | D 43 | S 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /webtronix_server/transistors/npn.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | q 15 | q 16 | npn 17 | transistors 18 | 19 | 20 | 21 | true 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /webtronix_server/transistors/phototrans.svg: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | q 24 | q 25 | phototrans 26 | transistors 27 | 28 | 29 | 30 | true 31 | 32 | 33 | 34 | 41 | 44 | 48 | 52 | 55 | 58 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /webtronix_server/transistors/pjfet.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | j 14 | j 15 | pjfet 16 | transistors 17 | 18 | 19 | 20 | true 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | G 31 | D 32 | S 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /webtronix_server/transistors/pmosfet.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | m 28 | m 29 | pmosfet 30 | transistors 31 | 32 | 33 | 34 | true 35 | 36 | 37 | 38 | 39 | 40 | G 41 | D 42 | S 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /webtronix_server/transistors/pnp.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | q 14 | q 15 | pnp 16 | transistors 17 | 18 | 19 | 20 | true 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /webtronix_server/webtronix_server.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 57 | 58 | 59 | this is a webtronics javascript server. 60 | request ?file=parts.json for list of files. 61 | 62 | 63 | 64 | --------------------------------------------------------------------------------