Skip to content

Commit

Permalink
Add rotary encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
foostan committed Sep 23, 2023
1 parent 00201b6 commit 00d6f0c
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
(stroke (width 0.1) (type default)) (layer "F.CrtYd") (tstamp f7da0d94-cf31-426a-9512-92685a82b2af))
(fp_line (start 7 7) (end 7 -7)
(stroke (width 0.1) (type default)) (layer "F.CrtYd") (tstamp 9e18a5c4-ba9e-4ca2-bbc3-3b9176bd60b3))
(fp_line (start -1.8 3.2) (end -1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp c2603e45-30ef-4cef-b9d7-274f14a411eb))
(fp_line (start -1.8 3.2) (end 1.8 3.2)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp 15697d92-c342-4726-89e0-987866b54242))
(fp_line (start -1.8 6.3) (end 1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp a5f1366e-ec47-4b1f-a963-9bc106eae2c3))
(fp_line (start 1.8 3.2) (end 1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp 39b27aac-e4dd-4b4a-832d-f2430edd2a98))
(pad "" np_thru_hole circle (at -5.08 0) (size 1.9 1.9) (drill 1.9) (layers "*.Cu" "*.Mask") (tstamp debcffcc-2e77-4306-a193-25bf2e688275))
(pad "" np_thru_hole circle (at -3.81 -2.54) (size 3 3) (drill 3) (layers "F&B.Cu" "*.Mask") (tstamp 5b9949b0-9c03-44e8-95fe-570baad24885))
(pad "" np_thru_hole circle (at 0 0 90) (size 4.1 4.1) (drill 4.1) (layers "*.Cu" "*.Mask") (tstamp 6dabfcb3-da35-4fbd-920a-f3f793dc41d5))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
(stroke (width 0.1) (type default)) (layer "F.CrtYd") (tstamp f7da0d94-cf31-426a-9512-92685a82b2af))
(fp_line (start 7 7) (end 7 -7)
(stroke (width 0.1) (type default)) (layer "F.CrtYd") (tstamp 9e18a5c4-ba9e-4ca2-bbc3-3b9176bd60b3))
(fp_line (start -1.8 3.2) (end -1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp 664f7b84-02b5-429b-86bd-35c763a94516))
(fp_line (start -1.8 3.2) (end 1.8 3.2)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp 5b13b64d-c591-4b57-9d04-2197b685d8bc))
(fp_line (start -1.8 6.3) (end 1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp 99f66cea-78fe-49b9-ae9d-8c0c8b190010))
(fp_line (start 1.8 3.2) (end 1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp e383358a-f095-48df-ad72-2ac8a3998a47))
(pad "" np_thru_hole circle (at -5.08 0) (size 1.9 1.9) (drill 1.9) (layers "*.Cu" "*.Mask") (tstamp debcffcc-2e77-4306-a193-25bf2e688275))
(pad "" np_thru_hole circle (at -3.81 -2.54) (size 3 3) (drill 3) (layers "F&B.Cu" "*.Mask") (tstamp 5b9949b0-9c03-44e8-95fe-570baad24885))
(pad "" np_thru_hole circle (at 0 0 90) (size 4.1 4.1) (drill 4.1) (layers "*.Cu" "*.Mask") (tstamp 6dabfcb3-da35-4fbd-920a-f3f793dc41d5))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
(footprint "keyswitch_cherrymx_hotswap_1u_rotary_encoder_ec12" (version 20221018) (generator pcbnew)
(layer "F.Cu")
(attr through_hole)
(fp_text reference "REF**" (at 3.3 -2) (layer "B.SilkS")
(effects (font (size 0.6 0.6) (thickness 0.1) bold) (justify mirror))
(tstamp 14f14c5a-6ef3-4731-9da9-b9924759015b)
)
(fp_text value "keyswitch_cherrymx_hotswap_1u_ec12" (at 0 -8.65) (layer "F.Fab") hide
(effects (font (size 0.6 0.6) (thickness 0.1) bold))
(tstamp fa3e9c0c-caa4-4d49-a13b-565f637e0bed)
)
(fp_poly
(pts
(xy -3.6 -6.5)
(xy -3.8 -6.5)
(xy -4.1 -6.45)
(xy -4.4 -6.35)
(xy -4.6 -6.25)
(xy -4.75 -6.15)
(xy -4.95 -6)
(xy -5.1 -5.85)
(xy -5.25 -5.65)
(xy -5.4 -5.4)
(xy -5.5 -5)
(xy -5.5 -4.6)
(xy -5.35 -4.5)
(xy -5.2 -4.4)
(xy -4.75 -4.65)
(xy -4.5 -4.75)
(xy -4.05 -4.85)
(xy -3.55 -4.85)
(xy -2.95 -4.7)
(xy -2.45 -4.4)
(xy -2.15 -4.15)
(xy -1.75 -3.6)
(xy -1.55 -3.05)
(xy -1.5 -2.6)
(xy -1.25 -2.8)
(xy -0.9 -2.9)
(xy -0.4 -2.95)
(xy 1.65 -2.95)
(xy 1.2 -3.2)
(xy 0.95 -3.4)
(xy 0.65 -3.75)
(xy 0.5 -4)
(xy 0.35 -4.35)
(xy 0.25 -4.75)
(xy 0.25 -5.05)
(xy 0.25 -5.4)
(xy 0.3 -5.65)
(xy 0.45 -6.05)
(xy 0.75 -6.5)
)

(stroke (width 0.4) (type solid)) (fill solid) (layer "B.SilkS") (tstamp 8a6274a8-26f3-422b-b266-accb689cbff3))
(fp_line (start -6.3 -6.7) (end -6.3 6.7)
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp a146a7fa-b05f-4e25-a5cf-d0ca3839cbfa))
(fp_line (start 6.3 -6.7) (end -6.3 -6.7)
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp 1cc5a5a0-d2c1-4b42-a60a-e6c01257b879))
(fp_line (start 6.3 -6.7) (end 6.3 6.7)
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp 591ee5ab-41cf-4ef2-aa6b-828561c70fb4))
(fp_line (start 6.3 6.7) (end -6.3 6.7)
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp f2fbc754-f06a-4f27-ad28-bf9f1fbe69aa))
(fp_line (start -9.525 -9.525) (end 9.525 -9.525)
(stroke (width 0.1) (type solid)) (layer "Dwgs.User") (tstamp 00f7a7b6-7c34-44b0-9ecc-322f79abfc6f))
(fp_line (start -9.525 9.525) (end -9.525 -9.525)
(stroke (width 0.1) (type solid)) (layer "Dwgs.User") (tstamp 642efa75-b1e6-49be-85ca-56f523b8ba8e))
(fp_line (start 9.525 -9.525) (end 9.525 9.525)
(stroke (width 0.1) (type solid)) (layer "Dwgs.User") (tstamp 4dc7a1a2-88d3-4166-b131-39e5644cc947))
(fp_line (start 9.525 9.525) (end -9.525 9.525)
(stroke (width 0.1) (type solid)) (layer "Dwgs.User") (tstamp d16d3656-2b9e-4517-a5f3-ae071a1a20a1))
(fp_line (start -7 -7) (end -7 7)
(stroke (width 0.1) (type default)) (layer "F.CrtYd") (tstamp bee3a184-67f6-4110-a484-aceacdf4af92))
(fp_line (start -7 -7) (end 7 -7)
(stroke (width 0.1) (type default)) (layer "F.CrtYd") (tstamp 9a204fdd-7b57-4ec5-9bc1-905e6c8d317f))
(fp_line (start -7 7) (end 7 7)
(stroke (width 0.1) (type default)) (layer "F.CrtYd") (tstamp f7da0d94-cf31-426a-9512-92685a82b2af))
(fp_line (start 7 7) (end 7 -7)
(stroke (width 0.1) (type default)) (layer "F.CrtYd") (tstamp 9e18a5c4-ba9e-4ca2-bbc3-3b9176bd60b3))
(fp_line (start -1.8 3.2) (end -1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp 664f7b84-02b5-429b-86bd-35c763a94516))
(fp_line (start -1.8 3.2) (end 1.8 3.2)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp 5b13b64d-c591-4b57-9d04-2197b685d8bc))
(fp_line (start -1.8 6.3) (end 1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp 99f66cea-78fe-49b9-ae9d-8c0c8b190010))
(fp_line (start 1.8 3.2) (end 1.8 6.3)
(stroke (width 0.1) (type default)) (layer "F.Fab") (tstamp e383358a-f095-48df-ad72-2ac8a3998a47))
(pad "" np_thru_hole circle (at -5.08 0) (size 1.9 1.9) (drill 1.9) (layers "*.Cu" "*.Mask") (tstamp debcffcc-2e77-4306-a193-25bf2e688275))
(pad "" np_thru_hole circle (at -3.81 -2.54) (size 3 3) (drill 3) (layers "F&B.Cu" "*.Mask") (tstamp 5b9949b0-9c03-44e8-95fe-570baad24885))
(pad "" np_thru_hole circle (at 0 0 90) (size 4.1 4.1) (drill 4.1) (layers "*.Cu" "*.Mask") (tstamp 6dabfcb3-da35-4fbd-920a-f3f793dc41d5))
(pad "" np_thru_hole circle (at 2.54 -5.08) (size 3 3) (drill 3) (layers "F&B.Cu" "*.Mask") (tstamp f4880e72-302c-4e65-9d08-e0cbc87f1905))
(pad "" np_thru_hole circle (at 5.08 0) (size 1.9 1.9) (drill 1.9) (layers "*.Cu" "*.Mask") (tstamp ad9584c4-d4ec-406c-989b-8a92dc0b16f5))
(pad "A" thru_hole rect (at -2.5 7.5) (size 2 2) (drill 1) (layers "*.Cu" "*.Mask") (tstamp 161b90ff-c1c0-429c-a48a-37a711398177))
(pad "B" thru_hole circle (at 0 7.5) (size 2 2) (drill 1) (layers "*.Cu" "*.Mask") (tstamp ad2146cd-d198-440c-a51b-cbd6c2621671))
(pad "C" thru_hole circle (at 2.5 7.5) (size 2 2) (drill 1) (layers "*.Cu" "*.Mask") (tstamp c3f198da-fdab-4afd-8707-342e34ac80ee))
(pad "MP" thru_hole rect (at -7 0 90) (size 2.55 2.5) (drill oval 2.3 2) (layers "*.Cu" "*.Mask") (tstamp 6ccb5292-a021-402f-8c72-d104c083d7a3))
(pad "MP" thru_hole rect (at 7 0 90) (size 2.55 2.5) (drill oval 2.3 2) (layers "*.Cu" "*.Mask") (tstamp a7948b95-e1a5-499b-a7fe-4ab49b349320))
(pad "S1" thru_hole circle (at 2.5 -7) (size 2 2) (drill 1) (layers "*.Cu" "*.Mask") (tstamp 472de830-a7e9-4c3b-9f77-421404c0a788))
(pad "S1" smd rect (at 5.842 -5.08 180) (size 2.55 2.5) (layers "B.Cu" "B.Paste" "B.Mask") (tstamp c288c31d-aa7b-4528-ba41-2e1475f105b1))
(pad "S2" smd rect (at -7 -2.54 180) (size 2.55 2) (layers "B.Cu" "B.Paste" "B.Mask") (tstamp a28031be-cb1a-4a9e-a321-22e0a056a425))
(pad "S2" thru_hole circle (at -2.5 -7) (size 2 2) (drill 1) (layers "*.Cu" "*.Mask") (tstamp 9377934d-ee22-412b-95e5-13afb5db90eb))
(model "/Users/foostan/go/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/kailh_hotswap_socket.step"
(offset (xyz -1.3 7.6 -3.6))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 180))
)
)

0 comments on commit 00d6f0c

Please sign in to comment.