copperflow 0.3.4 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (411) hide show
  1. package/README.md +117 -14
  2. package/dist/app/THIRD_PARTY_LICENSES.txt +5 -0
  3. package/dist/app/assets/NewPartDialog-ZQ4Y3m45.js +1 -0
  4. package/dist/app/assets/PackagesDialog-C8ZyWl-g.css +1 -0
  5. package/dist/app/assets/PackagesDialog-vEzilmpR.js +2 -0
  6. package/dist/app/assets/VerifyPartDialog-BHLqD_WJ.css +1 -0
  7. package/dist/app/assets/VerifyPartDialog-DYr1UIds.js +2 -0
  8. package/dist/app/assets/footprint-preview-Nyk2poiN.js +160 -0
  9. package/dist/app/assets/index-BUjGdMvr.js +20 -0
  10. package/dist/app/assets/index-CF7-tL4t.css +1 -0
  11. package/dist/app/assets/texture-worker-CyI_g_XZ.js +1 -0
  12. package/dist/app/index.html +2 -2
  13. package/dist/cli-commands.js +141 -16
  14. package/dist/cli-commands.js.map +1 -1
  15. package/dist/cli-impedance.d.ts +4 -0
  16. package/dist/cli-impedance.js +56 -0
  17. package/dist/cli-impedance.js.map +1 -0
  18. package/dist/cli-simulate.d.ts +3 -0
  19. package/dist/cli-simulate.js +54 -0
  20. package/dist/cli-simulate.js.map +1 -0
  21. package/dist/core/analyze.js +5 -2
  22. package/dist/core/analyze.js.map +1 -1
  23. package/dist/core/bom.d.ts +6 -1
  24. package/dist/core/bom.js +23 -4
  25. package/dist/core/bom.js.map +1 -1
  26. package/dist/core/case-results.d.ts +4 -0
  27. package/dist/core/case-results.js +9 -0
  28. package/dist/core/case-results.js.map +1 -0
  29. package/dist/core/change-files.d.ts +31 -0
  30. package/dist/core/change-files.js +67 -0
  31. package/dist/core/change-files.js.map +1 -0
  32. package/dist/core/change-render.d.ts +18 -0
  33. package/dist/core/change-render.js +48 -0
  34. package/dist/core/change-render.js.map +1 -0
  35. package/dist/core/change-view.d.ts +33 -0
  36. package/dist/core/change-view.js +73 -0
  37. package/dist/core/change-view.js.map +1 -0
  38. package/dist/core/change-words.d.ts +39 -0
  39. package/dist/core/change-words.js +214 -0
  40. package/dist/core/change-words.js.map +1 -0
  41. package/dist/core/checklist-text.d.ts +21 -0
  42. package/dist/core/checklist-text.js +59 -0
  43. package/dist/core/checklist-text.js.map +1 -0
  44. package/dist/core/edit.js +5 -2
  45. package/dist/core/edit.js.map +1 -1
  46. package/dist/core/fabrication.d.ts +9 -2
  47. package/dist/core/fabrication.js +29 -10
  48. package/dist/core/fabrication.js.map +1 -1
  49. package/dist/core/library.d.ts +46 -0
  50. package/dist/core/library.js +54 -16
  51. package/dist/core/library.js.map +1 -1
  52. package/dist/core/model-export.d.ts +33 -0
  53. package/dist/core/model-export.js +33 -0
  54. package/dist/core/model-export.js.map +1 -0
  55. package/dist/core/modules.d.ts +1 -0
  56. package/dist/core/modules.js +17 -0
  57. package/dist/core/modules.js.map +1 -1
  58. package/dist/core/order-report.d.ts +10 -0
  59. package/dist/core/order-report.js +93 -0
  60. package/dist/core/order-report.js.map +1 -0
  61. package/dist/core/packages.d.ts +18 -0
  62. package/dist/core/packages.js +49 -0
  63. package/dist/core/packages.js.map +1 -0
  64. package/dist/core/pin-header.d.ts +5 -0
  65. package/dist/core/pin-header.js +77 -0
  66. package/dist/core/pin-header.js.map +1 -0
  67. package/dist/core/pin-map.d.ts +46 -0
  68. package/dist/core/pin-map.js +101 -0
  69. package/dist/core/pin-map.js.map +1 -0
  70. package/dist/core/render.d.ts +26 -5
  71. package/dist/core/render.js +16 -6
  72. package/dist/core/render.js.map +1 -1
  73. package/dist/core/sheet-card.d.ts +4 -0
  74. package/dist/core/sheet-card.js +46 -1
  75. package/dist/core/sheet-card.js.map +1 -1
  76. package/dist/core/sheet-files.js +10 -3
  77. package/dist/core/sheet-files.js.map +1 -1
  78. package/dist/core/simulate.d.ts +19 -0
  79. package/dist/core/simulate.js +72 -0
  80. package/dist/core/simulate.js.map +1 -0
  81. package/dist/core/step-export.d.ts +17 -0
  82. package/dist/core/step-export.js +35 -0
  83. package/dist/core/step-export.js.map +1 -0
  84. package/dist/core/supplier-prop.d.ts +6 -0
  85. package/dist/core/supplier-prop.js +21 -0
  86. package/dist/core/supplier-prop.js.map +1 -0
  87. package/dist/core/workspace.d.ts +2 -1
  88. package/dist/core/workspace.js +2 -1
  89. package/dist/core/workspace.js.map +1 -1
  90. package/dist/engine/board.js +3 -1
  91. package/dist/engine/board.js.map +1 -1
  92. package/dist/engine/checks/fast-lines.d.ts +60 -0
  93. package/dist/engine/checks/fast-lines.js +209 -0
  94. package/dist/engine/checks/fast-lines.js.map +1 -0
  95. package/dist/engine/checks/index.js +2 -0
  96. package/dist/engine/checks/index.js.map +1 -1
  97. package/dist/engine/design-diff.d.ts +120 -0
  98. package/dist/engine/design-diff.js +249 -0
  99. package/dist/engine/design-diff.js.map +1 -0
  100. package/dist/engine/design.d.ts +3 -0
  101. package/dist/engine/design.js +7 -2
  102. package/dist/engine/design.js.map +1 -1
  103. package/dist/engine/fab/export.d.ts +17 -1
  104. package/dist/engine/fab/export.js +26 -4
  105. package/dist/engine/fab/export.js.map +1 -1
  106. package/dist/engine/fab/names.d.ts +2 -2
  107. package/dist/engine/fab/names.js +4 -2
  108. package/dist/engine/fab/names.js.map +1 -1
  109. package/dist/engine/fab/picture/board-picture.d.ts +52 -0
  110. package/dist/engine/fab/picture/board-picture.js +102 -0
  111. package/dist/engine/fab/picture/board-picture.js.map +1 -0
  112. package/dist/engine/fab/picture/board-view.d.ts +20 -0
  113. package/dist/engine/fab/picture/board-view.js +50 -0
  114. package/dist/engine/fab/picture/board-view.js.map +1 -0
  115. package/dist/engine/fab/picture/compose.d.ts +50 -0
  116. package/dist/engine/fab/picture/compose.js +208 -0
  117. package/dist/engine/fab/picture/compose.js.map +1 -0
  118. package/dist/engine/fab/picture/layer-images.d.ts +9 -0
  119. package/dist/engine/fab/picture/layer-images.js +67 -0
  120. package/dist/engine/fab/picture/layer-images.js.map +1 -0
  121. package/dist/engine/fab/picture/looks.d.ts +152 -0
  122. package/dist/engine/fab/picture/looks.js +53 -0
  123. package/dist/engine/fab/picture/looks.js.map +1 -0
  124. package/dist/engine/fab/picture/png.d.ts +31 -0
  125. package/dist/engine/fab/picture/png.js +47 -0
  126. package/dist/engine/fab/picture/png.js.map +1 -0
  127. package/dist/engine/fab/picture/raster.d.ts +46 -0
  128. package/dist/engine/fab/picture/raster.js +170 -0
  129. package/dist/engine/fab/picture/raster.js.map +1 -0
  130. package/dist/engine/fab/zip.d.ts +2 -1
  131. package/dist/engine/fab/zip.js +1 -1
  132. package/dist/engine/fab/zip.js.map +1 -1
  133. package/dist/engine/footprints/array.d.ts +4 -0
  134. package/dist/engine/footprints/array.js +51 -0
  135. package/dist/engine/footprints/array.js.map +1 -0
  136. package/dist/engine/footprints/axial.d.ts +6 -0
  137. package/dist/engine/footprints/axial.js +115 -0
  138. package/dist/engine/footprints/axial.js.map +1 -0
  139. package/dist/engine/footprints/catalogue.d.ts +39 -0
  140. package/dist/engine/footprints/catalogue.js +284 -0
  141. package/dist/engine/footprints/catalogue.js.map +1 -0
  142. package/dist/engine/footprints/chip.js +10 -1
  143. package/dist/engine/footprints/chip.js.map +1 -1
  144. package/dist/engine/footprints/connector.d.ts +16 -0
  145. package/dist/engine/footprints/connector.js +31 -0
  146. package/dist/engine/footprints/connector.js.map +1 -0
  147. package/dist/engine/footprints/dcjack.d.ts +3 -0
  148. package/dist/engine/footprints/dcjack.js +46 -0
  149. package/dist/engine/footprints/dcjack.js.map +1 -0
  150. package/dist/engine/footprints/dpak.d.ts +7 -0
  151. package/dist/engine/footprints/dpak.js +172 -0
  152. package/dist/engine/footprints/dpak.js.map +1 -0
  153. package/dist/engine/footprints/dual.d.ts +11 -2
  154. package/dist/engine/footprints/dual.js +113 -12
  155. package/dist/engine/footprints/dual.js.map +1 -1
  156. package/dist/engine/footprints/index.js +46 -3
  157. package/dist/engine/footprints/index.js.map +1 -1
  158. package/dist/engine/footprints/inductor.d.ts +3 -0
  159. package/dist/engine/footprints/inductor.js +32 -0
  160. package/dist/engine/footprints/inductor.js.map +1 -0
  161. package/dist/engine/footprints/known.js +114 -14
  162. package/dist/engine/footprints/known.js.map +1 -1
  163. package/dist/engine/footprints/ledsmd.d.ts +3 -0
  164. package/dist/engine/footprints/ledsmd.js +52 -0
  165. package/dist/engine/footprints/ledsmd.js.map +1 -0
  166. package/dist/engine/footprints/ledth.d.ts +4 -0
  167. package/dist/engine/footprints/ledth.js +45 -0
  168. package/dist/engine/footprints/ledth.js.map +1 -0
  169. package/dist/engine/footprints/melf.d.ts +8 -0
  170. package/dist/engine/footprints/melf.js +56 -0
  171. package/dist/engine/footprints/melf.js.map +1 -0
  172. package/dist/engine/footprints/plcc.d.ts +4 -0
  173. package/dist/engine/footprints/plcc.js +117 -0
  174. package/dist/engine/footprints/plcc.js.map +1 -0
  175. package/dist/engine/footprints/resonator.d.ts +3 -0
  176. package/dist/engine/footprints/resonator.js +33 -0
  177. package/dist/engine/footprints/resonator.js.map +1 -0
  178. package/dist/engine/footprints/screw.d.ts +3 -0
  179. package/dist/engine/footprints/screw.js +51 -0
  180. package/dist/engine/footprints/screw.js.map +1 -0
  181. package/dist/engine/footprints/smallsot.d.ts +8 -0
  182. package/dist/engine/footprints/smallsot.js +143 -0
  183. package/dist/engine/footprints/smallsot.js.map +1 -0
  184. package/dist/engine/footprints/smdbox.d.ts +33 -0
  185. package/dist/engine/footprints/smdbox.js +76 -0
  186. package/dist/engine/footprints/smdbox.js.map +1 -0
  187. package/dist/engine/footprints/smdcan.d.ts +3 -0
  188. package/dist/engine/footprints/smdcan.js +61 -0
  189. package/dist/engine/footprints/smdcan.js.map +1 -0
  190. package/dist/engine/footprints/smdip.d.ts +4 -0
  191. package/dist/engine/footprints/smdip.js +58 -0
  192. package/dist/engine/footprints/smdip.js.map +1 -0
  193. package/dist/engine/footprints/socket.d.ts +8 -0
  194. package/dist/engine/footprints/socket.js +21 -0
  195. package/dist/engine/footprints/socket.js.map +1 -0
  196. package/dist/engine/footprints/sod.d.ts +6 -0
  197. package/dist/engine/footprints/sod.js +63 -6
  198. package/dist/engine/footprints/sod.js.map +1 -1
  199. package/dist/engine/footprints/sot.d.ts +1 -1
  200. package/dist/engine/footprints/sot.js +17 -2
  201. package/dist/engine/footprints/sot.js.map +1 -1
  202. package/dist/engine/footprints/tact.d.ts +3 -0
  203. package/dist/engine/footprints/tact.js +65 -0
  204. package/dist/engine/footprints/tact.js.map +1 -0
  205. package/dist/engine/footprints/tantalum.d.ts +7 -0
  206. package/dist/engine/footprints/tantalum.js +91 -0
  207. package/dist/engine/footprints/tantalum.js.map +1 -0
  208. package/dist/engine/footprints/to92inline.d.ts +14 -0
  209. package/dist/engine/footprints/to92inline.js +21 -0
  210. package/dist/engine/footprints/to92inline.js.map +1 -0
  211. package/dist/engine/footprints/topower.d.ts +7 -0
  212. package/dist/engine/footprints/topower.js +119 -0
  213. package/dist/engine/footprints/topower.js.map +1 -0
  214. package/dist/engine/footprints/usb.d.ts +32 -0
  215. package/dist/engine/footprints/usb.js +109 -0
  216. package/dist/engine/footprints/usb.js.map +1 -0
  217. package/dist/engine/footprints/xtal.d.ts +4 -0
  218. package/dist/engine/footprints/xtal.js +61 -0
  219. package/dist/engine/footprints/xtal.js.map +1 -0
  220. package/dist/engine/impedance.d.ts +72 -0
  221. package/dist/engine/impedance.js +133 -0
  222. package/dist/engine/impedance.js.map +1 -0
  223. package/dist/engine/line-length.d.ts +15 -0
  224. package/dist/engine/line-length.js +116 -0
  225. package/dist/engine/line-length.js.map +1 -0
  226. package/dist/engine/model.d.ts +2 -0
  227. package/dist/engine/model.js.map +1 -1
  228. package/dist/engine/pcb-place/roles.d.ts +3 -1
  229. package/dist/engine/pcb-place/roles.js +5 -0
  230. package/dist/engine/pcb-place/roles.js.map +1 -1
  231. package/dist/engine/rules/impedance-widths.d.ts +20 -0
  232. package/dist/engine/rules/impedance-widths.js +57 -0
  233. package/dist/engine/rules/impedance-widths.js.map +1 -0
  234. package/dist/engine/rules/load.js +11 -2
  235. package/dist/engine/rules/load.js.map +1 -1
  236. package/dist/engine/rules/pairs.d.ts +27 -0
  237. package/dist/engine/rules/pairs.js +86 -0
  238. package/dist/engine/rules/pairs.js.map +1 -0
  239. package/dist/engine/rules/profiles.js +16 -0
  240. package/dist/engine/rules/profiles.js.map +1 -1
  241. package/dist/engine/rules/rotations.d.ts +12 -3
  242. package/dist/engine/rules/rotations.js +77 -2
  243. package/dist/engine/rules/rotations.js.map +1 -1
  244. package/dist/engine/rules/schema.d.ts +44 -0
  245. package/dist/engine/rules/schema.js +16 -1
  246. package/dist/engine/rules/schema.js.map +1 -1
  247. package/dist/engine/sim/answer.d.ts +13 -0
  248. package/dist/engine/sim/answer.js +101 -0
  249. package/dist/engine/sim/answer.js.map +1 -0
  250. package/dist/engine/sim/cases.d.ts +29 -0
  251. package/dist/engine/sim/cases.js +63 -0
  252. package/dist/engine/sim/cases.js.map +1 -0
  253. package/dist/engine/sim/devices.d.ts +109 -0
  254. package/dist/engine/sim/devices.js +137 -0
  255. package/dist/engine/sim/devices.js.map +1 -0
  256. package/dist/engine/sim/elements.d.ts +49 -0
  257. package/dist/engine/sim/elements.js +2 -0
  258. package/dist/engine/sim/elements.js.map +1 -0
  259. package/dist/engine/sim/from-circuit.d.ts +52 -0
  260. package/dist/engine/sim/from-circuit.js +354 -0
  261. package/dist/engine/sim/from-circuit.js.map +1 -0
  262. package/dist/engine/sim/limits.d.ts +12 -0
  263. package/dist/engine/sim/limits.js +79 -0
  264. package/dist/engine/sim/limits.js.map +1 -0
  265. package/dist/engine/sim/linear.d.ts +2 -0
  266. package/dist/engine/sim/linear.js +49 -0
  267. package/dist/engine/sim/linear.js.map +1 -0
  268. package/dist/engine/sim/model-schema.d.ts +246 -0
  269. package/dist/engine/sim/model-schema.js +115 -0
  270. package/dist/engine/sim/model-schema.js.map +1 -0
  271. package/dist/engine/sim/part-models.d.ts +47 -0
  272. package/dist/engine/sim/part-models.js +102 -0
  273. package/dist/engine/sim/part-models.js.map +1 -0
  274. package/dist/engine/sim/run.d.ts +14 -0
  275. package/dist/engine/sim/run.js +13 -0
  276. package/dist/engine/sim/run.js.map +1 -0
  277. package/dist/engine/sim/solve.d.ts +42 -0
  278. package/dist/engine/sim/solve.js +294 -0
  279. package/dist/engine/sim/solve.js.map +1 -0
  280. package/dist/engine/sim/spice.d.ts +5 -0
  281. package/dist/engine/sim/spice.js +66 -0
  282. package/dist/engine/sim/spice.js.map +1 -0
  283. package/dist/engine/sim/values.d.ts +4 -0
  284. package/dist/engine/sim/values.js +40 -0
  285. package/dist/engine/sim/values.js.map +1 -0
  286. package/dist/engine/solid/heights-smd.d.ts +3 -0
  287. package/dist/engine/solid/heights-smd.js +81 -0
  288. package/dist/engine/solid/heights-smd.js.map +1 -0
  289. package/dist/engine/solid/heights-through.d.ts +7 -0
  290. package/dist/engine/solid/heights-through.js +93 -0
  291. package/dist/engine/solid/heights-through.js.map +1 -0
  292. package/dist/engine/solid/heights-uno.d.ts +2 -0
  293. package/dist/engine/solid/heights-uno.js +15 -0
  294. package/dist/engine/solid/heights-uno.js.map +1 -0
  295. package/dist/engine/solid/heights.d.ts +31 -0
  296. package/dist/engine/solid/heights.js +112 -0
  297. package/dist/engine/solid/heights.js.map +1 -0
  298. package/dist/engine/solid/limits.d.ts +7 -0
  299. package/dist/engine/solid/limits.js +20 -0
  300. package/dist/engine/solid/limits.js.map +1 -0
  301. package/dist/engine/solid/model.d.ts +54 -0
  302. package/dist/engine/solid/model.js +147 -0
  303. package/dist/engine/solid/model.js.map +1 -0
  304. package/dist/engine/solid/step.d.ts +5 -0
  305. package/dist/engine/solid/step.js +164 -0
  306. package/dist/engine/solid/step.js.map +1 -0
  307. package/dist/engine/solid/thickness.d.ts +11 -0
  308. package/dist/engine/solid/thickness.js +10 -0
  309. package/dist/engine/solid/thickness.js.map +1 -0
  310. package/dist/library/kicad/board.d.ts +26 -0
  311. package/dist/library/kicad/board.js +96 -0
  312. package/dist/library/kicad/board.js.map +1 -0
  313. package/dist/library/kicad/copper.d.ts +44 -0
  314. package/dist/library/kicad/copper.js +106 -0
  315. package/dist/library/kicad/copper.js.map +1 -0
  316. package/dist/library/kicad/footprints.d.ts +62 -0
  317. package/dist/library/kicad/footprints.js +184 -0
  318. package/dist/library/kicad/footprints.js.map +1 -0
  319. package/dist/library/kicad/geometry.d.ts +36 -0
  320. package/dist/library/kicad/geometry.js +84 -0
  321. package/dist/library/kicad/geometry.js.map +1 -0
  322. package/dist/library/kicad/import.d.ts +58 -0
  323. package/dist/library/kicad/import.js +240 -0
  324. package/dist/library/kicad/import.js.map +1 -0
  325. package/dist/library/kicad/plan.d.ts +40 -0
  326. package/dist/library/kicad/plan.js +139 -0
  327. package/dist/library/kicad/plan.js.map +1 -0
  328. package/dist/library/kicad/read.d.ts +30 -0
  329. package/dist/library/kicad/read.js +105 -0
  330. package/dist/library/kicad/read.js.map +1 -0
  331. package/dist/library/kicad/sexpr.d.ts +36 -0
  332. package/dist/library/kicad/sexpr.js +153 -0
  333. package/dist/library/kicad/sexpr.js.map +1 -0
  334. package/dist/library/kicad/tally.d.ts +32 -0
  335. package/dist/library/kicad/tally.js +55 -0
  336. package/dist/library/kicad/tally.js.map +1 -0
  337. package/dist/library/kicad/write.d.ts +37 -0
  338. package/dist/library/kicad/write.js +146 -0
  339. package/dist/library/kicad/write.js.map +1 -0
  340. package/dist/library/new-part.d.ts +2 -0
  341. package/dist/library/new-part.js +1 -0
  342. package/dist/library/new-part.js.map +1 -1
  343. package/dist/mcp/board-import-tool.d.ts +1 -1
  344. package/dist/mcp/board-import-tool.js +14 -4
  345. package/dist/mcp/board-import-tool.js.map +1 -1
  346. package/dist/mcp/copper-summary.d.ts +2 -0
  347. package/dist/mcp/copper-summary.js +4 -2
  348. package/dist/mcp/copper-summary.js.map +1 -1
  349. package/dist/mcp/create-part.d.ts +23 -0
  350. package/dist/mcp/create-part.js +1 -0
  351. package/dist/mcp/create-part.js.map +1 -1
  352. package/dist/mcp/fast-summary.d.ts +3 -0
  353. package/dist/mcp/fast-summary.js +46 -0
  354. package/dist/mcp/fast-summary.js.map +1 -0
  355. package/dist/mcp/guide.d.ts +3 -1
  356. package/dist/mcp/guide.js +15 -4
  357. package/dist/mcp/guide.js.map +1 -1
  358. package/dist/mcp/model-tool.d.ts +31 -0
  359. package/dist/mcp/model-tool.js +27 -0
  360. package/dist/mcp/model-tool.js.map +1 -0
  361. package/dist/mcp/render-tool.d.ts +33 -2
  362. package/dist/mcp/render-tool.js +21 -5
  363. package/dist/mcp/render-tool.js.map +1 -1
  364. package/dist/mcp/server.js +20 -8
  365. package/dist/mcp/server.js.map +1 -1
  366. package/dist/mcp/sheet-card-tools.d.ts +3 -1
  367. package/dist/mcp/sheet-card-tools.js +3 -1
  368. package/dist/mcp/sheet-card-tools.js.map +1 -1
  369. package/dist/mcp/simulate-tool.d.ts +10 -0
  370. package/dist/mcp/simulate-tool.js +12 -0
  371. package/dist/mcp/simulate-tool.js.map +1 -0
  372. package/dist/render/render.js +11327 -1645
  373. package/dist/studio/change-route.d.ts +18 -0
  374. package/dist/studio/change-route.js +24 -0
  375. package/dist/studio/change-route.js.map +1 -0
  376. package/dist/studio/http-error.d.ts +5 -0
  377. package/dist/studio/http-error.js +9 -0
  378. package/dist/studio/http-error.js.map +1 -0
  379. package/dist/studio/live.d.ts +2 -0
  380. package/dist/studio/live.js.map +1 -1
  381. package/dist/studio/server.js +43 -15
  382. package/dist/studio/server.js.map +1 -1
  383. package/dist/studio/verify-routes.d.ts +42 -0
  384. package/dist/studio/verify-routes.js +110 -0
  385. package/dist/studio/verify-routes.js.map +1 -0
  386. package/dist/version.d.ts +1 -1
  387. package/dist/version.js +1 -1
  388. package/library/modules/CanNode/CanNode.sheet.tsx +1 -1
  389. package/library/modules/CanNode/parts/MCP2515-I-SO/MCP2515_I_SO.tsx +1 -0
  390. package/library/modules/CanNode/parts/MCP2515-I-SO/part.yaml +2 -0
  391. package/library/modules/CanNode/parts/MCP2515-I-SO/verification.md +2 -1
  392. package/library/modules/CanNode/parts/TJA1051T-3/TJA1051T_3.tsx +1 -0
  393. package/library/modules/CanNode/parts/TJA1051T-3/part.yaml +2 -0
  394. package/library/modules/CanNode/parts/TJA1051T-3/verification.md +2 -1
  395. package/library/modules/DigitalInput24V/DigitalInput24V.sheet.tsx +7 -7
  396. package/library/modules/RelayDriver/RelayDriver.sheet.tsx +3 -3
  397. package/library/modules/RelayDriver/parts/AO3400A/part.yaml +34 -0
  398. package/library/modules/RelayDriver/parts/AO3400A/verification.md +11 -1
  399. package/library/modules/RelayDriver/parts/SRD-12VDC-SL-C/SRD_12VDC_SL_C.tsx +1 -0
  400. package/library/modules/RelayDriver/parts/SRD-12VDC-SL-C/part.yaml +14 -0
  401. package/library/modules/RelayDriver/parts/SRD-12VDC-SL-C/verification.md +4 -1
  402. package/package.json +2 -1
  403. package/skills/copperflow/references/copper.md +8 -0
  404. package/skills/copperflow/references/design-rules.md +57 -6
  405. package/skills/copperflow/references/editable-subset.md +18 -8
  406. package/skills/copperflow/references/modules.md +26 -0
  407. package/skills/copperflow/references/parts-library.md +2 -1
  408. package/skills/copperflow/references/writing-circuits.md +9 -0
  409. package/dist/app/assets/NewPartDialog-C4sKWnGI.js +0 -160
  410. package/dist/app/assets/index-BgzJedaB.css +0 -1
  411. package/dist/app/assets/index-C_U9me2P.js +0 -19
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-routes.js","sourceRoot":"","sources":["../../src/studio/verify-routes.ts"],"names":[],"mappings":"AAAA,gHAAgH;AAChH,iHAAiH;AACjH,sGAAsG;AACtG,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;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C,QAAQ,CAAC,QAAQ,CAAC,KAAK,OAAO;QAAE,MAAM,IAAI,SAAS,CAAC,GAAG,EAAE,GAAG,KAAK,eAAe,CAAC,CAAA;IAC1G,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA;AAClC,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.3.4";
1
+ export declare const VERSION = "0.4.1";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.3.4";
1
+ export const VERSION = "0.4.1";
2
2
  //# sourceMappingURL=version.js.map
