Skip to content

Commit

Permalink
add LED
Browse files Browse the repository at this point in the history
  • Loading branch information
42CrMo4 committed Jan 20, 2022
1 parent afeb99d commit 1cbb23b
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 50 deletions.
23 changes: 23 additions & 0 deletions design-cache.lib
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,29 @@ X ~ 2 0 -100 80 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_LED
#
DEF Device_LED D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "Device_LED" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
LED*
LED_SMD:*
LED_THT:*
$ENDFPLIST
DRAW
P 2 0 1 10 -50 -50 -50 50 N
P 2 0 1 0 -50 0 50 0 N
P 4 0 1 10 50 -50 50 50 -50 0 50 -50 N
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# MCU_Microchip_ATtiny_ATtiny1616-M
#
DEF MCU_Microchip_ATtiny_ATtiny1616-M U 0 20 Y Y 1 F N
Expand Down
137 changes: 87 additions & 50 deletions design.kicad_pcb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
(drawings 5)
(tracks 0)
(zones 0)
(modules 5)
(nets 41)
(modules 6)
(nets 43)
)

(page A4)
Expand Down Expand Up @@ -137,6 +137,8 @@
(net 38 "Net-(U1-Pad4)")
(net 39 "Net-(U1-Pad2)")
(net 40 "Net-(U1-Pad1)")
(net 41 "Net-(D1-Pad2)")
(net 42 "Net-(D1-Pad1)")

(net_class Default "This is the default net class."
(clearance 0.2)
Expand All @@ -149,6 +151,8 @@
(add_net "Net-(C1-Pad2)")
(add_net "Net-(C2-Pad1)")
(add_net "Net-(C2-Pad2)")
(add_net "Net-(D1-Pad1)")
(add_net "Net-(D1-Pad2)")
(add_net "Net-(J1-PadA1)")
(add_net "Net-(J1-PadA4)")
(add_net "Net-(J1-PadA5)")
Expand Down Expand Up @@ -187,8 +191,41 @@
(add_net "Net-(U1-Pad9)")
)

(module LED_THT:LED_D5.0mm_FlatTop (layer F.Cu) (tedit 5880A862) (tstamp 61E98E47)
(at 148 88.3)
(descr "LED, Round, FlatTop, diameter 5.0mm, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-483GDT(Ver.15B).pdf")
(tags "LED Round FlatTop diameter 5.0mm 2 pins")
(path /61E9317C)
(fp_text reference D1 (at 1.27 -4.01) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value LED (at 1.27 4.01) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_arc (start 1.27 0) (end -1.29 1.639512) (angle -147.4) (layer F.SilkS) (width 0.12))
(fp_arc (start 1.27 0) (end -1.29 -1.639512) (angle 147.4) (layer F.SilkS) (width 0.12))
(fp_arc (start 1.27 0) (end -1.23 -1.566046) (angle 295.9) (layer F.Fab) (width 0.1))
(fp_circle (center 1.27 0) (end 3.77 0) (layer F.Fab) (width 0.1))
(fp_circle (center 1.27 0) (end 3.77 0) (layer F.SilkS) (width 0.12))
(fp_line (start -1.23 -1.566046) (end -1.23 1.566046) (layer F.Fab) (width 0.1))
(fp_line (start -1.29 -1.64) (end -1.29 1.64) (layer F.SilkS) (width 0.12))
(fp_line (start -2 -3.3) (end -2 3.3) (layer F.CrtYd) (width 0.05))
(fp_line (start -2 3.3) (end 4.55 3.3) (layer F.CrtYd) (width 0.05))
(fp_line (start 4.55 3.3) (end 4.55 -3.3) (layer F.CrtYd) (width 0.05))
(fp_line (start 4.55 -3.3) (end -2 -3.3) (layer F.CrtYd) (width 0.05))
(pad 2 thru_hole circle (at 2.54 0) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask)
(net 41 "Net-(D1-Pad2)"))
(pad 1 thru_hole rect (at 0 0) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask)
(net 42 "Net-(D1-Pad1)"))
(model ${KISYS3DMOD}/LED_THT.3dshapes/LED_D5.0mm_FlatTop.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)

