diff --git a/KiCad/C_0603_1608Metric.kicad_mod b/KiCad/C_0603_1608Metric.kicad_mod deleted file mode 100644 index 8f3067d..0000000 --- a/KiCad/C_0603_1608Metric.kicad_mod +++ /dev/null @@ -1,34 +0,0 @@ -(footprint "C_0603_1608Metric" (version 20211014) (generator pcbnew) - (layer "F.Cu") - (tedit 621D1E9C) - (descr "Capacitor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 76, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator") - (tags "capacitor") - (attr smd) - (fp_text reference "REF**" (at 0 -1.43) (layer "F.SilkS") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp d8b50c90-0233-4120-8eb7-fd37553c1dae) - ) - (fp_text value "C_0603_1608Metric" (at 0 1.43) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 4e5feb93-e33a-49c0-b9c5-ae5884f54838) - ) - (fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab") - (effects (font (size 0.4 0.4) (thickness 0.06))) - (tstamp 579d7eba-875c-4a83-94cf-9a0ffb7d4ec6) - ) - (fp_line (start -1.48 0.73) (end -1.48 -0.73) (layer "F.CrtYd") (width 0.05) (tstamp 40f7c129-7117-4932-921f-63d9649a8e3c)) - (fp_line (start 1.48 -0.73) (end 1.48 0.73) (layer "F.CrtYd") (width 0.05) (tstamp 4cdf0691-68d0-4b9c-a08d-e458d11a6264)) - (fp_line (start -1.48 -0.73) (end 1.48 -0.73) (layer "F.CrtYd") (width 0.05) (tstamp bc329fd9-c699-40fd-809e-176f9fd0c1d5)) - (fp_line (start 1.48 0.73) (end -1.48 0.73) (layer "F.CrtYd") (width 0.05) (tstamp c885676b-37fb-4c12-bfd6-27ae9c8dfd4f)) - (fp_line (start -0.8 -0.4) (end 0.8 -0.4) (layer "F.Fab") (width 0.1) (tstamp 06122ef5-5764-4a31-a1df-58f084862b1c)) - (fp_line (start 0.8 -0.4) (end 0.8 0.4) (layer "F.Fab") (width 0.1) (tstamp 1d2a7865-4bae-407b-82ca-a2578f9efb73)) - (fp_line (start 0.8 0.4) (end -0.8 0.4) (layer "F.Fab") (width 0.1) (tstamp 3fe6a869-68b8-4f26-8354-3cc1c9697594)) - (fp_line (start -0.8 0.4) (end -0.8 -0.4) (layer "F.Fab") (width 0.1) (tstamp 864e65e5-cec8-4833-ae53-dec6136866be)) - (pad "1" smd roundrect (at -0.775 0) (size 0.9 0.95) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 251ae9f1-97b4-42c7-a502-27edca1e9c60)) - (pad "2" smd roundrect (at 0.775 0) (size 0.9 0.95) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp b3136c2f-02b9-49e1-a069-45a3c84854a1)) - (model "${KICAD6_3DMODEL_DIR}/Capacitor_SMD.3dshapes/C_0603_1608Metric.wrl" - (offset (xyz 0 0 0)) - (scale (xyz 1 1 1)) - (rotate (xyz 0 0 0)) - ) -) diff --git a/KiCad/QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm.kicad_mod b/KiCad/QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm.kicad_mod deleted file mode 100644 index ea86017..0000000 --- a/KiCad/QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm.kicad_mod +++ /dev/null @@ -1,101 +0,0 @@ -(footprint "QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm" (version 20211014) (generator pcbnew) - (layer "F.Cu") - (tedit 61F5394A) - (descr "QFN, 56 Pin (http://www.cypress.com/file/416486/download#page=40), generated with kicad-footprint-generator ipc_noLead_generator.py") - (tags "QFN NoLead") - (attr smd) - (fp_text reference "REF**" (at 0 -4.82) (layer "F.SilkS") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 1cb41492-bb93-4790-ad58-0f20773d1f59) - ) - (fp_text value "QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm" (at 0 4.82) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp b083abe2-0457-4996-a931-50814a9c1d4b) - ) - (fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 7602d57d-0ec6-45eb-9694-c6ae1a760741) - ) - (fp_line (start 3.61 -3.61) (end 3.61 -2.96) (layer "F.SilkS") (width 0.12) (tstamp 143843d9-5b2b-4149-9a31-87496276e62e)) - (fp_line (start 2.96 -3.61) (end 3.61 -3.61) (layer "F.SilkS") (width 0.12) (tstamp 1ce4caf8-c8bb-4fee-96d4-66c6c11818f1)) - (fp_line (start -3.61 3.61) (end -3.61 2.96) (layer "F.SilkS") (width 0.12) (tstamp 28e3cecb-5b2d-440e-975c-84c54fd48764)) - (fp_line (start -2.96 3.61) (end -3.61 3.61) (layer "F.SilkS") (width 0.12) (tstamp 33148282-40c9-4cda-b710-b4676c401c9e)) - (fp_line (start -2.96 -3.61) (end -3.61 -3.61) (layer "F.SilkS") (width 0.12) (tstamp 63b300c0-d2bd-467a-a60a-7afd101321d8)) - (fp_line (start 2.96 3.61) (end 3.61 3.61) (layer "F.SilkS") (width 0.12) (tstamp 75376d1a-b1cd-48ca-bb23-11e604649e2c)) - (fp_line (start 3.61 3.61) (end 3.61 2.96) (layer "F.SilkS") (width 0.12) (tstamp ae450cc7-7def-4688-a990-071728b5d6c1)) - (fp_line (start 4.12 4.12) (end 4.12 -4.12) (layer "F.CrtYd") (width 0.05) (tstamp 24d84152-bd16-42f0-b31c-da5c0075c0a9)) - (fp_line (start -4.12 4.12) (end 4.12 4.12) (layer "F.CrtYd") (width 0.05) (tstamp 4a43d0e8-6681-4990-bf2a-d86962571c6c)) - (fp_line (start 4.12 -4.12) (end -4.12 -4.12) (layer "F.CrtYd") (width 0.05) (tstamp cceb0992-d7b0-445b-8d5b-32d0d8fb8730)) - (fp_line (start -4.12 -4.12) (end -4.12 4.12) (layer "F.CrtYd") (width 0.05) (tstamp f00de455-d6a3-446a-aed3-4d3f2a1d79a7)) - (fp_line (start -3.5 -2.5) (end -2.5 -3.5) (layer "F.Fab") (width 0.1) (tstamp 6dd7f30c-e337-4ce2-8c91-e9492994a612)) - (fp_line (start 3.5 3.5) (end -3.5 3.5) (layer "F.Fab") (width 0.1) (tstamp 9478caeb-b727-455b-93f6-4a7ba6bf88ff)) - (fp_line (start -2.5 -3.5) (end 3.5 -3.5) (layer "F.Fab") (width 0.1) (tstamp 964fef0c-28c1-487d-979d-e51467c515ad)) - (fp_line (start 3.5 -3.5) (end 3.5 3.5) (layer "F.Fab") (width 0.1) (tstamp e31d6a06-a105-4ec5-90bf-40066b0d8ad4)) - (fp_line (start -3.5 3.5) (end -3.5 -2.5) (layer "F.Fab") (width 0.1) (tstamp fd3e7550-b460-4c66-9cde-67bd2357b67b)) - (pad "" smd roundrect (at 0.7 -0.7) (size 1.13 1.13) (layers "F.Paste") (roundrect_rratio 0.221239) (tstamp 14d0da6f-9850-487b-bd20-464b22ec06c3)) - (pad "" smd roundrect (at 0.7 0.7) (size 1.13 1.13) (layers "F.Paste") (roundrect_rratio 0.221239) (tstamp 429b569e-2ded-491e-b5a3-5fd6415c5df9)) - (pad "" smd roundrect (at -0.7 0.7) (size 1.13 1.13) (layers "F.Paste") (roundrect_rratio 0.221239) (tstamp 7d0b040a-02c1-46cc-86f8-9545b08e89b9)) - (pad "" smd roundrect (at -0.7 -0.7) (size 1.13 1.13) (layers "F.Paste") (roundrect_rratio 0.221239) (tstamp f7d7c5a0-f2af-4f33-92e7-dc77c486f00c)) - (pad "1" smd roundrect (at -3.4375 -2.6) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp c7b2dfb2-c297-4775-bd8d-089f60c7f5c8)) - (pad "2" smd roundrect (at -3.4375 -2.2) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 96efaa14-69c7-43f1-99ef-d01236e1a38c)) - (pad "3" smd roundrect (at -3.4375 -1.8) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 887a9c86-b2af-497c-a44d-ba6d3b6eee34)) - (pad "4" smd roundrect (at -3.4375 -1.4) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp a4c866ab-a81b-4914-a82c-4af5068226be)) - (pad "5" smd roundrect (at -3.4375 -1) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 319c4bb4-77f6-475b-a1e8-482e167b57ca)) - (pad "6" smd roundrect (at -3.4375 -0.6) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 44343f1b-3511-4672-8759-abd5eef10cae)) - (pad "7" smd roundrect (at -3.4375 -0.2) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 67f19c8d-8979-4413-b403-af166a4bcc58)) - (pad "8" smd roundrect (at -3.4375 0.2) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 8e4d7d65-0971-4417-a795-e7ff376ffc5d)) - (pad "9" smd roundrect (at -3.4375 0.6) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 7e33e4ab-fed5-4093-8dc7-44ccc10980e1)) - (pad "10" smd roundrect (at -3.4375 1) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 5e1c2358-e06a-4178-a65d-3bf67a4ad21c)) - (pad "11" smd roundrect (at -3.4375 1.4) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 6804eff7-f37b-4022-9c54-d351dccc84eb)) - (pad "12" smd roundrect (at -3.4375 1.8) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 5e8d90bc-2fe1-4989-a471-1cceb269bd73)) - (pad "13" smd roundrect (at -3.4375 2.2) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 0da88f34-3793-44c0-8143-7f0dea1a4314)) - (pad "14" smd roundrect (at -3.4375 2.6) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 09963381-f1a7-4c31-9958-ca5cb9dc7851)) - (pad "15" smd roundrect (at -2.6 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp dba53c32-257a-4c9c-aea8-082fff066384)) - (pad "16" smd roundrect (at -2.2 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp a3a33519-a8d7-4b84-be08-51a5335fe175)) - (pad "17" smd roundrect (at -1.8 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp f17a8568-d5be-4c65-a695-e83f5cdf9445)) - (pad "18" smd roundrect (at -1.4 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 5cdf8853-e1e4-4897-89a7-7b632a6efa32)) - (pad "19" smd roundrect (at -1 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp d0d3c6ef-4125-4dc5-b5ad-5da5a2561954)) - (pad "20" smd roundrect (at -0.6 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 16009885-a147-43ed-872a-45cc04729c13)) - (pad "21" smd roundrect (at -0.2 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 3ad23e03-d2b3-45b0-96b4-e49fcc75a345)) - (pad "22" smd roundrect (at 0.2 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp a990de91-5995-4cff-94bb-31570e219c84)) - (pad "23" smd roundrect (at 0.6 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 254019b0-e277-429d-a55f-a9d08453afdf)) - (pad "24" smd roundrect (at 1 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 15c23a20-506a-4d56-9a2a-d884b9d6198c)) - (pad "25" smd roundrect (at 1.4 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 0be7c0f3-fc66-4a46-98fd-a6fddd642a97)) - (pad "26" smd roundrect (at 1.8 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp e55551c2-9727-4f82-8965-442f2de0297a)) - (pad "27" smd roundrect (at 2.2 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 10390f88-05f9-4e11-a7da-0544f9016d20)) - (pad "28" smd roundrect (at 2.6 3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp c0ab3a28-2ebf-44f5-9999-a96d24c577ef)) - (pad "29" smd roundrect (at 3.4375 2.6) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 5549a141-bd37-4941-bf43-9377fe64f8b8)) - (pad "30" smd roundrect (at 3.4375 2.2) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp ddce157f-e5cf-4d3a-9d41-9b248cb3ff94)) - (pad "31" smd roundrect (at 3.4375 1.8) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 9c2ce4c2-4359-4c69-b300-98ae259e675f)) - (pad "32" smd roundrect (at 3.4375 1.4) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp ebe8908f-cbd0-4002-aa82-aec841dec7a0)) - (pad "33" smd roundrect (at 3.4375 1) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 807695a7-b8c4-48b1-895b-48a01f30d2ff)) - (pad "34" smd roundrect (at 3.4375 0.6) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp d9d74ddf-dbf5-42e7-b795-43c2a39794c3)) - (pad "35" smd roundrect (at 3.4375 0.2) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 25f7a118-ae51-4579-b07d-4055183275f0)) - (pad "36" smd roundrect (at 3.4375 -0.2) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 28d5738d-b02a-45dc-b853-c32eacab6460)) - (pad "37" smd roundrect (at 3.4375 -0.6) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp f945430f-d0c0-45b7-9474-d4928893c459)) - (pad "38" smd roundrect (at 3.4375 -1) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 9343fc0a-33d3-4c32-83e4-d4375dedea11)) - (pad "39" smd roundrect (at 3.4375 -1.4) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 1018c1f0-8364-4603-9eb7-871c47a0edd9)) - (pad "40" smd roundrect (at 3.4375 -1.8) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 57d9ae23-160d-46fc-8542-0761f66cbb54)) - (pad "41" smd roundrect (at 3.4375 -2.2) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp e768590b-fd92-4808-8b5c-c538a5d71353)) - (pad "42" smd roundrect (at 3.4375 -2.6) (size 0.875 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 36330616-c7ee-47cb-a9a2-2c08f9379b75)) - (pad "43" smd roundrect (at 2.6 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp f8d40dea-ce23-49a3-959a-4c9beb32562e)) - (pad "44" smd roundrect (at 2.2 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 1a44131e-010d-4427-99b4-adce439b4f96)) - (pad "45" smd roundrect (at 1.8 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 5d93abe2-4532-4ea6-9697-91c5148b5895)) - (pad "46" smd roundrect (at 1.4 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp ccd0074a-1ef0-4248-9305-14c53f69babc)) - (pad "47" smd roundrect (at 1 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 645e2e12-0daf-40c6-a7dd-ca600e9603e8)) - (pad "48" smd roundrect (at 0.6 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 83e08de6-7ccd-4d47-9971-4da79778fa87)) - (pad "49" smd roundrect (at 0.2 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp e0b56605-8256-4030-b90e-875ee0e71a8d)) - (pad "50" smd roundrect (at -0.2 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 08f03e47-fe87-40d7-900f-6d6289046a31)) - (pad "51" smd roundrect (at -0.6 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 838fcb00-5128-4f30-9cee-70ba20819dc6)) - (pad "52" smd roundrect (at -1 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 688210ff-9853-432c-a726-b0b425cde226)) - (pad "53" smd roundrect (at -1.4 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 247657c3-72e1-4b9b-a4c3-eadc80c2ec1a)) - (pad "54" smd roundrect (at -1.8 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp d2bb7984-ebbb-4e51-b516-a37fe7852441)) - (pad "55" smd roundrect (at -2.2 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 0e4964e6-9cba-4f92-89e6-e4cbbd69b948)) - (pad "56" smd roundrect (at -2.6 -3.4375) (size 0.2 0.875) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp ab8fa6cb-13a9-4f3f-b0ca-4d49ee4c0849)) - (pad "57" smd rect (at 0 0) (size 3.2 3.2) (layers "F.Cu" "F.Mask") (tstamp e9c5dcde-1025-4724-ab6b-fa143326a9b2)) - (model "${KICAD6_3DMODEL_DIR}/Package_DFN_QFN.3dshapes/QFN-56-1EP_7x7mm_P0.4mm_EP5.6x5.6mm.wrl" - (offset (xyz 0 0 0)) - (scale (xyz 1 1 1)) - (rotate (xyz 0 0 0)) - ) -) diff --git a/KiCad/RP2040-Decoder.kicad_pcb b/KiCad/RP2040-Decoder.kicad_pcb index 983833a..9bfb39e 100644 --- a/KiCad/RP2040-Decoder.kicad_pcb +++ b/KiCad/RP2040-Decoder.kicad_pcb @@ -6534,17 +6534,16 @@ ) ) ) - (footprint "Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" + (footprint "RP2040-Decoder_Additional_Footprints:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" (layer "F.Cu") (uuid "788b0d5a-af17-4254-96c5-2c42b3780577") (at 159.8 93.9 -90) (descr "SOIC, 8 Pin (http://www.allegromicro.com/~/media/Files/Datasheets/A4950-Datasheet.ashx#page=8), generated with kicad-footprint-generator ipc_gullwing_generator.py") (tags "SOIC SO") (property "Reference" "U4" - (at -1.4 6.7 180) + (at -0.2 -4.3 -90) (layer "F.SilkS") - (hide yes) - (uuid "6f348c41-bfca-4bd1-930f-37d1899945ae") + (uuid "3607dca0-cce1-4a01-99d5-ea0bc3be98ae") (effects (font (size 1 1) @@ -6553,10 +6552,9 @@ ) ) (property "Value" "BDR6133" - (at 0 3.4 90) + (at 0 3.4 -90) (layer "F.Fab") - (hide yes) - (uuid "7f7283ee-3197-4bfb-b582-9afda84eeb16") + (uuid "992a848a-ebd7-4edb-b028-96d6cc9946cb") (effects (font (size 1 1) @@ -6564,11 +6562,11 @@ ) ) ) - (property "Footprint" "Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" - (at 0 0 90) + (property "Footprint" "RP2040-Decoder_Additional_Footprints:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" + (at 0 0 -90) (layer "F.Fab") (hide yes) - (uuid "9a6224af-d8c3-4e3c-86ec-f6051b87593e") + (uuid "c2e7118b-cda7-4885-b30b-e599af2a4423") (effects (font (size 1.27 1.27) @@ -6576,11 +6574,11 @@ ) ) ) - (property "Datasheet" "https://datasheet.lcsc.com/lcsc/2101211904_Bardeen-Micro--BDR6133_C2687793.pdf" - (at 0 0 90) + (property "Datasheet" "https://www.lcsc.com/datasheet/lcsc_datasheet_2409291808_Bardeen-Micro--BDR6133_C2687793.pdf" + (at 0 0 -90) (layer "F.Fab") (hide yes) - (uuid "fca62c25-2159-4221-b55a-83690d9e348b") + (uuid "b9471481-cf96-4685-80bc-64fb0d6229c4") (effects (font (size 1.27 1.27) @@ -6588,11 +6586,11 @@ ) ) ) - (property "Description" "" - (at 0 0 90) + (property "Description" "H-Bridge driver, 2.8A, 2V to 24V, PWM input, ESOP8" + (at 0 0 -90) (layer "F.Fab") (hide yes) - (uuid "a42a8aca-85bf-40f4-9228-aee47b6ec62e") + (uuid "dfd1923f-6977-4c10-8f8a-2770ccf4daea") (effects (font (size 1.27 1.27) @@ -6605,7 +6603,7 @@ (unlocked yes) (layer "F.Fab") (hide yes) - (uuid "f9374ad8-e487-4a65-a312-98c23ec28bc3") + (uuid "c2f877c4-f168-4887-9e4d-290b0f37bd4a") (effects (font (size 1 1) @@ -6618,7 +6616,7 @@ (unlocked yes) (layer "F.Fab") (hide yes) - (uuid "9032f86a-0645-462f-a5c5-a2a1e5be9741") + (uuid "1ffd7c22-1da4-4709-8487-77bfe867379a") (effects (font (size 1 1) @@ -6631,7 +6629,7 @@ (unlocked yes) (layer "F.Fab") (hide yes) - (uuid "68aa46f7-3443-4210-a595-56c766cd1d08") + (uuid "4811f9f8-db6c-4f4d-94d6-b4dca0df484e") (effects (font (size 1 1) @@ -6639,62 +6637,50 @@ ) ) ) - (property ki_fp_filters "WSON*1EP*2x2mm*P0.5mm*") + (property ki_fp_filters "SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm") (path "/ffd3c66b-0b97-4a7a-992a-cb994ad7a705") (sheetname "Root") (sheetfile "RP2040-Decoder.kicad_sch") (attr smd) (fp_line - (start 0 2.56) - (end -1.95 2.56) + (start -1.55 2.56) + (end -3.4 2.56) (stroke (width 0.12) (type solid) ) (layer "F.SilkS") - (uuid "4cd3b948-76ac-4a92-8b04-dd63da9f8a66") + (uuid "6cd08a4f-3c5b-424f-a2d7-26c8fc9767b8") ) (fp_line - (start 0 2.56) - (end 1.95 2.56) + (start 1.55 2.56) + (end 3.4 2.56) (stroke (width 0.12) (type solid) ) (layer "F.SilkS") - (uuid "138b199d-48a6-4759-be05-363126aeaece") + (uuid "599e7fde-d0c9-456a-a946-c143f79716d3") ) (fp_line - (start 0 -2.56) - (end -1.95 -2.56) + (start -1.55 -2.56) + (end -3.4 -2.56) (stroke (width 0.12) (type solid) ) (layer "F.SilkS") - (uuid "e2a2c2d7-60b4-4dd4-b949-028e0039bce5") + (uuid "05f5a695-f946-41f4-9c7e-aff82b84f419") ) (fp_line - (start 0 -2.56) - (end 1.95 -2.56) + (start 1.55 -2.56) + (end 3.4 -2.56) (stroke (width 0.12) (type solid) ) (layer "F.SilkS") - (uuid "ea88b183-19c2-49f8-b7e5-7952374f93f8") - ) - (fp_poly - (pts - (xy -2.7 -2.465) (xy -2.94 -2.795) (xy -2.46 -2.795) (xy -2.7 -2.465) - ) - (stroke - (width 0.12) - (type solid) - ) - (fill solid) - (layer "F.SilkS") - (uuid "6b220b35-7330-45fa-b12a-c3117f3e6246") + (uuid "65237a98-6793-4b10-8a33-79dd6b277897") ) (fp_line (start -3.7 2.7) @@ -6704,7 +6690,7 @@ (type solid) ) (layer "F.CrtYd") - (uuid "1700b9ef-0713-4842-8046-b8d94e0b6baf") + (uuid "6043c6e6-c811-4ede-bfc3-751d28a89076") ) (fp_line (start 3.7 2.7) @@ -6714,7 +6700,7 @@ (type solid) ) (layer "F.CrtYd") - (uuid "cc4a8858-418d-4aec-a207-99de1112c65a") + (uuid "e6e5c071-ba6d-4931-8d5e-3c78cc1c3912") ) (fp_line (start -3.7 -2.7) @@ -6724,7 +6710,7 @@ (type solid) ) (layer "F.CrtYd") - (uuid "66a790ab-f68b-431f-a324-3e1221ba13ee") + (uuid "ad4a1e43-f032-41ad-a899-7906dedf5ab5") ) (fp_line (start 3.7 -2.7) @@ -6734,7 +6720,7 @@ (type solid) ) (layer "F.CrtYd") - (uuid "7bd40a18-18b3-4ecd-8626-aee63f147458") + (uuid "155b1e1a-c0ce-48a4-97e5-e6ed8fc0f268") ) (fp_line (start -1.95 2.45) @@ -6744,7 +6730,7 @@ (type solid) ) (layer "F.Fab") - (uuid "0770aab7-0bc0-4e03-a6bf-f5030d04ab7d") + (uuid "054c5e9e-5281-45cd-83b9-d7f259f45292") ) (fp_line (start 1.95 2.45) @@ -6754,7 +6740,7 @@ (type solid) ) (layer "F.Fab") - (uuid "716255f4-603c-45ce-b0c8-845f9452c715") + (uuid "76d1a666-6a41-4c55-9652-cb523d3691b1") ) (fp_line (start -1.95 -1.475) @@ -6764,7 +6750,7 @@ (type solid) ) (layer "F.Fab") - (uuid "8cd46b8a-9012-49b5-b877-afcd280d8bd1") + (uuid "52e8add7-def5-4679-8850-49f49a8fdcc7") ) (fp_line (start -0.975 -2.45) @@ -6774,7 +6760,7 @@ (type solid) ) (layer "F.Fab") - (uuid "fe7c03a3-3aeb-4249-9fb3-15a584b0b497") + (uuid "01ceec46-9042-42cc-a4c6-acd1540d3bfd") ) (fp_line (start 1.95 -2.45) @@ -6784,12 +6770,12 @@ (type solid) ) (layer "F.Fab") - (uuid "e02247ff-bc7d-4c27-8fd2-873561f807ee") + (uuid "1f4d6955-e3c4-431a-8262-ab1ad62b2f37") ) (fp_text user "${REFERENCE}" - (at 0 0 180) + (at 0 0 -90) (layer "F.Fab") - (uuid "66d265c1-313d-4c13-83e5-e0e35f5084db") + (uuid "535ee292-9fdd-42ae-b6e5-b0c6be7c31b8") (effects (font (size 0.98 0.98) @@ -6802,28 +6788,28 @@ (size 1.01 1.38) (layers "F.Paste") (roundrect_rratio 0.247525) - (uuid "b24e2f4c-3a48-4687-abc0-b3ebfe1813e1") + (uuid "787d95f5-f797-46a7-b289-3e15e08da363") ) (pad "" smd roundrect (at -0.6 0.825 270) (size 1.01 1.38) (layers "F.Paste") (roundrect_rratio 0.247525) - (uuid "192965ca-b2dd-4a37-ab3a-29be3a39a6b1") + (uuid "6d4ca4b5-a355-4a85-81f7-d596c8c0b4db") ) (pad "" smd roundrect (at 0.6 -0.825 270) (size 1.01 1.38) (layers "F.Paste") (roundrect_rratio 0.247525) - (uuid "e23e5596-f4c0-4feb-8584-24fd00444b50") + (uuid "a7795289-674e-4dd7-ad10-752a95d2d8c4") ) (pad "" smd roundrect (at 0.6 0.825 270) (size 1.01 1.38) (layers "F.Paste") (roundrect_rratio 0.247525) - (uuid "1824a675-ce3a-4ddb-a971-8b83f5a6146a") + (uuid "5bc8d31f-4b47-4789-9d8a-0e7edf988109") ) (pad "1" smd roundrect (at -2.475 -1.905 270) @@ -6833,7 +6819,7 @@ (net 4 "GND") (pinfunction "GND") (pintype "power_in") - (uuid "183e6ab0-0624-4ccc-be91-8f01395a847b") + (uuid "308a3c1e-4c1a-432d-af3c-bddd7d1d83f8") ) (pad "2" smd roundrect (at -2.475 -0.635 270) @@ -6843,7 +6829,7 @@ (net 1 "+3V3") (pinfunction "VCC") (pintype "power_in") - (uuid "86f37390-d289-4922-9eec-15c9278addcf") + (uuid "1a4952d0-bb71-49fc-bcca-bfcac34a61b1") ) (pad "3" smd roundrect (at -2.475 0.635 270) @@ -6853,7 +6839,7 @@ (net 2 "VDC") (pinfunction "VM") (pintype "power_in") - (uuid "1ba77f10-b556-4997-816c-f2a83797a3e1") + (uuid "0578012f-099f-4a52-8bc3-26f193cf269e") ) (pad "4" smd roundrect (at -2.475 1.905 270) @@ -6863,7 +6849,7 @@ (net 10 "/MOTOR_OUT_A") (pinfunction "OUTA") (pintype "output") - (uuid "c5532ee8-7663-4d2c-8aa5-43bf20f58ee9") + (uuid "0dfaafbe-2223-4fda-aa04-c990aa1d103e") ) (pad "5" smd roundrect (at 2.475 1.905 270) @@ -6873,7 +6859,7 @@ (net 9 "/MOTOR_OUT_B") (pinfunction "OUTB") (pintype "output") - (uuid "0ffcbc62-c6d8-4c96-865e-2e4d82d766f9") + (uuid "f604f86e-0714-40f5-9425-611dfe14c804") ) (pad "6" smd roundrect (at 2.475 0.635 270) @@ -6883,7 +6869,7 @@ (net 13 "/GPIO23") (pinfunction "INA") (pintype "input") - (uuid "056d042d-8977-48ec-805b-ecd895252b53") + (uuid "fc34a640-65d2-4b95-9f36-571906aee368") ) (pad "7" smd roundrect (at 2.475 -0.635 270) @@ -6893,7 +6879,7 @@ (net 12 "/GPIO22") (pinfunction "INB") (pintype "input") - (uuid "2f39765d-74e1-4ddd-b910-22594e5e5f51") + (uuid "5df12322-381a-44d9-b84d-7c947118f860") ) (pad "8" smd roundrect (at 2.475 -1.905 270) @@ -6903,103 +6889,93 @@ (net 68 "unconnected-(U4-NC-Pad8)") (pinfunction "NC") (pintype "no_connect") - (uuid "107651dd-53da-4b82-b52e-dbe4bb33db5d") + (uuid "4aa3e3a4-7084-4029-afeb-226e8a191f81") ) (pad "9" thru_hole circle (at -0.7 -1.2 270) - (size 0.4 0.4) - (drill 0.3) - (property pad_prop_heatsink) - (layers "*.Cu" "Dwgs.User") + (size 0.5 0.5) + (drill 0.2) + (layers "*.Cu") (remove_unused_layers no) (net 4 "GND") (pinfunction "GND") (pintype "passive") - (uuid "166d8682-c56d-4cd0-9c1a-bd28bb7f5de3") + (uuid "874cf0e8-ffdd-4471-acd0-0ea7822cf679") ) (pad "9" thru_hole circle (at -0.7 0 270) - (size 0.4 0.4) - (drill 0.3) - (property pad_prop_heatsink) + (size 0.5 0.5) + (drill 0.2) (layers "*.Cu") (remove_unused_layers no) (net 4 "GND") (pinfunction "GND") (pintype "passive") - (uuid "31f75a38-6350-4a36-9f2b-4cabb808ce4f") + (uuid "ff4240c5-6990-45bc-8934-91eae73fb4c5") ) (pad "9" thru_hole circle (at -0.7 1.2 270) - (size 0.4 0.4) - (drill 0.3) - (property pad_prop_heatsink) + (size 0.5 0.5) + (drill 0.2) (layers "*.Cu") (remove_unused_layers no) (net 4 "GND") (pinfunction "GND") (pintype "passive") - (uuid "4336f2d4-4bc2-4e0f-a466-da6512f47714") + (uuid "3c958f01-aba9-4657-ac0e-fdf9086d7daa") ) (pad "9" smd rect (at 0 0 270) (size 1.9 2.9) - (property pad_prop_heatsink) (layers "B.Cu") (net 4 "GND") (pinfunction "GND") (pintype "passive") - (zone_connect 2) - (uuid "aa3194ed-838a-49ee-bf2a-cff5fca779d3") + (uuid "616c92f9-fa4b-4104-b5a8-b87dba26f34f") ) (pad "9" smd rect (at 0 0 270) (size 2.41 3.3) - (property pad_prop_heatsink) (layers "F.Cu" "F.Mask") (net 4 "GND") (pinfunction "GND") (pintype "passive") - (zone_connect 2) - (uuid "70b050dd-e3ba-4270-bb5b-bee78e24a4b8") + (uuid "17d511ab-143e-4bbd-8b9b-76daf9ef3298") ) (pad "9" thru_hole circle (at 0.7 -1.2 270) - (size 0.4 0.4) - (drill 0.3) - (property pad_prop_heatsink) + (size 0.5 0.5) + (drill 0.2) (layers "*.Cu") (remove_unused_layers no) (net 4 "GND") (pinfunction "GND") (pintype "passive") - (uuid "5576455e-e869-4481-8f16-4c33d03f5012") + (uuid "628a9ab9-e60e-44cd-9a4f-d4b8e09ecfbb") ) (pad "9" thru_hole circle (at 0.7 0 270) - (size 0.4 0.4) - (drill 0.3) - (property pad_prop_heatsink) + (size 0.5 0.5) + (drill 0.2) (layers "*.Cu") (remove_unused_layers no) (net 4 "GND") (pinfunction "GND") (pintype "passive") - (uuid "0e1dd41f-5965-438c-a56a-5568e03cf096") + (uuid "0fd20d94-4bde-4993-ab61-59b0e383ebd4") ) (pad "9" thru_hole circle (at 0.7 1.2 270) - (size 0.4 0.4) - (drill 0.3) - (property pad_prop_heatsink) + (size 0.5 0.5) + (drill 0.2) (layers "*.Cu") (remove_unused_layers no) (net 4 "GND") (pinfunction "GND") (pintype "passive") - (uuid "06749a3e-cac4-43ef-95d8-92e98fe8b4c9") + (uuid "49d89570-d2ee-4f05-b747-661d11290b1e") ) - (model "${KICAD8_3DMODEL_DIR}/Package_SO.3dshapes/SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm.wrl" + (model "${KICAD8_3DMODEL_DIR}/Package_SO.3dshapes/SOIC-8_3.9x4.9mm_P1.27mm.wrl" (offset (xyz 0 0 0) ) @@ -12562,16 +12538,16 @@ ) ) ) - (footprint "Package_SO:SOIC-8_5.23x5.23mm_P1.27mm" + (footprint "RP2040-Decoder_Additional_Footprints:SOIC-8_5.23x5.23mm_P1.27mm" (layer "F.Cu") (uuid "e405d1bd-e4a6-48d8-9ff5-50895682c47b") (at 142.1 92.8 180) (descr "SOIC, 8 Pin (http://www.winbond.com/resource-files/w25q32jv%20revg%2003272018%20plus.pdf#page=68), generated with kicad-footprint-generator ipc_gullwing_generator.py") (tags "SOIC SO") (property "Reference" "U2" - (at 1 -3.5 0) + (at 0 -3.56 180) (layer "F.SilkS") - (uuid "7a48831f-91f8-4c58-88b8-d76e5a724b36") + (uuid "a0532303-07dc-43e8-b7f1-6f786fa76c64") (effects (font (size 1 1) @@ -12580,10 +12556,9 @@ ) ) (property "Value" "W25Q64JVSSIQ" - (at 0 3.56 0) + (at 0 3.56 180) (layer "F.Fab") - (hide yes) - (uuid "3e9ee57a-90a7-452e-acb1-c5f8d83de760") + (uuid "729c4e61-50dd-4764-bd57-4d0d1546d130") (effects (font (size 1 1) @@ -12591,11 +12566,11 @@ ) ) ) - (property "Footprint" "Package_SO:SOIC-8_5.23x5.23mm_P1.27mm" - (at 0 0 0) + (property "Footprint" "RP2040-Decoder_Additional_Footprints:SOIC-8_5.23x5.23mm_P1.27mm" + (at 0 0 180) (layer "F.Fab") (hide yes) - (uuid "d167280d-82cc-4af0-99c5-bb1309a826ee") + (uuid "5eef031a-7934-467e-ac6b-f5c6364105ee") (effects (font (size 1.27 1.27) @@ -12604,10 +12579,10 @@ ) ) (property "Datasheet" "https://www.winbond.com/resource-files/w25q64jv%20revj%2003272018%20plus.pdf" - (at 0 0 0) + (at 0 0 180) (layer "F.Fab") (hide yes) - (uuid "21c388fd-3511-42a2-b254-2ddfbe1ead9d") + (uuid "38fbdba7-716b-455a-9dff-24e4d0a1da98") (effects (font (size 1.27 1.27) @@ -12616,10 +12591,10 @@ ) ) (property "Description" "" - (at 0 0 0) + (at 0 0 180) (layer "F.Fab") (hide yes) - (uuid "91aee9c6-ff53-490d-bc9e-ba42cab3b682") + (uuid "67ba8a22-bb82-4b85-9e2c-520081951f06") (effects (font (size 1.27 1.27) @@ -12632,7 +12607,7 @@ (unlocked yes) (layer "F.Fab") (hide yes) - (uuid "7cddda89-a440-47c7-be4c-78c645affed8") + (uuid "082a1dfb-9d6b-4474-99cc-53a35a1dfad7") (effects (font (size 1 1) @@ -12645,7 +12620,7 @@ (unlocked yes) (layer "F.Fab") (hide yes) - (uuid "5b7f2478-82d0-4f83-838a-81f820d0f7a1") + (uuid "4ff9028e-bebb-4371-8e27-e28f5377bedd") (effects (font (size 1 1) @@ -12658,7 +12633,7 @@ (unlocked yes) (layer "F.Fab") (hide yes) - (uuid "62589e23-74d4-4d6e-b88d-5964759394a1") + (uuid "7d6aaabe-96cc-431a-8189-51c07a5407f4") (effects (font (size 1 1) @@ -12679,7 +12654,7 @@ (type solid) ) (layer "F.SilkS") - (uuid "ab5a7802-e894-4070-af1e-0306b16f8d9c") + (uuid "ca5d1fe8-24a7-4eb9-8c25-7e8b366d6ec8") ) (fp_line (start 2.725 -2.725) @@ -12689,7 +12664,7 @@ (type solid) ) (layer "F.SilkS") - (uuid "6c0267fe-74ae-46c0-8e7f-98afcd813434") + (uuid "ee50d4d0-7af5-4890-af14-6baad2bce192") ) (fp_line (start 0 2.725) @@ -12699,7 +12674,7 @@ (type solid) ) (layer "F.SilkS") - (uuid "c8400655-5045-44f9-9815-95d4338c7559") + (uuid "6fc3ee4b-15ff-45d8-a683-7246a1b0237b") ) (fp_line (start 0 2.725) @@ -12709,7 +12684,7 @@ (type solid) ) (layer "F.SilkS") - (uuid "6690c6eb-8a81-41fd-a075-f9704b0a3903") + (uuid "8a162ba0-8c78-4500-aac2-61edfa969c51") ) (fp_line (start 0 -2.725) @@ -12719,7 +12694,7 @@ (type solid) ) (layer "F.SilkS") - (uuid "d487ba97-da2e-46b5-9ae5-3833a2cf9b74") + (uuid "ef1a3afb-7876-4477-90b9-5c6f2f5bb140") ) (fp_line (start 0 -2.725) @@ -12729,7 +12704,7 @@ (type solid) ) (layer "F.SilkS") - (uuid "c6a56b42-e827-4b1a-9972-fedeb491ad22") + (uuid "65b7d71e-b764-4db4-902a-97b9aa3cd03e") ) (fp_line (start -2.725 2.725) @@ -12739,7 +12714,17 @@ (type solid) ) (layer "F.SilkS") - (uuid "f203af7e-6cc6-44ec-ad67-c5764ed0c237") + (uuid "41bf09be-1189-4dcd-bd67-acd24aef633c") + ) + (fp_line + (start -2.725 -2.465) + (end -4.4 -2.465) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "6f297c41-e311-45e7-bddc-73aeab111600") ) (fp_line (start -2.725 -2.725) @@ -12749,19 +12734,7 @@ (type solid) ) (layer "F.SilkS") - (uuid "ba3f4b9e-44df-4793-8e32-6b5d68b4c3d1") - ) - (fp_poly - (pts - (xy -3.5075 -2.465) (xy -3.7475 -2.795) (xy -3.2675 -2.795) (xy -3.5075 -2.465) - ) - (stroke - (width 0.12) - (type solid) - ) - (fill solid) - (layer "F.SilkS") - (uuid "6326372a-dc2d-49be-b11b-6c420b2301d4") + (uuid "ac6f1fc9-438c-4982-85c6-96b55c1de92c") ) (fp_line (start 4.65 2.86) @@ -12771,7 +12744,7 @@ (type solid) ) (layer "F.CrtYd") - (uuid "c41e947e-9e9a-4f04-8fb1-17b2e0c26d0b") + (uuid "6f46c287-36b5-4ac5-b6a5-18b1fa1ceb80") ) (fp_line (start 4.65 -2.86) @@ -12781,7 +12754,7 @@ (type solid) ) (layer "F.CrtYd") - (uuid "c249dd1d-6fe3-4955-ae76-2d97780cd4ce") + (uuid "3bd004d2-9505-437c-8caa-a27728eb6699") ) (fp_line (start -4.65 2.86) @@ -12791,7 +12764,7 @@ (type solid) ) (layer "F.CrtYd") - (uuid "6f86890e-aa18-4dea-8393-925f68d5fc0b") + (uuid "21887d8e-1f4b-4f80-a3a9-6bc191fa2a6a") ) (fp_line (start -4.65 -2.86) @@ -12801,7 +12774,7 @@ (type solid) ) (layer "F.CrtYd") - (uuid "1768fe17-7780-44d3-96c5-ca7292727fb8") + (uuid "5d22b56f-87dc-48f3-8ffa-2fde7d4a8b07") ) (fp_line (start 2.615 2.615) @@ -12811,7 +12784,7 @@ (type solid) ) (layer "F.Fab") - (uuid "283cce17-ef46-49f7-933d-44df4c186978") + (uuid "bc912531-5b1f-498f-87a9-8b65bfb4553a") ) (fp_line (start 2.615 -2.615) @@ -12821,7 +12794,7 @@ (type solid) ) (layer "F.Fab") - (uuid "6cf1c8d1-6d0d-4035-b7d8-c20a32729db6") + (uuid "cc2c55b9-9ae6-4c3f-be20-4d632de2acd3") ) (fp_line (start -1.615 -2.615) @@ -12831,7 +12804,7 @@ (type solid) ) (layer "F.Fab") - (uuid "f0f5c94c-c357-4f87-a8d5-4a8257db3819") + (uuid "06e5e2a3-abbc-4443-95f0-4b4d1c68289d") ) (fp_line (start -2.615 2.615) @@ -12841,7 +12814,7 @@ (type solid) ) (layer "F.Fab") - (uuid "9b3d8d90-e447-44d0-be48-db9a42274f5e") + (uuid "7b9135b0-a612-4243-aaf5-14d7b990cba0") ) (fp_line (start -2.615 -1.615) @@ -12851,12 +12824,12 @@ (type solid) ) (layer "F.Fab") - (uuid "20adc95f-7b84-4e67-b34f-5ccab0d5b988") + (uuid "22114df7-5c04-4178-a5b0-f9e6ea47e8d3") ) (fp_text user "${REFERENCE}" - (at 0 0 0) + (at 0 0 180) (layer "F.Fab") - (uuid "3a99e19b-21a0-41af-a732-d0aa0be6b00c") + (uuid "fe78e359-e253-4704-b027-9dc5ee7a2a41") (effects (font (size 1 1) @@ -12872,7 +12845,7 @@ (net 44 "Net-(U2-~{CS})") (pinfunction "~{CS}") (pintype "input") - (uuid "b7b2b5c9-9f57-4bf4-8ab9-a01265d000de") + (uuid "56752624-770b-4a34-baa0-cc3a0cc3732a") ) (pad "2" smd roundrect (at -3.6 -0.635 180) @@ -12882,7 +12855,7 @@ (net 52 "Net-(U2-DO(IO1))") (pinfunction "DO(IO1)") (pintype "bidirectional") - (uuid "713babd7-696e-4656-8f91-0fdc6aa435b9") + (uuid "cc07ceb1-05fd-4d01-8f07-59ee3a8631cf") ) (pad "3" smd roundrect (at -3.6 0.635 180) @@ -12892,7 +12865,7 @@ (net 53 "Net-(U2-IO2)") (pinfunction "IO2") (pintype "bidirectional") - (uuid "05121396-619e-44f5-ae5b-54f308b1becd") + (uuid "ac49dd92-3d24-4caf-a476-b311e96726dc") ) (pad "4" smd roundrect (at -3.6 1.905 180) @@ -12902,7 +12875,7 @@ (net 4 "GND") (pinfunction "GND") (pintype "power_in") - (uuid "69b739fb-cdfb-41a0-907d-e6d1143c91f7") + (uuid "8a3b272a-71e9-4c58-9f89-5866de0e7bf5") ) (pad "5" smd roundrect (at 3.6 1.905 180) @@ -12912,7 +12885,7 @@ (net 49 "Net-(U2-DI(IO0))") (pinfunction "DI(IO0)") (pintype "bidirectional") - (uuid "6121c8f7-6726-4da6-9454-2ade4346150a") + (uuid "f74601f6-1801-40f5-ad5d-1a0799b9d170") ) (pad "6" smd roundrect (at 3.6 0.635 180) @@ -12922,7 +12895,7 @@ (net 50 "Net-(U2-CLK)") (pinfunction "CLK") (pintype "input") - (uuid "29f1575f-f2d6-4a50-91f5-bd88bef20cfc") + (uuid "7a3c53e0-0b1c-43ed-903e-f76baed96966") ) (pad "7" smd roundrect (at 3.6 -0.635 180) @@ -12932,7 +12905,7 @@ (net 51 "Net-(U2-IO3)") (pinfunction "IO3") (pintype "bidirectional") - (uuid "4d454c28-edc2-4f98-992c-da82712004f3") + (uuid "2e458a29-f66a-416c-96ba-1bdc1d47bb42") ) (pad "8" smd roundrect (at 3.6 -1.905 180) @@ -12942,9 +12915,9 @@ (net 1 "+3V3") (pinfunction "VCC") (pintype "power_in") - (uuid "2be391d1-84bd-4bc2-92db-1a324f9f50e4") + (uuid "89b6eec4-d02c-4e9f-82d5-8bb607c5c9c4") ) - (model "${KICAD8_3DMODEL_DIR}/Package_SO.3dshapes/SOIC-8_5.23x5.23mm_P1.27mm.wrl" + (model "${KICAD8_3DMODEL_DIR}/Package_SO.3dshapes/SOIC-8_5.275x5.275mm_P1.27mm.wrl" (offset (xyz 0 0 0) ) diff --git a/KiCad/RP2040-Decoder.kicad_sch b/KiCad/RP2040-Decoder.kicad_sch index 0b92812..33cebcc 100644 --- a/KiCad/RP2040-Decoder.kicad_sch +++ b/KiCad/RP2040-Decoder.kicad_sch @@ -4017,7 +4017,7 @@ ) ) ) - (property "Footprint" "Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm" + (property "Footprint" "RP2040-Decoder_Additional_Footprints:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" (at 0 -21.59 0) (effects (font @@ -4026,7 +4026,7 @@ (hide yes) ) ) - (property "Datasheet" "https://datasheet.lcsc.com/lcsc/2101211904_Bardeen-Micro--BDR6133_C2687793.pdf" + (property "Datasheet" "https://www.lcsc.com/datasheet/lcsc_datasheet_2409291808_Bardeen-Micro--BDR6133_C2687793.pdf" (at 6.35 -24.13 0) (effects (font @@ -4035,7 +4035,7 @@ (hide yes) ) ) - (property "Description" "H-Bridge driver, 1A, Low Voltage, PWM input, WSON-8" + (property "Description" "H-Bridge driver, 2.8A, 2V to 24V, PWM input, ESOP8" (at 0 0 0) (effects (font @@ -4044,7 +4044,7 @@ (hide yes) ) ) - (property "ki_keywords" "half bridge driver" + (property "ki_keywords" "1CH DC Motor H-bridge driver " (at 0 0 0) (effects (font @@ -4053,7 +4053,7 @@ (hide yes) ) ) - (property "ki_fp_filters" "WSON*1EP*2x2mm*P0.5mm*" + (property "ki_fp_filters" "SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm" (at 0 0 0) (effects (font @@ -9938,7 +9938,7 @@ ) ) ) - (property "Footprint" "Package_SO:SOIC-8_5.23x5.23mm_P1.27mm" + (property "Footprint" "RP2040-Decoder_Additional_Footprints:SOIC-8_5.23x5.23mm_P1.27mm" (at 64.77 142.24 0) (effects (font @@ -18194,7 +18194,7 @@ (justify left) ) ) - (property "Footprint" "Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" + (property "Footprint" "RP2040-Decoder_Additional_Footprints:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" (at 247.65 144.78 0) (effects (font @@ -18203,7 +18203,7 @@ (hide yes) ) ) - (property "Datasheet" "https://datasheet.lcsc.com/lcsc/2101211904_Bardeen-Micro--BDR6133_C2687793.pdf" + (property "Datasheet" "https://www.lcsc.com/datasheet/lcsc_datasheet_2409291808_Bardeen-Micro--BDR6133_C2687793.pdf" (at 254 147.32 0) (effects (font @@ -18212,7 +18212,7 @@ (hide yes) ) ) - (property "Description" "" + (property "Description" "H-Bridge driver, 2.8A, 2V to 24V, PWM input, ESOP8" (at 247.65 123.19 0) (effects (font diff --git a/KiCad/RP2040-Decoder_Additional_Symbols.kicad_sym b/KiCad/RP2040-Decoder_Additional_Symbols.kicad_sym index c33697a..60b190c 100644 --- a/KiCad/RP2040-Decoder_Additional_Symbols.kicad_sym +++ b/KiCad/RP2040-Decoder_Additional_Symbols.kicad_sym @@ -142,7 +142,7 @@ ) ) ) - (property "Footprint" "Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm" + (property "Footprint" "RP2040-Decoder_Additional_Footprints:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" (at 0 -21.59 0) (effects (font @@ -151,7 +151,7 @@ (hide yes) ) ) - (property "Datasheet" "https://datasheet.lcsc.com/lcsc/2101211904_Bardeen-Micro--BDR6133_C2687793.pdf" + (property "Datasheet" "https://www.lcsc.com/datasheet/lcsc_datasheet_2409291808_Bardeen-Micro--BDR6133_C2687793.pdf" (at 6.35 -24.13 0) (effects (font @@ -160,7 +160,7 @@ (hide yes) ) ) - (property "Description" "H-Bridge driver, 1A, Low Voltage, PWM input, WSON-8" + (property "Description" "H-Bridge driver, 2.8A, 2V to 24V, PWM input, ESOP8" (at 0 0 0) (effects (font @@ -169,7 +169,7 @@ (hide yes) ) ) - (property "ki_keywords" "half bridge driver" + (property "ki_keywords" "1CH DC Motor H-bridge driver " (at 0 0 0) (effects (font @@ -178,7 +178,7 @@ (hide yes) ) ) - (property "ki_fp_filters" "WSON*1EP*2x2mm*P0.5mm*" + (property "ki_fp_filters" "SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm" (at 0 0 0) (effects (font diff --git a/KiCad/R_0603_1608Metric.kicad_mod b/KiCad/R_0603_1608Metric.kicad_mod deleted file mode 100644 index 04e2b53..0000000 --- a/KiCad/R_0603_1608Metric.kicad_mod +++ /dev/null @@ -1,34 +0,0 @@ -(footprint "R_0603_1608Metric" (version 20211014) (generator pcbnew) - (layer "F.Cu") - (tedit 621D1EDA) - (descr "Resistor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator") - (tags "resistor") - (attr smd) - (fp_text reference "REF**" (at 0 -1.43) (layer "F.SilkS") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 6df974b4-b819-4abf-a570-cfac24b90f22) - ) - (fp_text value "R_0603_1608Metric" (at 0 1.43) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 43a2d3f9-8880-4891-bb65-e1f1adf1c2a5) - ) - (fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab") - (effects (font (size 0.4 0.4) (thickness 0.06))) - (tstamp 2dfd6efa-e1ab-4e55-ab2b-7f9e70f33afa) - ) - (fp_line (start -1.48 -0.73) (end 1.48 -0.73) (layer "F.CrtYd") (width 0.05) (tstamp 24e272be-4051-4b9b-9127-1c7f22532469)) - (fp_line (start 1.48 -0.73) (end 1.48 0.73) (layer "F.CrtYd") (width 0.05) (tstamp 2bbe1e5e-3213-443e-930c-a0ae97a345e1)) - (fp_line (start -1.48 0.73) (end -1.48 -0.73) (layer "F.CrtYd") (width 0.05) (tstamp 39fddbf8-ad85-4516-95fc-b7f57b1b5476)) - (fp_line (start 1.48 0.73) (end -1.48 0.73) (layer "F.CrtYd") (width 0.05) (tstamp dc275714-5365-4c02-a2fb-5cbd77201d52)) - (fp_line (start 0.8 -0.4125) (end 0.8 0.4125) (layer "F.Fab") (width 0.1) (tstamp 0746adbb-419c-491f-ae91-c14351e88a28)) - (fp_line (start -0.8 -0.4125) (end 0.8 -0.4125) (layer "F.Fab") (width 0.1) (tstamp 30e382fb-e120-4499-bc15-156f98cd93e8)) - (fp_line (start 0.8 0.4125) (end -0.8 0.4125) (layer "F.Fab") (width 0.1) (tstamp 9ddd7cd8-091d-447c-bc2a-eed5612caf40)) - (fp_line (start -0.8 0.4125) (end -0.8 -0.4125) (layer "F.Fab") (width 0.1) (tstamp d04dd1a4-2178-41f5-9bb7-ad470915f47a)) - (pad "1" smd roundrect (at -0.825 0) (size 0.8 0.95) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 958f80d5-b7aa-4100-9f8f-c88ef419994d)) - (pad "2" smd roundrect (at 0.825 0) (size 0.8 0.95) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp dbf61a86-b574-45d2-ba89-95e1ee8fabb2)) - (model "${KICAD6_3DMODEL_DIR}/Resistor_SMD.3dshapes/R_0603_1608Metric.wrl" - (offset (xyz 0 0 0)) - (scale (xyz 1 1 1)) - (rotate (xyz 0 0 0)) - ) -) diff --git a/KiCad/SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias.kicad_mod b/KiCad/SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias.kicad_mod index 4cc1045..a98c180 100644 --- a/KiCad/SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias.kicad_mod +++ b/KiCad/SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias.kicad_mod @@ -1,57 +1,363 @@ -(footprint "SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" (version 20211014) (generator pcbnew) - (layer "F.Cu") - (tedit 621D2936) - (descr "SOIC, 8 Pin (http://www.allegromicro.com/~/media/Files/Datasheets/A4950-Datasheet.ashx#page=8), generated with kicad-footprint-generator ipc_gullwing_generator.py") - (tags "SOIC SO") - (attr smd) - (fp_text reference "REF**" (at -0.2 -4.3) (layer "F.SilkS") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 0d0f734b-55d5-4594-866a-ce6819cf8228) - ) - (fp_text value "SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" (at 0 3.4) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 22956637-17bd-4c2e-acb6-b78772616ce1) - ) - (fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab") - (effects (font (size 0.98 0.98) (thickness 0.15))) - (tstamp 114d50fb-c631-48ec-b90f-efb4be58d6c8) - ) - (fp_line (start 1.55 2.56) (end 3.4 2.56) (layer "F.SilkS") (width 0.12) (tstamp 4215d5a7-1062-44a9-96e2-c894457eb6a9)) - (fp_line (start -1.55 -2.56) (end -3.4 -2.56) (layer "F.SilkS") (width 0.12) (tstamp 5e1b6593-5e9b-46a9-b77d-e8857a7019a7)) - (fp_line (start -1.55 2.56) (end -3.4 2.56) (layer "F.SilkS") (width 0.12) (tstamp d2f4f71b-dad4-477c-9332-cfa0b1762c3c)) - (fp_line (start 1.55 -2.56) (end 3.4 -2.56) (layer "F.SilkS") (width 0.12) (tstamp d8ebe137-f5d5-4c2e-b1be-05e2e860bfc2)) - (fp_line (start 3.7 2.7) (end 3.7 -2.7) (layer "F.CrtYd") (width 0.05) (tstamp 03434c57-aec9-4997-bdac-bd6bc0877cdd)) - (fp_line (start -3.7 -2.7) (end -3.7 2.7) (layer "F.CrtYd") (width 0.05) (tstamp 3b0dc4e4-bdc2-4b50-aa3f-9e14820b2751)) - (fp_line (start -3.7 2.7) (end 3.7 2.7) (layer "F.CrtYd") (width 0.05) (tstamp 839afce9-2060-4cb0-b78e-caadc6bdbef9)) - (fp_line (start 3.7 -2.7) (end -3.7 -2.7) (layer "F.CrtYd") (width 0.05) (tstamp e48a8fea-d898-4d03-99fa-28f365900862)) - (fp_line (start -1.95 -1.475) (end -0.975 -2.45) (layer "F.Fab") (width 0.1) (tstamp 27208f4d-f461-4f50-a941-8886d9234066)) - (fp_line (start -0.975 -2.45) (end 1.95 -2.45) (layer "F.Fab") (width 0.1) (tstamp 2c3326d8-8f3d-40cb-a7dd-fa99c40b6598)) - (fp_line (start 1.95 -2.45) (end 1.95 2.45) (layer "F.Fab") (width 0.1) (tstamp 5c93c3a4-8b42-477a-892d-3a4116ce4a83)) - (fp_line (start -1.95 2.45) (end -1.95 -1.475) (layer "F.Fab") (width 0.1) (tstamp 7b8850b8-629b-406b-a955-153bdfac67a7)) - (fp_line (start 1.95 2.45) (end -1.95 2.45) (layer "F.Fab") (width 0.1) (tstamp d594cbf2-5861-4bce-8ea6-54b69faa1bde)) - (pad "" smd roundrect (at -0.6 0.825) (size 1.01 1.38) (layers "F.Paste") (roundrect_rratio 0.247525) (tstamp 02654062-e307-48a2-a672-ab6985eb502c)) - (pad "" smd roundrect (at -0.6 -0.825) (size 1.01 1.38) (layers "F.Paste") (roundrect_rratio 0.247525) (tstamp 0eda8a60-9156-494c-b248-9f23876b9c97)) - (pad "" smd roundrect (at 0.6 0.825) (size 1.01 1.38) (layers "F.Paste") (roundrect_rratio 0.247525) (tstamp 275e7eda-80dc-4dae-8d5a-d69839ef7060)) - (pad "" smd roundrect (at 0.6 -0.825) (size 1.01 1.38) (layers "F.Paste") (roundrect_rratio 0.247525) (tstamp 2ff99c2d-e844-44d0-bfc9-4f54f1b985ca)) - (pad "1" smd roundrect (at -2.475 -1.905) (size 1.95 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 8dcf9965-4b38-4f4e-969f-578bcad555e9)) - (pad "2" smd roundrect (at -2.475 -0.635) (size 1.95 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 425dcc81-ccb1-492a-ac99-b0bf1be89e2d)) - (pad "3" smd roundrect (at -2.475 0.635) (size 1.95 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 56d4d9c4-0452-47df-88a8-5979c8feb2db)) - (pad "4" smd roundrect (at -2.475 1.905) (size 1.95 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 53106e3f-8345-4981-a96d-68820362ebea)) - (pad "5" smd roundrect (at 2.475 1.905) (size 1.95 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp ef1eddff-7709-4257-916a-36fa2baed22e)) - (pad "6" smd roundrect (at 2.475 0.635) (size 1.95 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp b401095e-aca0-4b4a-8e85-319099d7598c)) - (pad "7" smd roundrect (at 2.475 -0.635) (size 1.95 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 4ab1bb28-4236-42fc-aa5d-09e01f4abe45)) - (pad "8" smd roundrect (at 2.475 -1.905) (size 1.95 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 61ad49d1-2f42-4f33-afdd-01be938e7e56)) - (pad "9" thru_hole circle (at 0.7 -1.2) (size 0.5 0.5) (drill 0.2) (layers *.Cu) (tstamp 1327a571-9408-4f2e-b3bb-b550b6d3a0be)) - (pad "9" thru_hole circle (at 0.7 0) (size 0.5 0.5) (drill 0.2) (layers *.Cu) (tstamp 38ad4bee-e334-45b6-98b3-91580c43f314)) - (pad "9" smd rect (at 0 0) (size 2.41 3.3) (layers "F.Cu" "F.Mask") (tstamp 492dc4b9-8891-40fa-9726-31f4ba6ae3a0)) - (pad "9" smd rect (at 0 0) (size 1.9 2.9) (layers "B.Cu") (tstamp a267eaa8-2c1c-4f35-9bdd-c1551668d64b)) - (pad "9" thru_hole circle (at 0.7 1.2) (size 0.5 0.5) (drill 0.2) (layers *.Cu) (tstamp c6fc29d8-1848-4d54-9ceb-e114b4dd89d9)) - (pad "9" thru_hole circle (at -0.7 0) (size 0.5 0.5) (drill 0.2) (layers *.Cu) (tstamp d63c1844-7ca4-4d96-92d7-088888b2e2e0)) - (pad "9" thru_hole circle (at -0.7 1.2) (size 0.5 0.5) (drill 0.2) (layers *.Cu) (tstamp dac580e0-d592-40c4-a6a3-32f4156ddde6)) - (pad "9" thru_hole circle (at -0.7 -1.2) (size 0.5 0.5) (drill 0.2) (layers *.Cu) (tstamp e44650f7-3103-408b-ac51-7088faf35d1a)) - (model "${KICAD6_3DMODEL_DIR}/Package_SO.3dshapes/SOIC-8_3.9x4.9mm_P1.27mm.wrl" - (offset (xyz 0 0 0)) - (scale (xyz 1 1 1)) - (rotate (xyz 0 0 0)) - ) +(footprint "SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" + (version 20240108) + (generator "pcbnew") + (generator_version "8.0") + (layer "F.Cu") + (descr "SOIC, 8 Pin (http://www.allegromicro.com/~/media/Files/Datasheets/A4950-Datasheet.ashx#page=8), generated with kicad-footprint-generator ipc_gullwing_generator.py") + (tags "SOIC SO") + (property "Reference" "REF**" + (at -0.2 -4.3 0) + (layer "F.SilkS") + (uuid "0d0f734b-55d5-4594-866a-ce6819cf8228") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias" + (at 0 3.4 0) + (layer "F.Fab") + (uuid "22956637-17bd-4c2e-acb6-b78772616ce1") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (layer "F.Fab") + (hide yes) + (uuid "eab511bc-cc50-48a3-8b5e-cf001a34725a") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (layer "F.Fab") + (hide yes) + (uuid "e79328cd-44bc-4aab-96c5-6030b6195730") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (property "Description" "" + (at 0 0 0) + (layer "F.Fab") + (hide yes) + (uuid "e794e907-2974-4aa5-b0e8-8009bf377504") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (attr smd) + (fp_line + (start -1.55 -2.56) + (end -3.4 -2.56) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "5e1b6593-5e9b-46a9-b77d-e8857a7019a7") + ) + (fp_line + (start -1.55 2.56) + (end -3.4 2.56) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "d2f4f71b-dad4-477c-9332-cfa0b1762c3c") + ) + (fp_line + (start 1.55 -2.56) + (end 3.4 -2.56) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "d8ebe137-f5d5-4c2e-b1be-05e2e860bfc2") + ) + (fp_line + (start 1.55 2.56) + (end 3.4 2.56) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "4215d5a7-1062-44a9-96e2-c894457eb6a9") + ) + (fp_line + (start -3.7 -2.7) + (end -3.7 2.7) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "3b0dc4e4-bdc2-4b50-aa3f-9e14820b2751") + ) + (fp_line + (start -3.7 2.7) + (end 3.7 2.7) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "839afce9-2060-4cb0-b78e-caadc6bdbef9") + ) + (fp_line + (start 3.7 -2.7) + (end -3.7 -2.7) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "e48a8fea-d898-4d03-99fa-28f365900862") + ) + (fp_line + (start 3.7 2.7) + (end 3.7 -2.7) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "03434c57-aec9-4997-bdac-bd6bc0877cdd") + ) + (fp_line + (start -1.95 -1.475) + (end -0.975 -2.45) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "27208f4d-f461-4f50-a941-8886d9234066") + ) + (fp_line + (start -1.95 2.45) + (end -1.95 -1.475) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "7b8850b8-629b-406b-a955-153bdfac67a7") + ) + (fp_line + (start -0.975 -2.45) + (end 1.95 -2.45) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "2c3326d8-8f3d-40cb-a7dd-fa99c40b6598") + ) + (fp_line + (start 1.95 -2.45) + (end 1.95 2.45) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "5c93c3a4-8b42-477a-892d-3a4116ce4a83") + ) + (fp_line + (start 1.95 2.45) + (end -1.95 2.45) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "d594cbf2-5861-4bce-8ea6-54b69faa1bde") + ) + (fp_text user "${REFERENCE}" + (at 0 0 0) + (layer "F.Fab") + (uuid "114d50fb-c631-48ec-b90f-efb4be58d6c8") + (effects + (font + (size 0.98 0.98) + (thickness 0.15) + ) + ) + ) + (pad "" smd roundrect + (at -0.6 -0.825) + (size 1.01 1.38) + (layers "F.Paste") + (roundrect_rratio 0.247525) + (uuid "0eda8a60-9156-494c-b248-9f23876b9c97") + ) + (pad "" smd roundrect + (at -0.6 0.825) + (size 1.01 1.38) + (layers "F.Paste") + (roundrect_rratio 0.247525) + (uuid "02654062-e307-48a2-a672-ab6985eb502c") + ) + (pad "" smd roundrect + (at 0.6 -0.825) + (size 1.01 1.38) + (layers "F.Paste") + (roundrect_rratio 0.247525) + (uuid "2ff99c2d-e844-44d0-bfc9-4f54f1b985ca") + ) + (pad "" smd roundrect + (at 0.6 0.825) + (size 1.01 1.38) + (layers "F.Paste") + (roundrect_rratio 0.247525) + (uuid "275e7eda-80dc-4dae-8d5a-d69839ef7060") + ) + (pad "1" smd roundrect + (at -2.475 -1.905) + (size 1.95 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "8dcf9965-4b38-4f4e-969f-578bcad555e9") + ) + (pad "2" smd roundrect + (at -2.475 -0.635) + (size 1.95 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "425dcc81-ccb1-492a-ac99-b0bf1be89e2d") + ) + (pad "3" smd roundrect + (at -2.475 0.635) + (size 1.95 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "56d4d9c4-0452-47df-88a8-5979c8feb2db") + ) + (pad "4" smd roundrect + (at -2.475 1.905) + (size 1.95 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "53106e3f-8345-4981-a96d-68820362ebea") + ) + (pad "5" smd roundrect + (at 2.475 1.905) + (size 1.95 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "ef1eddff-7709-4257-916a-36fa2baed22e") + ) + (pad "6" smd roundrect + (at 2.475 0.635) + (size 1.95 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "b401095e-aca0-4b4a-8e85-319099d7598c") + ) + (pad "7" smd roundrect + (at 2.475 -0.635) + (size 1.95 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "4ab1bb28-4236-42fc-aa5d-09e01f4abe45") + ) + (pad "8" smd roundrect + (at 2.475 -1.905) + (size 1.95 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "61ad49d1-2f42-4f33-afdd-01be938e7e56") + ) + (pad "9" thru_hole circle + (at -0.7 -1.2) + (size 0.5 0.5) + (drill 0.2) + (layers "*.Cu") + (remove_unused_layers no) + (uuid "e44650f7-3103-408b-ac51-7088faf35d1a") + ) + (pad "9" thru_hole circle + (at -0.7 0) + (size 0.5 0.5) + (drill 0.2) + (layers "*.Cu") + (remove_unused_layers no) + (uuid "d63c1844-7ca4-4d96-92d7-088888b2e2e0") + ) + (pad "9" thru_hole circle + (at -0.7 1.2) + (size 0.5 0.5) + (drill 0.2) + (layers "*.Cu") + (remove_unused_layers no) + (uuid "dac580e0-d592-40c4-a6a3-32f4156ddde6") + ) + (pad "9" smd rect + (at 0 0) + (size 1.9 2.9) + (layers "B.Cu") + (uuid "a267eaa8-2c1c-4f35-9bdd-c1551668d64b") + ) + (pad "9" smd rect + (at 0 0) + (size 2.41 3.3) + (layers "F.Cu" "F.Mask") + (uuid "492dc4b9-8891-40fa-9726-31f4ba6ae3a0") + ) + (pad "9" thru_hole circle + (at 0.7 -1.2) + (size 0.5 0.5) + (drill 0.2) + (layers "*.Cu") + (remove_unused_layers no) + (uuid "1327a571-9408-4f2e-b3bb-b550b6d3a0be") + ) + (pad "9" thru_hole circle + (at 0.7 0) + (size 0.5 0.5) + (drill 0.2) + (layers "*.Cu") + (remove_unused_layers no) + (uuid "38ad4bee-e334-45b6-98b3-91580c43f314") + ) + (pad "9" thru_hole circle + (at 0.7 1.2) + (size 0.5 0.5) + (drill 0.2) + (layers "*.Cu") + (remove_unused_layers no) + (uuid "c6fc29d8-1848-4d54-9ceb-e114b4dd89d9") + ) + (model "${KICAD8_3DMODEL_DIR}/Package_SO.3dshapes/SOIC-8_3.9x4.9mm_P1.27mm.wrl" + (offset + (xyz 0 0 0) + ) + (scale + (xyz 1 1 1) + ) + (rotate + (xyz 0 0 0) + ) + ) ) diff --git a/KiCad/SOIC-8_5.23x5.23mm_P1.27mm.kicad_mod b/KiCad/SOIC-8_5.23x5.23mm_P1.27mm.kicad_mod index 8b743a0..5b8c7df 100644 --- a/KiCad/SOIC-8_5.23x5.23mm_P1.27mm.kicad_mod +++ b/KiCad/SOIC-8_5.23x5.23mm_P1.27mm.kicad_mod @@ -1,50 +1,325 @@ -(footprint "SOIC-8_5.23x5.23mm_P1.27mm" (version 20211014) (generator pcbnew) - (layer "F.Cu") - (tedit 621CE813) - (descr "SOIC, 8 Pin (http://www.winbond.com/resource-files/w25q32jv%20revg%2003272018%20plus.pdf#page=68), generated with kicad-footprint-generator ipc_gullwing_generator.py") - (tags "SOIC SO") - (attr smd) - (fp_text reference "REF**" (at 0 -3.56) (layer "F.SilkS") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 892c99ea-5410-4a65-9ee4-bdc09fdc90ee) - ) - (fp_text value "SOIC-8_5.23x5.23mm_P1.27mm" (at 0 3.56) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp c04ec0d1-7f0d-4019-91be-a6614badf406) - ) - (fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 77985a68-90d4-4d27-872a-c400b51090e9) - ) - (fp_line (start -2.725 2.725) (end -2.725 2.465) (layer "F.SilkS") (width 0.12) (tstamp 00138a61-23f0-45f3-9f28-2bbd8494a1fc)) - (fp_line (start -2.725 -2.465) (end -4.4 -2.465) (layer "F.SilkS") (width 0.12) (tstamp 0ad895a6-0c83-484a-8b80-3635647eb60a)) - (fp_line (start 0 -2.725) (end -2.725 -2.725) (layer "F.SilkS") (width 0.12) (tstamp 0ef6c909-3192-40ee-a6d7-49ae09a79a2d)) - (fp_line (start -2.725 -2.725) (end -2.725 -2.465) (layer "F.SilkS") (width 0.12) (tstamp 1faa07e6-bd78-437e-b4e2-cd00c2b8018d)) - (fp_line (start 2.725 2.725) (end 2.725 2.465) (layer "F.SilkS") (width 0.12) (tstamp 3a26b0fd-8ddd-4bb6-8f59-5d8caaf547d2)) - (fp_line (start 0 2.725) (end 2.725 2.725) (layer "F.SilkS") (width 0.12) (tstamp 599161f8-efef-47ec-8f3f-69142e759f9f)) - (fp_line (start 0 2.725) (end -2.725 2.725) (layer "F.SilkS") (width 0.12) (tstamp 7563e6d6-e180-4d92-9939-ff14aba164c5)) - (fp_line (start 2.725 -2.725) (end 2.725 -2.465) (layer "F.SilkS") (width 0.12) (tstamp bd45a508-6e93-4f9b-948f-0868d234cca2)) - (fp_line (start 0 -2.725) (end 2.725 -2.725) (layer "F.SilkS") (width 0.12) (tstamp e0b94375-2281-4987-b4d4-78e8e535972c)) - (fp_line (start 4.65 -2.86) (end -4.65 -2.86) (layer "F.CrtYd") (width 0.05) (tstamp 15719beb-6925-433d-810a-8c40136a730d)) - (fp_line (start 4.65 2.86) (end 4.65 -2.86) (layer "F.CrtYd") (width 0.05) (tstamp 343b8478-4e57-4c34-a00f-f6c76028fbb0)) - (fp_line (start -4.65 2.86) (end 4.65 2.86) (layer "F.CrtYd") (width 0.05) (tstamp 48c8ef75-8bc0-4249-b6fc-f564812177b5)) - (fp_line (start -4.65 -2.86) (end -4.65 2.86) (layer "F.CrtYd") (width 0.05) (tstamp d364a3b0-54fd-4659-8dce-a730d0a819b4)) - (fp_line (start -2.615 2.615) (end -2.615 -1.615) (layer "F.Fab") (width 0.1) (tstamp 02b4b413-8363-4d1b-994e-188513d8ddc7)) - (fp_line (start 2.615 -2.615) (end 2.615 2.615) (layer "F.Fab") (width 0.1) (tstamp 0de79bc8-6e35-4f27-a959-67075a5c995d)) - (fp_line (start -1.615 -2.615) (end 2.615 -2.615) (layer "F.Fab") (width 0.1) (tstamp 6d79fd42-415e-413e-9d9a-317a78780624)) - (fp_line (start -2.615 -1.615) (end -1.615 -2.615) (layer "F.Fab") (width 0.1) (tstamp a9e3aef9-f101-4095-bdca-1439a0a3a462)) - (fp_line (start 2.615 2.615) (end -2.615 2.615) (layer "F.Fab") (width 0.1) (tstamp f6066510-5931-4b5c-bd2e-aa73c2658e09)) - (pad "1" smd roundrect (at -3.6 -1.905) (size 1.6 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 27b69982-b2ed-4600-967a-124075f92a47)) - (pad "2" smd roundrect (at -3.6 -0.635) (size 1.6 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 6d25bce9-3e60-4ced-b5a9-08751e8b6fc4)) - (pad "3" smd roundrect (at -3.6 0.635) (size 1.6 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 20c0617b-b9fa-402b-acac-3d6d0fd080c9)) - (pad "4" smd roundrect (at -3.6 1.905) (size 1.6 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp f866660d-6ba6-48d1-8140-3aea9f62e041)) - (pad "5" smd roundrect (at 3.6 1.905) (size 1.6 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 84c5eefd-df9f-4bf1-ada6-d7c8e324cafa)) - (pad "6" smd roundrect (at 3.6 0.635) (size 1.6 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 8cae02d5-3e1a-460e-ab20-8d0d15978bd7)) - (pad "7" smd roundrect (at 3.6 -0.635) (size 1.6 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp bfac6452-2417-4786-863e-60ca15ff175c)) - (pad "8" smd roundrect (at 3.6 -1.905) (size 1.6 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp de3c0f07-7b33-4a21-a1da-0aaa6ffb3b32)) - (model "${KICAD6_3DMODEL_DIR}/Package_SO.3dshapes/SOIC-8_5.275x5.275mm_P1.27mm.wrl" - (offset (xyz 0 0 0)) - (scale (xyz 1 1 1)) - (rotate (xyz 0 0 0)) - ) +(footprint "SOIC-8_5.23x5.23mm_P1.27mm" + (version 20240108) + (generator "pcbnew") + (generator_version "8.0") + (layer "F.Cu") + (descr "SOIC, 8 Pin (http://www.winbond.com/resource-files/w25q32jv%20revg%2003272018%20plus.pdf#page=68), generated with kicad-footprint-generator ipc_gullwing_generator.py") + (tags "SOIC SO") + (property "Reference" "REF**" + (at 0 -3.56 0) + (layer "F.SilkS") + (uuid "892c99ea-5410-4a65-9ee4-bdc09fdc90ee") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "SOIC-8_5.23x5.23mm_P1.27mm" + (at 0 3.56 0) + (layer "F.Fab") + (uuid "c04ec0d1-7f0d-4019-91be-a6614badf406") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (layer "F.Fab") + (hide yes) + (uuid "923f8285-757f-444c-b89a-cc7fe1233c67") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (layer "F.Fab") + (hide yes) + (uuid "a0de60f8-d40b-48e6-89a5-4fe2362b0757") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (property "Description" "" + (at 0 0 0) + (layer "F.Fab") + (hide yes) + (uuid "da4bc971-83cf-41f4-9d7f-5dab7b7dde0f") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (attr smd) + (fp_line + (start -2.725 -2.725) + (end -2.725 -2.465) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "1faa07e6-bd78-437e-b4e2-cd00c2b8018d") + ) + (fp_line + (start -2.725 -2.465) + (end -4.4 -2.465) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "0ad895a6-0c83-484a-8b80-3635647eb60a") + ) + (fp_line + (start -2.725 2.725) + (end -2.725 2.465) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "00138a61-23f0-45f3-9f28-2bbd8494a1fc") + ) + (fp_line + (start 0 -2.725) + (end -2.725 -2.725) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "0ef6c909-3192-40ee-a6d7-49ae09a79a2d") + ) + (fp_line + (start 0 -2.725) + (end 2.725 -2.725) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "e0b94375-2281-4987-b4d4-78e8e535972c") + ) + (fp_line + (start 0 2.725) + (end -2.725 2.725) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "7563e6d6-e180-4d92-9939-ff14aba164c5") + ) + (fp_line + (start 0 2.725) + (end 2.725 2.725) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "599161f8-efef-47ec-8f3f-69142e759f9f") + ) + (fp_line + (start 2.725 -2.725) + (end 2.725 -2.465) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "bd45a508-6e93-4f9b-948f-0868d234cca2") + ) + (fp_line + (start 2.725 2.725) + (end 2.725 2.465) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "3a26b0fd-8ddd-4bb6-8f59-5d8caaf547d2") + ) + (fp_line + (start -4.65 -2.86) + (end -4.65 2.86) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "d364a3b0-54fd-4659-8dce-a730d0a819b4") + ) + (fp_line + (start -4.65 2.86) + (end 4.65 2.86) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "48c8ef75-8bc0-4249-b6fc-f564812177b5") + ) + (fp_line + (start 4.65 -2.86) + (end -4.65 -2.86) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "15719beb-6925-433d-810a-8c40136a730d") + ) + (fp_line + (start 4.65 2.86) + (end 4.65 -2.86) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "343b8478-4e57-4c34-a00f-f6c76028fbb0") + ) + (fp_line + (start -2.615 -1.615) + (end -1.615 -2.615) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "a9e3aef9-f101-4095-bdca-1439a0a3a462") + ) + (fp_line + (start -2.615 2.615) + (end -2.615 -1.615) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "02b4b413-8363-4d1b-994e-188513d8ddc7") + ) + (fp_line + (start -1.615 -2.615) + (end 2.615 -2.615) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "6d79fd42-415e-413e-9d9a-317a78780624") + ) + (fp_line + (start 2.615 -2.615) + (end 2.615 2.615) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "0de79bc8-6e35-4f27-a959-67075a5c995d") + ) + (fp_line + (start 2.615 2.615) + (end -2.615 2.615) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "f6066510-5931-4b5c-bd2e-aa73c2658e09") + ) + (fp_text user "${REFERENCE}" + (at 0 0 0) + (layer "F.Fab") + (uuid "77985a68-90d4-4d27-872a-c400b51090e9") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (pad "1" smd roundrect + (at -3.6 -1.905) + (size 1.6 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "27b69982-b2ed-4600-967a-124075f92a47") + ) + (pad "2" smd roundrect + (at -3.6 -0.635) + (size 1.6 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "6d25bce9-3e60-4ced-b5a9-08751e8b6fc4") + ) + (pad "3" smd roundrect + (at -3.6 0.635) + (size 1.6 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "20c0617b-b9fa-402b-acac-3d6d0fd080c9") + ) + (pad "4" smd roundrect + (at -3.6 1.905) + (size 1.6 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "f866660d-6ba6-48d1-8140-3aea9f62e041") + ) + (pad "5" smd roundrect + (at 3.6 1.905) + (size 1.6 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "84c5eefd-df9f-4bf1-ada6-d7c8e324cafa") + ) + (pad "6" smd roundrect + (at 3.6 0.635) + (size 1.6 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "8cae02d5-3e1a-460e-ab20-8d0d15978bd7") + ) + (pad "7" smd roundrect + (at 3.6 -0.635) + (size 1.6 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "bfac6452-2417-4786-863e-60ca15ff175c") + ) + (pad "8" smd roundrect + (at 3.6 -1.905) + (size 1.6 0.6) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (uuid "de3c0f07-7b33-4a21-a1da-0aaa6ffb3b32") + ) + (model "${KICAD8_3DMODEL_DIR}/Package_SO.3dshapes/SOIC-8_5.275x5.275mm_P1.27mm.wrl" + (offset + (xyz 0 0 0) + ) + (scale + (xyz 1 1 1) + ) + (rotate + (xyz 0 0 0) + ) + ) ) diff --git a/README.md b/README.md index ef5c04b..872a773 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,13 @@ Features - DCC digital signal decoding - Motor load/speed control -- 4 Outputs to drive loads up to 400mA each -- 6 GPIO for lighter loads or custom applications +- 4 Outputs switched by transistors with configurable optional PWM +- 6 additional GPIO for lighter loads or custom applications - Programmable on programming track - CV Function Mapping - Board size of 25x20 mm +- Pre-compiled software available and flashable via USB using your regular file explorer +- Debugging via Serial Wire Debug or optional logging via stdio and UART/USB serial port Getting Started ------------ @@ -25,18 +27,16 @@ License ------- - Software - MIT license - Hardware - CERN Open Hardware Licence Version 2 - Permissive -- [LICENSE](https://github.com/1nct/RP2040-Decoder/blob/main/LICENSE) +- [LICENSE](https://github.com/gab-k/RP2040-Decoder/blob/main/LICENSE) ------------ -Further details about the project can be found here: [RP2040-Decoder Wiki](https://github.com/GabrielKoppenstein/pico-decoder/wiki) +Further details about the project can be found here: [RP2040-Decoder Wiki](https://github.com/gab-k/RP2040-Decoder/wiki) Note: The decoder is still in early development, there might (will) be bugs as its not tested that much yet. So suggestions on how to improve things and bug reports are always much appreciated. The wiki is also work in progress and will be updated to be as comprehensive as possible. ------------ -

-PCB Front Side Image -PCB Back Side Image -

+![rotating gif of RP2040-Decoder](https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img/rotating.gif) + diff --git a/Software/CMakeLists.txt b/Software/CMakeLists.txt index 7d40646..d9f4619 100644 --- a/Software/CMakeLists.txt +++ b/Software/CMakeLists.txt @@ -53,7 +53,9 @@ pico_set_program_name(RP2040-Decoder "RP2040-Decoder") pico_set_program_version(RP2040-Decoder "1.0") -# LOGLEVEL>0 enables debugging via stdio, this can be done either via USB or alternatively, +# Logging configuration: +# +# LOGLEVEL>0 enables logging messages via stdio, this can be done either via USB or alternatively, # directly with the UART TX/RX pins (see pin definition in RP2040-Decoder-board.h). # # In order to use stdio via USB please set STDIO_USB_ENABLED to 1 below @@ -62,9 +64,9 @@ pico_set_program_version(RP2040-Decoder "1.0") # Additional Notes: # - When logging is disabled (LOGLEVEL 0), all logging functions will be completely excluded during compilation. # - Be cautious: Logging can alter timing behavior. For example, the PID controller is time critical, -# limit the frequency of log outputs—such as printing only every 100th iteration. -# - Note that with UART logging enabled, PICO_DEFAULT_UART_TX_PIN and PICO_DEFAULT_UART_RX_PIN are disabled for decoder functions -# because they are used for UART communication. This is automatically configured for you below. +# limit the frequency of log outputs—such as logging only every 100th iteration. +# - Note that with UART logging enabled, PICO_DEFAULT_UART_TX_PIN and PICO_DEFAULT_UART_RX_PIN are disabled for decoder functions. +# These pins are used for UART communication. Disablign is done automatically in RP2040-Decoder-board.h or RP2040-Decoder-board-legacy.h respectively. set(LOGLEVEL 1) # Additionally, the LOG_WAIT parameter can be configured to make the controller wait for user input via stdio before continuing. # This is useful for ensuring that all stdio logging outputs are captured. @@ -82,7 +84,8 @@ target_compile_definitions( RP2040-Decoder PRIVATE LOGLEVEL=${LOGLEVEL} LOG_WAIT=${LOG_WAIT} STDIO_UART_ENABLED=${STDIO_UART_ENABLED} - STDIO_USB_ENABLED=${STDIO_USB_ENABLED}) + STDIO_USB_ENABLED=${STDIO_USB_ENABLED} + ) # Warn when logging is enabled (LOGLEVEL>0) and neither stdio is enabled if (LOGLEVEL GREATER 0 AND (STDIO_USB_ENABLED EQUAL 0 AND STDIO_UART_ENABLED EQUAL 0)) message(WARNING "\nWARNING: Logging (LOGLEVEL>0) enabled with both STDIO_USB_ENABLED and STDIO_UART_ENABLED disabled!") @@ -107,3 +110,64 @@ target_include_directories(RP2040-Decoder PRIVATE ${CMAKE_CURRENT_LIST_DIR}) # create map/bin/hex file etc. pico_add_extra_outputs(RP2040-Decoder) +# Program size check +# +# Check for program size exceeding limits as CVs are stored at the end of flash, the program could theoretically overwrite this. +# In practice the program size is usually only about 100KiB. +# Extract the directory of the C compiler and construct the path to the 'arm-none-eabi-size' tool +get_filename_component(C_COMPILER_DIR ${CMAKE_C_COMPILER} DIRECTORY) +set(SIZE_TOOL ${C_COMPILER_DIR}/arm-none-eabi-size) + +# Add custom command to check the flash size after build +add_custom_command(TARGET RP2040-Decoder POST_BUILD + COMMAND ${CMAKE_COMMAND} -E echo "Checking flash size for $" + COMMAND ${SIZE_TOOL} $ > size_output.txt +) + +# Read the size output file +file(READ "${CMAKE_BINARY_DIR}/size_output.txt" SIZE_OUTPUT) + +# Print the content of SIZE_OUTPUT +message(STATUS "arm-none-eabi-size output:\n${SIZE_OUTPUT}") + +# Use regex to match all numbers +string(REGEX MATCHALL "[0-9]+" MATCHED_VALUES "${SIZE_OUTPUT}") + +# Get third element from list of matches, this corresponds with dec table value in "size_output.txt" +list(GET MATCHED_VALUES 3 PROGRAM_SIZE_DEC) + +# Check for success of program size extraction from "size_output.txt" +if(PROGRAM_SIZE_DEC) + message(STATUS "PROGRAM_SIZE_DEC: ${PROGRAM_SIZE_DEC} bytes") +else() + message(FATAL_ERROR "Could not extract program size from size_output.txt") +endif() + + +# Path to the header file that defines PICO_FLASH_SIZE_BYTES +set(FLASH_CONFIG_HEADER ${CMAKE_SOURCE_DIR}/${PICO_BOARD}.h) +# Read the contents of the header file into a variable +file(READ ${FLASH_CONFIG_HEADER} HEADER_CONTENT) + +# Extract the value of PICO_FLASH_SIZE_BYTES using a regular expression +string(REGEX MATCHALL "#define PICO_FLASH_SIZE_BYTES [0-9]+" MACRO_MATCH "${HEADER_CONTENT}") +string(REGEX MATCHALL "[0-9]+" PICO_FLASH_SIZE_BYTES "${MACRO_MATCH}") + + +# Check for success of PICO_FLASH_SIZE_BYTES extraction from board header file +if(PICO_FLASH_SIZE_BYTES) + message(STATUS "PICO_FLASH_SIZE_BYTES: ${PICO_FLASH_SIZE_BYTES} bytes") +else() + message(FATAL_ERROR "Failed to find PICO_FLASH_SIZE_BYTES in the header file.") +endif() + +# Sector size is always 4096 bytes +set(FLASH_SECTOR_SIZE 4096) +message(STATUS "FLASH_SECTOR_SIZE: ${FLASH_SECTOR_SIZE} bytes") +# Subtract flash sector size from flash size +math(EXPR FLASH_TARGET_OFFSET "${PICO_FLASH_SIZE_BYTES} - ${FLASH_SECTOR_SIZE}") +message(STATUS "FLASH_TARGET_OFFSET: ${FLASH_TARGET_OFFSET} bytes") + +if(PROGRAM_SIZE_DEC GREATER FLASH_TARGET_OFFSET) + message(FATAL_ERROR "Program size exceeds allowed flash size. Flash sector containing the CVs would be overwritten! Please reduce the size of the program.") +endif() \ No newline at end of file diff --git a/Software/RP2040-Decoder-board-legacy.h b/Software/RP2040-Decoder-board-legacy.h index f8cb1fb..01a1381 100644 --- a/Software/RP2040-Decoder-board-legacy.h +++ b/Software/RP2040-Decoder-board-legacy.h @@ -40,9 +40,11 @@ // --- FLASH --- // Flash size is 8 MiB for W25Q64JVSSIQ if you decide to use another capacity flash IC change the size to the corresponding value +// 8MiB = (8 * 1024 * 1024) bytes = 8388608 bytes #ifndef PICO_FLASH_SIZE_BYTES -#define PICO_FLASH_SIZE_BYTES (8 * 1024 * 1024) +#define PICO_FLASH_SIZE_BYTES 8388608 #endif + // Offset from base address used for saving CV_ARRAY_FLASH - in this case one sector size from the end of flash #define FLASH_TARGET_OFFSET (PICO_FLASH_SIZE_BYTES-FLASH_SECTOR_SIZE) diff --git a/Software/RP2040-Decoder-board.h b/Software/RP2040-Decoder-board.h index 6a76363..42e6128 100644 --- a/Software/RP2040-Decoder-board.h +++ b/Software/RP2040-Decoder-board.h @@ -43,9 +43,11 @@ // --- FLASH --- // Flash size is 8 MiB for W25Q64JVSSIQ if you decide to use another capacity flash IC change the size to the corresponding value +// 8MiB = (8 * 1024 * 1024) bytes = 8388608 bytes #ifndef PICO_FLASH_SIZE_BYTES -#define PICO_FLASH_SIZE_BYTES (8 * 1024 * 1024) +#define PICO_FLASH_SIZE_BYTES 8388608 #endif + // Offset from base address used for saving CV_ARRAY_FLASH - in this case one sector size from the end of flash #define FLASH_TARGET_OFFSET (PICO_FLASH_SIZE_BYTES-FLASH_SECTOR_SIZE) diff --git a/Software/core0.c b/Software/core0.c index a2e518a..92ccdba 100644 --- a/Software/core0.c +++ b/Software/core0.c @@ -316,8 +316,8 @@ void set_outputs(const uint32_t functions_to_set_bitmask) { uint32_t temp_mask = 1; for (uint8_t i = 0; i < 32; i++) { if (temp_mask & functions_to_set_bitmask) { - const bool direction = get_direction_of_speed_step(speed_step_target); - outputs_to_set |= get_32bit_CV(i * 8 + 260 - 4 * direction); + const direction_t dir = get_direction_of_speed_step(speed_step_target); + outputs_to_set |= get_32bit_CV(i * 8 + 260 - 4 * dir); } temp_mask <<= 1; } @@ -444,7 +444,7 @@ void instruction_evaluation(const uint8_t number_of_bytes, const uint8_t *const speed_step_target = byte_array[command_byte_start_index - 1]; // Check for direction change const bool direction_changed = get_direction_of_speed_step(speed_step_target) != - get_direction_of_speed_step(speed_step_target_prev); + get_direction_of_speed_step(speed_step_target_prev); // In case of a direction change, functions need to be updated because functions depend on direction if (direction_changed) { update_active_functions(0, 0, true); @@ -488,12 +488,13 @@ void instruction_evaluation(const uint8_t number_of_bytes, const uint8_t *const // Check for reset message - When reset message is found, stop the motor and disable all functions. bool reset_message_check(const uint8_t number_of_bytes, const uint8_t *const byte_array) { if (byte_array[number_of_bytes - 1] == 0b00000000 && byte_array[number_of_bytes - 2] == 0b00000000) { - const bool direction = get_direction_of_speed_step(speed_step_target); + const direction_t dir = get_direction_of_speed_step(speed_step_target); // Set previous speed step target to current speed step target speed_step_target_prev = speed_step_target; + // TODO: Improve comment below // Set speed step target to emergency stop speed step ( 1 for Reverse direction / 129 for forward direction) // for details see get_direction_of_speed_step() doxygen comment in "shared.h" - speed_step_target = 1 + 128*direction; + speed_step_target = 1 + 128*dir; update_active_functions(0,0,0); // Disables all functions return true; } diff --git a/Software/core1.c b/Software/core1.c index c344d67..a4557a4 100644 --- a/Software/core1.c +++ b/Software/core1.c @@ -9,6 +9,43 @@ struct repeating_timer pid_control_timer, speed_helper_timer; +// Measures Back-EMF voltage (proportional to the rotational speed of the motor) on GPIO 28 and GPIO 29 respectively (depending on direction) +float measure(uint8_t total_iterations, + uint8_t measurement_delay_us, + uint8_t l_side_arr_cutoff, + uint8_t r_side_arr_cutoff, + bool direction){ //TODO: Change to direction_t + uint32_t sum = 0; + uint16_t adc_val[total_iterations]; + int32_t j = 0; + uint16_t key; + pwm_set_gpio_level(MOTOR_FWD_PIN, 0); + pwm_set_gpio_level(MOTOR_REV_PIN, 0); + adc_select_input((!direction)+2); // TODO: fix with #define macros! + busy_wait_us(measurement_delay_us); + adc_run(true); + for (int32_t i = 0; i < total_iterations; ++i) { + //Take adc value out of fifo when available, then do one step of insertion sort. + adc_val[i] = adc_fifo_get_blocking(); + key = adc_val[i]; + j = i - 1; + while (j >= 0 && adc_val[j] > key) { + adc_val[j + 1] = adc_val[j]; + j--; + } + adc_val[j + 1] = key; + } + adc_run(false); + //discard x entries beginning from the lowest entry of the array (counting up); x = msr.l_side_arr_cutoff + //discard y entries beginning from the highest index of the array (counting down); y = msr.r_side_arr_cutoff + for (int32_t i = l_side_arr_cutoff; i < total_iterations - r_side_arr_cutoff ; ++i) { + sum += adc_val[i]; + } + float res = (float)sum / (float)( total_iterations - (l_side_arr_cutoff + r_side_arr_cutoff) ); + // return true to keep the repeating timer active + return res; +} + // Get speed_step_table_index depending on speed_step uint8_t get_speed_step_table_index_of_speed_step(uint8_t speed_step) { // Clear direction information in bit7 @@ -79,12 +116,13 @@ bool speed_helper(struct repeating_timer *const t) { // Helper function to adjust pwm level/duty cycle. void adjust_pwm_level(const uint16_t level) { - if (get_direction_of_speed_step(speed_step_target)) { + direction_t dir = get_direction_of_speed_step(speed_step_target); + if (dir == DIRECTION_FORWARD) { // Forward pwm_set_gpio_level(MOTOR_REV_PIN, 0); pwm_set_gpio_level(MOTOR_FWD_PIN, level); } - else { + else if (dir == DIRECTION_REVERSE){ // Reverse pwm_set_gpio_level(MOTOR_FWD_PIN, 0); pwm_set_gpio_level(MOTOR_REV_PIN, level); @@ -186,7 +224,7 @@ void controller_pid_mode(controller_parameter_t *const ctrl_par) { } // General controller function gets called every x milliseconds where x is CV_49 i.e. sampling time (pid->t) -// TODO: fixed point arithmetic to improve performance... +// TODO: Consider fixed point arithmetic to improve performance... bool controller_general(struct repeating_timer *const t) { // Cast (void *) to (controller_parameter_t *) controller_parameter_t *const ctrl_par = (controller_parameter_t *) (t->user_data); diff --git a/Software/core1.h b/Software/core1.h index 3b59718..a7922ef 100644 --- a/Software/core1.h +++ b/Software/core1.h @@ -82,6 +82,27 @@ typedef struct controller_parameter_t{ } controller_parameter_t; + +/** + * @brief Measures Back-EMF voltage (proportional to the rotational speed of the motor) on GPIO 28 and GPIO 29 respectively (depending on direction). + * + * This function performs multiple ADC measurements, sorts the results using insertion sort, and calculates the average of the middle values, + * discarding a specified number of the lowest and highest values. + * + * @param total_iterations The total number of ADC measurements to perform. + * @param measurement_delay_us The delay in microseconds between the switch-off of the motor PWM and the measurement. + * @param l_side_arr_cutoff The number of lowest ADC values to discard. + * @param r_side_arr_cutoff The number of highest ADC values to discard. + * @param direction The direction of the motor. //TODO: Introduce Motor direction typedef + * @return The average of the middle ADC values after discarding the specified number of lowest and highest values. + */ +float measure(uint8_t total_iterations, + uint8_t measurement_delay_us, + uint8_t l_side_arr_cutoff, + uint8_t r_side_arr_cutoff, + bool direction); + + /** * @brief Get the speed step table index based on the speed step value. * diff --git a/Software/shared.c b/Software/shared.c index 1374f28..f76bc1a 100644 --- a/Software/shared.c +++ b/Software/shared.c @@ -8,47 +8,9 @@ uint8_t speed_step_target = 0; uint8_t speed_step_target_prev = 0; - uint32_t error_state = 0; - -// Functions in shared.c can be accessed by both cores -// Measures Back-EMF voltage (proportional to the rotational speed of the motor) on GPIO 28 and GPIO 29 respectively (depending on direction) -float measure(uint8_t total_iterations, - uint8_t measurement_delay_us, - uint8_t l_side_arr_cutoff, - uint8_t r_side_arr_cutoff, - bool direction){ - uint32_t sum = 0; - uint16_t adc_val[total_iterations]; - int32_t j = 0; - uint16_t key; - pwm_set_gpio_level(MOTOR_FWD_PIN, 0); - pwm_set_gpio_level(MOTOR_REV_PIN, 0); - adc_select_input((!direction)+2); - busy_wait_us(measurement_delay_us); - adc_run(true); - for (int32_t i = 0; i < total_iterations; ++i) { - //Take adc value out of fifo when available, then do one step of insertion sort. - adc_val[i] = adc_fifo_get_blocking(); - key = adc_val[i]; - j = i - 1; - while (j >= 0 && adc_val[j] > key) { - adc_val[j + 1] = adc_val[j]; - j--; - } - adc_val[j + 1] = key; - } - adc_run(false); - //discard x entries beginning from the lowest entry of the array (counting up); x = msr.l_side_arr_cutoff - //discard y entries beginning from the highest index of the array (counting down); y = msr.r_side_arr_cutoff - for (int32_t i = l_side_arr_cutoff; i < total_iterations - r_side_arr_cutoff ; ++i) { - sum += adc_val[i]; - } - float res = (float)sum / (float)( total_iterations - (l_side_arr_cutoff + r_side_arr_cutoff) ); - // return true to keep the repeating timer active - return res; -} +// Functions in shared.c are accessed by both cores // retrieve 4Bytes from CV_ARRAY_FLASH at once and return 32-Bit value uint32_t get_32bit_CV (uint16_t CV_start_index){ @@ -67,7 +29,7 @@ uint16_t get_16bit_CV (uint16_t CV_start_index){ return (byte_0) + (byte_1<<8); } -bool get_direction_of_speed_step(uint8_t speed_step){ +direction_t get_direction_of_speed_step(uint8_t speed_step){ // Shift by 7 Bytes to move bit7 into bit0 position and return return speed_step >> 7; } diff --git a/Software/shared.h b/Software/shared.h index ef06718..10a619d 100644 --- a/Software/shared.h +++ b/Software/shared.h @@ -28,6 +28,11 @@ typedef enum { REBOOT_BY_WATCHDOG = (1<<5), } error_t; +typedef enum { + DIRECTION_FORWARD = 1, + DIRECTION_REVERSE = 0, +} direction_t; + #define LOG(level, ...) { \ if (level <= LOGLEVEL) { \ @@ -49,11 +54,6 @@ extern uint8_t speed_step_target_prev; void core1_entry(); void write_cv_handler(uint16_t cv_index, uint8_t cv_data); -float measure(uint8_t total_iterations, - uint8_t measurement_delay_us, - uint8_t l_side_arr_cutoff, - uint8_t r_side_arr_cutoff, - bool direction); uint32_t get_32bit_CV (uint16_t CV_start_index); uint16_t get_16bit_CV (uint16_t CV_start_index); /*! @@ -85,9 +85,9 @@ uint16_t get_16bit_CV (uint16_t CV_start_index); * | 255 | 1111 1111 | Forward | Speed step 126 | * * @param speed_step The speed step byte. - * @return `true` for forward direction, `false` for reverse direction. + * @return `DIRECTION_FORWARD` for forward direction, `DIRECTION_REVERSE` for reverse direction. */ -bool get_direction_of_speed_step(uint8_t speed_step); +direction_t get_direction_of_speed_step(uint8_t speed_step); void set_error(error_t err); diff --git a/docs/sphinx/source/hardware/rev_0_3/hw_description.rst b/docs/sphinx/source/hardware/rev_0_3/hw_description.rst index 24585a5..c76e382 100644 --- a/docs/sphinx/source/hardware/rev_0_3/hw_description.rst +++ b/docs/sphinx/source/hardware/rev_0_3/hw_description.rst @@ -1,8 +1,9 @@ Overview -==================== +============================== .. figure:: ../../../../svg/hw/rev_0_3/Block_Diagram_Hardware.svg :alt: Block Diagram + :align: center Harware block diagram @@ -22,7 +23,7 @@ The above block diagram gives a general overview regarding the operation of comp - Crystal oscillator Electrical Characteristics -==================== +============================== .. table:: Electrical Characteristics & Absolute Maximum Ratings :widths: auto @@ -46,10 +47,11 @@ Electrical Characteristics (2): According to: `T2N7002BK Datasheet `_ Input Stage -==================== +============================== .. figure:: ../../../../svg/hw/rev_0_3/Input_Stage.svg :alt: Input Stage + :align: center Input stage @@ -58,20 +60,22 @@ D1 Rectifies the DCC square-wave into +V, the amplitude is not critical as long The MOSFET on the right effectively translates the rather high DCC voltage to a suitable level for the microcontroller to process. When Q1 is turned off GPIO21 is pulled high by the RP2040 internal pull-up resistor, as soon as Q1 gets turned on (V\ :sub:`GS`\ > V\ :sub:`GS,th`\), GPIO21 gets pulled to GND potential. R1 and R2 ensure that V\ :sub:`GS`\ doesn't exceed ±20V. Motor Driver -==================== +============================== .. figure:: ../../../../svg/hw/rev_0_3/Motor_Driver.svg :alt: Motor Driver + :align: center Motor driver The Motor Driver is a special H-Bridge IC that is made for DC motors. To control the motor, it is necessary to measure the back-EMF voltage, which is directly related to the motor's speed. This is done by the ADC, which measures at Points ADC_EMF_A and ADC_EMF_B. The two resistors work together as a voltage divider. Auxiliary Outputs -==================== +============================== .. figure:: ../../../../svg/hw/rev_0_3/Aux_Outputs.svg :alt: Auxiliary Outputs + :align: center Auxiliary Outputs @@ -79,31 +83,33 @@ Switching of loads can be done using four N-Channel MOSFETs (Q2 to Q5). The amou GPIO -==================== +============================== To switch lighter loads, six GPIO soldering pads are connected to GPIO0 to GPIO5 pins. Although not yet set up in the software, they could be used as inputs as well (e.g. reed switch). GPIO0 and GPIO1 can also be used to facilitate stdio logging via UART, which can easily be set up in CMakeLists.txt. Microcontroller -==================== +============================== .. figure:: ../../../../svg/hw/rev_0_3/Microcontroller.svg :alt: Microcontroller + :align: center Microcontroller, flash memory, crystal oscillator, ... The Microcontroller needs a crystal oscillator for its clock. External flash memory holds the configuration variables and the program itself. R3 & C14 are used to filter ADC_AVDD (ADC Reference Voltage). Complete Schematic -==================== +============================== .. figure:: ../../../../svg/hw/rev_0_3/RP2040-Decoder.svg :alt: Complete Schematic + :align: center Complete Schematic BOM & Alternative Parts -==================== +============================== .. table:: BOM :widths: auto @@ -142,14 +148,16 @@ Alternative for HT7533S: .. _wiring_rev_0_3: + Wiring the Decoder -==================== +============================== .. figure:: ../../../../svg/hw/rev_0_3/Wiring_diagram.svg - :width: 700 - :alt: Wiring Diagram + :align: center + :width: 700 + :alt: Wiring Diagram - Wiring Diagram + Wiring Diagram The illustration above provides an example of a wiring configuration. It supports the connection of up to 4 transistor-switched outputs and 6 GPIOs for lighter loads or custom applications. diff --git a/docs/sphinx/source/hardware/rev_1_0/hw_description.rst b/docs/sphinx/source/hardware/rev_1_0/hw_description.rst index dc039ef..2bf67a9 100644 --- a/docs/sphinx/source/hardware/rev_1_0/hw_description.rst +++ b/docs/sphinx/source/hardware/rev_1_0/hw_description.rst @@ -1,7 +1,8 @@ Overview -==================== +============================== .. figure:: ../../../../svg/hw/rev_1_0/Block_Diagram_Hardware.svg + :align: center :alt: Block Diagram Harware block diagram @@ -23,7 +24,7 @@ The above block diagram gives a general overview regarding the operation of comp - USB Connector Electrical Characteristics -==================== +============================== .. table:: Electrical Characteristics & Absolute Maximum Ratings :widths: auto @@ -49,9 +50,10 @@ Electrical Characteristics (3): T\ :sub:`Case`\ = 25°C, keep power dissipation, thermal resistance the corresponding temperature rise ΔT and switching losses in PWM mode in mind! Input Stage -==================== +============================== .. figure:: ../../../../svg/hw/rev_1_0/Input_Stage.svg + :align: center :alt: Input Stage Input stage @@ -60,9 +62,10 @@ D2 Rectifies the DCC square-wave into VDC, the amplitude is not critical as long The MOSFET on the right effectively translates the rather high DCC voltage to a suitable level for the microcontroller to process. When Q1 is turned off GPIO21 is pulled high by the RP2040 internal pull-up resistor, as soon as Q1 gets turned on (V\ :sub:`GS`\ > V\ :sub:`GS,th`\), GPIO21 gets pulled to GND potential. R1 and R2 ensure that V\ :sub:`GS`\ doesn't exceed ±12V. Motor Driver -==================== +============================== .. figure:: ../../../../svg/hw/rev_1_0/Motor_Driver.svg + :align: center :alt: Motor Driver Motor driver @@ -70,9 +73,10 @@ Motor Driver The Motor Driver is a special H-Bridge IC that is made for DC motors. To control the motor, it is necessary to measure the back-EMF voltage, which is directly related to the motor's speed. This is done by the ADC, which measures at Points ADC_EMF_A and ADC_EMF_B. The two resistors work together as a voltage divider. Auxiliary Outputs -==================== +============================== .. figure:: ../../../../svg/hw/rev_1_0/Aux_Outputs.svg + :align: center :alt: Auxiliary Outputs Auxiliary Outputs @@ -80,14 +84,15 @@ Auxiliary Outputs Switching of loads can be done using four N-Channel MOSFETs (Q2 to Q5). The amount of current is somewhat dependend on either static R\ :sub:`DS(on)`\ losses and/or switching losses using PWM. They are switching on the low-side, which means the load effectively gets connected to GND potential as the transistor starts to conduct. GPIO24 - GPIO27 are used. GPIO -==================== +============================== To switch lighter loads, six GPIO soldering pads are connected to GPIO0 to GPIO5 pins. Although not yet set up in the software, they could be used as inputs as well (e.g. reed switch). GPIO0 and GPIO1 can also be used to facilitate stdio logging via UART, which can easily be set up in CMakeLists.txt. Microcontroller -==================== +============================== .. figure:: ../../../../svg/hw/rev_1_0/Microcontroller.svg + :align: center :alt: Microcontroller Microcontroller, flash memory, crystal oscillator, USB connector, ... @@ -95,15 +100,16 @@ Microcontroller The Microcontroller needs a crystal oscillator for its clock. External flash memory holds the configuration variables and the program itself. The USB connector can be used to flash the software onto the decoder and also for logging via stdio (can be enabled via CMakeLists.txt). D3 is used as a status LED. R11 & C13 are used to filter ADC_AVDD (ADC Reference Voltage). Complete Schematic -==================== +============================== .. figure:: ../../../../svg/hw/rev_1_0/RP2040-Decoder.svg + :align: center :alt: Complete Schematic Complete Schematic BOM & Alternative Parts -==================== +============================== .. table:: BOM :widths: auto @@ -142,12 +148,14 @@ Alternative for HT7533S: .. _wiring_rev_1_0: + Wiring the Decoder -==================== +============================== .. figure:: ../../../../svg/hw/rev_1_0/Wiring_diagram.svg :width: 700 :alt: Wiring Diagram + :align: center Wiring Diagram diff --git a/docs/sphinx/source/index.rst b/docs/sphinx/source/index.rst index 1c9a751..3447a3d 100644 --- a/docs/sphinx/source/index.rst +++ b/docs/sphinx/source/index.rst @@ -15,4 +15,3 @@ RP2040-Decoder Documentation software/index other/index other/troubleshooting - other/debugging \ No newline at end of file diff --git a/docs/sphinx/source/other/getting_started.rst b/docs/sphinx/source/other/getting_started.rst index 7175ebb..abcd068 100644 --- a/docs/sphinx/source/other/getting_started.rst +++ b/docs/sphinx/source/other/getting_started.rst @@ -1,20 +1,21 @@ Getting started -=============== +================================== 1. Where to get the board? --------------------------- +---------------------------------- You can choose any PCB manufacturer you like.The PCB is designed to fit with JLCPCB.com's capabilities and constraints.You can assemble the board yourself, but it's best not to do so if you're not familiar with soldering small components. Alternatively, you can order the board fully or partly assembled.Soldering the back of the PCB by hand is not too difficult. All parts are normally available at LCSC.com, who supply parts to JLCPCB.com. 2. Production files? ---------------------- +---------------------------------- In order to export the production files (Gerber/BOM/Pick and Place), you need `KiCad `_ which is open source. In case you are ordering from JLCPCB it is recommended to use the `Fabrication-Toolkit KiCad plugin by bennymeg `_ .. _building_the_software: + 3. Building the software ------------------------- +---------------------------------- If you got a RP2040-Decoder with USB the easiest way to get the RP2040-Decoder up and running is to just use the precompiled .uf2 file and ignore the rest of this section. @@ -22,8 +23,10 @@ However sometimes you might want to build by yourself, be it for debugging or to The easiest way to do this is to just use `Visual Studio Code `_ and the Raspberry Pi Pico extension. The `official documentation `_ of the Pi Pico does a great job of explaining this in detail. +Note: If you are building for Hardware Rev 0.3 or below change the board defintion in your CMakeLists.txt file to: "RP2040-Decoder-board-legacy.h" + 4. Flashing the software ------------------------- +---------------------------------- For RP2040-Decoders with USB there is two ways of flashing the software: @@ -37,21 +40,21 @@ For RP2040-Decoders with USB there is two ways of flashing the software: For RP2040-Decoders without USB the only way of flashing the software is via SWD 4.1. Flashing the software via .uf2 file -^^^^^^^^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ When first plugged in the RP2040 boots into Mass Storage Device mode. To flash the software, you need to drag the '.uf2' file onto the disk using any file explorer. This will write the file to the Flash and restart the RP2040. In case you want to repeat the flasing process, temporarily connect the solder bridge called JP1 on the back side of the board and power cycle the device. This procedure is also described in the `Raspberry Pi Pico Datasheet Chapter 4.1 `_ 4.2. Flashing the software via SWD -^^^^^^^^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Flashing via SWD is a little more complicated but also comes with great advantages in terms of debugging. The book on `Getting started with Raspberry Pi Pico-series `_ does a great job of explaining how debugging works. As already suggested in :ref:`3. ` it is recommended to use the `Visual Studio Code Extension `_. Most relevant in the book are `Chapter 4.3. Debug `_ and `Appendix A: Debugprobe `_ 5. Wiring ---------- +---------------------------------- | Please refer to the hardware section for your board: | :ref:`Wiring Rev 1.0 ` diff --git a/docs/sphinx/source/software/header_files.rst b/docs/sphinx/source/software/header_files.rst index a8cf886..64b3b57 100644 --- a/docs/sphinx/source/software/header_files.rst +++ b/docs/sphinx/source/software/header_files.rst @@ -2,27 +2,27 @@ Header files ================= core0.h -------- +-------------- .. doxygenfile:: core0.h :project: RP2040-Decoder core1.h -------- +-------------- .. doxygenfile:: core1.h :project: RP2040-Decoder shared.h -------- +-------------- .. doxygenfile:: shared.h :project: RP2040-Decoder CV.h -------- +-------------- .. doxygenfile:: CV.h :project: RP2040-Decoder diff --git a/docs/sphinx/source/software/sw_description.md b/docs/sphinx/source/software/sw_description.md deleted file mode 100644 index 6e243ea..0000000 --- a/docs/sphinx/source/software/sw_description.md +++ /dev/null @@ -1,82 +0,0 @@ -# Software Description - -## Overview - -The Software is structured as follows: -* Core0.c - - DCC package detection & decoding - - Programming mode (Modify and read CVs on programming track) - - ADC-Offset measurement - - Feed-forward base PWM measurement - -* Core1.c - - PID motor controller -* CV.h - - Default configuration variables - -Conveniently The Raspberry Pi Foundation provides a well documented [SDK](https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-c-sdk.pdf) for the RP2040. The SDK provides abstraction to a higher level and therefore there is no need to access any registers directly. Everything is written using the SDK so hopefully the code is easier to understand. In the following, the motor control and the decoding of the DCC signals will be explained. - -## Motor control overview - -![Block Diagram](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/Block_Diagram_Control.svg) -*** -**Block diagram - Motor control** - -The above block diagram in essence describes the functionality of the control loop. While the central component is the PID controller, there is an additional block called [Feed-forward](https://en.wikipedia.org/wiki/Feed_forward_(control)) that has an impact on the control output variable. The Feed-forward block adds an additional offset to the output depending on the setpoint, this is done to achieve better control. A more detailed explanation regarding Feed-forward can be found below. The speed helper block is corresponding to the speed_helper() function which delays changing the setpoint according to the configured deceleration/acceleration rates. - - -## PID Controller - -![PID Controller](https://github.com/gab-k/RP2040-Decoder/blob/main/docs/svg/Block_Diagram_PID.svg) - -The block diagram above shows the PID controller in the s-domain. The derivative part contains an additional digital low pass filter used to filter out high-frequency noise. - -Output = E * (KP + KI/s + (KD*s)/(sτ+1)) = P + I + D - -* P = E * KP -* I = E * KI/s -* D = E * (KD*s)/(sτ+1) - -The continuous-time system representation can now be transformed into a discrete-time representation using [bilinear transform](https://en.wikipedia.org/wiki/Bilinear_transform) [ s = 2*(z-1) / Ts*(z+1) ]. - -This results in the following difference equations which are then implemented in software: - -* pn = KP * en -* in = 0.5KI * (en + en-1) + in-1 -* dn = [ 2KD * (en - en-1) + (2τ - Ts) * dn-1 ] / [ 2τ + Ts] - -=> outputn = pn + in + dn - -Also note that instead of using derivative of error, derivative on measurement is used. This is done to prevent a high derivative part in the event of a large change in setpoint. - -### Gain scheduling - -![K_P](https://github.com/gab-k/RP2040-Decoder/blob/main/docs/svg/adaptive_kp.svg) - -Another aspect to consider is the implementation of [gain scheduling](https://en.wikipedia.org/wiki/Gain_scheduling). KP is a function of the current setpoint. Often it is favorable to have a higher proportional gain KP for slow speeds, achieving better control results. The illustration above shows the default setting for KP. CV_54 & CV_55 are used to set KP @ x0, CV_56 & CV_57 for KP @ x1 and CV_58 & CV_59 for KP @ x2. Additionally CV_60 is used to shift x1 from the leftmost point (0% = 0/255) to the rightmost point (100% = 255/255). - -### Feed-forward - -![Feed-forward](https://github.com/gab-k/RP2040-Decoder/blob/main/docs/svg/feed_forward.svg) -To achieve better control [Feed-forward](https://en.wikipedia.org/wiki/Feed_forward_(control)) is used. On startup the decoder will check for a configuration regarding Feed-forward control - when no configuration is found the decoder automatically runs a calibration to establish a base pwm level (y1) for both directions. The base pwm level (y1) will vary depending on load, motor and voltage on the tracks and can be configured with CV_176 - CV_179. If the setpoint is greater than the threshold, y2 is corrected automatically when in reaches 0.5imin or 0.5imax. CV_47 can be used to set how sensitive this correction is. - -### Back-EMF voltage measurement - -To provide a feedback signal which is proportional to the motor speed the ADC is used to measure the [Back-EMF voltage](https://en.wikipedia.org/wiki/Counter-electromotive_force). The measurement works by setting the PWM duty cycle to 0%, waiting for a certain delay time (CV_62) and then measuring x times (x = CV_63). While measuring the array with measurement values are being sorted using insertion sort. Afterwards y elements (y = CV_63) from the left (lowest values) and z elements (z = CV_64) from the right (highest values) will be dismissed to mitigate the impact of potential outliers in measurement. The average value of the remaining values will be computed and fed back into the control algorithm. Considering default settings (100us delay, 100 samples, ~2µs sampling time) the complete measurement run including averaging takes about 0.3ms to 0.35ms which effectively reduces the maximum possible duty cycle to about 93% to 94%. - -## DCC signal decoding - -The detection of the DCC signal works by looking at every rising and falling edge and calculating the time between them. When the time between rising and falling edge is greater than 87μs then this is equivalent to "0", else "1" - This value then gets shifted into a 64-Bit variable. - -Decoding is done after every falling edge. It starts with an error detection which when not passed will dismiss the received command. Then the address will be decoded and compared to the address stored in the configuration. If the address matches the command/instruction will be decoded. - -Only a few instructions are currently implemented, only 128 speed step instructions are supported. - -**Implemented instructions:** -* 0011-1111 - (128 Speed Step Control) - 2 Byte length -* 10XX-XXXX - (Function Group Instruction) (F0 - F12) -* 110X-XXXX - Expansion Instruction (F13 - F31) - -All DCC instructions can be found in Section 9.2, 9.2.1 and 9.2.1.1 of the [NMRA Communications Standard ](https://www.nmra.org/index-nmra-standards-and-recommended-practices) - - diff --git a/docs/sphinx/source/software/sw_description.rst b/docs/sphinx/source/software/sw_description.rst new file mode 100644 index 0000000..ea8e113 --- /dev/null +++ b/docs/sphinx/source/software/sw_description.rst @@ -0,0 +1,151 @@ +Software Description +============================== + +Overview +------------------------------ + +Software files high level overview: + +- **core0.c / core0.h** + + - DCC package detection & decoding + - Programming mode (Modify and read CVs on programming track) + - ADC-Offset measurement + +- **core1.c / core0.h** + + - PID motor controller + - Back-EMF voltage measurement + +- **shared.c / shared.h** (used by both cores) + +- Error handling +- Helper functions for retrieving CV's + +- **CV.h** + +- Default configuration variables + +- **CMakeLists.txt** + + - CMake version, SDK version, C standard version + - Board definitions + - Compile/Build options + - Sources files, header files + - Debug logging configuration (via stdio using UART/USB) + - Linked libraries + +- **RP2040-Decoder-board.h or RP2040-Decoder-board-legacy.h** + + - Flash Size + - Pin specification + + - LED pin when available + - UART_TX/UART_RX when used + - DCC input pin + - Motor Control PWM pins + - ADC pins + + + + +Conveniently, The Raspberry Pi Foundation provides a well-documented `SDK `_ for the RP2040. The SDK provides abstraction to a higher level, and therefore there is no need to access any registers directly. Everything is written using the SDK, so hopefully, the code is easier to understand. + +Motor control +------------------------------ + +.. figure:: ../../../svg/sw/Block_Diagram_Control.svg + :alt: Block Diagram + :align: center + + Motor control - Block diagram + +The above block diagram in essence describes the functionality of the control loop. While the central component is the PID controller, there is an additional block called `Feed-forward `_ that has an impact on the control output variable. The Feed-forward block adds an additional offset to the output depending on the setpoint; this is done to achieve better control. A more detailed explanation regarding Feed-forward can be found below. The speed helper block corresponds to the ``speed_helper()`` function, which delays changing the setpoint according to the configured deceleration/acceleration rates. + +PID Controller +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. figure:: ../../../svg/sw/Block_Diagram_PID.svg + :alt: PID Controller figure + :align: center + + PID Controller + +The block diagram above shows the PID controller in the s-domain. The derivative part contains an additional digital low-pass filter used to filter out high-frequency noise. + +.. math:: + + \begin{align} + \text{Output} &= E \cdot \left(K_P + \frac{K_I}{s} + \frac{K_D \cdot s}{s \tau + 1}\right) = P + I + D \\ + P &= E \cdot K_P \\ + I &= E \cdot \frac{K_I}{s} \\ + D &= E \cdot \frac{K_D \cdot s}{s \tau + 1} + \end{align} + +With :math:`T_s` being the sampling time / controller update rate / time step of the discrete system. +And :math:`\tau` being the filter time constant of the digital filter + +The continuous-time system representation can now be transformed into a discrete-time representation using `bilinear transform `_ :math:`s = \frac{2 \cdot (z - 1)}{T_s \cdot (z + 1)}`. + +This results in the following difference equations which are then implemented in software: + +.. math:: + + \begin{align} + p_n &= K_P \cdot e_n \\ + i_n &= 0.5 \cdot K_I \cdot \left(e_n + e_{n-1}\right) + i_{n-1} \\ + d_n &= \frac{2 K_D \cdot \left(e_n - e_{n-1}\right) + \left(2 \tau - T_s\right) \cdot d_{n-1}}{2 \tau + T_s} \\ + \text{output}_n &= p_n + i_n + d_n + \end{align} + + +Also note that instead of using the derivative of error, the derivative on measurement is used. This is done to prevent a high derivative part in the event of a large change in setpoint. + + +Gain Scheduling +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. figure:: ../../../svg/sw/adaptive_kp.svg + :alt: Gain Scheduling figure + :align: center + + Gain Scheduling + +Another aspect to consider is the implementation of `gain scheduling `_. K\ :sub:`P` is a function of the current setpoint. Often it is favorable to have a higher proportional gain K\ :sub:`P` for slow speeds, achieving better control results. The illustration above shows the default setting for K\ :sub:`P`. CV_54 & CV_55 are used to set K\ :sub:`P` @ x\ :sub:`0`, CV_56 & CV_57 for K\ :sub:`P` @ x\ :sub:`1`, and CV_58 & CV_59 for K\ :sub:`P` @ x\ :sub:`2`. Additionally, CV_60 is used to shift x\ :sub:`1` from the leftmost point (0% = 0/255) to the rightmost point (100% = 255/255). + +Feed-forward +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +.. figure:: ../../../svg/sw/feed_forward.svg + :alt: Feed forward figure + :align: center + + Feed-forward + + +TODO: Update this part: + +To achieve better control, `Feed-forward `_ is used. On startup, the decoder will check for a configuration regarding Feed-forward control. When no configuration is found, the decoder automatically runs a calibration to establish a base PWM level (y\ :sub:`1`) for both directions. The base PWM level (y\ :sub:`1`) will vary depending on load, motor, and voltage on the tracks and can be configured with CV_176 - CV_179. If the setpoint is greater than the threshold, y\ :sub:`2` is corrected automatically when i\ :sub:`n` reaches 0.5i\ :sub:`min` or 0.5i\ :sub:`max`. CV_47 can be used to set how sensitive this correction is. + +Back-EMF voltage measurement +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +To provide a feedback signal proportional to the motor speed, the ADC is used to measure the `Back-EMF voltage `_. The measurement works by setting the PWM duty cycle to 0%, waiting for a certain delay time (CV_62), and then measuring x times (x = CV_63). While measuring, the array with measurement values is sorted using insertion sort. Afterwards, y elements (y = CV_63) from the left (lowest values) and z elements (z = CV_64) from the right (highest values) will be dismissed to mitigate the impact of potential outliers in measurement. The average value of the remaining values will be computed and fed back into the control algorithm. Considering default settings (100us delay, 100 samples, ~2µs sampling time), the complete measurement run, including averaging, takes about 0.3ms to 0.35ms, which effectively reduces the maximum possible duty cycle to about 93% to 94%. + +DCC signal decoding +------------------------------ + +The detection of the DCC signal works by looking at every rising and falling edge and calculating the time between them. When the time between rising and falling edge is greater than 87μs, then this is equivalent to "0"; otherwise, "1". This value then gets shifted into a 64-Bit variable. + +Decoding is done after every falling edge. It starts with an error detection, which, when not passed, dismisses the received command. Then the address will be decoded and compared to the address stored in the configuration. If the address matches, the command/instruction will be decoded. + +Only a few instructions are currently implemented; only 128 speed step instructions are supported. + +**Implemented instructions:** + +- ``0011-1111`` - (128 Speed Step Control) - 2 Byte length +- ``10XX-XXXX`` - (Function Group Instruction) (F0 - F12) +- ``110X-XXXX`` - Expansion Instruction (F13 - F31) + +All DCC instructions can be found in Section 9.2, 9.2.1, and 9.2.1.1 of the `NMRA Communications Standard `_. diff --git a/docs/svg/sw/Block_Diagram_Control.svg b/docs/svg/sw/Block_Diagram_Control.svg index 8bb967b..11a030f 100644 --- a/docs/svg/sw/Block_Diagram_Control.svg +++ b/docs/svg/sw/Block_Diagram_Control.svg @@ -1,3 +1,4 @@ + -
Speed Helper
Speed Helper
PID Controller
PID Controller
Motor Driver
Motor Driver
ADC
ADC
Motor
Motor
Setpoint
Setpoint
Accel/Decel - Rate
Accel/Decel - Rate
Target Speedstep
Target Speedstep
Measurement
Measurement
+

-
+...
Error
Error
Feed-forward
Feed-forward
Setpoint
Setpoint
Output
Output
BEMF-Voltage
BEMF-Voltage
RPM
RPM
Voltage Divider
Voltage Divider
        +
+
       
+...
Text is not SVG - cannot display
\ No newline at end of file +
Speed Helper
Motor Controller

PID MODE

or

STARTUP MODE
Motor Driver
ADC
Motor
Setpoint
Accel/Decel - Rate
Target Speedstep
Measurement
+

-
Error
Output
BEMF-Voltage
RPM
Voltage Divider
\ No newline at end of file