commit
7be7190477
|
@ -0,0 +1,5 @@
|
|||
*.sublime-workspace
|
||||
.pioenvs
|
||||
kicad/RailroadSwitch/*.bak
|
||||
kicad/RailroadSwitch/*-bak
|
||||
kicad/RailroadSwitch/*.pdf
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"folders":
|
||||
[
|
||||
{
|
||||
"path": ".",
|
||||
"file_exclude_patterns": ["*.sublime-project"]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,219 @@
|
|||
EESchema-LIBRARY Version 2.4
|
||||
#encoding utf-8
|
||||
#
|
||||
# Connector_Conn_01x02_Male
|
||||
#
|
||||
DEF Connector_Conn_01x02_Male J 0 40 Y N 1 F N
|
||||
F0 "J" 0 100 50 H V C CNN
|
||||
F1 "Connector_Conn_01x02_Male" 0 -200 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
$FPLIST
|
||||
Connector*:*_1x??_*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
S 34 -95 0 -105 1 1 6 F
|
||||
S 34 5 0 -5 1 1 6 F
|
||||
P 2 1 1 6 50 -100 34 -100 N
|
||||
P 2 1 1 6 50 0 34 0 N
|
||||
X Pin_1 1 200 0 150 L 50 50 1 1 P
|
||||
X Pin_2 2 200 -100 150 L 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Connector_Conn_01x03_Male
|
||||
#
|
||||
DEF Connector_Conn_01x03_Male J 0 40 Y N 1 F N
|
||||
F0 "J" 0 200 50 H V C CNN
|
||||
F1 "Connector_Conn_01x03_Male" 0 -200 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
$FPLIST
|
||||
Connector*:*_1x??_*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
S 34 -95 0 -105 1 1 6 F
|
||||
S 34 5 0 -5 1 1 6 F
|
||||
S 34 105 0 95 1 1 6 F
|
||||
P 2 1 1 6 50 -100 34 -100 N
|
||||
P 2 1 1 6 50 0 34 0 N
|
||||
P 2 1 1 6 50 100 34 100 N
|
||||
X Pin_1 1 200 100 150 L 50 50 1 1 P
|
||||
X Pin_2 2 200 0 150 L 50 50 1 1 P
|
||||
X Pin_3 3 200 -100 150 L 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Device_C
|
||||
#
|
||||
DEF Device_C C 0 10 N Y 1 F N
|
||||
F0 "C" 25 100 50 H V L CNN
|
||||
F1 "Device_C" 25 -100 50 H V L CNN
|
||||
F2 "" 38 -150 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
$FPLIST
|
||||
C_*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
P 2 0 1 20 -80 -30 80 -30 N
|
||||
P 2 0 1 20 -80 30 80 30 N
|
||||
X ~ 1 0 150 110 D 50 50 1 1 P
|
||||
X ~ 2 0 -150 110 U 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Device_R
|
||||
#
|
||||
DEF Device_R R 0 0 N Y 1 F N
|
||||
F0 "R" 80 0 50 V V C CNN
|
||||
F1 "Device_R" 0 0 50 V V C CNN
|
||||
F2 "" -70 0 50 V I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
$FPLIST
|
||||
R_*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
S -40 -100 40 100 0 1 10 N
|
||||
X ~ 1 0 150 50 D 50 50 1 1 P
|
||||
X ~ 2 0 -150 50 U 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Device_R_POT
|
||||
#
|
||||
DEF Device_R_POT RV 0 40 Y N 1 F N
|
||||
F0 "RV" -175 0 50 V V C CNN
|
||||
F1 "Device_R_POT" -100 0 50 V V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
$FPLIST
|
||||
Potentiometer*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
S 40 100 -40 -100 0 1 10 N
|
||||
P 2 0 1 0 100 0 60 0 N
|
||||
P 4 0 1 0 45 0 90 20 90 -20 45 0 F
|
||||
X 1 1 0 150 50 D 50 50 1 1 P
|
||||
X 2 2 150 0 50 L 50 50 1 1 P
|
||||
X 3 3 0 -150 50 U 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# MCU_Microchip_ATtiny_ATtiny85-20SU
|
||||
#
|
||||
DEF MCU_Microchip_ATtiny_ATtiny85-20SU U 0 20 Y Y 1 F N
|
||||
F0 "U" -500 550 50 H V L BNN
|
||||
F1 "MCU_Microchip_ATtiny_ATtiny85-20SU" 100 -550 50 H V L TNN
|
||||
F2 "Package_SO:SOIJ-8_5.3x5.3mm_P1.27mm" 0 0 50 H I C CIN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
ALIAS ATtiny25-20SU ATtiny45V-10SU ATtiny45-20SU ATtiny85V-10SU ATtiny85-20SU
|
||||
$FPLIST
|
||||
SOIJ*5.3x5.3mm*P1.27mm*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
S -500 -500 500 500 0 1 10 f
|
||||
X ~RESET~/PB5 1 600 -200 100 L 50 50 1 1 T
|
||||
X XTAL1/PB3 2 600 0 100 L 50 50 1 1 T
|
||||
X XTAL2/PB4 3 600 -100 100 L 50 50 1 1 T
|
||||
X GND 4 0 -600 100 U 50 50 1 1 W
|
||||
X AREF/PB0 5 600 300 100 L 50 50 1 1 T
|
||||
X PB1 6 600 200 100 L 50 50 1 1 T
|
||||
X PB2 7 600 100 100 L 50 50 1 1 T
|
||||
X VCC 8 0 600 100 D 50 50 1 1 W
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Regulator_Linear_L7805
|
||||
#
|
||||
DEF Regulator_Linear_L7805 U 0 10 Y Y 1 F N
|
||||
F0 "U" -150 125 50 H V C CNN
|
||||
F1 "Regulator_Linear_L7805" 0 125 50 H V L CNN
|
||||
F2 "" 25 -150 50 H I L CIN
|
||||
F3 "" 0 -50 50 H I C CNN
|
||||
ALIAS L7806 L7808 L7885 L7809 L7812 L7815 L7818 L7824
|
||||
$FPLIST
|
||||
TO?252*
|
||||
TO?263*
|
||||
TO?220*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
S -200 75 200 -200 0 1 10 f
|
||||
X IN 1 -300 0 100 R 50 50 1 1 W
|
||||
X GND 2 0 -300 100 U 50 50 1 1 W
|
||||
X OUT 3 300 0 100 L 50 50 1 1 w
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Switch_SW_SPST
|
||||
#
|
||||
DEF Switch_SW_SPST SW 0 0 Y N 1 F N
|
||||
F0 "SW" 0 125 50 H V C CNN
|
||||
F1 "Switch_SW_SPST" 0 -100 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
DRAW
|
||||
C -80 0 20 0 0 0 N
|
||||
C 80 0 20 0 0 0 N
|
||||
P 2 0 0 0 -60 10 60 70 N
|
||||
X A 1 -200 0 100 R 50 50 1 1 P
|
||||
X B 2 200 0 100 L 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# power_+12V
|
||||
#
|
||||
DEF power_+12V #PWR 0 0 Y Y 1 F P
|
||||
F0 "#PWR" 0 -150 50 H I C CNN
|
||||
F1 "power_+12V" 0 140 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
DRAW
|
||||
P 2 0 1 0 -30 50 0 100 N
|
||||
P 2 0 1 0 0 0 0 100 N
|
||||
P 2 0 1 0 0 100 30 50 N
|
||||
X +12V 1 0 0 0 U 50 50 1 1 W N
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# power_+5V
|
||||
#
|
||||
DEF power_+5V #PWR 0 0 Y Y 1 F P
|
||||
F0 "#PWR" 0 -150 50 H I C CNN
|
||||
F1 "power_+5V" 0 140 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
DRAW
|
||||
P 2 0 1 0 -30 50 0 100 N
|
||||
P 2 0 1 0 0 0 0 100 N
|
||||
P 2 0 1 0 0 100 30 50 N
|
||||
X +5V 1 0 0 0 U 50 50 1 1 W N
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# power_GND
|
||||
#
|
||||
DEF power_GND #PWR 0 0 Y Y 1 F P
|
||||
F0 "#PWR" 0 -250 50 H I C CNN
|
||||
F1 "power_GND" 0 -150 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
DRAW
|
||||
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
|
||||
X GND 1 0 0 0 D 50 50 1 1 W N
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# power_PWR_FLAG
|
||||
#
|
||||
DEF power_PWR_FLAG #FLG 0 0 N N 1 F P
|
||||
F0 "#FLG" 0 75 50 H I C CNN
|
||||
F1 "power_PWR_FLAG" 0 150 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
DRAW
|
||||
P 6 0 1 0 0 0 0 50 -40 75 0 100 40 75 0 50 N
|
||||
X pwr 1 0 0 0 U 50 50 0 0 w
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
#End Library
|
|
@ -0,0 +1,680 @@
|
|||
(kicad_pcb (version 20171130) (host pcbnew "(5.0.1)-3")
|
||||
|
||||
(general
|
||||
(thickness 1.6)
|
||||
(drawings 4)
|
||||
(tracks 61)
|
||||
(zones 0)
|
||||
(modules 9)
|
||||
(nets 9)
|
||||
)
|
||||
|
||||
(page A4)
|
||||
(title_block
|
||||
(title RailroadSwitch)
|
||||
(date 2019-01-01)
|
||||
(rev 1)
|
||||
(company "Mark van Renswoude")
|
||||
)
|
||||
|
||||
(layers
|
||||
(0 F.Cu signal)
|
||||
(31 B.Cu signal)
|
||||
(32 B.Adhes user)
|
||||
(33 F.Adhes user)
|
||||
(34 B.Paste user)
|
||||
(35 F.Paste user)
|
||||
(36 B.SilkS user)
|
||||
(37 F.SilkS user)
|
||||
(38 B.Mask user)
|
||||
(39 F.Mask user)
|
||||
(40 Dwgs.User user)
|
||||
(41 Cmts.User user)
|
||||
(42 Eco1.User user)
|
||||
(43 Eco2.User user)
|
||||
(44 Edge.Cuts user)
|
||||
(45 Margin user)
|
||||
(46 B.CrtYd user)
|
||||
(47 F.CrtYd user)
|
||||
(48 B.Fab user)
|
||||
(49 F.Fab user)
|
||||
)
|
||||
|
||||
(setup
|
||||
(last_trace_width 0.3)
|
||||
(user_trace_width 0.5)
|
||||
(trace_clearance 0.2)
|
||||
(zone_clearance 0.508)
|
||||
(zone_45_only no)
|
||||
(trace_min 0.2)
|
||||
(segment_width 0.2)
|
||||
(edge_width 0.15)
|
||||
(via_size 0.8)
|
||||
(via_drill 0.4)
|
||||
(via_min_size 0.4)
|
||||
(via_min_drill 0.3)
|
||||
(uvia_size 0.3)
|
||||
(uvia_drill 0.1)
|
||||
(uvias_allowed no)
|
||||
(uvia_min_size 0.2)
|
||||
(uvia_min_drill 0.1)
|
||||
(pcb_text_width 0.3)
|
||||
(pcb_text_size 1.5 1.5)
|
||||
(mod_edge_width 0.15)
|
||||
(mod_text_size 1 1)
|
||||
(mod_text_width 0.15)
|
||||
(pad_size 1.524 1.524)
|
||||
(pad_drill 0.762)
|
||||
(pad_to_mask_clearance 0.051)
|
||||
(solder_mask_min_width 0.25)
|
||||
(aux_axis_origin 0 0)
|
||||
(visible_elements 7FFFFFFF)
|
||||
(pcbplotparams
|
||||
(layerselection 0x00000_7fffffff)
|
||||
(usegerberextensions false)
|
||||
(usegerberattributes false)
|
||||
(usegerberadvancedattributes false)
|
||||
(creategerberjobfile false)
|
||||
(excludeedgelayer true)
|
||||
(linewidth 0.100000)
|
||||
(plotframeref false)
|
||||
(viasonmask false)
|
||||
(mode 1)
|
||||
(useauxorigin false)
|
||||
(hpglpennumber 1)
|
||||
(hpglpenspeed 20)
|
||||
(hpglpendiameter 15.000000)
|
||||
(psnegative true)
|
||||
(psa4output false)
|
||||
(plotreference true)
|
||||
(plotvalue true)
|
||||
(plotinvisibletext false)
|
||||
(padsonsilk false)
|
||||
(subtractmaskfromsilk false)
|
||||
(outputformat 4)
|
||||
(mirror true)
|
||||
(drillshape 1)
|
||||
(scaleselection 1)
|
||||
(outputdirectory ""))
|
||||
)
|
||||
|
||||
(net 0 "")
|
||||
(net 1 GND)
|
||||
(net 2 +5V)
|
||||
(net 3 "Net-(J1-Pad3)")
|
||||
(net 4 +12V)
|
||||
(net 5 "Net-(R1-Pad2)")
|
||||
(net 6 "Net-(RV1-Pad2)")
|
||||
(net 7 "Net-(RV2-Pad2)")
|
||||
(net 8 "Net-(SW1-Pad1)")
|
||||
|
||||
(net_class Default "This is the default net class."
|
||||
(clearance 0.2)
|
||||
(trace_width 0.3)
|
||||
(via_dia 0.8)
|
||||
(via_drill 0.4)
|
||||
(uvia_dia 0.3)
|
||||
(uvia_drill 0.1)
|
||||
(add_net +12V)
|
||||
(add_net +5V)
|
||||
(add_net GND)
|
||||
(add_net "Net-(J1-Pad3)")
|
||||
(add_net "Net-(R1-Pad2)")
|
||||
(add_net "Net-(RV1-Pad2)")
|
||||
(add_net "Net-(RV2-Pad2)")
|
||||
(add_net "Net-(SW1-Pad1)")
|
||||
)
|
||||
|
||||
(module custom:TO-220-3_Horizontal_Reversed (layer B.Cu) (tedit 5C2BB86F) (tstamp 5C2BC4AF)
|
||||
(at 133.858 85.852 270)
|
||||
(descr "TO-220-3, Horizontal, RM 2.54mm")
|
||||
(tags "TO-220-3 Horizontal RM 2.54mm")
|
||||
(path /5C2CDA60)
|
||||
(fp_text reference U2 (at 2.54 -20.58 270) (layer B.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
|
||||
)
|
||||
(fp_text value L7805 (at 2.54 1.9 270) (layer B.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
|
||||
)
|
||||
(fp_circle (center 2.54 -16.66) (end 4.39 -16.66) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start 7.79 1.15) (end -2.71 1.15) (layer B.CrtYd) (width 0.05))
|
||||
(fp_line (start 7.79 -19.71) (end 7.79 1.15) (layer B.CrtYd) (width 0.05))
|
||||
(fp_line (start -2.71 -19.71) (end 7.79 -19.71) (layer B.CrtYd) (width 0.05))
|
||||
(fp_line (start -2.71 1.15) (end -2.71 -19.71) (layer B.CrtYd) (width 0.05))
|
||||
(fp_line (start 5.08 -1.066) (end 5.08 -3.69) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 2.54 -1.066) (end 2.54 -3.69) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 0 -1.05) (end 0 -3.69) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 7.66 -18.22) (end 7.66 -19.42) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 7.66 -15.82) (end 7.66 -17.02) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 7.66 -13.42) (end 7.66 -14.62) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 -18.22) (end -2.58 -19.42) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 -15.82) (end -2.58 -17.02) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 -13.42) (end -2.58 -14.62) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 7.02 -19.58) (end 7.66 -19.58) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 4.62 -19.58) (end 5.82 -19.58) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 2.22 -19.58) (end 3.42 -19.58) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start -0.181 -19.58) (end 1.02 -19.58) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 -19.58) (end -1.38 -19.58) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 7.66 -3.69) (end 7.66 -13.18) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 -3.69) (end -2.58 -13.18) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 -13.18) (end 7.66 -13.18) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 -3.69) (end 7.66 -3.69) (layer B.SilkS) (width 0.12))
|
||||
(fp_line (start 5.08 -3.81) (end 5.08 0) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start 2.54 -3.81) (end 2.54 0) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start 0 -3.81) (end 0 0) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start 7.54 -3.81) (end -2.46 -3.81) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start 7.54 -13.06) (end 7.54 -3.81) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start -2.46 -13.06) (end 7.54 -13.06) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start -2.46 -3.81) (end -2.46 -13.06) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start 7.54 -13.06) (end -2.46 -13.06) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start 7.54 -19.46) (end 7.54 -13.06) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start -2.46 -19.46) (end 7.54 -19.46) (layer B.Fab) (width 0.1))
|
||||
(fp_line (start -2.46 -13.06) (end -2.46 -19.46) (layer B.Fab) (width 0.1))
|
||||
(fp_text user %R (at 2.54 -20.58 270) (layer B.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
|
||||
)
|
||||
(pad 3 thru_hole oval (at 5.08 0 270) (size 1.8 1.8) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 2 +5V))
|
||||
(pad 2 thru_hole oval (at 2.54 0 270) (size 1.8 1.8) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 1 GND))
|
||||
(pad 1 thru_hole rect (at 0 0 270) (size 1.8 1.8) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 4 +12V))
|
||||
(pad 0 smd oval (at 2.54 -16.66 270) (size 3.5 3.5) (layers B.Cu B.Paste B.Mask))
|
||||
(model ${KISYS3DMOD}/TO_SOT_Packages_THT.3dshapes/TO-220-3_Horizontal_Reversed.wrl
|
||||
(offset (xyz 2.539999961853027 0 0))
|
||||
(scale (xyz 0.393701 0.393701 0.393701))
|
||||
(rotate (xyz 0 0 180))
|
||||
)
|
||||
)
|
||||
|
||||
(module Capacitors_SMD:C_1206 (layer F.Cu) (tedit 58AA84B8) (tstamp 5C2BC390)
|
||||
(at 146.289763 93.427294)
|
||||
(descr "Capacitor SMD 1206, reflow soldering, AVX (see smccp.pdf)")
|
||||
(tags "capacitor 1206")
|
||||
(path /5C2C52A2)
|
||||
(attr smd)
|
||||
(fp_text reference C1 (at -3.287763 0.806706) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value 100nF (at 0 2) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start 2.25 1.05) (end -2.25 1.05) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 2.25 1.05) (end 2.25 -1.05) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -2.25 -1.05) (end -2.25 1.05) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -2.25 -1.05) (end 2.25 -1.05) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1 1.02) (end 1 1.02) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 1 -1.02) (end -1 -1.02) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.6 -0.8) (end 1.6 -0.8) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.6 -0.8) (end 1.6 0.8) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.6 0.8) (end -1.6 0.8) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -1.6 0.8) (end -1.6 -0.8) (layer F.Fab) (width 0.1))
|
||||
(fp_text user %R (at 0 -1.75) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(pad 2 smd rect (at 1.5 0) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
|
||||
(net 1 GND))
|
||||
(pad 1 smd rect (at -1.5 0) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
|
||||
(net 2 +5V))
|
||||
(model Capacitors_SMD.3dshapes/C_1206.wrl
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
|
||||
(module Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm (layer F.Cu) (tedit 59650532) (tstamp 5C2BC3A7)
|
||||
(at 160.528 83.566 270)
|
||||
(descr "Through hole straight pin header, 1x03, 2.54mm pitch, single row")
|
||||
(tags "Through hole pin header THT 1x03 2.54mm single row")
|
||||
(path /5C2CB61A)
|
||||
(fp_text reference J1 (at 0 7.62 270) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value Servo (at 0 7.41 270) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text user %R (at 0 2.54) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 1.8 6.85) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.8 6.85) (end 1.8 6.85) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.8 -1.8) (end -1.8 6.85) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 1.27) (end 1.33 1.27) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 1.33 1.27) (end 1.33 6.41) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 1.27) (end -1.33 6.41) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 6.41) (end 1.33 6.41) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.27 -0.635) (end -0.635 -1.27) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -1.27 6.35) (end -1.27 -0.635) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.27 6.35) (end -1.27 6.35) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.27 -1.27) (end 1.27 6.35) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.635 -1.27) (end 1.27 -1.27) (layer F.Fab) (width 0.1))
|
||||
(pad 3 thru_hole oval (at 0 5.08 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 3 "Net-(J1-Pad3)"))
|
||||
(pad 2 thru_hole oval (at 0 2.54 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 2 +5V))
|
||||
(pad 1 thru_hole rect (at 0 0 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 1 GND))
|
||||
(model ${KISYS3DMOD}/Pin_Headers.3dshapes/Pin_Header_Straight_1x03_Pitch2.54mm.wrl
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
|
||||
(module Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm (layer F.Cu) (tedit 59650532) (tstamp 5C2BC3BD)
|
||||
(at 139.7 83.566 270)
|
||||
(descr "Through hole straight pin header, 1x02, 2.54mm pitch, single row")
|
||||
(tags "Through hole pin header THT 1x02 2.54mm single row")
|
||||
(path /5C2CC12F)
|
||||
(fp_text reference J2 (at 0 -2.33 270) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value Power (at 0 4.87 270) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -0.635 -1.27) (end 1.27 -1.27) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.27 -1.27) (end 1.27 3.81) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.27 3.81) (end -1.27 3.81) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -1.27 3.81) (end -1.27 -0.635) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -1.27 -0.635) (end -0.635 -1.27) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -1.33 3.87) (end 1.33 3.87) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 1.27) (end -1.33 3.87) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 1.33 1.27) (end 1.33 3.87) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 1.27) (end 1.33 1.27) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.8 -1.8) (end -1.8 4.35) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.8 4.35) (end 1.8 4.35) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 1.8 4.35) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05))
|
||||
(fp_text user %R (at 0 1.27) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(pad 1 thru_hole rect (at 0 0 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 1 GND))
|
||||
(pad 2 thru_hole oval (at 0 2.54 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 4 +12V))
|
||||
(model ${KISYS3DMOD}/Pin_Headers.3dshapes/Pin_Header_Straight_1x02_Pitch2.54mm.wrl
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
|
||||
(module Resistors_SMD:R_0603 (layer F.Cu) (tedit 58E0A804) (tstamp 5C2BC3CE)
|
||||
(at 152.4 92.964 180)
|
||||
(descr "Resistor SMD 0603, reflow soldering, Vishay (see dcrcw.pdf)")
|
||||
(tags "resistor 0603")
|
||||
(path /5C2C5686)
|
||||
(attr smd)
|
||||
(fp_text reference R1 (at -2.286 -0.508 180) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value 10k (at 0 1.5 180) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start 1.25 0.7) (end -1.25 0.7) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 1.25 0.7) (end 1.25 -0.7) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.25 -0.7) (end -1.25 0.7) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.25 -0.7) (end 1.25 -0.7) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -0.5 -0.68) (end 0.5 -0.68) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 0.5 0.68) (end -0.5 0.68) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.8 -0.4) (end 0.8 -0.4) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.8 -0.4) (end 0.8 0.4) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.8 0.4) (end -0.8 0.4) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 0.4) (end -0.8 -0.4) (layer F.Fab) (width 0.1))
|
||||
(fp_text user %R (at 0 0 180) (layer F.Fab)
|
||||
(effects (font (size 0.4 0.4) (thickness 0.075)))
|
||||
)
|
||||
(pad 2 smd rect (at 0.75 0 180) (size 0.5 0.9) (layers F.Cu F.Paste F.Mask)
|
||||
(net 5 "Net-(R1-Pad2)"))
|
||||
(pad 1 smd rect (at -0.75 0 180) (size 0.5 0.9) (layers F.Cu F.Paste F.Mask)
|
||||
(net 2 +5V))
|
||||
(model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0603.wrl
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
|
||||
(module Potentiometers:Potentiometer_Triwood_RM-065 (layer F.Cu) (tedit 5882291E) (tstamp 5C2BC415)
|
||||
(at 137.145763 87.585294 270)
|
||||
(descr "Potentiometer, Trimmer, RM-065")
|
||||
(tags "Potentiometer Trimmer RM-065")
|
||||
(path /5C2C5AE5)
|
||||
(fp_text reference RV1 (at 2.584706 -1.792237) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value 10k (at 7.5 -2.5) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start 5.85 1.15) (end 5.85 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.85 1.4) (end 5.6 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.6 1.4) (end 5.6 1.65) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.6 1.65) (end 4.35 1.65) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 4.35 1.65) (end 4.35 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 4.35 1.4) (end 0.7 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 0.7 1.4) (end 0.7 1.65) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 0.7 1.65) (end -0.6 1.65) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.6 1.65) (end -0.6 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.6 1.4) (end -0.9 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.9 1.4) (end -0.9 1.15) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 3.65 -5.9) (end 4.55 -5.9) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 4.55 -5.9) (end 5.9 -4.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.9 -4.4) (end 5.9 -1.1) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.9 -1.1) (end -0.9 -4.45) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.9 -4.45) (end 0.45 -5.9) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 0.45 -5.9) (end 1.35 -5.9) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.8 1.2) (end 5.8 -1.15) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 -1.1) (end -0.8 1.2) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.25 -2.88) (end 2.25 -3.64) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.75 -2.88) (end 2.75 -3.64) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 1.31) (end -0.8 1.18) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 -2.5) (end -0.8 -1.1) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.8 1.31) (end 5.8 1.18) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.8 -2.5) (end 5.8 -1.1) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.23 -0.47) (end 3.77 -0.47) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.53 -5.8) (end 3.64 -5.8) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.36 -5.8) (end 0.47 -5.8) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.15 -2.88) (end 4.66 -2.88) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.66 -2.88) (end 4.66 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.66 -2.12) (end 4.15 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.85 -2.88) (end 0.34 -2.88) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.34 -2.88) (end 0.34 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.34 -2.12) (end 0.85 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 3.01 -2.25) (end 4.15 -2.25) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 3.01 -2.75) (end 4.15 -2.75) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.99 -2.25) (end 0.85 -2.25) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.99 -2.75) (end 0.85 -2.75) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.75 -2.12) (end 2.75 -0.85) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.25 -2.12) (end 2.25 -0.85) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.99 -2.88) (end 1.99 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.99 -2.12) (end 3.01 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 3.01 -2.12) (end 3.01 -2.88) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 3.01 -2.88) (end 1.99 -2.88) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.47 -5.8) (end -0.8 -4.4) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 -4.4) (end -0.8 -2.5) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.53 -5.8) (end 5.8 -4.4) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.8 -4.4) (end 5.8 -2.5) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.55 1.31) (end 5.55 1.56) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.55 1.56) (end 4.4 1.56) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.4 1.56) (end 4.4 1.31) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.55 1.31) (end -0.55 1.56) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.55 1.56) (end 0.59 1.56) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.59 1.56) (end 0.59 1.31) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 1.31) (end 5.8 1.31) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -1.5 -6.54) (end 6.5 -6.54) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.5 -6.54) (end -1.5 1.81) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 6.5 1.81) (end 6.5 -6.54) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 6.5 1.81) (end -1.5 1.81) (layer F.CrtYd) (width 0.05))
|
||||
(fp_circle (center 2.5 -2.5) (end 4.7 -0.2) (layer F.Fab) (width 0.1))
|
||||
(fp_arc (start 2.5 -2.5) (end 4.15 -2.25) (angle 90) (layer F.Fab) (width 0.1))
|
||||
(fp_arc (start 2.5 -2.5) (end 2.63 -0.85) (angle 90) (layer F.Fab) (width 0.1))
|
||||
(fp_arc (start 2.5 -2.5) (end 3.39 -3.9) (angle 90) (layer F.Fab) (width 0.1))
|
||||
(fp_arc (start 2.5 -2.5) (end 1.1 -1.61) (angle 90) (layer F.Fab) (width 0.1))
|
||||
(pad 2 thru_hole circle (at 2.5 -5.04 270) (size 2.5 2.5) (drill 1.2) (layers *.Cu *.Mask)
|
||||
(net 6 "Net-(RV1-Pad2)"))
|
||||
(pad 3 thru_hole circle (at 5 0 270) (size 2.5 2.5) (drill 1.2) (layers *.Cu *.Mask)
|
||||
(net 2 +5V))
|
||||
(pad 1 thru_hole circle (at 0 0 270) (size 2.5 2.5) (drill 1.2) (layers *.Cu *.Mask)
|
||||
(net 1 GND))
|
||||
(model Potentiometers.3dshapes/Potentiometer_Triwood_RM-065.wrl
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 4 4 4))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
|
||||
(module Potentiometers:Potentiometer_Triwood_RM-065 (layer F.Cu) (tedit 5882291E) (tstamp 5C2BC45C)
|
||||
(at 160.513763 92.665294 90)
|
||||
(descr "Potentiometer, Trimmer, RM-065")
|
||||
(tags "Potentiometer Trimmer RM-065")
|
||||
(path /5C2C5A17)
|
||||
(fp_text reference RV2 (at 2.495294 -1.763763 180) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value 10k (at 7.5 -2.5 180) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_arc (start 2.5 -2.5) (end 1.1 -1.61) (angle 90) (layer F.Fab) (width 0.1))
|
||||
(fp_arc (start 2.5 -2.5) (end 3.39 -3.9) (angle 90) (layer F.Fab) (width 0.1))
|
||||
(fp_arc (start 2.5 -2.5) (end 2.63 -0.85) (angle 90) (layer F.Fab) (width 0.1))
|
||||
(fp_arc (start 2.5 -2.5) (end 4.15 -2.25) (angle 90) (layer F.Fab) (width 0.1))
|
||||
(fp_circle (center 2.5 -2.5) (end 4.7 -0.2) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 6.5 1.81) (end -1.5 1.81) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 6.5 1.81) (end 6.5 -6.54) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.5 -6.54) (end -1.5 1.81) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.5 -6.54) (end 6.5 -6.54) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -0.8 1.31) (end 5.8 1.31) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.59 1.56) (end 0.59 1.31) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.55 1.56) (end 0.59 1.56) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.55 1.31) (end -0.55 1.56) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.4 1.56) (end 4.4 1.31) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.55 1.56) (end 4.4 1.56) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.55 1.31) (end 5.55 1.56) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.8 -4.4) (end 5.8 -2.5) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.53 -5.8) (end 5.8 -4.4) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 -4.4) (end -0.8 -2.5) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.47 -5.8) (end -0.8 -4.4) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 3.01 -2.88) (end 1.99 -2.88) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 3.01 -2.12) (end 3.01 -2.88) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.99 -2.12) (end 3.01 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.99 -2.88) (end 1.99 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.25 -2.12) (end 2.25 -0.85) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.75 -2.12) (end 2.75 -0.85) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.99 -2.75) (end 0.85 -2.75) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.99 -2.25) (end 0.85 -2.25) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 3.01 -2.75) (end 4.15 -2.75) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 3.01 -2.25) (end 4.15 -2.25) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.34 -2.12) (end 0.85 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.34 -2.88) (end 0.34 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.85 -2.88) (end 0.34 -2.88) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.66 -2.12) (end 4.15 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.66 -2.88) (end 4.66 -2.12) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.15 -2.88) (end 4.66 -2.88) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.36 -5.8) (end 0.47 -5.8) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 4.53 -5.8) (end 3.64 -5.8) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.23 -0.47) (end 3.77 -0.47) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.8 -2.5) (end 5.8 -1.1) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.8 1.31) (end 5.8 1.18) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 -2.5) (end -0.8 -1.1) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 1.31) (end -0.8 1.18) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.75 -2.88) (end 2.75 -3.64) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.25 -2.88) (end 2.25 -3.64) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.8 -1.1) (end -0.8 1.2) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.8 1.2) (end 5.8 -1.15) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0.45 -5.9) (end 1.35 -5.9) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.9 -4.45) (end 0.45 -5.9) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.9 -1.1) (end -0.9 -4.45) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.9 -4.4) (end 5.9 -1.1) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 4.55 -5.9) (end 5.9 -4.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 3.65 -5.9) (end 4.55 -5.9) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.9 1.4) (end -0.9 1.15) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.6 1.4) (end -0.9 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.6 1.65) (end -0.6 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 0.7 1.65) (end -0.6 1.65) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 0.7 1.4) (end 0.7 1.65) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 4.35 1.4) (end 0.7 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 4.35 1.65) (end 4.35 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.6 1.65) (end 4.35 1.65) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.6 1.4) (end 5.6 1.65) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.85 1.4) (end 5.6 1.4) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.85 1.15) (end 5.85 1.4) (layer F.SilkS) (width 0.12))
|
||||
(pad 1 thru_hole circle (at 0 0 90) (size 2.5 2.5) (drill 1.2) (layers *.Cu *.Mask)
|
||||
(net 1 GND))
|
||||
(pad 3 thru_hole circle (at 5 0 90) (size 2.5 2.5) (drill 1.2) (layers *.Cu *.Mask)
|
||||
(net 2 +5V))
|
||||
(pad 2 thru_hole circle (at 2.5 -5.04 90) (size 2.5 2.5) (drill 1.2) (layers *.Cu *.Mask)
|
||||
(net 7 "Net-(RV2-Pad2)"))
|
||||
(model Potentiometers.3dshapes/Potentiometer_Triwood_RM-065.wrl
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 4 4 4))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
|
||||
(module Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm (layer F.Cu) (tedit 59650532) (tstamp 5C2BC472)
|
||||
(at 150.114 83.566 270)
|
||||
(descr "Through hole straight pin header, 1x02, 2.54mm pitch, single row")
|
||||
(tags "Through hole pin header THT 1x02 2.54mm single row")
|
||||
(path /5C2C5D71)
|
||||
(fp_text reference SW1 (at 0 5.334 270) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value SW_SPST (at 0 4.87 270) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text user %R (at 0 1.27) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 1.8 4.35) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.8 4.35) (end 1.8 4.35) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.8 -1.8) (end -1.8 4.35) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 1.27) (end 1.33 1.27) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 1.33 1.27) (end 1.33 3.87) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 1.27) (end -1.33 3.87) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.33 3.87) (end 1.33 3.87) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -1.27 -0.635) (end -0.635 -1.27) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -1.27 3.81) (end -1.27 -0.635) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.27 3.81) (end -1.27 3.81) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 1.27 -1.27) (end 1.27 3.81) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -0.635 -1.27) (end 1.27 -1.27) (layer F.Fab) (width 0.1))
|
||||
(pad 2 thru_hole oval (at 0 2.54 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 1 GND))
|
||||
(pad 1 thru_hole rect (at 0 0 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
|
||||
(net 8 "Net-(SW1-Pad1)"))
|
||||
(model ${KISYS3DMOD}/Pin_Headers.3dshapes/Pin_Header_Straight_1x02_Pitch2.54mm.wrl
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
|
||||
(module Housings_SOIC:SOIJ-8_5.3x5.3mm_Pitch1.27mm (layer F.Cu) (tedit 58CC8F64) (tstamp 5C2BC48F)
|
||||
(at 148.829763 89.109294 180)
|
||||
(descr "8-Lead Plastic Small Outline (SM) - Medium, 5.28 mm Body [SOIC] (see Microchip Packaging Specification 00000049BS.pdf)")
|
||||
(tags "SOIC 1.27")
|
||||
(path /5C2BB273)
|
||||
(attr smd)
|
||||
(fp_text reference U1 (at -0.268237 -1.822706 180) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value ATtiny85 (at 0 3.68 180) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -2.75 -2.55) (end -4.5 -2.55) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -2.75 2.755) (end 2.75 2.755) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -2.75 -2.755) (end 2.75 -2.755) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -2.75 2.755) (end -2.75 2.455) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 2.75 2.755) (end 2.75 2.455) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 2.75 -2.755) (end 2.75 -2.455) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -2.75 -2.755) (end -2.75 -2.55) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -4.75 2.95) (end 4.75 2.95) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -4.75 -2.95) (end 4.75 -2.95) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 4.75 -2.95) (end 4.75 2.95) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -4.75 -2.95) (end -4.75 2.95) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -2.65 -1.65) (end -1.65 -2.65) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start -2.65 2.65) (end -2.65 -1.65) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start 2.65 2.65) (end -2.65 2.65) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start 2.65 -2.65) (end 2.65 2.65) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start -1.65 -2.65) (end 2.65 -2.65) (layer F.Fab) (width 0.15))
|
||||
(fp_text user %R (at 0 0 180) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(pad 8 smd rect (at 3.65 -1.905 180) (size 1.7 0.65) (layers F.Cu F.Paste F.Mask)
|
||||
(net 2 +5V))
|
||||
(pad 7 smd rect (at 3.65 -0.635 180) (size 1.7 0.65) (layers F.Cu F.Paste F.Mask)
|
||||
(net 6 "Net-(RV1-Pad2)"))
|
||||
(pad 6 smd rect (at 3.65 0.635 180) (size 1.7 0.65) (layers F.Cu F.Paste F.Mask)
|
||||
(net 8 "Net-(SW1-Pad1)"))
|
||||
(pad 5 smd rect (at 3.65 1.905 180) (size 1.7 0.65) (layers F.Cu F.Paste F.Mask)
|
||||
(net 3 "Net-(J1-Pad3)"))
|
||||
(pad 4 smd rect (at -3.65 1.905 180) (size 1.7 0.65) (layers F.Cu F.Paste F.Mask)
|
||||
(net 1 GND))
|
||||
(pad 3 smd rect (at -3.65 0.635 180) (size 1.7 0.65) (layers F.Cu F.Paste F.Mask)
|
||||
(net 7 "Net-(RV2-Pad2)"))
|
||||
(pad 2 smd rect (at -3.65 -0.635 180) (size 1.7 0.65) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 1 smd rect (at -3.65 -1.905 180) (size 1.7 0.65) (layers F.Cu F.Paste F.Mask)
|
||||
(net 5 "Net-(R1-Pad2)"))
|
||||
(model ${KISYS3DMOD}/Housings_SOIC.3dshapes/SOIJ-8_5.3x5.3mm_Pitch1.27mm.wrl
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
|
||||
(gr_line (start 132.334 95.25) (end 132.334 81.534) (layer Edge.Cuts) (width 0.15))
|
||||
(gr_line (start 162.814 95.25) (end 132.334 95.25) (layer Edge.Cuts) (width 0.15))
|
||||
(gr_line (start 162.814 81.534) (end 162.814 95.25) (layer Edge.Cuts) (width 0.15))
|
||||
(gr_line (start 132.334 81.534) (end 162.814 81.534) (layer Edge.Cuts) (width 0.15))
|
||||
|
||||
(segment (start 136.339057 88.392) (end 137.145763 87.585294) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 133.858 88.392) (end 136.339057 88.392) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 139.7 84.916) (end 139.7 83.566) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 139.7 86.798823) (end 139.7 84.916) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 138.913529 87.585294) (end 139.7 86.798823) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 137.145763 87.585294) (end 138.913529 87.585294) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 139.7 83.566) (end 147.574 83.566) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 159.227999 82.265999) (end 160.528 83.566) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 147.574 83.566) (end 148.874001 82.265999) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 147.789763 92.327294) (end 147.789763 93.427294) (width 0.3) (layer F.Cu) (net 1) (status 1000000))
|
||||
(segment (start 147.789763 91.369294) (end 147.789763 92.327294) (width 0.3) (layer F.Cu) (net 1) (status 1000000))
|
||||
(segment (start 151.954763 87.204294) (end 147.789763 91.369294) (width 0.3) (layer F.Cu) (net 1) (status 1000000))
|
||||
(segment (start 152.479763 87.204294) (end 151.954763 87.204294) (width 0.3) (layer F.Cu) (net 1) (status 1000000))
|
||||
(segment (start 161.763762 91.415295) (end 160.513763 92.665294) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 162.213764 90.965293) (end 161.763762 91.415295) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 162.213764 83.901764) (end 162.213764 90.965293) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 161.878 83.566) (end 162.213764 83.901764) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 160.528 83.566) (end 161.878 83.566) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 156.718 84.072002) (end 156.718 82.265999) (width 0.3) (layer F.Cu) (net 1))
|
||||
(segment (start 153.585708 87.204294) (end 156.718 84.072002) (width 0.3) (layer F.Cu) (net 1))
|
||||
(segment (start 152.479763 87.204294) (end 153.585708 87.204294) (width 0.3) (layer F.Cu) (net 1))
|
||||
(segment (start 148.874001 82.265999) (end 156.718 82.265999) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 156.718 82.265999) (end 159.227999 82.265999) (width 0.5) (layer F.Cu) (net 1))
|
||||
(segment (start 135.511294 92.585294) (end 133.858 90.932) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 137.145763 92.585294) (end 135.511294 92.585294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 137.987763 93.427294) (end 137.145763 92.585294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 144.789763 93.427294) (end 137.987763 93.427294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 157.988 85.139531) (end 160.513763 87.665294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 157.988 83.566) (end 157.988 85.139531) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 144.789763 91.404294) (end 145.179763 91.014294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 144.789763 93.427294) (end 144.789763 91.404294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 160.513763 87.665294) (end 157.988 90.191057) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 157.988 90.191057) (end 157.988 91.694) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 144.789763 94.727294) (end 144.804469 94.742) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 144.789763 93.427294) (end 144.789763 94.727294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 144.789763 94.727294) (end 152.385294 94.727294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 157.988 91.694) (end 154.954706 94.727294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 153.15 94.715294) (end 153.162 94.727294) (width 0.3) (layer F.Cu) (net 2))
|
||||
(segment (start 153.15 92.964) (end 153.15 94.715294) (width 0.3) (layer F.Cu) (net 2))
|
||||
(segment (start 154.954706 94.727294) (end 153.162 94.727294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 153.162 94.727294) (end 152.385294 94.727294) (width 0.5) (layer F.Cu) (net 2))
|
||||
(segment (start 150.607625 87.204294) (end 145.179763 87.204294) (width 0.3) (layer F.Cu) (net 3))
|
||||
(segment (start 155.448 83.566) (end 154.245919 83.566) (width 0.3) (layer F.Cu) (net 3))
|
||||
(segment (start 154.245919 83.566) (end 150.607625 87.204294) (width 0.3) (layer F.Cu) (net 3))
|
||||
(segment (start 135.957919 83.566) (end 137.16 83.566) (width 0.5) (layer F.Cu) (net 4))
|
||||
(segment (start 134.744 83.566) (end 135.957919 83.566) (width 0.5) (layer F.Cu) (net 4))
|
||||
(segment (start 133.858 84.452) (end 134.744 83.566) (width 0.5) (layer F.Cu) (net 4))
|
||||
(segment (start 133.858 85.852) (end 133.858 84.452) (width 0.5) (layer F.Cu) (net 4))
|
||||
(segment (start 151.65 91.844057) (end 152.479763 91.014294) (width 0.3) (layer F.Cu) (net 5))
|
||||
(segment (start 151.65 92.964) (end 151.65 91.844057) (width 0.3) (layer F.Cu) (net 5))
|
||||
(segment (start 142.526763 89.744294) (end 142.185763 90.085294) (width 0.3) (layer F.Cu) (net 6))
|
||||
(segment (start 145.179763 89.744294) (end 142.526763 89.744294) (width 0.3) (layer F.Cu) (net 6))
|
||||
(segment (start 153.782763 88.474294) (end 155.473763 90.165294) (width 0.3) (layer F.Cu) (net 7))
|
||||
(segment (start 152.479763 88.474294) (end 153.782763 88.474294) (width 0.3) (layer F.Cu) (net 7))
|
||||
(segment (start 144.029763 88.474294) (end 143.439469 87.884) (width 0.3) (layer F.Cu) (net 8))
|
||||
(segment (start 145.179763 88.474294) (end 144.029763 88.474294) (width 0.3) (layer F.Cu) (net 8))
|
||||
(segment (start 143.439469 87.884) (end 143.439469 86.430531) (width 0.3) (layer F.Cu) (net 8))
|
||||
(segment (start 143.439469 86.430531) (end 144.272 85.598) (width 0.3) (layer F.Cu) (net 8))
|
||||
(segment (start 150.114 84.716) (end 150.114 83.566) (width 0.3) (layer F.Cu) (net 8))
|
||||
(segment (start 149.232 85.598) (end 150.114 84.716) (width 0.3) (layer F.Cu) (net 8))
|
||||
(segment (start 144.272 85.598) (end 149.232 85.598) (width 0.3) (layer F.Cu) (net 8))
|
||||
|
||||
)
|
|
@ -0,0 +1,241 @@
|
|||
(export (version D)
|
||||
(design
|
||||
(source P:\Electronics\RailroadSwitch\kicad\RailroadSwitch\RailroadSwitch.sch)
|
||||
(date "1-1-2019 19:51:10")
|
||||
(tool "Eeschema (5.0.1)-3")
|
||||
(sheet (number 1) (name /) (tstamps /)
|
||||
(title_block
|
||||
(title RailroadSwitch)
|
||||
(company "Mark van Renswoude")
|
||||
(rev 1)
|
||||
(date 2019-01-01)
|
||||
(source RailroadSwitch.sch)
|
||||
(comment (number 1) (value ""))
|
||||
(comment (number 2) (value ""))
|
||||
(comment (number 3) (value ""))
|
||||
(comment (number 4) (value "")))))
|
||||
(components
|
||||
(comp (ref U1)
|
||||
(value ATtiny85)
|
||||
(footprint Housings_SOIC:SOIJ-8_5.3x5.3mm_Pitch1.27mm)
|
||||
(datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf)
|
||||
(libsource (lib MCU_Microchip_ATtiny) (part ATtiny85-20SU) (description "20MHz, 8kB Flash, 512B SRAM, 512B EEPROM, debugWIRE, SOIJ-8"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2BB273))
|
||||
(comp (ref C1)
|
||||
(value 100nF)
|
||||
(footprint Capacitors_SMD:C_1206)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2C52A2))
|
||||
(comp (ref R1)
|
||||
(value 10k)
|
||||
(footprint Resistors_SMD:R_0603)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2C5686))
|
||||
(comp (ref RV2)
|
||||
(value 10k)
|
||||
(footprint Potentiometers:Potentiometer_Triwood_RM-065)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R_POT) (description Potentiometer))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2C5A17))
|
||||
(comp (ref RV1)
|
||||
(value 10k)
|
||||
(footprint Potentiometers:Potentiometer_Triwood_RM-065)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R_POT) (description Potentiometer))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2C5AE5))
|
||||
(comp (ref SW1)
|
||||
(value SW_SPST)
|
||||
(footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
|
||||
(libsource (lib Switch) (part SW_SPST) (description "Single Pole Single Throw (SPST) switch"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2C5D71))
|
||||
(comp (ref J1)
|
||||
(value Servo)
|
||||
(footprint Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector) (part Conn_01x03_Male) (description "Generic connector, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2CB61A))
|
||||
(comp (ref J2)
|
||||
(value Power)
|
||||
(footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector) (part Conn_01x02_Male) (description "Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2CC12F))
|
||||
(comp (ref U2)
|
||||
(value L7805)
|
||||
(footprint TO_SOT_Packages_THT:TO-220-3_Horizontal)
|
||||
(datasheet http://www.st.com/content/ccc/resource/technical/document/datasheet/41/4f/b3/b0/12/d4/47/88/CD00000444.pdf/files/CD00000444.pdf/jcr:content/translations/en.CD00000444.pdf)
|
||||
(libsource (lib Regulator_Linear) (part L7805) (description "Positive 1.5A 35V Linear Regulator, Fixed Output 5V, TO-220/TO-263/TO-252"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 5C2CDA60)))
|
||||
(libparts
|
||||
(libpart (lib Connector) (part Conn_01x02_Male)
|
||||
(description "Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp Connector*:*_1x??_*))
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) Conn_01x02_Male))
|
||||
(pins
|
||||
(pin (num 1) (name Pin_1) (type passive))
|
||||
(pin (num 2) (name Pin_2) (type passive))))
|
||||
(libpart (lib Connector) (part Conn_01x03_Male)
|
||||
(description "Generic connector, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp Connector*:*_1x??_*))
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) Conn_01x03_Male))
|
||||
(pins
|
||||
(pin (num 1) (name Pin_1) (type passive))
|
||||
(pin (num 2) (name Pin_2) (type passive))
|
||||
(pin (num 3) (name Pin_3) (type passive))))
|
||||
(libpart (lib Device) (part C)
|
||||
(description "Unpolarized capacitor")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp C_*))
|
||||
(fields
|
||||
(field (name Reference) C)
|
||||
(field (name Value) C))
|
||||
(pins
|
||||
(pin (num 1) (name ~) (type passive))
|
||||
(pin (num 2) (name ~) (type passive))))
|
||||
(libpart (lib Device) (part R)
|
||||
(description Resistor)
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp R_*))
|
||||
(fields
|
||||
(field (name Reference) R)
|
||||
(field (name Value) R))
|
||||
(pins
|
||||
(pin (num 1) (name ~) (type passive))
|
||||
(pin (num 2) (name ~) (type passive))))
|
||||
(libpart (lib Device) (part R_POT)
|
||||
(description Potentiometer)
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp Potentiometer*))
|
||||
(fields
|
||||
(field (name Reference) RV)
|
||||
(field (name Value) R_POT))
|
||||
(pins
|
||||
(pin (num 1) (name 1) (type passive))
|
||||
(pin (num 2) (name 2) (type passive))
|
||||
(pin (num 3) (name 3) (type passive))))
|
||||
(libpart (lib MCU_Microchip_ATtiny) (part ATtiny25V-10SU)
|
||||
(aliases
|
||||
(alias ATtiny25-20SU)
|
||||
(alias ATtiny45V-10SU)
|
||||
(alias ATtiny45-20SU)
|
||||
(alias ATtiny85V-10SU)
|
||||
(alias ATtiny85-20SU))
|
||||
(description "10MHz, 2kB Flash, 128B SRAM, 128B EEPROM, debugWIRE, SOIJ-8")
|
||||
(docs http://ww1.microchip.com/downloads/en/DeviceDoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf)
|
||||
(footprints
|
||||
(fp SOIJ*5.3x5.3mm*P1.27mm*))
|
||||
(fields
|
||||
(field (name Reference) U)
|
||||
(field (name Value) ATtiny25V-10SU)
|
||||
(field (name Footprint) Package_SO:SOIJ-8_5.3x5.3mm_P1.27mm))
|
||||
(pins
|
||||
(pin (num 1) (name ~RESET~/PB5) (type 3state))
|
||||
(pin (num 2) (name XTAL1/PB3) (type 3state))
|
||||
(pin (num 3) (name XTAL2/PB4) (type 3state))
|
||||
(pin (num 4) (name GND) (type power_in))
|
||||
(pin (num 5) (name AREF/PB0) (type 3state))
|
||||
(pin (num 6) (name PB1) (type 3state))
|
||||
(pin (num 7) (name PB2) (type 3state))
|
||||
(pin (num 8) (name VCC) (type power_in))))
|
||||
(libpart (lib Regulator_Linear) (part L7805)
|
||||
(aliases
|
||||
(alias L7806)
|
||||
(alias L7808)
|
||||
(alias L7885)
|
||||
(alias L7809)
|
||||
(alias L7812)
|
||||
(alias L7815)
|
||||
(alias L7818)
|
||||
(alias L7824))
|
||||
(description "Positive 1.5A 35V Linear Regulator, Fixed Output 5V, TO-220/TO-263/TO-252")
|
||||
(docs http://www.st.com/content/ccc/resource/technical/document/datasheet/41/4f/b3/b0/12/d4/47/88/CD00000444.pdf/files/CD00000444.pdf/jcr:content/translations/en.CD00000444.pdf)
|
||||
(footprints
|
||||
(fp TO?252*)
|
||||
(fp TO?263*)
|
||||
(fp TO?220*))
|
||||
(fields
|
||||
(field (name Reference) U)
|
||||
(field (name Value) L7805))
|
||||
(pins
|
||||
(pin (num 1) (name IN) (type power_in))
|
||||
(pin (num 2) (name GND) (type power_in))
|
||||
(pin (num 3) (name OUT) (type power_out))))
|
||||
(libpart (lib Switch) (part SW_SPST)
|
||||
(description "Single Pole Single Throw (SPST) switch")
|
||||
(fields
|
||||
(field (name Reference) SW)
|
||||
(field (name Value) SW_SPST))
|
||||
(pins
|
||||
(pin (num 1) (name A) (type passive))
|
||||
(pin (num 2) (name B) (type passive)))))
|
||||
(libraries
|
||||
(library (logical Connector)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Connector.lib"))
|
||||
(library (logical Device)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Device.lib"))
|
||||
(library (logical MCU_Microchip_ATtiny)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/MCU_Microchip_ATtiny.lib"))
|
||||
(library (logical Regulator_Linear)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Regulator_Linear.lib"))
|
||||
(library (logical Switch)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Switch.lib")))
|
||||
(nets
|
||||
(net (code 1) (name "Net-(J1-Pad3)")
|
||||
(node (ref J1) (pin 3))
|
||||
(node (ref U1) (pin 5)))
|
||||
(net (code 2) (name GND)
|
||||
(node (ref RV2) (pin 1))
|
||||
(node (ref RV1) (pin 1))
|
||||
(node (ref U2) (pin 2))
|
||||
(node (ref C1) (pin 2))
|
||||
(node (ref SW1) (pin 2))
|
||||
(node (ref J2) (pin 1))
|
||||
(node (ref J1) (pin 1))
|
||||
(node (ref U1) (pin 4)))
|
||||
(net (code 3) (name "Net-(SW1-Pad1)")
|
||||
(node (ref SW1) (pin 1))
|
||||
(node (ref U1) (pin 6)))
|
||||
(net (code 4) (name "Net-(RV2-Pad2)")
|
||||
(node (ref U1) (pin 3))
|
||||
(node (ref RV2) (pin 2)))
|
||||
(net (code 5) (name "Net-(RV1-Pad2)")
|
||||
(node (ref U1) (pin 7))
|
||||
(node (ref RV1) (pin 2)))
|
||||
(net (code 6) (name +12V)
|
||||
(node (ref U2) (pin 1))
|
||||
(node (ref J2) (pin 2)))
|
||||
(net (code 7) (name "Net-(U1-Pad2)")
|
||||
(node (ref U1) (pin 2)))
|
||||
(net (code 8) (name +5V)
|
||||
(node (ref RV1) (pin 3))
|
||||
(node (ref RV2) (pin 3))
|
||||
(node (ref J1) (pin 2))
|
||||
(node (ref U2) (pin 3))
|
||||
(node (ref R1) (pin 1))
|
||||
(node (ref C1) (pin 1))
|
||||
(node (ref U1) (pin 8)))
|
||||
(net (code 9) (name "Net-(R1-Pad2)")
|
||||
(node (ref R1) (pin 2))
|
||||
(node (ref U1) (pin 1)))))
|
|
@ -0,0 +1,33 @@
|
|||
update=22/05/2015 07:44:53
|
||||
version=1
|
||||
last_client=kicad
|
||||
[general]
|
||||
version=1
|
||||
RootSch=
|
||||
BoardNm=
|
||||
[pcbnew]
|
||||
version=1
|
||||
LastNetListRead=
|
||||
UseCmpFile=1
|
||||
PadDrill=0.600000000000
|
||||
PadDrillOvalY=0.600000000000
|
||||
PadSizeH=1.500000000000
|
||||
PadSizeV=1.500000000000
|
||||
PcbTextSizeV=1.500000000000
|
||||
PcbTextSizeH=1.500000000000
|
||||
PcbTextThickness=0.300000000000
|
||||
ModuleTextSizeV=1.000000000000
|
||||
ModuleTextSizeH=1.000000000000
|
||||
ModuleTextSizeThickness=0.150000000000
|
||||
SolderMaskClearance=0.000000000000
|
||||
SolderMaskMinWidth=0.000000000000
|
||||
DrawSegmentWidth=0.200000000000
|
||||
BoardOutlineThickness=0.100000000000
|
||||
ModuleOutlineThickness=0.150000000000
|
||||
[cvpcb]
|
||||
version=1
|
||||
NetIExt=net
|
||||
[eeschema]
|
||||
version=1
|
||||
LibDir=
|
||||
[eeschema/libraries]
|
|
@ -0,0 +1,396 @@
|
|||
EESchema Schematic File Version 4
|
||||
LIBS:RailroadSwitch-cache
|
||||
EELAYER 26 0
|
||||
EELAYER END
|
||||
$Descr A4 11693 8268
|
||||
encoding utf-8
|
||||
Sheet 1 1
|
||||
Title "RailroadSwitch"
|
||||
Date "2019-01-01"
|
||||
Rev "1"
|
||||
Comp "Mark van Renswoude"
|
||||
Comment1 ""
|
||||
Comment2 ""
|
||||
Comment3 ""
|
||||
Comment4 ""
|
||||
$EndDescr
|
||||
$Comp
|
||||
L power:PWR_FLAG #FLG01
|
||||
U 1 1 5C2BB08D
|
||||
P 1250 1150
|
||||
F 0 "#FLG01" H 1250 1225 50 0001 C CNN
|
||||
F 1 "PWR_FLAG" H 1250 1324 50 0000 C CNN
|
||||
F 2 "" H 1250 1150 50 0001 C CNN
|
||||
F 3 "~" H 1250 1150 50 0001 C CNN
|
||||
1 1250 1150
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GND #PWR03
|
||||
U 1 1 5C2BB0C8
|
||||
P 1250 1250
|
||||
F 0 "#PWR03" H 1250 1000 50 0001 C CNN
|
||||
F 1 "GND" H 1255 1077 50 0000 C CNN
|
||||
F 2 "" H 1250 1250 50 0001 C CNN
|
||||
F 3 "" H 1250 1250 50 0001 C CNN
|
||||
1 1250 1250
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+12V #PWR02
|
||||
U 1 1 5C2BB167
|
||||
P 1650 1150
|
||||
F 0 "#PWR02" H 1650 1000 50 0001 C CNN
|
||||
F 1 "+12V" H 1665 1323 50 0000 C CNN
|
||||
F 2 "" H 1650 1150 50 0001 C CNN
|
||||
F 3 "" H 1650 1150 50 0001 C CNN
|
||||
1 1650 1150
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:PWR_FLAG #FLG03
|
||||
U 1 1 5C2BB179
|
||||
P 1650 1250
|
||||
F 0 "#FLG03" H 1650 1325 50 0001 C CNN
|
||||
F 1 "PWR_FLAG" H 1650 1423 50 0000 C CNN
|
||||
F 2 "" H 1650 1250 50 0001 C CNN
|
||||
F 3 "~" H 1650 1250 50 0001 C CNN
|
||||
1 1650 1250
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
1250 1150 1250 1250
|
||||
Wire Wire Line
|
||||
1650 1150 1650 1250
|
||||
$Comp
|
||||
L MCU_Microchip_ATtiny:ATtiny85-20SU U1
|
||||
U 1 1 5C2BB273
|
||||
P 5850 3800
|
||||
F 0 "U1" H 5320 3846 50 0000 R CNN
|
||||
F 1 "ATtiny85" H 5320 3755 50 0000 R CNN
|
||||
F 2 "Housings_SOIC:SOIJ-8_5.3x5.3mm_Pitch1.27mm" H 5850 3800 50 0001 C CIN
|
||||
F 3 "http://ww1.microchip.com/downloads/en/DeviceDoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf" H 5850 3800 50 0001 C CNN
|
||||
1 5850 3800
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L Device:C C1
|
||||
U 1 1 5C2C52A2
|
||||
P 4450 3800
|
||||
F 0 "C1" H 4565 3846 50 0000 L CNN
|
||||
F 1 "100nF" H 4565 3755 50 0000 L CNN
|
||||
F 2 "Capacitors_SMD:C_1206" H 4488 3650 50 0001 C CNN
|
||||
F 3 "~" H 4450 3800 50 0001 C CNN
|
||||
1 4450 3800
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
5850 3200 5850 3050
|
||||
Wire Wire Line
|
||||
5850 3050 4450 3050
|
||||
Wire Wire Line
|
||||
4450 3050 4450 3650
|
||||
Wire Wire Line
|
||||
5850 4400 5850 4500
|
||||
Wire Wire Line
|
||||
5850 4500 4450 4500
|
||||
Wire Wire Line
|
||||
4450 4500 4450 3950
|
||||
$Comp
|
||||
L Device:R R1
|
||||
U 1 1 5C2C5686
|
||||
P 6650 4250
|
||||
F 0 "R1" H 6580 4204 50 0000 R CNN
|
||||
F 1 "10k" H 6580 4295 50 0000 R CNN
|
||||
F 2 "Resistors_SMD:R_0603" V 6580 4250 50 0001 C CNN
|
||||
F 3 "~" H 6650 4250 50 0001 C CNN
|
||||
1 6650 4250
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+5V #PWR05
|
||||
U 1 1 5C2C5834
|
||||
P 6650 4550
|
||||
F 0 "#PWR05" H 6650 4400 50 0001 C CNN
|
||||
F 1 "+5V" H 6665 4723 50 0000 C CNN
|
||||
F 2 "" H 6650 4550 50 0001 C CNN
|
||||
F 3 "" H 6650 4550 50 0001 C CNN
|
||||
1 6650 4550
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
6450 4000 6650 4000
|
||||
Wire Wire Line
|
||||
6650 4000 6650 4100
|
||||
Wire Wire Line
|
||||
6650 4400 6650 4550
|
||||
$Comp
|
||||
L Device:R_POT RV2
|
||||
U 1 1 5C2C5A17
|
||||
P 7400 3900
|
||||
F 0 "RV2" H 7331 3854 50 0000 R CNN
|
||||
F 1 "10k" H 7331 3945 50 0000 R CNN
|
||||
F 2 "Potentiometers:Potentiometer_Triwood_RM-065" H 7400 3900 50 0001 C CNN
|
||||
F 3 "~" H 7400 3900 50 0001 C CNN
|
||||
1 7400 3900
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
$Comp
|
||||
L Device:R_POT RV1
|
||||
U 1 1 5C2C5AE5
|
||||
P 7850 3400
|
||||
F 0 "RV1" H 7781 3354 50 0000 R CNN
|
||||
F 1 "10k" H 7781 3445 50 0000 R CNN
|
||||
F 2 "Potentiometers:Potentiometer_Triwood_RM-065" H 7850 3400 50 0001 C CNN
|
||||
F 3 "~" H 7850 3400 50 0001 C CNN
|
||||
1 7850 3400
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
$Comp
|
||||
L Switch:SW_SPST SW1
|
||||
U 1 1 5C2C5D71
|
||||
P 7200 3150
|
||||
F 0 "SW1" H 7200 3385 50 0000 C CNN
|
||||
F 1 "SW_SPST" H 7200 3294 50 0000 C CNN
|
||||
F 2 "Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm" H 7200 3150 50 0001 C CNN
|
||||
F 3 "" H 7200 3150 50 0001 C CNN
|
||||
1 7200 3150
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+5V #PWR04
|
||||
U 1 1 5C2C60DC
|
||||
P 5850 2900
|
||||
F 0 "#PWR04" H 5850 2750 50 0001 C CNN
|
||||
F 1 "+5V" H 5865 3073 50 0000 C CNN
|
||||
F 2 "" H 5850 2900 50 0001 C CNN
|
||||
F 3 "" H 5850 2900 50 0001 C CNN
|
||||
1 5850 2900
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
5850 2900 5850 3050
|
||||
Connection ~ 5850 3050
|
||||
$Comp
|
||||
L power:GND #PWR06
|
||||
U 1 1 5C2C61DC
|
||||
P 5850 4650
|
||||
F 0 "#PWR06" H 5850 4400 50 0001 C CNN
|
||||
F 1 "GND" H 5855 4477 50 0000 C CNN
|
||||
F 2 "" H 5850 4650 50 0001 C CNN
|
||||
F 3 "" H 5850 4650 50 0001 C CNN
|
||||
1 5850 4650
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
5850 4500 5850 4650
|
||||
Connection ~ 5850 4500
|
||||
$Comp
|
||||
L power:+5V #PWR010
|
||||
U 1 1 5C2C8DBC
|
||||
P 7400 3700
|
||||
F 0 "#PWR010" H 7400 3550 50 0001 C CNN
|
||||
F 1 "+5V" H 7415 3873 50 0000 C CNN
|
||||
F 2 "" H 7400 3700 50 0001 C CNN
|
||||
F 3 "" H 7400 3700 50 0001 C CNN
|
||||
1 7400 3700
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+5V #PWR08
|
||||
U 1 1 5C2C8DE7
|
||||
P 7850 3200
|
||||
F 0 "#PWR08" H 7850 3050 50 0001 C CNN
|
||||
F 1 "+5V" H 7865 3373 50 0000 C CNN
|
||||
F 2 "" H 7850 3200 50 0001 C CNN
|
||||
F 3 "" H 7850 3200 50 0001 C CNN
|
||||
1 7850 3200
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GND #PWR011
|
||||
U 1 1 5C2C8E02
|
||||
P 7400 4100
|
||||
F 0 "#PWR011" H 7400 3850 50 0001 C CNN
|
||||
F 1 "GND" H 7405 3927 50 0000 C CNN
|
||||
F 2 "" H 7400 4100 50 0001 C CNN
|
||||
F 3 "" H 7400 4100 50 0001 C CNN
|
||||
1 7400 4100
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GND #PWR09
|
||||
U 1 1 5C2C8E1D
|
||||
P 7850 3600
|
||||
F 0 "#PWR09" H 7850 3350 50 0001 C CNN
|
||||
F 1 "GND" H 7855 3427 50 0000 C CNN
|
||||
F 2 "" H 7850 3600 50 0001 C CNN
|
||||
F 3 "" H 7850 3600 50 0001 C CNN
|
||||
1 7850 3600
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
7400 4050 7400 4100
|
||||
Wire Wire Line
|
||||
7400 3750 7400 3700
|
||||
Wire Wire Line
|
||||
7850 3200 7850 3250
|
||||
Wire Wire Line
|
||||
7850 3550 7850 3600
|
||||
Wire Wire Line
|
||||
7700 3400 7000 3400
|
||||
Wire Wire Line
|
||||
7000 3400 7000 3700
|
||||
Wire Wire Line
|
||||
7000 3700 6450 3700
|
||||
Wire Wire Line
|
||||
7250 3900 6450 3900
|
||||
Wire Wire Line
|
||||
7000 3150 6850 3150
|
||||
Wire Wire Line
|
||||
6850 3150 6850 3600
|
||||
Wire Wire Line
|
||||
6850 3600 6450 3600
|
||||
$Comp
|
||||
L power:GND #PWR07
|
||||
U 1 1 5C2CAB2A
|
||||
P 7450 3150
|
||||
F 0 "#PWR07" H 7450 2900 50 0001 C CNN
|
||||
F 1 "GND" H 7455 2977 50 0000 C CNN
|
||||
F 2 "" H 7450 3150 50 0001 C CNN
|
||||
F 3 "" H 7450 3150 50 0001 C CNN
|
||||
1 7450 3150
|
||||
0 -1 -1 0
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
7400 3150 7450 3150
|
||||
Wire Wire Line
|
||||
6450 3500 6750 3500
|
||||
Wire Wire Line
|
||||
6750 3500 6750 2750
|
||||
Wire Wire Line
|
||||
6750 2750 7000 2750
|
||||
$Comp
|
||||
L Connector:Conn_01x03_Male J1
|
||||
U 1 1 5C2CB61A
|
||||
P 7200 2650
|
||||
F 0 "J1" H 7172 2673 50 0000 R CNN
|
||||
F 1 "Servo" H 7172 2582 50 0000 R CNN
|
||||
F 2 "Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm" H 7200 2650 50 0001 C CNN
|
||||
F 3 "~" H 7200 2650 50 0001 C CNN
|
||||
1 7200 2650
|
||||
-1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L Connector:Conn_01x02_Male J2
|
||||
U 1 1 5C2CC12F
|
||||
P 7200 1850
|
||||
F 0 "J2" H 7172 1823 50 0000 R CNN
|
||||
F 1 "Power" H 7172 1732 50 0000 R CNN
|
||||
F 2 "Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm" H 7200 1850 50 0001 C CNN
|
||||
F 3 "~" H 7200 1850 50 0001 C CNN
|
||||
1 7200 1850
|
||||
-1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+5V #PWR018
|
||||
U 1 1 5C2CCBF6
|
||||
P 6650 2650
|
||||
F 0 "#PWR018" H 6650 2500 50 0001 C CNN
|
||||
F 1 "+5V" H 6665 2823 50 0000 C CNN
|
||||
F 2 "" H 6650 2650 50 0001 C CNN
|
||||
F 3 "" H 6650 2650 50 0001 C CNN
|
||||
1 6650 2650
|
||||
0 -1 -1 0
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GND #PWR017
|
||||
U 1 1 5C2CCC29
|
||||
P 6900 2550
|
||||
F 0 "#PWR017" H 6900 2300 50 0001 C CNN
|
||||
F 1 "GND" H 6905 2377 50 0000 C CNN
|
||||
F 2 "" H 6900 2550 50 0001 C CNN
|
||||
F 3 "" H 6900 2550 50 0001 C CNN
|
||||
1 6900 2550
|
||||
0 1 1 0
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
6900 2550 7000 2550
|
||||
Wire Wire Line
|
||||
7000 2650 6650 2650
|
||||
$Comp
|
||||
L power:GND #PWR014
|
||||
U 1 1 5C2CD426
|
||||
P 7000 1850
|
||||
F 0 "#PWR014" H 7000 1600 50 0001 C CNN
|
||||
F 1 "GND" H 7005 1677 50 0000 C CNN
|
||||
F 2 "" H 7000 1850 50 0001 C CNN
|
||||
F 3 "" H 7000 1850 50 0001 C CNN
|
||||
1 7000 1850
|
||||
0 1 1 0
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+12V #PWR015
|
||||
U 1 1 5C2CD4CB
|
||||
P 6650 1950
|
||||
F 0 "#PWR015" H 6650 1800 50 0001 C CNN
|
||||
F 1 "+12V" H 6665 2123 50 0000 C CNN
|
||||
F 2 "" H 6650 1950 50 0001 C CNN
|
||||
F 3 "" H 6650 1950 50 0001 C CNN
|
||||
1 6650 1950
|
||||
0 -1 -1 0
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
6650 1950 7000 1950
|
||||
$Comp
|
||||
L Regulator_Linear:L7805 U2
|
||||
U 1 1 5C2CDA60
|
||||
P 5350 1800
|
||||
F 0 "U2" H 5350 2042 50 0000 C CNN
|
||||
F 1 "L7805" H 5350 1951 50 0000 C CNN
|
||||
F 2 "TO_SOT_Packages_THT:TO-220-3_Horizontal" H 5375 1650 50 0001 L CIN
|
||||
F 3 "http://www.st.com/content/ccc/resource/technical/document/datasheet/41/4f/b3/b0/12/d4/47/88/CD00000444.pdf/files/CD00000444.pdf/jcr:content/translations/en.CD00000444.pdf" H 5350 1750 50 0001 C CNN
|
||||
1 5350 1800
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+12V #PWR012
|
||||
U 1 1 5C2CDF5F
|
||||
P 5000 1800
|
||||
F 0 "#PWR012" H 5000 1650 50 0001 C CNN
|
||||
F 1 "+12V" H 5015 1973 50 0000 C CNN
|
||||
F 2 "" H 5000 1800 50 0001 C CNN
|
||||
F 3 "" H 5000 1800 50 0001 C CNN
|
||||
1 5000 1800
|
||||
0 -1 -1 0
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
5000 1800 5050 1800
|
||||
$Comp
|
||||
L power:GND #PWR016
|
||||
U 1 1 5C2CE36A
|
||||
P 5350 2150
|
||||
F 0 "#PWR016" H 5350 1900 50 0001 C CNN
|
||||
F 1 "GND" H 5355 1977 50 0000 C CNN
|
||||
F 2 "" H 5350 2150 50 0001 C CNN
|
||||
F 3 "" H 5350 2150 50 0001 C CNN
|
||||
1 5350 2150
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+5V #PWR013
|
||||
U 1 1 5C2CE3A2
|
||||
P 5700 1800
|
||||
F 0 "#PWR013" H 5700 1650 50 0001 C CNN
|
||||
F 1 "+5V" H 5715 1973 50 0000 C CNN
|
||||
F 2 "" H 5700 1800 50 0001 C CNN
|
||||
F 3 "" H 5700 1800 50 0001 C CNN
|
||||
1 5700 1800
|
||||
0 1 1 0
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
5650 1800 5700 1800
|
||||
Wire Wire Line
|
||||
5350 2100 5350 2150
|
||||
NoConn ~ 6450 3800
|
||||
$EndSCHEMATC
|
|
@ -0,0 +1,56 @@
|
|||
(module TO_SOT_Packages_THT:TO-220-3_Horizontal_Reversed (layer F.Cu) (tedit 5C2BB86F)
|
||||
(descr "TO-220-3, Horizontal, RM 2.54mm")
|
||||
(tags "TO-220-3 Horizontal RM 2.54mm")
|
||||
(fp_text reference U2 (at 2.54 20.58) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value L7805 (at 2.54 -1.9) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text user %R (at 2.54 20.58) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -2.46 13.06) (end -2.46 19.46) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -2.46 19.46) (end 7.54 19.46) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 7.54 19.46) (end 7.54 13.06) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 7.54 13.06) (end -2.46 13.06) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -2.46 3.81) (end -2.46 13.06) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -2.46 13.06) (end 7.54 13.06) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 7.54 13.06) (end 7.54 3.81) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 7.54 3.81) (end -2.46 3.81) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 0 3.81) (end 0 0) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 2.54 3.81) (end 2.54 0) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start 5.08 3.81) (end 5.08 0) (layer F.Fab) (width 0.1))
|
||||
(fp_line (start -2.58 3.69) (end 7.66 3.69) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 13.18) (end 7.66 13.18) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 3.69) (end -2.58 13.18) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 7.66 3.69) (end 7.66 13.18) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 19.58) (end -1.38 19.58) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -0.181 19.58) (end 1.02 19.58) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 2.22 19.58) (end 3.42 19.58) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 4.62 19.58) (end 5.82 19.58) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 7.02 19.58) (end 7.66 19.58) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 13.42) (end -2.58 14.62) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 15.82) (end -2.58 17.02) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -2.58 18.22) (end -2.58 19.42) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 7.66 13.42) (end 7.66 14.62) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 7.66 15.82) (end 7.66 17.02) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 7.66 18.22) (end 7.66 19.42) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 0 1.05) (end 0 3.69) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 2.54 1.066) (end 2.54 3.69) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start 5.08 1.066) (end 5.08 3.69) (layer F.SilkS) (width 0.12))
|
||||
(fp_line (start -2.71 -1.15) (end -2.71 19.71) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -2.71 19.71) (end 7.79 19.71) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 7.79 19.71) (end 7.79 -1.15) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 7.79 -1.15) (end -2.71 -1.15) (layer F.CrtYd) (width 0.05))
|
||||
(fp_circle (center 2.54 16.66) (end 4.39 16.66) (layer F.Fab) (width 0.1))
|
||||
(pad 0 smd oval (at 2.54 16.66) (size 3.5 3.5) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 1 thru_hole rect (at 0 0) (size 1.8 1.8) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 2 thru_hole oval (at 2.54 0) (size 1.8 1.8) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 3 thru_hole oval (at 5.08 0) (size 1.8 1.8) (drill 1) (layers *.Cu *.Mask))
|
||||
(model ${KISYS3DMOD}/TO_SOT_Packages_THT.3dshapes/TO-220-3_Horizontal_Reversed.wrl
|
||||
(offset (xyz 2.539999961853027 0 0))
|
||||
(scale (xyz 0.393701 0.393701 0.393701))
|
||||
(rotate (xyz 0 0 180))
|
||||
)
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
(fp_lib_table
|
||||
(lib (name custom)(type KiCad)(uri ${KIPRJMOD}/custom.pretty)(options "")(descr ""))
|
||||
)
|
|
@ -0,0 +1,19 @@
|
|||
; PlatformIO Project Configuration File
|
||||
;
|
||||
; Build options: build flags, source filter
|
||||
; Upload options: custom upload port, speed and extra flags
|
||||
; Library options: dependencies, extra library storages
|
||||
; Advanced options: extra scripting
|
||||
;
|
||||
; Please visit documentation for the other options and examples
|
||||
; http://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[platformio]
|
||||
env_default = attiny85
|
||||
|
||||
[env:attiny85]
|
||||
platform = atmelavr
|
||||
framework = arduino
|
||||
board = attiny85
|
||||
board_build.f_cpu = 1000000L
|
||||
upload_protocol = usbtiny
|
|
@ -0,0 +1,269 @@
|
|||
//#define DEBUG
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <avr/sleep.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
#include <SoftwareSerial.h>
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Wiring:
|
||||
|
||||
+---u---+
|
||||
10k R to +5V -| 1 8 |- +5V
|
||||
NC -| 2 7 |- "Off" potentiometer
|
||||
"On" potentiometer -| 3 6 |- On/Off switch (active low)
|
||||
GND -| 4 5 |- Servo PWM signal
|
||||
+-------+
|
||||
*/
|
||||
|
||||
static const uint8_t PinServo = 0;
|
||||
static const uint8_t PinSwitch = 1;
|
||||
static const uint8_t PinOffPosition = A1;
|
||||
static const uint8_t PinOnPosition = A2;
|
||||
|
||||
static const float TransitionTime = 2000;
|
||||
static const uint16_t SleepTime = 10000;
|
||||
|
||||
|
||||
static const uint16_t ServoMinPulse = 544;
|
||||
static const uint16_t ServoMaxPulse = 2400;
|
||||
|
||||
|
||||
|
||||
int offPosition; // 0 - 180 degrees, read from "Off" potentiometer
|
||||
int onPosition; // 0 - 180 degrees, read from "On" potentiometer
|
||||
float speed; // Degrees per millisecond
|
||||
|
||||
|
||||
bool startOn; // If the switch was on when it was last flipped
|
||||
int startPosition; // The position the servo was in when the switch was flipped
|
||||
unsigned long startTime; // The last time the switch was flipped
|
||||
|
||||
bool servoEnabled; // Whether or not pulses should be sent to the servo
|
||||
int servoPosition; // The desired position of the servo
|
||||
unsigned long servoPulseTime; // The last time the servo pulse was sent
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
SoftwareSerial debug(-1,3);
|
||||
#endif
|
||||
|
||||
|
||||
// Forward declarations
|
||||
void pulseServo(unsigned long currentTime);
|
||||
bool updateOnOffPositions();
|
||||
inline int getNewPosition(unsigned long currentTime, int targetPosition) __attribute__((always_inline));
|
||||
void sleepUntilSwitch();
|
||||
|
||||
|
||||
void setup()
|
||||
{
|
||||
#ifdef DEBUG
|
||||
debug.begin(9600);
|
||||
debug.println("RailroadSwitch starting");
|
||||
#endif
|
||||
|
||||
pinMode(PinOffPosition, INPUT);
|
||||
pinMode(PinOnPosition, INPUT);
|
||||
pinMode(PinSwitch, INPUT_PULLUP);
|
||||
pinMode(PinServo, OUTPUT);
|
||||
|
||||
updateOnOffPositions();
|
||||
|
||||
startOn = false;
|
||||
startPosition = offPosition;
|
||||
servoPosition = offPosition;
|
||||
|
||||
servoPulseTime = 0;
|
||||
servoEnabled = true;
|
||||
|
||||
#ifdef DEBUG
|
||||
debug.println("Started");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void loop()
|
||||
{
|
||||
unsigned long currentTime = millis();
|
||||
|
||||
if (servoEnabled)
|
||||
pulseServo(currentTime);
|
||||
|
||||
bool isOn = (digitalRead(PinSwitch) == LOW);
|
||||
|
||||
// If the switch changed, start from the last known position
|
||||
if (isOn != startOn)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
debug.println("State changed");
|
||||
#endif
|
||||
|
||||
startOn = isOn;
|
||||
startPosition = servoPosition;
|
||||
startTime = currentTime;
|
||||
}
|
||||
|
||||
int targetPosition = isOn ? onPosition : offPosition;
|
||||
if (servoPosition != targetPosition)
|
||||
{
|
||||
servoPosition = getNewPosition(currentTime, targetPosition);
|
||||
servoEnabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ensure we pulsed the last position
|
||||
delay(20);
|
||||
pulseServo(millis());
|
||||
delay(20);
|
||||
|
||||
// Stop sending pulses when we reach the destination, to prevent
|
||||
// power consumption and possible buzzing
|
||||
servoEnabled = false;
|
||||
}
|
||||
|
||||
|
||||
if (!servoEnabled)
|
||||
{
|
||||
// Don't update the positions while the servo is moving, as the
|
||||
// voltage drop can cause fluctuating results
|
||||
if (updateOnOffPositions())
|
||||
{
|
||||
// Immediately go to the new position
|
||||
servoPosition = isOn ? onPosition : offPosition;
|
||||
|
||||
delay(20);
|
||||
pulseServo(millis());
|
||||
delay(20);
|
||||
}
|
||||
}
|
||||
|
||||
// Stay awake for a bit to allow changes to the on and off positions
|
||||
// to take effect immediately
|
||||
if (currentTime - startTime >= SleepTime)
|
||||
sleepUntilSwitch();
|
||||
}
|
||||
|
||||
|
||||
void pulseServo(unsigned long currentTime)
|
||||
{
|
||||
if (currentTime - servoPulseTime < 20)
|
||||
return;
|
||||
|
||||
int pulseWidth = map(servoPosition, 0, 180, ServoMinPulse, ServoMaxPulse);
|
||||
|
||||
// This will mess with the millis() result, but for what we're doing
|
||||
// that is acceptable to get a stable pulse.
|
||||
noInterrupts();
|
||||
|
||||
digitalWrite(PinServo, HIGH);
|
||||
delayMicroseconds(pulseWidth);
|
||||
digitalWrite(PinServo, LOW);
|
||||
|
||||
interrupts();
|
||||
|
||||
|
||||
servoPulseTime = currentTime;
|
||||
}
|
||||
|
||||
|
||||
bool updateOnOffPositions()
|
||||
{
|
||||
int newOffPosition = map(analogRead(PinOffPosition), 0, 1023, 0, 180);
|
||||
int newOnPosition = map(analogRead(PinOnPosition), 0, 1023, 0, 180);
|
||||
|
||||
if (newOffPosition != offPosition || newOnPosition != onPosition)
|
||||
{
|
||||
offPosition = newOffPosition;
|
||||
onPosition = newOnPosition;
|
||||
|
||||
speed = abs((float)(onPosition - offPosition)) / TransitionTime;
|
||||
|
||||
#ifdef DEBUG
|
||||
debug.println("Positions changed");
|
||||
debug.print(" Off position: "); debug.println(offPosition);
|
||||
debug.print(" On position : "); debug.println(onPosition);
|
||||
debug.print(" Speed : "); debug.println(speed);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
int getNewPosition(unsigned long currentTime, int targetPosition)
|
||||
{
|
||||
int newPosition;
|
||||
float timePassed = currentTime - startTime;
|
||||
|
||||
if (targetPosition > startPosition)
|
||||
{
|
||||
newPosition = startPosition + (timePassed * speed);
|
||||
if (newPosition > targetPosition)
|
||||
newPosition = targetPosition;
|
||||
}
|
||||
else
|
||||
{
|
||||
newPosition = startPosition - (timePassed * speed);
|
||||
if (newPosition < targetPosition)
|
||||
newPosition = targetPosition;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
debug.println("getNewPosition");
|
||||
debug.print(" Time passed : "); debug.println(timePassed);
|
||||
debug.print(" Start position : "); debug.println(startPosition);
|
||||
debug.print(" Target position: "); debug.println(targetPosition);
|
||||
debug.print(" New position : "); debug.println(newPosition);
|
||||
#endif
|
||||
|
||||
return newPosition;
|
||||
}
|
||||
|
||||
|
||||
void sleepStart()
|
||||
{
|
||||
// Turn ADC off
|
||||
ADCSRA &= ~_BV(ADEN);
|
||||
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
|
||||
|
||||
// Set sleep bit and halt the CPU
|
||||
sleep_enable();
|
||||
sei();
|
||||
sleep_cpu();
|
||||
|
||||
// ...goooood morning!
|
||||
cli();
|
||||
}
|
||||
|
||||
|
||||
void sleepEnd()
|
||||
{
|
||||
sleep_disable();
|
||||
ADCSRA |= _BV(ADEN);
|
||||
|
||||
sei();
|
||||
}
|
||||
|
||||
|
||||
void sleepUntilSwitch()
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
// Enable pin change interrupts
|
||||
GIMSK |= _BV(PCIE);
|
||||
|
||||
// Set up pin change mask
|
||||
PCMSK = digitalPinToBitMask(PinSwitch);
|
||||
|
||||
sleepStart();
|
||||
PCMSK = 0;
|
||||
sleepEnd();
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
& platformio run --target upload
|
Loading…
Reference in New Issue