(module Package_DFN_QFN:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mm (layer F.Cu) (tedit 5DC5F6A8) (tstamp 61750A13)
(at 152.55 88.5)
(at 155.5 88.5)
(descr "VQFN, 20 Pin (http://ww1.microchip.com/downloads/en/DeviceDoc/20%20Lead%20VQFN%203x3x0_9mm_1_7EP%20U2B%20C04-21496a.pdf), generated with kicad-footprint-generator ipc_noLead_generator.py")
(tags "VQFN NoLead")
(path /616F1752)
Expand All @@ -199,22 +236,22 @@
(fp_text value ATtiny1616-M (at 0 2.8) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start 1.16 -1.61) (end 1.61 -1.61) (layer F.SilkS) (width 0.12))
(fp_line (start 1.61 -1.61) (end 1.61 -1.16) (layer F.SilkS) (width 0.12))
(fp_line (start -1.16 1.61) (end -1.61 1.61) (layer F.SilkS) (width 0.12))
(fp_line (start -1.61 1.61) (end -1.61 1.16) (layer F.SilkS) (width 0.12))
(fp_line (start 1.16 1.61) (end 1.61 1.61) (layer F.SilkS) (width 0.12))
(fp_line (start 1.61 1.61) (end 1.61 1.16) (layer F.SilkS) (width 0.12))
(fp_line (start -1.16 -1.61) (end -1.61 -1.61) (layer F.SilkS) (width 0.12))
(fp_line (start -0.75 -1.5) (end 1.5 -1.5) (layer F.Fab) (width 0.1))
(fp_line (start 1.5 -1.5) (end 1.5 1.5) (layer F.Fab) (width 0.1))
(fp_line (start 1.5 1.5) (end -1.5 1.5) (layer F.Fab) (width 0.1))
(fp_line (start -1.5 1.5) (end -1.5 -0.75) (layer F.Fab) (width 0.1))
(fp_line (start -1.5 -0.75) (end -0.75 -1.5) (layer F.Fab) (width 0.1))
(fp_line (start -2.1 -2.1) (end -2.1 2.1) (layer F.CrtYd) (width 0.05))
(fp_line (start -2.1 2.1) (end 2.1 2.1) (layer F.CrtYd) (width 0.05))
(fp_line (start 2.1 2.1) (end 2.1 -2.1) (layer F.CrtYd) (width 0.05))
(fp_line (start 2.1 -2.1) (end -2.1 -2.1) (layer F.CrtYd) (width 0.05))
(fp_line (start 2.1 2.1) (end 2.1 -2.1) (layer F.CrtYd) (width 0.05))
(fp_line (start -2.1 2.1) (end 2.1 2.1) (layer F.CrtYd) (width 0.05))
(fp_line (start -2.1 -2.1) (end -2.1 2.1) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.5 -0.75) (end -0.75 -1.5) (layer F.Fab) (width 0.1))
(fp_line (start -1.5 1.5) (end -1.5 -0.75) (layer F.Fab) (width 0.1))
(fp_line (start 1.5 1.5) (end -1.5 1.5) (layer F.Fab) (width 0.1))
(fp_line (start 1.5 -1.5) (end 1.5 1.5) (layer F.Fab) (width 0.1))
(fp_line (start -0.75 -1.5) (end 1.5 -1.5) (layer F.Fab) (width 0.1))
(fp_line (start -1.16 -1.61) (end -1.61 -1.61) (layer F.SilkS) (width 0.12))
(fp_line (start 1.61 1.61) (end 1.61 1.16) (layer F.SilkS) (width 0.12))
(fp_line (start 1.16 1.61) (end 1.61 1.61) (layer F.SilkS) (width 0.12))
(fp_line (start -1.61 1.61) (end -1.61 1.16) (layer F.SilkS) (width 0.12))
(fp_line (start -1.16 1.61) (end -1.61 1.61) (layer F.SilkS) (width 0.12))
(fp_line (start 1.61 -1.61) (end 1.61 -1.16) (layer F.SilkS) (width 0.12))
(fp_line (start 1.16 -1.61) (end 1.61 -1.61) (layer F.SilkS) (width 0.12))
(fp_text user %R (at 0 0) (layer F.Fab)
(effects (font (size 0.75 0.75) (thickness 0.11)))
)
Expand Down Expand Up @@ -328,9 +365,9 @@
(fp_text value Conn_01x05 (at 0 -4 90) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -2 0) (end -1 0) (layer F.SilkS) (width 0.12))
(fp_line (start 3 1) (end 3 2) (layer F.SilkS) (width 0.12))
(fp_line (start -3 2) (end -3 1) (layer F.SilkS) (width 0.12))
(fp_line (start 3 1) (end 3 2) (layer F.SilkS) (width 0.12))
(fp_line (start -2 0) (end -1 0) (layer F.SilkS) (width 0.12))
(fp_text user MCU (at 0 2.5 90) (layer F.SilkS)
(effects (font (size 0.5 0.5) (thickness 0.125)))
)
Expand Down Expand Up @@ -375,19 +412,19 @@
(fp_text value USB_C_Receptacle (at 0 5.1 90) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -4.7 2) (end -4.7 3.9) (layer F.SilkS) (width 0.12))
(fp_line (start -4.7 -1.9) (end -4.7 0.1) (layer F.SilkS) (width 0.12))
(fp_line (start 4.7 2) (end 4.7 3.9) (layer F.SilkS) (width 0.12))
(fp_line (start 4.7 -1.9) (end 4.7 0.1) (layer F.SilkS) (width 0.12))
(fp_line (start 5.32 -5.27) (end 5.32 4.15) (layer F.CrtYd) (width 0.05))
(fp_line (start -5.32 -5.27) (end -5.32 4.15) (layer F.CrtYd) (width 0.05))
(fp_line (start -5.32 4.15) (end 5.32 4.15) (layer F.CrtYd) (width 0.05))
(fp_line (start -5.32 -5.27) (end 5.32 -5.27) (layer F.CrtYd) (width 0.05))
(fp_line (start 4.47 -3.65) (end 4.47 3.65) (layer F.Fab) (width 0.1))
(fp_line (start -4.47 3.65) (end 4.47 3.65) (layer F.Fab) (width 0.1))
(fp_line (start -4.47 -3.65) (end -4.47 3.65) (layer F.Fab) (width 0.1))
(fp_line (start -4.47 -3.65) (end 4.47 -3.65) (layer F.Fab) (width 0.1))
(fp_line (start -4.7 3.9) (end 4.7 3.9) (layer F.SilkS) (width 0.12))
(fp_line (start -4.47 -3.65) (end 4.47 -3.65) (layer F.Fab) (width 0.1))
(fp_line (start -4.47 -3.65) (end -4.47 3.65) (layer F.Fab) (width 0.1))
(fp_line (start -4.47 3.65) (end 4.47 3.65) (layer F.Fab) (width 0.1))
(fp_line (start 4.47 -3.65) (end 4.47 3.65) (layer F.Fab) (width 0.1))
(fp_line (start -5.32 -5.27) (end 5.32 -5.27) (layer F.CrtYd) (width 0.05))
(fp_line (start -5.32 4.15) (end 5.32 4.15) (layer F.CrtYd) (width 0.05))
(fp_line (start -5.32 -5.27) (end -5.32 4.15) (layer F.CrtYd) (width 0.05))
(fp_line (start 5.32 -5.27) (end 5.32 4.15) (layer F.CrtYd) (width 0.05))
(fp_line (start 4.7 -1.9) (end 4.7 0.1) (layer F.SilkS) (width 0.12))
(fp_line (start 4.7 2) (end 4.7 3.9) (layer F.SilkS) (width 0.12))
(fp_line (start -4.7 -1.9) (end -4.7 0.1) (layer F.SilkS) (width 0.12))
(fp_line (start -4.7 2) (end -4.7 3.9) (layer F.SilkS) (width 0.12))
(fp_text user %R (at 0 0 90) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
Expand Down Expand Up @@ -457,16 +494,16 @@
(fp_text value C_Small (at 0 1.68) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -1 0.625) (end -1 -0.625) (layer F.Fab) (width 0.1))
(fp_line (start -1 -0.625) (end 1 -0.625) (layer F.Fab) (width 0.1))
(fp_line (start 1 -0.625) (end 1 0.625) (layer F.Fab) (width 0.1))
(fp_line (start 1 0.625) (end -1 0.625) (layer F.Fab) (width 0.1))
(fp_line (start -0.261252 -0.735) (end 0.261252 -0.735) (layer F.SilkS) (width 0.12))
(fp_line (start -0.261252 0.735) (end 0.261252 0.735) (layer F.SilkS) (width 0.12))
(fp_line (start -1.7 0.98) (end -1.7 -0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.7 -0.98) (end 1.7 -0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start 1.7 -0.98) (end 1.7 0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start 1.7 0.98) (end -1.7 0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start 1.7 -0.98) (end 1.7 0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.7 -0.98) (end 1.7 -0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.7 0.98) (end -1.7 -0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start -0.261252 0.735) (end 0.261252 0.735) (layer F.SilkS) (width 0.12))
(fp_line (start -0.261252 -0.735) (end 0.261252 -0.735) (layer F.SilkS) (width 0.12))
(fp_line (start 1 0.625) (end -1 0.625) (layer F.Fab) (width 0.1))
(fp_line (start 1 -0.625) (end 1 0.625) (layer F.Fab) (width 0.1))
(fp_line (start -1 -0.625) (end 1 -0.625) (layer F.Fab) (width 0.1))
(fp_line (start -1 0.625) (end -1 -0.625) (layer F.Fab) (width 0.1))
(fp_text user %R (at 0 0) (layer F.Fab)
(effects (font (size 0.5 0.5) (thickness 0.08)))
)
Expand All @@ -493,16 +530,16 @@
(fp_text value C_Small (at 0 1.68) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -1 0.625) (end -1 -0.625) (layer F.Fab) (width 0.1))
(fp_line (start -1 -0.625) (end 1 -0.625) (layer F.Fab) (width 0.1))
(fp_line (start 1 -0.625) (end 1 0.625) (layer F.Fab) (width 0.1))
(fp_line (start 1 0.625) (end -1 0.625) (layer F.Fab) (width 0.1))
(fp_line (start -0.261252 -0.735) (end 0.261252 -0.735) (layer F.SilkS) (width 0.12))
(fp_line (start -0.261252 0.735) (end 0.261252 0.735) (layer F.SilkS) (width 0.12))
(fp_line (start -1.7 0.98) (end -1.7 -0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.7 -0.98) (end 1.7 -0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start 1.7 -0.98) (end 1.7 0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start 1.7 0.98) (end -1.7 0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start 1.7 -0.98) (end 1.7 0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.7 -0.98) (end 1.7 -0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.7 0.98) (end -1.7 -0.98) (layer F.CrtYd) (width 0.05))
(fp_line (start -0.261252 0.735) (end 0.261252 0.735) (layer F.SilkS) (width 0.12))
(fp_line (start -0.261252 -0.735) (end 0.261252 -0.735) (layer F.SilkS) (width 0.12))
(fp_line (start 1 0.625) (end -1 0.625) (layer F.Fab) (width 0.1))
(fp_line (start 1 -0.625) (end 1 0.625) (layer F.Fab) (width 0.1))
(fp_line (start -1 -0.625) (end 1 -0.625) (layer F.Fab) (width 0.1))
(fp_line (start -1 0.625) (end -1 -0.625) (layer F.Fab) (width 0.1))
(fp_text user %R (at 0 0) (layer F.Fab)
(effects (font (size 0.5 0.5) (thickness 0.08)))
)
Expand Down
11 changes: 11 additions & 0 deletions design.sch
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,15 @@ F 3 "~" H 7775 3850 50 0001 C CNN
1 7775 3850
1 0 0 -1
$EndComp
$Comp
L Device:LED D1
U 1 1 61E9317C
P 6900 4600
F 0 "D1" H 6893 4817 50 0000 C CNN
F 1 "LED" H 6893 4726 50 0000 C CNN
F 2 "LED_THT:LED_D5.0mm_FlatTop" H 6900 4600 50 0001 C CNN
F 3 "~" H 6900 4600 50 0001 C CNN
1 6900 4600
1 0 0 -1
$EndComp
$EndSCHEMATC

0 comments on commit 1cbb23b

Please sign in to comment.