/ScriptTools/new-shematic-with-power.scr

http://github.com/alesko/eagle · 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
  3. add a4l-loc (0.0 0.0);
  4. grid on;
  5. # Place DC plug
  6. add DCJ0303 'DC_IN' R270 (0.5 0.8); mirror 'DC_IN'; rotate 'DC_IN' R90;
  7. value DC_IN MJ-15;
  8. # Place voltage regulator with its capacitors
  9. add CPOL-EUE2-5@resistor.lbr 'C1' (1.1 0.8);
  10. value 'C1' '330nF';
  11. add 78XXL '7805' (1.7 0.9);value 7805 7805;
  12. add C-EU025-040X050@resistor.lbr 'C2' (2.3 0.8);
  13. value 'C2' '100nF';
  14. # Place DC/DC converter
  15. # add NMA 'dcdc' (3.1 0.8); value dcdc RP-0505D;
  16. add 1N4004@diode.lbr 'D1' (1.1 0.9);
  17. # Place a fuse holder
  18. add fuse (1.0 1.4) 'F1' fuse;
  19. # Draw wires
  20. wire (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);
  21. wire (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);
  22. net 'V+' (3.6 0.9)(4.0 0.9);
  23. net 'GND' (3.6 0.8)(4.2 0.8);
  24. add GND@supply1.lbr (4.2 0.7);
  25. net 'V-' (3.6 0.7)(4.0 0.7);
  26. junction (1.1 0.9)(1.1 0.6);
  27. junction (1.7 0.6)
  28. junction (2.3 0.9)(2.3 0.6);
  29. # Place a to be copied
  30. # add MPT2@con-phoenix-254 'OUT-1' R180 (5.5 0.7);