/ScriptTools/new-shematic-with-power.scr
Unknown | 46 lines | 30 code | 16 blank | 0 comment | 0 complexity | 3f702868f977cc52262db54912c5b032 MD5 | raw file
1# Generates an A4 schematic drawing with power supply and 2# a DC/DC converter 3add a4l-loc (0.0 0.0); 4grid on; 5 6# Place DC plug 7add DCJ0303 'DC_IN' R270 (0.5 0.8); mirror 'DC_IN'; rotate 'DC_IN' R90; 8value DC_IN MJ-15; 9 10# Place voltage regulator with its capacitors 11add CPOL-EUE2-5@resistor.lbr 'C1' (1.1 0.8); 12value 'C1' '330nF'; 13 14 15add 78XXL '7805' (1.7 0.9);value 7805 7805; 16add C-EU025-040X050@resistor.lbr 'C2' (2.3 0.8); 17value 'C2' '100nF'; 18 19# Place DC/DC converter 20# add NMA 'dcdc' (3.1 0.8); value dcdc RP-0505D; 21 22add 1N4004@diode.lbr 'D1' (1.1 0.9); 23 24 25# Place a fuse holder 26add fuse (1.0 1.4) 'F1' fuse; 27 28 29# Draw wires 30wire (0.8 0.9)(1.1 0.9)(1.4 0.9);wire (2.0 0.9)(2.3 0.9)(2.6 0.9); 31wire (0.8 0.7)(0.8 0.6)(1.1 0.6)(1.7 0.6)(2.3 0.6)(2.6 0.6)(2.6 0.7); 32net 'V+' (3.6 0.9)(4.0 0.9); 33net 'GND' (3.6 0.8)(4.2 0.8); 34add GND@supply1.lbr (4.2 0.7); 35net 'V-' (3.6 0.7)(4.0 0.7); 36junction (1.1 0.9)(1.1 0.6); 37junction (1.7 0.6) 38junction (2.3 0.9)(2.3 0.6); 39 40# Place a to be copied 41# add MPT2@con-phoenix-254 'OUT-1' R180 (5.5 0.7); 42 43 44 45 46