@@ -2,7 +2,7 @@ import { MCP2515_I_SO } from "./parts/MCP2515-I-SO/MCP2515_I_SO"
2
2
  import { TJA1051T_3 } from "./parts/TJA1051T-3/TJA1051T_3"
3
3
  export default function CanNode() {
4
4
  return (
5
- <sheet does="CAN node: MCP2515 on 3.3 V, 8 MHz crystal (CL 18 pF, 27 pF caps), TJA1051T/3 with VIO 3.3 V and VCC 5 V, 120 ohm termination to the TERM port" sources={["https://ww1.microchip.com/downloads/en/DeviceDoc/MCP2515-Stand-Alone-CAN-Controller-with-SPI-20001801J.pdf (p1 pinout, p4 Table 1-1)","https://www.nxp.com/docs/en/data-sheet/TJA1051.pdf (p4 Table 3; S low selects Normal mode, p5)","https://abracon.com/Resonators/abl.pdf (ABL HC49/US: CL 18 pF, C0 7 pF max, p1)"]}>
5
+ <sheet does="CAN node: MCP2515 on 3.3 V, 8 MHz crystal (CL 18 pF, 27 pF caps), TJA1051T/3 with VIO 3.3 V and VCC 5 V, 120 ohm termination to the TERM port" sources={["https://ww1.microchip.com/downloads/en/DeviceDoc/MCP2515-Stand-Alone-CAN-Controller-with-SPI-20001801J.pdf (p1 pinout, p4 Table 1-1)","https://www.nxp.com/docs/en/data-sheet/TJA1051.pdf (p4 Table 3; S low selects Normal mode, p5)","https://abracon.com/Resonators/abl.pdf (ABL HC49/US: CL 18 pF, C0 7 pF max, p1)"]} cases={[{ name: "termination: 1 V across CANH and TERM", set: { V5: 5, V3V3: 3.3, GND: 0, CANH: 1, TERM: 0 }, expect: { "R2.i": [0.0083, 0.00837] } }, { name: "supplies reach the pins", set: { V5: 5, V3V3: 3.3, GND: 0 }, expect: { RESET: [3.29, 3.31], V3V3: [3.29, 3.31], V5: [4.99, 5.01] } }]}>
6
6
  <port name="V5" type="power_in" carries="5 V in, 70 mA at most (transceiver, bus dominant)" />
7
7
  <port name="V3V3" type="power_in" carries="3.3 V in, 10 mA (controller 5 mA typ, VIO)" />
8
8
  <port name="GND" type="ground" carries="logic and bus ground" />
@@ -5,6 +5,7 @@ export const MCP2515_I_SO = (props: { name: string; [prop: string]: unknown }) =
5
5
  manufacturerPartNumber={"MCP2515-I/SO"}
6
6
  pinLabels={{"pin1":"TXCAN","pin2":"RXCAN","pin3":"CLKOUT","pin4":"TX0RTS","pin5":"TX1RTS","pin6":"TX2RTS","pin7":"OSC2","pin8":"OSC1","pin9":"VSS","pin10":"RX1BF","pin11":"RX0BF","pin12":"INT","pin13":"SCK","pin14":"SI","pin15":"SO","pin16":"CS","pin17":"RESET","pin18":"VDD"}}
7
7
  pinAttributes={{"pin1":{"isOutput":true},"pin2":{"isInput":true},"pin3":{"isOutput":true},"pin4":{"isInput":true},"pin5":{"isInput":true},"pin6":{"isInput":true},"pin7":{"isOutput":true},"pin8":{"isInput":true},"pin9":{"requiresGround":true},"pin10":{"isOutput":true},"pin11":{"isOutput":true},"pin12":{"isOutput":true},"pin13":{"isInput":true},"pin14":{"isInput":true},"pin15":{"isOutput":true},"pin16":{"isInput":true},"pin17":{"isInput":true},"pin18":{"requiresPower":true}}}
8
+ height={2.65}
8
9
  {...props}
9
10
  />
10
11
  )
@@ -3,6 +3,8 @@ manufacturer: Microchip Technology
3
3
  mpn: MCP2515-I/SO
4
4
  origin: written 2026-11-17
5
5
  footprint: soic18w
6
+ height: 2.65
7
+ height_source: "p82, 18-lead SOIC 7.50 mm body, overall height A max 2.65 mm"
6
8
  pins:
7
9
  "1":
8
10
  name: TXCAN
@@ -1,7 +1,7 @@
1
1
  # Verification of MCP2515 stand-alone CAN controller with SPI, SOIC-18 wide
2
2
 
3
3
  Status: not verified
4
- Content: 5cff0330a85f (changes when part.yaml changes)
4
+ Content: 1cf0d2ad3ec8 (changes when part.yaml changes)
5
5
 
6
6
  Check each item against the datasheet and write the page next to it. When everything is
7
7
  checked, run in a terminal: copperflow parts verify MCP2515-I-SO --by "<your name>" --against "<datasheet, revision, page>"
@@ -26,6 +26,7 @@ checked, run in a terminal: copperflow parts verify MCP2515-I-SO --by "<your nam
26
26
  - [ ] Pin 17 is RESET (input)
27
27
  - [ ] Pin 18 is VDD (power in)
28
28
  - [ ] Footprint soic18w matches the package drawing
29
+ - [ ] Height 2.65 mm, p82, 18-lead SOIC 7.50 mm body, overall height A max 2.65 mm: compare
29
30
 
30
31
  ## Notes
31
32
 
@@ -5,6 +5,7 @@ export const TJA1051T_3 = (props: { name: string; [prop: string]: unknown }) =>
5
5
  manufacturerPartNumber={"TJA1051T/3/1J"}
6
6
  pinLabels={{"pin1":"TXD","pin2":"GND","pin3":"VCC","pin4":"RXD","pin5":"VIO","pin6":"CANL","pin7":"CANH","pin8":"S"}}
7
7
  pinAttributes={{"pin1":{"isInput":true},"pin2":{"requiresGround":true},"pin3":{"requiresPower":true},"pin4":{"isOutput":true},"pin5":{"requiresPower":true},"pin6":{"isBidirectional":true},"pin7":{"isBidirectional":true},"pin8":{"isInput":true}}}
8
+ height={1.75}
8
9
  {...props}
9
10
  />
10
11
  )
