README 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. Conversion session transcript
  2. =============================
  3. git clone https://github.com/lachlanA/eagle-to-kicad.git
  4. mkdir <base-directory>
  5. cd <base-directory>
  6. mkdir eagle
  7. cp ../gdc/sep18/* eagle
  8. mkdir cvt
  9. Some of the following interactions are timestamped, to indicate roughly
  10. when to expect interactions. The timestamps are [minutes:seconds] of
  11. total CPU time of the "eagle" process on a Q6600.
  12. Note: it is best not type anything else during the conversion, especially
  13. around the time when new dialogs may pop up. The Eagle pop-ups will appear
  14. unannounced and grab the input focus. Keystrokes will therefore end up in
  15. Eagle dialogs, changing inputs.
  16. - open schematics in Eagle
  17. File > Run ULP (.../eagle-to-kicad/renumber-sheet.ulp)
  18. - set script path to .../eagle-to-kicad/
  19. - set output directory (.../cvt/)
  20. [10:54] "This ULP will change unconnected VIA's to PADS"
  21. - accept defaults
  22. [11:01] "Consult log file for unncontded via's and tracks"
  23. /home/n9/ee/cvt/GTA04b7_conversion_log.txt
  24. - 1469 unconnected tracks
  25. - 6 unconnected vias
  26. - accept
  27. [11:01] /home/n9/ee/cvt/modified_eagle_files/GTA04b7~fix_via_hack.scr, Line 85:
  28. The Light edition of EAGLE can't perform the requested action!
  29. You can't add parts to this sheet.
  30. - accept
  31. - idem, lines 89, 93, 97, 101, 105. accept.
  32. [11:04] Unknown element VP_0
  33. line 11889
  34. - accept
  35. - idem, VP_1, VP_2, VP_3, VP_4, VP_5. accept.
  36. [11:10] Large dialog
  37. - Output: set all sheet sizes to A3
  38. - Sheet size: set to A3
  39. - accept
  40. [32:11] Library dialog
  41. - Accept (note: dialog stays open after clicking "OK")
  42. [33:21] "There were Errors during the export please read the log for more
  43. information"
  44. - Accept
  45. [33:44] /home/n9/ee/cvt/GTA04b7.scr, Line 31320:
  46. Package SOT223-6 doesn't have enough pads for
  47. all 10 pins of device TPS73733
  48. - accept
  49. [33:44] /home/n9/ee/cvt/GTA04b7.scr, Line 31321:
  50. Use the PACKAGE command to select a package variant first
  51. - accept
  52. - idem, lines 31322 to 31326. Accept.
  53. [33:46] Output ... dialog.
  54. - accept defaults
  55. [33:55] There are: 217 missing part prefix(s).
  56. Conversion finished!
  57. - accept
  58. [33:56] Log file dialog
  59. - accept
  60. Common issues in converted schematics
  61. =====================================
  62. Component text size
  63. -------------------
  64. Component text (component reference, value, etc.), should have a size
  65. of 50 mil. The converted schematics frequently use 45 mil or 70 mil.
  66. KiCad stores the default size, location, and alignment of text fields
  67. in the definition of the schematics symbol ("component", .lib). This
  68. is copied into the schematics when placing a symbol, and can then be
  69. modified individually for each use of the symbol.
  70. To change a symbol in the library, right-click on the symbol in the
  71. schematics, Edit component > Edit with Library Editor
  72. Make the changes in the component editor. Important: make sure that
  73. all pins are aligned with a 50 mil grid. To abort changes, simply
  74. quit the component editor. To save changes, click
  75. Update current component in current library
  76. followed by
  77. Save current library to disk
  78. Eeschema will pick up changes in geometry and fixed text automatically,
  79. but it will not change fields of existing symbols. To update fields to
  80. the definitions in the library, press E to edit the component, then
  81. click Reset to Library Defaults.
  82. Component text alignment
  83. ------------------------
  84. Many text fields in the converted schematics are vertically aligned
  85. with the bottom of the text. It is often more convenient to align with
  86. the center, such that a field can be placed near a wire (or anything
  87. else that follows the 50 mil grid) without getting too close.
  88. Pin types
  89. ---------
  90. Some pin types in the converted schematics are incorrect or at least
  91. unusual. In general, passive components like LED should have their
  92. terminals marked as "passive", not as "power input" or such.
  93. Pin types can only be corrected by changing the component in the
  94. library.
  95. Label text size
  96. ---------------
  97. Many labels have (or had) a text size of 65 mil. This makes global
  98. labels overlap when stacked with 100 mil spacing. The text size can
  99. be changed by pressing "E" on the label.
  100. Label type and direction
  101. ------------------------
  102. Labels that should be global were converted to local. To change them
  103. back to global, right-click, Change type > Change to Global Label
  104. In KiCad, global and hierarchical labels (but not local labels)
  105. indicate a direction. This can be changed by pressing "E" on the global
  106. label.
  107. Tiny labels
  108. -----------
  109. The converter flags each net with a tiny label (10 mil), to ensure the
  110. net is really what Eagle said it was. Most of these labels have already
  111. been removed, but some remain.
  112. In general, all such labels should be deleted. Since they can sometimes
  113. indicate conflicts in the design (cf. VBUS), one should check, before
  114. deleting, that they are consistent with the net that is expected to be
  115. at this location.
  116. Power flag
  117. ----------
  118. KiCad requires all nets that are used as power input to be driven by a
  119. power output (i.e., a pin marked as such). If a net has no implicit
  120. power source (e.g., if it is separated from a power output by a choke),
  121. the POWERED symbol (which is a single-pin power output) has to be placed
  122. on the net. (POWERED is a nicer form of PWR_FLAG from the default KiCad
  123. library.)
  124. Unusual wiring
  125. --------------
  126. The "normal" drawing style in KiCad is that pins are connected by a
  127. single wire that continues for at least 50 mil, better 100 mil, in the
  128. direction of the pin. This wire can then bend, form T-joints with other
  129. wires, etc.
  130. The converted schematics contain a large number of wires that are
  131. perpendicular to the pin they connect to, and some pins are even
  132. connected directly, without wire. While this "works", it often looks
  133. confusing and it complicates moving or dragging items. The best way to
  134. resolve such issues is often to just delete the wires and junctions of
  135. the net in question, move components to create a bit more room, then
  136. redraw the net.
  137. Caution: deleting a wire often deletes the entire wire, across
  138. junctions. Checking the result of major reconstruction against a PDF
  139. taken from the original state (or the Eagle original) is recommended.
  140. Unifying multi-unit components
  141. ------------------------------
  142. Some components are drawn as consisting of a very large number of
  143. units. E.g., the rather simple digital microphones had no less than
  144. five units each.
  145. A quick way to reduce the number of units is to invoke the component
  146. editor on the component, setting the pins in units B and above to
  147. "Common to all units in component", reducing the number of units in
  148. "Edit component properties" to one, and finally arranging the pins in
  149. a suitable pattern.
  150. Oversized arcs
  151. --------------
  152. KiCad arcs can be either clockwise or counter-clockwise, and there is
  153. no explicit indication of the direction. To avoid ambiguities, arcs are
  154. limited to < 180 degrees. The converter seems to be unaware of this
  155. restriction and produces arcs >= 180 degrees. (Even when drawing an arc
  156. of 180 degrees in KiCad, it is saved with a start and end angle of 0.1
  157. and 179.9 degrees, respectively.)
  158. To fix this, oversized each arc needs to be broken into two (or more)
  159. smaller arcs.