@@ -3,6 +3,8 @@ manufacturer: NXP Semiconductors
3
3
  mpn: TJA1051T/3/1J
4
4
  origin: written 2026-11-17
5
5
  footprint: soic8
6
+ height: 1.75
7
+ height_source: "p15, Fig 9, SOT96-1 (SO8), A max 1.75 mm"
6
8
  pins:
7
9
  "1":
8
10
  name: TXD
@@ -1,7 +1,7 @@
1
1
  # Verification of TJA1051T/3 high-speed CAN transceiver with VIO, SO8
2
2
 
3
3
  Status: not verified
4
- Content: f4e84bf9c2e0 (changes when part.yaml changes)
4
+ Content: 7fd5fc15d390 (changes when part.yaml changes)
5
5
 
6
6
  Check each item against the datasheet and write the page next to it. When everything is
7
7
  checked, run in a terminal: copperflow parts verify TJA1051T-3 --by "<your name>" --against "<datasheet, revision, page>"
@@ -16,6 +16,7 @@ checked, run in a terminal: copperflow parts verify TJA1051T-3 --by "<your name>
16
16
  - [ ] Pin 7 is CANH (bidirectional)
17
17
  - [ ] Pin 8 is S (input)
18
18
  - [ ] Footprint soic8 matches the package drawing
19
+ - [ ] Height 1.75 mm, p15, Fig 9, SOT96-1 (SO8), A max 1.75 mm: compare
19
20
 
20
21
  ## Where each item was read
21
22
 
@@ -1,12 +1,12 @@
1
1
  export default function DigitalInput24V() {
2
2
  return (
3
- <sheet does="24 V digital input: 47k/10k divider, BZT52C3V6 3.6 V zener across the 10k, 1k/100nF RC to the output; 3.4 V at 24 V in, 0.43 mA" sources={["https://www.diodes.com/assets/Datasheets/ds18004.pdf (BZT52C3V6: 3.4 to 3.8 V at 5 mA, p2)","IEC 61131-2 type 1 input: on at 15 to 30 V, off below 5 V"]}>
4
- <port name="IN" type="input" carries="0 to 30 V from the field; 0.43 mA at 24 V" />
5
- <port name="OUT" type="output" carries="0 to 3.6 V logic, high above about 13 V in; 170 Hz low pass" />
6
- <port name="GND" type="ground" carries="field and logic ground, 0.5 mA" />
7
- <resistor name="R1" resistance="47k" footprint="0603" pcbX={7.75} pcbY={2.1} pcbRotation={180} />
8
- <resistor name="R2" resistance="10k" footprint="0603" pcbX={4.5} pcbY={2.1} pcbRotation={180} />
9
- <diode name="D1" manufacturerPartNumber="BZT52C3V6-7-F" footprint="sod123" pcbX={4.5} pcbY={0} pcbRotation={0} />
3
+ <sheet does="24 V digital input: 4.53k/1k divider, BZT52C3V6 zener across the 1k, 1k/100nF RC out; low at 5 V, high from 15 V, 3.07 to 3.45 V and 4.6 mA at 24 V" sources={["https://www.diodes.com/assets/Datasheets/ds18004.pdf (BZT52C3V6: 3.4 to 3.8 V at 5 mA, ZZT 90 ohm max, p2; typical curves Fig. 2, p3)","IEC 61131-2 type 1 input: on at 15 to 30 V, off below 5 V","YAGEO RC_L chip resistors: 1206 rated 1/4 W at 70 C (R1 takes 157 mW at 30 V)"]} cases={[{"name":"5 V in reads low","set":{"IN":5,"GND":0},"expect":{"OUT":[0,0.99]}},{"name":"15 V in reads high","set":{"IN":15,"GND":0},"expect":{"OUT":[2.31,3.6]}},{"name":"24 V in","set":{"IN":24,"GND":0},"expect":{"OUT":[3,3.5],"R1.i":[0.0045,0.0047]}},{"name":"30 V in stays under the pin limit","set":{"IN":30,"GND":0},"expect":{"OUT":[0,3.6],"R1.p":[0,0.25]}}]}>
4
+ <port name="IN" type="input" carries="0 to 30 V from the field; 4.6 mA at 24 V, 5.9 mA at 30 V" />
5
+ <port name="OUT" type="output" carries="3.3 V logic: low at 5 V in, high from 15 V, at most 3.53 V; 870 Hz low pass" />
6
+ <port name="GND" type="ground" carries="field and logic ground, 6 mA at most" />
7
+ <resistor name="R1" resistance="4.53k" footprint="1206" pcbX={8.5} pcbY={2.6} pcbRotation={180} />
8
+ <resistor name="R2" resistance="1k" footprint="0603" pcbX={4.5} pcbY={2.1} pcbRotation={180} />
9
+ <diode name="D1" manufacturerPartNumber="BZT52C3V6-7-F" footprint="sod123" pcbX={4.5} pcbY={0} pcbRotation={0} vf="0.9V" vfAt="10mA" vz="3.6V" vzAt="5mA" zz="90" pdmax="370mW" />
10
10
  <resistor name="R3" resistance="1k" footprint="0603" pcbX={1.25} pcbY={2.1} pcbRotation={180} />
11
11
  <capacitor name="C1" capacitance="100nF" footprint="0603" pcbX={0} pcbY={0} pcbRotation={0} />
12
12
  <trace from="R1.pin1" to="net.IN" />
@@ -2,7 +2,7 @@ import { SRD_12VDC_SL_C } from "./parts/SRD-12VDC-SL-C/SRD_12VDC_SL_C"
2
2
  import { AO3400A } from "./parts/AO3400A/AO3400A"
3
3
  export default function RelayDriver() {
4
4
  return (
5
- <sheet does="12 V SPDT relay switched by 3.3 V or 5 V logic: AO3400A low side (RDS(on) spec at 2.5 V), 1N4148W flyback, 100k pull-down, LED on while driven" sources={["https://www.circuitbasics.com/wp-content/uploads/2015/11/SRD-05VDC-SL-C-Datasheet.pdf (Songle SRD: p1 drilling and wiring, p2 coil 12 V 400 ohm 30 mA, contacts)","https://www.aosmd.com/res/datasheets/AO3400A.pdf (p2: VGS(th) 1.45 V max, RDS(on) < 48 mOhm at VGS 2.5 V)","https://www.diodes.com/assets/Datasheets/ds30086.pdf (1N4148W-7-F, SOD123, p1)","https://www.kingbrightusa.com/images/catalog/SPEC/APTD1608LZGCK.pdf (p2: VF 2.65 V typ at 2 mA)"]}>
5
+ <sheet does="12 V SPDT relay switched by 3.3 V or 5 V logic: AO3400A low side (RDS(on) spec at 2.5 V), 1N4148W flyback, 100k pull-down, LED on while driven" sources={["https://www.circuitbasics.com/wp-content/uploads/2015/11/SRD-05VDC-SL-C-Datasheet.pdf (Songle SRD: p1 drilling and wiring, p2 coil 12 V 400 ohm 30 mA, contacts)","https://www.aosmd.com/res/datasheets/AO3400A.pdf (p2: VGS(th) 1.45 V max, RDS(on) < 48 mOhm at VGS 2.5 V)","https://www.diodes.com/assets/Datasheets/ds30086.pdf (1N4148W-7-F, SOD123, p1)","https://www.kingbrightusa.com/images/catalog/SPEC/APTD1608LZGCK.pdf (p2: VF 2.65 V typ at 2 mA)"]} cases={[{ name: "3.3 V control", set: { V12: 12, GND: 0, CTRL: 3.3 }, expect: { "K1.coil.i": [0.027, 0.033], "Q1.vgs": [2.5, 12], "LED1.i": [0.0015, 0.0025] } }, { name: "5 V control", set: { V12: 12, GND: 0, CTRL: 5 }, expect: { "K1.coil.i": [0.027, 0.033], "Q1.vgs": [2.5, 12], "LED1.i": [0.0015, 0.0025] } }, { name: "0 V control", set: { V12: 12, GND: 0, CTRL: 0 }, expect: { "K1.coil.i": [0, 0.0001], "LED1.i": [-0.000001, 0.00001] } }, { name: "control open", set: { V12: 12, GND: 0, CTRL: "open" }, expect: { "K1.coil.i": [0, 0.0001], "LED1.i": [-0.000001, 0.00001] } }]}>
6
6
  <port name="V12" type="power_in" carries="12 V in, 33 mA (coil 30 mA, LED 2 mA)" />
7
7
  <port name="GND" type="ground" carries="return of coil and logic, 33 mA" />
8
8
  <port name="CTRL" type="input" carries="0 off; 3.3 V or 5 V logic on, 0.03 mA; open is off" />
@@ -11,11 +11,11 @@ export default function RelayDriver() {
11
11
  <port name="NC" type="passive" carries="normally closed contact, open while CTRL is high, 10 A at most" />
12
12
  <SRD_12VDC_SL_C name="K1" pcbX={0} pcbY={0} pcbRotation={0} />
13
13
  <AO3400A name="Q1" pcbX={-12} pcbY={-5} pcbRotation={0} />
14
- <diode name="D1" manufacturerPartNumber="1N4148W-7-F" footprint="sod123" pcbX={-11.15} pcbY={0} pcbRotation={90} />
14
+ <diode name="D1" manufacturerPartNumber="1N4148W-7-F" vf="0.715V" vfAt="1mA" vf2="0.855V" vf2At="10mA" ifmax="300mA" pdmax="400mW" footprint="sod123" pcbX={-11.15} pcbY={0} pcbRotation={90} />
15
15
  <resistor name="R1" resistance="100" footprint="0603" pcbX={-12.25} pcbY={-7.85} pcbRotation={180} />
16
16
  <resistor name="R2" resistance="100k" footprint="0603" pcbX={-9} pcbY={-9} pcbRotation={0} />
17
17
  <resistor name="R3" resistance="4.7k" footprint="0603" pcbX={-7} pcbY={9} pcbRotation={180} />
18
- <led name="LED1" color="green" manufacturerPartNumber="APTD1608LZGCK" footprint="0603" pcbX={-10.8} pcbY={4.3} pcbRotation={270} />
18
+ <led name="LED1" color="green" manufacturerPartNumber="APTD1608LZGCK" vf="2.65V" vfAt="2mA" ifmax="25mA" pdmax="102.5mW" footprint="0603" pcbX={-10.8} pcbY={4.3} pcbRotation={270} />
19
19
  <trace from="K1.COIL1" to="net.V12" />
20
20
  <trace from="D1.cathode" to="net.V12" />
21
21
  <trace from="R3.pin1" to="net.V12" />
@@ -19,3 +19,37 @@ datasheet:
19
19
  url: https://www.aosmd.com/res/datasheets/AO3400A.pdf
20
20
  title: AO3400A datasheet
21
21
  datasheet_pages: 1 (SOT23 pin drawing), 2 (VGS(th), RDS(on))
22
+ model:
23
+ kind: nmos
24
+ pins:
25
+ gate: G
26
+ source: S
27
+ drain: D
28
+ figures:
29
+ vth:
30
+ value: 1.45
31
+ source: p2, Electrical Characteristics, VGS(th) max
32
+ rdson:
33
+ value: 0.048
34
+ source: p2, Electrical Characteristics, RDS(ON) max at VGS 2.5 V
35
+ rdsonAt:
36
+ value: 2.5
37
+ source: p2, Electrical Characteristics, RDS(ON) at VGS 2.5 V
38
+ vsd:
39
+ value: 1
40
+ source: p2, Electrical Characteristics, VSD max at IS 1 A
41
+ vsdAt:
42
+ value: 1
43
+ source: p2, Electrical Characteristics, VSD at IS 1 A
44
+ vdsmax:
45
+ value: 30
46
+ source: p1, Absolute Maximum Ratings, VDS
47
+ vgsmax:
48
+ value: 12
49
+ source: p1, Absolute Maximum Ratings, VGS
50
+ idmax:
51
+ value: 5.7
52
+ source: p1, Absolute Maximum Ratings, ID at TA 25 C
53
+ pdmax:
54
+ value: 1.4
55
+ source: p1, Absolute Maximum Ratings, PD at TA 25 C
@@ -1,7 +1,7 @@
1
1
  # Verification of AO3400A 30 V N-channel MOSFET, RDS(on) < 48 mOhm at VGS 2.5 V
2
2
 
3
3
  Status: not verified
4
- Content: 1d54e3b56f51 (changes when part.yaml changes)
4
+ Content: 07c6bbd2c035 (changes when part.yaml changes)
5
5
 
6
6
  Check each item against the datasheet and write the page next to it. When everything is
7
7
  checked, run in a terminal: copperflow parts verify AO3400A --by "<your name>" --against "<datasheet, revision, page>"
@@ -12,6 +12,16 @@ checked, run in a terminal: copperflow parts verify AO3400A --by "<your name>" -
12
12
  - [ ] Pin 3 is D (passive)
13
13
  - [ ] Footprint sot23 matches the package drawing
14
14
  - [ ] lcsc part C20917 is this exact part
15
+ - [ ] Model nmos pins: gate G, source S, drain D
16
+ - [ ] Model vth 1.45 V, p2, Electrical Characteristics, VGS(th) max: compare
17
+ - [ ] Model rdson 48.0 mΩ, p2, Electrical Characteristics, RDS(ON) max at VGS 2.5 V: compare
18
+ - [ ] Model rdsonAt 2.50 V, p2, Electrical Characteristics, RDS(ON) at VGS 2.5 V: compare
19
+ - [ ] Model vsd 1.00 V, p2, Electrical Characteristics, VSD max at IS 1 A: compare
20
+ - [ ] Model vsdAt 1.00 A, p2, Electrical Characteristics, VSD at IS 1 A: compare
21
+ - [ ] Model vdsmax 30.0 V, p1, Absolute Maximum Ratings, VDS: compare
22
+ - [ ] Model vgsmax 12.0 V, p1, Absolute Maximum Ratings, VGS: compare
23
+ - [ ] Model idmax 5.70 A, p1, Absolute Maximum Ratings, ID at TA 25 C: compare
24
+ - [ ] Model pdmax 1.40 W, p1, Absolute Maximum Ratings, PD at TA 25 C: compare
15
25
 
16
26
  ## Where each item was read
17
27
 
@@ -6,6 +6,7 @@ export const SRD_12VDC_SL_C = (props: { name: string; [prop: string]: unknown })
6
6
  supplierPartNumbers={{"lcsc":["C30431"]}}
7
7
  pinLabels={{"pin1":"COM","pin2":"COIL1","pin3":"COIL2","pin4":"NO","pin5":"NC"}}
8
8
  pinAttributes={{"pin1":{"isPassive":true},"pin2":{"isPassive":true},"pin3":{"isPassive":true},"pin4":{"isPassive":true},"pin5":{"isPassive":true}}}
9
+ height={15.3}
9
10
  {...props}
10
11
  />
11
12
  )
@@ -7,6 +7,8 @@ manufacturer: Ningbo Songle Relay
7
7
  mpn: SRD-12VDC-SL-C
8
8
  origin: written 2026-11-17
9
9
  footprint: footprint.yaml
10
+ height: 15.3
11
+ height_source: "p1, 5. DIMENSION, body 15.3 mm max"
10
12
  pins:
11
13
  "1":
12
14
  name: COM
@@ -29,3 +31,15 @@ datasheet:
29
31
  url: https://www.circuitbasics.com/wp-content/uploads/2015/11/SRD-05VDC-SL-C-Datasheet.pdf
30
32
  title: Songle Relay SRD datasheet
31
33
  datasheet_pages: 1 (DRILLING and WIRING DIAGRAM), 2 (coil data, contact rating)
34
+ model:
35
+ kind: relay
36
+ pins:
37
+ coil1: COIL1
38
+ coil2: COIL2
39
+ com: COM
40
+ no: NO
41
+ nc: NC
42
+ figures:
43
+ coil:
44
+ value: 400
45
+ source: p2, 6. Coil data chart, SRD high sensitivity 12 V
@@ -1,7 +1,7 @@
1
1
  # Verification of Songle SRD relay, 12 V coil (400 ohm, 30 mA), SPDT changeover, 10 A
2
2
 
3
3
  Status: not verified
4
- Content: 23f012c42e27 (changes when part.yaml or footprint.yaml changes)
4
+ Content: 0f44efc32ccc (changes when part.yaml or footprint.yaml changes)
5
5
 
6
6
  Check each item against the datasheet and write the page next to it. When everything is
7
7
  checked, run in a terminal: copperflow parts verify SRD-12VDC-SL-C --by "<your name>" --against "<datasheet, revision, page>"
@@ -15,6 +15,9 @@ checked, run in a terminal: copperflow parts verify SRD-12VDC-SL-C --by "<your n
15
15
  - [ ] Footprint footprint.yaml matches the package drawing
16
16
  - [ ] Every pad in footprint.yaml matches the recommended land pattern (position, size, drill)
17
17
  - [ ] lcsc part C30431 is this exact part
18
+ - [ ] Height 15.3 mm, p1, 5. DIMENSION, body 15.3 mm max: compare
19
+ - [ ] Model relay pins: coil1 COIL1, coil2 COIL2, com COM, no NO, nc NC
20
+ - [ ] Model coil 400 Ω, p2, 6. Coil data chart, SRD high sensitivity 12 V: compare
18
21
 
19
22
  ## Where each item was read
20
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copperflow",
3
- "version": "0.3.4",
3
+ "version": "0.4.1",
4
4
  "description": "Design circuits in code with a human and an AI agent editing the same files.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Eren Kürpe",
@@ -45,6 +45,7 @@
45
45
  "@babel/parser": "8.1.0",
46
46
  "@modelcontextprotocol/sdk": "1.32.2",
47
47
  "clipper-lib": "6.4.2",
48
+ "earcut": "3.2.4",
48
49
  "esbuild": "0.28.2",
49
50
  "magic-string": "1.4.5",
50
51
  "yaml": "2.9.1",
@@ -13,6 +13,14 @@ shapes inside it become keepouts on all layers (not cut out of the board). It an
13
13
  layer when the largest shape is not the board; `units` overrides the file's; a board that has holes
14
14
  or keepouts already needs `replace: true`. Placed parts stay; the answer names those now outside.
15
15
 
16
+ A KiCad board (`.kicad_pcb`, saved by KiCad 6 or newer, two copper layers) goes in the same tool:
17
+ `import_board` `{ file: "new.circuit.tsx", dxf: "old.kicad_pcb" }` writes `file` as a new circuit in one
18
+ change: the outline from Edge.Cuts, every footprint as a placed part (one library part per land
19
+ pattern, pin list and value, never verified), the nets, tracks, vias and pours. It builds and checks
20
+ the result and answers what it wrote against what the file held, whether every pad kept its net, and
21
+ a list `Not carried over:` by kind and count (silkscreen, texts, 3D models, rules, …). Tell the person
22
+ the parts must be compared with their datasheets before they are verified.
23
+
16
24
  ## Placing and routing
17
25
 
18
26
  Copper: place the parts first with `autoplace` (one history entry; parts without a position, or
@@ -87,12 +87,15 @@ globalNets: [GND, V24, V3_3]
87
87
  left out), and `fabrication.pasteReduction` how far the solder paste shrinks inside each SMD pad
88
88
  (0 when left out); both may be 0. The fabrication (Gerber) files use them.
89
89
  - `fabrication.placementRotations` adds degrees (counter-clockwise) to the parts' rotation in the
90
- pick-and-place file, per footprint family: `chip` (0603, 0805 ...), `sod`, `sot` (SOT-23),
91
- `sot223`, `sot89`, `soic`, `sop`, `tssop`, `qfn`, `dfn`, `qfp`, `lqfp`, `tqfp`, `bga`, `sma`,
92
- `smb`, `smc`, `do214ac`, `do214aa`, `do214ab`, `dip`, `to220`, `to92`, `hc49`, `hc49s`,
93
- `radial`, `pinrow`, `pinrow2x` (two-row headers) and `file` (footprint files). Left out, `soic`,
94
- `sop` and `tssop` are 270 and `sot` and `sot223` 180, the corrections commonly used for JLCPCB's
95
- part models; every other family is 0. JLCPCB's assembly preview is the final check: set a family only after the
90
+ pick-and-place file, per footprint family: `chip` (0603, 0805 ...), `sod` (also MELF), `sot` (SOT-23
91
+ and the small SOTs), `sot223`, `sot89`, `soic`, `sop`, `ssop`, `tssop`, `msop`, `qsop`, `qfn`, `dfn`,
92
+ `qfp`, `lqfp`, `tqfp`, `bga`, `sma`, `smb`, `smc`, `do214ac`, `do214aa`, `do214ab`, `tant`, `array`,
93
+ `dpak` (also `to252`), `d2pak` (also `to263`), `plcc`, `smdip`, `dip`, `axial` (also `do35` ...),
94
+ `to220`, `to247`, `to126`, `to92`, `hc49`, `hc49s`, `hc49smd`, `xtal`, `radial`, `smdcan`, `ledth`
95
+ (`led3mm`, `led5mm`), `ledsmd` (`led3528`, `led5050`), `pinrow`, `pinrow2x` (two-row headers),
96
+ `socket`, `socket2x`, `screw`, `resonator`, `usb`, `dcjack`, `tact`, `ind` and `file` (footprint files). Left out, `soic`, `sop`, `ssop`, `tssop`,
97
+ `msop` and `qsop` are 270 and `sot` and `sot223` 180, the corrections commonly used for JLCPCB's
98
+ part models; the small SOTs (`sot323`, `sc70`, `sot143` ...) take `sot`'s 180 because they are drawn as SOT-23 is, which has not been checked in the assembly preview for each, so set `sot` to override; every other family is 0. JLCPCB's assembly preview is the final check: set a family only after the
96
99
  preview shows its parts turned, for example `placementRotations: { qfn: 270 }`, and `0` takes a
97
100
  default back out. A library part drawn with its own footprint file can have
98
101
  its own correction by its id under `parts`, which takes the place of the `file` family's for that
@@ -121,6 +124,47 @@ globalNets: [GND, V24, V3_3]
121
124
  The `usb-c-ldo` example keeps one class: `power` for `VBUS`, `V3_3` and `GND`, with a 0.4 mm
122
125
  track width and 0.2 mm clearance. It names no profile, so the default applies.
123
126
 
127
+ ## Pairs, matched lengths and impedance
128
+
129
+ The router does not route pairs together and does not tune lengths: copperflow knows the classes and checks
130
+ them, and the tracks are yours to route. Calculated impedance is an estimate (about 1 % for a single line,
131
+ about 10 % for a pair, solder mask not counted): for a controlled impedance order, ask the board maker for
132
+ their stack and widths.
133
+
134
+ ```yaml
135
+ fabrication:
136
+ boardThickness: 1.6 # the profile's stack; each may be overridden
137
+ permittivity: 4.6
138
+ copperThickness: 0.035
139
+ solderMask: true
140
+ dielectricHeight: 1.53 # under an outer track; on 2 layers the board minus its two coppers when left out
141
+ netClasses:
142
+ can:
143
+ nets: [CANH, CANL]
144
+ pair: by-name # or a list: [[CANH, CANL]]
145
+ differentialImpedance: 120
146
+ gap: 0.2 # the track width then comes from the impedance
147
+ maxSkew: 2
148
+ minCoupled: 80 # percent of the pair's length side by side; 80 when left out
149
+ addr:
150
+ nets: ["A?"]
151
+ matchGroup: addr
152
+ maxSpread: 1
153
+ maxLength: 60
154
+ impedance: 50 # single line
155
+ ```
156
+
157
+ - `pair: by-name` pairs names ending in `_P`/`_N`, `+`/`-`, `DP`/`DM` and `H`/`L` (CANH/CANL) within the class.
158
+ - When `impedance` or `differentialImpedance` is given and `trackWidth` is not, the width (and a pair's gap, at
159
+ twice the profile's smallest gap unless `gap` is set) come from the stack; `copper_summary` says so. A target
160
+ the board cannot make (a gap or width under the profile's smallest) is a `rules` warning that says what it needs.
161
+ - The `jlcpcb-4layer` profile has no `dielectricHeight`: set it to calculate there.
162
+ - A length runs pad to pad along the joined copper, the farthest two pads of the net; a via adds the board's thickness.
163
+
164
+ To work with a pair: declare the class, route the two nets by hand with `route_track` side by side at the class's
165
+ width and gap (or let `autoroute` route them and read the checks), read `check_circuit` and `copper_summary`, and
166
+ fix a finding by re-routing. `copperflow impedance --single 50 --pair 90` prints the calculation for the project.
167
+
124
168
  ## What the checks report
125
169
 
126
170
  `copperflow check`, the agent's `check_circuit` and the Studio Checks panel (the `\` key) show the
@@ -150,6 +194,13 @@ position. Anything a check cannot evaluate is reported as `unchecked`, never sil
150
194
  | `silk-on-pad` | warning | Silkscreen lies on a pad, closer than `minSilkToPad`; or a designator covers pads or another designator (the same findings, in the same words, as `export_fabrication`'s warnings: move it with `pcbNameAt` or move the part). |
151
195
  | `unplaced` | warning | Parts still on automatic placement. |
152
196
  | `unrouted` | warning | Connections are not routed yet. With pours it also says how many more connections the pours make (those need no track), the same number `autoroute` leaves out of its total. |
197
+ | `pair-skew` | warning | The two nets of a pair differ in length by more than `maxSkew`. |
198
+ | `pair-apart` | warning | Less of a pair's length than `minCoupled` (80 %) runs within twice its gap of the other on one layer. |
199
+ | `pair-gap` | warning | Where a pair runs side by side, its gap is off the class's `gap`: how long and from where. |
200
+ | `pair-vias` | warning | The two nets of a pair have a different number of vias. |
201
+ | `net-length` | warning | A net is longer than its class's `maxLength`. |
202
+ | `match-spread` | warning | The nets of a `matchGroup` differ in length by more than `maxSpread`. |
203
+ | `impedance-width` | warning | A track of an impedance or pair class is wider than its class's width (narrower is `track-width`). |
153
204
  | `unchecked` | warning | A check could not run: an unknown pad shape, no usable board outline, a part with no position, or a duplicate violation id. |
154
205
 
155
206
  Rules the checks follow:
@@ -59,24 +59,34 @@ copperflow makes the pads itself from these `footprint` strings (case does not m
59
59
 
60
60
  | Family | Strings |
61
61
  |---|---|
62
- | Chip resistors, capacitors, LEDs | `0201`, `0402`, `0603`, `0805`, `1206`, `1210`, `1812`, `2010`, `2512` |
63
- | Diodes | `sod123`, `sod323`, `sma`, `smb`, `smc` (also `do214ac`, `do214aa`, `do214ab`) |
64
- | SOT-23 | `sot23`, `sot23_5`, `sot23_6` |
65
- | Power SOT | `sot223`, `sot89` |
66
- | SOIC, SOP, SSOP, TSSOP | `soic<N>` (3.9 mm body, N even 8–16), `soic<N>w` (7.5 mm body: 16, 18, 20, 24, 28), `sop<N>` (5.3 mm, 1.27 mm pitch, N even 8–16), `ssop<N>` (5.3 mm, 0.65 mm pitch: 14, 16, 20, 24, 28), `tssop<N>` (4.4 mm, 0.65 mm pitch, N even 8–28) |
62
+ | Chip resistors, capacitors, LEDs | `01005`, `0201`, `0402`, `0603`, `0805`, `1206`, `1210`, `1812`, `2010`, `2220`, `2512` |
63
+ | Resistor arrays | `array4x0603`, `array4x0402`, `array2x0402` |
64
+ | Diodes | `sod123`, `sod123f`, `sod323`, `sod523`, `sod923`, `sod128`, `sma`, `smb`, `smc` (also `do214ac`, `do214aa`, `do214ab`); MELF `minimelf` (`sod80`, `do213aa`), `melf` (`do213ab`) |
65
+ | SOT-23 | `sot23`, `sot23_5`, `sot23_6`, `sot23_8`, `sot143` |
66
+ | Small SOT | `sot323` (`sc70`), `sot353` (`sc70_5`), `sot363` (`sc70_6`), `sot523`, `sot563`, `sot723` |
67
+ | Power SOT, DPAK | `sot223`, `sot89`, `dpak` (`to252`), `d2pak` (`to263`), `d2pak_5`, `d2pak_7` (tab is pad 2) |
68
+ | Tantalum (moulded) | `tant_a` … `tant_e`, or `tant3216`, `tant3528`, `tant6032`, `tant7343` (pad 1 is +) |
69
+ | SOIC, SOP, SSOP, TSSOP, MSOP, QSOP | `soic<N>` (3.9 mm body, N even 8–16), `soic<N>w` (7.5 mm body: 16, 18, 20, 24, 28), `sop<N>` (5.3 mm, 1.27 mm pitch, N even 8–16), `ssop<N>` (5.3 mm, 0.65 mm pitch: 14, 16, 20, 24, 28), `tssop<N>` (4.4 mm, 0.65 mm pitch, N even 8–28), `msop8`, `msop10`, `qsop<N>` (N 16, 20, 24, 28) |
70
+ | Exposed pad on those | `soic8_ep<w>x<h>`, `msop8_ep…`, `msop10_ep…`, `tssop<N>_ep…`: the size is required (bare `_ep` is refused); the pad is number N+1 |
67
71
  | QFP | `qfp32`, `qfp48`, `qfp64`, `qfp100`; by body and pitch `qfp<N>_<b>x<b>_p<pitch>` such as `lqfp64_10x10_p0.5` (`lqfp`, `tqfp` are the same) |
68
72
  | QFN | `qfn16`, `qfn32`, `qfn48`, and with the exposed pad `qfn16_ep`, `qfn32_ep`, `qfn48_ep`; by body and pitch `qfn<N>_<b>x<b>_p<pitch>` with an optional `_ep<size>` or `_ep<w>x<h>`, such as `qfn32_5x5_p0.5_ep3.1` |
69
73
  | DFN | `dfn<N>_<across>x<along>_p<pitch>`, `_ep` as for QFN, such as `dfn8_3x3_p0.65_ep1.6x2.4` |
70
74
  | BGA | `bga<N>_<x>x<y>_p<pitch>`, a full grid, optional `_rows<R>x<C>`, such as `bga256_17x17_p1` |
75
+ | PLCC, SMD DIP | `plcc<N>` (N 20, 28, 32, 44, 52, 68, 84), `smdip<N>` (N 4, 6, 8, 16) |
71
76
  | DIP (through-hole) | `dip<N>`, rows 7.62 mm apart unless `_w<mm>`, such as `dip28_w15.24` |
72
- | TO packages (through-hole) | `to220`, `to92` |
73
- | Crystals (through-hole) | `hc49`, `hc49s` |
77
+ | TO packages (through-hole) | `to220`, `to220_2`, `to220_5`, `to247`, `to126`, `to92` (`to92_inline`, straight 1.27 mm leads, is refused: no lands meet the rules; use `to92`) |
78
+ | Axial (through-hole) | `axial<body length>x<lead spacing>` with optional `_d<body diameter>`, such as `axial6.3x10.16_d2.5`; diodes `do35`, `do41`, `do15`, `do201ad` (pad 2 cathode) |
79
+ | LEDs | `led3mm`, `led5mm` (through-hole); `led3528`, `led5050`, `led5050_6` (surface mount) |
80
+ | Crystals | `hc49`, `hc49s` (through-hole); `hc49smd`, `xtal2016`, `xtal2520`, `xtal3225`, `xtal5032`, `xtal5032_2`, `xtal3215`, `xtal7050` (surface mount) |
74
81
  | Radial electrolytics | `radial<can>x<lead spacing>`, such as `radial6.3x2.5` |
82
+ | SMD electrolytic cans | `smdcan4x5.4`, `smdcan5x5.4`, `smdcan6.3x5.4`, `smdcan6.3x7.7`, `smdcan8x6.5`, `smdcan8x10.2`, `smdcan10x10.2` |
75
83
  | Pin rows (through-hole) | `pinrow<N>`: N pins at 2.54 mm, or at a pitch `_p<pitch>` larger than the 1.7 mm pad, such as `pinrow4_p2mm`; two rows `pinrow2x<N>` (odd pins on top) |
84
+ | Uno parts | `resonator3213`; `usb_b`, `usb_c16` (shell legs share the last pad number); `dcjack` (also `dcjack2.1`, `dcjack2.5`); `tact6x6`, `tact6x6_smd` (1–2 and 3–4 joined); `ind4x4`, `ind5x5`, `ind6x6`, `ind8x8`, `ind10x10`, `ind12x12` |
85
+ | Sockets, screw terminals | `socket<N>`, `socket2x<N>` (as the pin rows); `screw<N>` (N 2–24), optional `_p3.5`, `_p3.81`, `_p5`, `_p5.08` |
76
86
 
77
87
  `docs/footprints.md` in the copperflow repository draws each family and says how sure its numbers
78
88
  are. A parameter such as `_p1.27mm` on a cited package (`soic8_p1.27mm`) is accepted only when it
79
- matches the package. Any other string, such as `sod523` or `to247`, gives the error
89
+ matches the package. Any other string, such as `sot666` or `to3`, gives the error
80
90
  `copperflow cannot make footprint "<string>": known families are …`, naming the nearest valid
81
91
  strings first when it looks like a known family (`soic18`: `soic14, soic16, soic18w`).
82
92
  For a package no family fits, a library part carries its own `footprint.yaml` (see
@@ -46,6 +46,32 @@ instance, shows the card.
46
46
  4. Say to the person which modules you used and whether each is verified. A module that is NOT
47
47
  verified is a draft: check it as you would your own block.
48
48
 
49
+ ## Checking a block's voltages: simulate and cases
50
+
51
+ Run `simulate` before a block is built, when its job is a voltage or a current: a divider, a clamp,
52
+ a switch that must be fully on, a resistor that must not burn. `simulate { file, set: { V12: 12,
53
+ GND: 0, CTRL: 3.3 }, sheet?, closed?, coil? }` gives each net's voltage, each source's current and
54
+ the power drawn, then the parts beyond a limit (a resistor's power against its package, a diode's
55
+ current against `ifmax`, a MOSFET neither off nor fully on, a capacitor over `voltageRating`), then
56
+ each part. A net set to `"open"` floats; `closed` names switches, `coil` relays that are energised.
57
+
58
+ What it is: a DC operating point from ideal sources and simple models (resistors, diodes and LEDs
59
+ fitted to `vf` at `vfAt`, zeners to `vz` at `vzAt` and `zz`, MOSFETs to `vth` and `rdson` at
60
+ `rdsonAt`, transistors to `hfe` and `vbe` at `vbeAt`, relay coils). What it does not know: time,
61
+ frequency, temperature, tolerance; chips are not modelled, their pins draw nothing unless the part's
62
+ `model` gives `loads`. A diode or LED with no figures uses generic ones marked assumed; a transistor
63
+ or MOSFET with none is refused. A library part carries `model:` in part.yaml with the datasheet page
64
+ of each figure; each figure is an item of its verification checklist.
65
+
66
+ A sheet's card can carry `cases` (write them with `describe_sheet`): `[{ name, set, closed?, coil?,
67
+ expect: { OUT: [3.2, 3.6], "K1.coil.i": [0.027, 0.033] } }]`. A figure is a net's voltage, or a
68
+ part's `.v`, `.i`, `.p` (`Q1.vgs` for a MOSFET, `K1.coil.i` for a relay). `simulate { file, sheet
69
+ }` with no `set` runs them, one line each; `module_info` shows the last result. A case that passes
70
+ shows the block's DC levels with the models given, not that the module is verified. If a case shows
71
+ a block not doing what its card says, say so to the person; do not change the case or the figures
72
+ until it passes. `copperflow spice <file> --out x.cir` writes the same circuit for another
73
+ simulator.
74
+
49
75
  ## After the person approved a board: save_module
50
76
 
51
77
  `save_module { file: "Input.sheet.tsx", name, replace }` copies a sheet and its library parts to
@@ -17,7 +17,8 @@ Passive parts (resistors, capacitors, LEDs, headers) are built in and need no en
17
17
  - `package`: a footprint string for the package, such as `sot23_5`, `soic8`,
18
18
  `qfn32_p0.5mm` or `tssop20`; copperflow makes the pads from it. The strings it knows are
19
19
  listed in [editable-subset.md](editable-subset.md). Use a footprint string whenever a family
20
- fits the package.
20
+ fits the package. To find the string for a package by its name, call `guide` with the topic
21
+ `packages` (add search words: `packages sot 5`).
21
22
  When none fits, set `package` to `{ "file": "footprint.yaml" }` and pass `footprint_file`: transcribe
22
23
  every pad (number, shape, x, y, width, height, and a drill for through-hole pads) from the
23
24
  datasheet's recommended land pattern, name the page you took it from, and never estimate a
@@ -78,6 +78,15 @@ without a footprint, silkscreen over pads, parts without an LCSC number (JLCPCB
78
78
  not match them). A design with errors is refused and nothing is written. It writes Gerbers,
79
79
  plated and non-plated drills, pick-and-place and the BOM into `<name>-fab/` and
80
80
  `<name>-fab.zip`. `bom` and `export_package` read the built design, so parts made in loops count.
81
+ `bom` ends with the order report (ready for bare boards, ready for assembly, each line without a
82
+ supplier part number and how to add one) and `export_fabrication` with its two verdicts;
83
+ `export_package` also writes `pins.md` and a `<part>_pins.h` per library chip, the pin map for the firmware.
84
+
85
+ `export_model` `{ file, format, out?, look? }` writes one 3D model file beside the circuit, for a
86
+ design that still has errors too: `format: "step"` is the STEP file for mechanical CAD (the board
87
+ and each part as a box), `format: "glb"` a GLB file a 3D viewer turns (the board as made, in the
88
+ `look` asked for, and the parts as simple shapes, not their real models). Its answer names the parts
89
+ whose height is typical or assumed; pass that on when the person will fit an enclosure around it.
81
90
 
82
91
  Export only a clean board: `check_circuit` with 0 errors and no `unrouted` warning. With
83
92
  connections still unrouted the files are written with a warning, but the board is not finished