Initial commit

This commit is contained in:
Mark van Renswoude 2020-01-11 12:13:43 +01:00
commit e6d3ad9e78
14 changed files with 2490 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.kicad_pcb-bak

Binary file not shown.

31
doc/Requirements.txt Normal file
View File

@ -0,0 +1,31 @@
3 buttons, 2 presets
Screen turns off after 30 seconds
1) Menu
2) Preset 1
3) Preset 2
Pressing the preset buttons while the screen is off turns it on and immediately performs the action.
Pressing the menu button will only turn on the screen if it is off.
Menu:
1) Enter
2) Previous / up
3) Next / down
- Exit: return to main screen showing the presets
- Change preset: shows a screen with the current height. left and right buttons change the height, middle button stores the new setting.
- Calibrate: shows a wizard with the following screens:
- Manual control to go to minimum. Same controls as the change preset, middle button goes to the next "page".
- Specify current height in meters.
- Go to maximum.
- Specify current height in meters.
All presets are checked to be within bounds.
Settings are stored in EEPROM, as is the current height as soon as it's done moving to the height.
Height is internally stored as number of pulses from the motor's encoder, counting from the minimum setting.
While it is moving, any button press will cancel movement and no preset is highlighted as being active.

216
pcb/DeskControl-cache.lib Normal file
View File

@ -0,0 +1,216 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# Connector_Generic_Conn_01x04
#
DEF Connector_Generic_Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Connector_Generic_Conn_01x04" 0 -300 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 -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Connector_Generic_Conn_02x03_Odd_Even
#
DEF Connector_Generic_Conn_02x03_Odd_Even J 0 40 Y N 1 F N
F0 "J" 50 200 50 H V C CNN
F1 "Connector_Generic_Conn_02x03_Odd_Even" 50 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_2x??_*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 150 -150 1 1 10 f
S 150 -95 100 -105 1 1 6 N
S 150 5 100 -5 1 1 6 N
S 150 105 100 95 1 1 6 N
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 300 100 150 L 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 300 0 150 L 50 50 1 1 P
X Pin_5 5 -200 -100 150 R 50 50 1 1 P
X Pin_6 6 300 -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_Crystal
#
DEF Device_Crystal Y 0 40 N N 1 F N
F0 "Y" 0 150 50 H V C CNN
F1 "Device_Crystal" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Crystal*
$ENDFPLIST
DRAW
S -45 100 45 -100 0 1 12 N
P 2 0 1 0 -100 0 -75 0 N
P 2 0 1 20 -75 -50 -75 50 N
P 2 0 1 20 75 -50 75 50 N
P 2 0 1 0 100 0 75 0 N
X 1 1 -150 0 50 R 50 50 1 1 P
X 2 2 150 0 50 L 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
#
# MCU_Microchip_ATmega_ATmega328-AU
#
DEF MCU_Microchip_ATmega_ATmega328-AU U 0 20 Y Y 1 F N
F0 "U" -500 1450 50 H V L BNN
F1 "MCU_Microchip_ATmega_ATmega328-AU" 100 -1450 50 H V L TNN
F2 "Package_QFP:TQFP-32_7x7mm_P0.8mm" 0 0 50 H I C CIN
F3 "" 0 0 50 H I C CNN
ALIAS ATmega48PA-AU ATmega88A-AU ATmega88PA-AU ATmega168A-AU ATmega168PA-AU ATmega328-AU ATmega328P-AU
$FPLIST
TQFP*7x7mm*P0.8mm*
$ENDFPLIST
DRAW
S -500 -1400 500 1400 0 1 10 f
X PD3 1 600 -800 100 L 50 50 1 1 T
X PD6 10 600 -1100 100 L 50 50 1 1 T
X PD7 11 600 -1200 100 L 50 50 1 1 T
X PB0 12 600 1200 100 L 50 50 1 1 T
X PB1 13 600 1100 100 L 50 50 1 1 T
X PB2 14 600 1000 100 L 50 50 1 1 T
X PB3 15 600 900 100 L 50 50 1 1 T
X PB4 16 600 800 100 L 50 50 1 1 T
X PB5 17 600 700 100 L 50 50 1 1 T
X AVCC 18 100 1500 100 D 50 50 1 1 W
X ADC6 19 -600 1000 100 R 50 50 1 1 I
X PD4 2 600 -900 100 L 50 50 1 1 T
X AREF 20 -600 1200 100 R 50 50 1 1 P
X GND 21 0 -1500 100 U 50 50 1 1 P N
X ADC7 22 -600 900 100 R 50 50 1 1 I
X PC0 23 600 300 100 L 50 50 1 1 T
X PC1 24 600 200 100 L 50 50 1 1 T
X PC2 25 600 100 100 L 50 50 1 1 T
X PC3 26 600 0 100 L 50 50 1 1 T
X PC4 27 600 -100 100 L 50 50 1 1 T
X PC5 28 600 -200 100 L 50 50 1 1 T
X ~RESET~/PC6 29 600 -300 100 L 50 50 1 1 T
X GND 3 0 -1500 100 U 50 50 1 1 W
X PD0 30 600 -500 100 L 50 50 1 1 T
X PD1 31 600 -600 100 L 50 50 1 1 T
X PD2 32 600 -700 100 L 50 50 1 1 T
X VCC 4 0 1500 100 D 50 50 1 1 W
X GND 5 0 -1500 100 U 50 50 1 1 P N
X VCC 6 0 1500 100 D 50 50 1 1 P N
X XTAL1/PB6 7 600 600 100 L 50 50 1 1 T
X XTAL2/PB7 8 600 500 100 L 50 50 1 1 T
X PD5 9 600 -1000 100 L 50 50 1 1 T
ENDDRAW
ENDDEF
#
# Switch_SW_Push
#
DEF Switch_SW_Push SW 0 40 N N 1 F N
F0 "SW" 50 100 50 H V L CNN
F1 "Switch_SW_Push" 0 -60 50 H V C CNN
F2 "" 0 200 50 H I C CNN
F3 "" 0 200 50 H I C CNN
DRAW
C -80 0 20 0 1 0 N
C 80 0 20 0 1 0 N
P 2 0 1 0 0 50 0 120 N
P 2 0 1 0 100 50 -100 50 N
X 1 1 -200 0 100 R 50 50 0 1 P
X 2 2 200 0 100 L 50 50 0 1 P
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

494
pcb/DeskControl.bak Normal file
View File

@ -0,0 +1,494 @@
EESchema Schematic File Version 4
EELAYER 26 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L MCU_Microchip_ATmega:ATmega328-AU U1
U 1 1 5D753A97
P 5100 3400
F 0 "U1" H 4200 2050 50 0000 C CNN
F 1 "ATmega328-AU" H 4200 2150 50 0000 C CNN
F 2 "Package_QFP:TQFP-32_7x7mm_P0.8mm" H 5100 3400 50 0001 C CIN
F 3 "http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega328_P%20AVR%20MCU%20with%20picoPower%20Technology%20Data%20Sheet%2040001984A.pdf" H 5100 3400 50 0001 C CNN
1 5100 3400
1 0 0 -1
$EndComp
$Comp
L Connector_Generic:Conn_01x04 J2
U 1 1 5D753B7C
P 9400 2250
F 0 "J2" H 9479 2242 50 0000 L CNN
F 1 "SSD1306" H 9479 2151 50 0000 L CNN
F 2 "Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm" H 9400 2250 50 0001 C CNN
F 3 "~" H 9400 2250 50 0001 C CNN
1 9400 2250
1 0 0 -1
$EndComp
$Comp
L Connector_Generic:Conn_02x03_Odd_Even J1
U 1 1 5D753DE7
P 9350 3100
F 0 "J1" H 9400 3417 50 0000 C CNN
F 1 "PROG" H 9400 3326 50 0000 C CNN
F 2 "Pin_Headers:Pin_Header_Straight_2x03_Pitch2.54mm" H 9350 3100 50 0001 C CNN
F 3 "~" H 9350 3100 50 0001 C CNN
1 9350 3100
1 0 0 -1
$EndComp
Text GLabel 9150 3000 0 50 Input ~ 0
MISO
Text GLabel 9150 3100 0 50 Input ~ 0
SCK
Text GLabel 9150 3200 0 50 Input ~ 0
RST
Text GLabel 9650 3100 2 50 Input ~ 0
MOSI
$Comp
L power:+5V #PWR08
U 1 1 5D753EAE
P 9750 3000
F 0 "#PWR08" H 9750 2850 50 0001 C CNN
F 1 "+5V" H 9765 3173 50 0000 C CNN
F 2 "" H 9750 3000 50 0001 C CNN
F 3 "" H 9750 3000 50 0001 C CNN
1 9750 3000
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR09
U 1 1 5D753EEB
P 9750 3200
F 0 "#PWR09" H 9750 2950 50 0001 C CNN
F 1 "GND" H 9755 3027 50 0000 C CNN
F 2 "" H 9750 3200 50 0001 C CNN
F 3 "" H 9750 3200 50 0001 C CNN
1 9750 3200
1 0 0 -1
$EndComp
Wire Wire Line
9650 3000 9750 3000
Wire Wire Line
9650 3200 9750 3200
$Comp
L power:+5V #PWR04
U 1 1 5D753F2B
P 8900 2350
F 0 "#PWR04" H 8900 2200 50 0001 C CNN
F 1 "+5V" H 8915 2523 50 0000 C CNN
F 2 "" H 8900 2350 50 0001 C CNN
F 3 "" H 8900 2350 50 0001 C CNN
1 8900 2350
-1 0 0 1
$EndComp
$Comp
L power:GND #PWR06
U 1 1 5D753F42
P 9100 2450
F 0 "#PWR06" H 9100 2200 50 0001 C CNN
F 1 "GND" H 9105 2277 50 0000 C CNN
F 2 "" H 9100 2450 50 0001 C CNN
F 3 "" H 9100 2450 50 0001 C CNN
1 9100 2450
1 0 0 -1
$EndComp
Wire Wire Line
9100 2450 9200 2450
Wire Wire Line
9200 2350 8900 2350
Text GLabel 9200 2150 0 50 Input ~ 0
SDA
Text GLabel 9200 2250 0 50 Input ~ 0
SCL
$Comp
L power:+5V #PWR01
U 1 1 5D7540FC
P 900 900
F 0 "#PWR01" H 900 750 50 0001 C CNN
F 1 "+5V" H 915 1073 50 0000 C CNN
F 2 "" H 900 900 50 0001 C CNN
F 3 "" H 900 900 50 0001 C CNN
1 900 900
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR03
U 1 1 5D754134
P 900 1450
F 0 "#PWR03" H 900 1200 50 0001 C CNN
F 1 "GND" H 905 1277 50 0000 C CNN
F 2 "" H 900 1450 50 0001 C CNN
F 3 "" H 900 1450 50 0001 C CNN
1 900 1450
1 0 0 -1
$EndComp
$Comp
L power:PWR_FLAG #FLG02
U 1 1 5D754186
P 900 1450
F 0 "#FLG02" H 900 1525 50 0001 C CNN
F 1 "PWR_FLAG" H 900 1624 50 0000 C CNN
F 2 "" H 900 1450 50 0001 C CNN
F 3 "~" H 900 1450 50 0001 C CNN
1 900 1450
1 0 0 -1
$EndComp
$Comp
L power:PWR_FLAG #FLG01
U 1 1 5D7541A4
P 900 900
F 0 "#FLG01" H 900 975 50 0001 C CNN
F 1 "PWR_FLAG" H 900 1073 50 0000 C CNN
F 2 "" H 900 900 50 0001 C CNN
F 3 "~" H 900 900 50 0001 C CNN
1 900 900
-1 0 0 1
$EndComp
$Comp
L Device:C C3
U 1 1 5D754323
P 3900 2350
F 0 "C3" H 3785 2304 50 0000 R CNN
F 1 "100nF" H 3785 2395 50 0000 R CNN
F 2 "Capacitors_SMD:C_1206" H 3938 2200 50 0001 C CNN
F 3 "~" H 3900 2350 50 0001 C CNN
1 3900 2350
-1 0 0 1
$EndComp
$Comp
L power:GND #PWR07
U 1 1 5D75441A
P 3350 2750
F 0 "#PWR07" H 3350 2500 50 0001 C CNN
F 1 "GND" H 3355 2577 50 0000 C CNN
F 2 "" H 3350 2750 50 0001 C CNN
F 3 "" H 3350 2750 50 0001 C CNN
1 3350 2750
1 0 0 -1
$EndComp
$Comp
L Device:C C2
U 1 1 5D7545D2
P 3350 2350
F 0 "C2" H 3235 2304 50 0000 R CNN
F 1 "100nF" H 3235 2395 50 0000 R CNN
F 2 "Capacitors_SMD:C_1206" H 3388 2200 50 0001 C CNN
F 3 "~" H 3350 2350 50 0001 C CNN
1 3350 2350
-1 0 0 1
$EndComp
$Comp
L Device:C C1
U 1 1 5D75463E
P 2800 2350
F 0 "C1" H 2685 2304 50 0000 R CNN
F 1 "10uF" H 2685 2395 50 0000 R CNN
F 2 "Capacitors_Tantalum_SMD:CP_Tantalum_Case-D_EIA-7343-31_Reflow" H 2838 2200 50 0001 C CNN
F 3 "~" H 2800 2350 50 0001 C CNN
1 2800 2350
-1 0 0 1
$EndComp
Wire Wire Line
2800 2200 3100 2200
Wire Wire Line
3900 2200 4500 2200
$Comp
L power:+5V #PWR02
U 1 1 5D754E27
P 3100 1400
F 0 "#PWR02" H 3100 1250 50 0001 C CNN
F 1 "+5V" H 3115 1573 50 0000 C CNN
F 2 "" H 3100 1400 50 0001 C CNN
F 3 "" H 3100 1400 50 0001 C CNN
1 3100 1400
1 0 0 -1
$EndComp
Connection ~ 3100 2200
Wire Wire Line
3100 2200 3350 2200
Wire Wire Line
5200 1900 5200 1750
Wire Wire Line
5200 1750 5100 1750
Wire Wire Line
5100 1750 5100 1900
Wire Wire Line
5100 1750 3100 1750
Connection ~ 5100 1750
Wire Wire Line
3900 2500 3900 2650
Wire Wire Line
3900 2650 3350 2650
Wire Wire Line
3350 2650 3350 2750
Wire Wire Line
3350 2500 3350 2650
Connection ~ 3350 2650
Wire Wire Line
2800 2500 2800 2650
Wire Wire Line
2800 2650 3350 2650
NoConn ~ 4500 2400
NoConn ~ 4500 2500
Wire Wire Line
3100 1400 3100 1750
Connection ~ 3100 1750
Wire Wire Line
3100 1750 3100 2200
$Comp
L Device:C C4
U 1 1 5D75696A
P 6800 2700
F 0 "C4" V 7052 2700 50 0000 C CNN
F 1 "33pF" V 6961 2700 50 0000 C CNN
F 2 "Capacitors_SMD:C_1206" H 6838 2550 50 0001 C CNN
F 3 "~" H 6800 2700 50 0001 C CNN
1 6800 2700
0 -1 -1 0
$EndComp
$Comp
L Device:C C5
U 1 1 5D756A0E
P 6800 3150
F 0 "C5" V 7052 3150 50 0000 C CNN
F 1 "33pF" V 6961 3150 50 0000 C CNN
F 2 "Capacitors_SMD:C_1206" H 6838 3000 50 0001 C CNN
F 3 "~" H 6800 3150 50 0001 C CNN
1 6800 3150
0 -1 -1 0
$EndComp
$Comp
L power:GND #PWR010
U 1 1 5D756A8A
P 7100 3300
F 0 "#PWR010" H 7100 3050 50 0001 C CNN
F 1 "GND" H 7105 3127 50 0000 C CNN
F 2 "" H 7100 3300 50 0001 C CNN
F 3 "" H 7100 3300 50 0001 C CNN
1 7100 3300
1 0 0 -1
$EndComp
Wire Wire Line
6950 3150 7100 3150
Wire Wire Line
7100 3150 7100 3300
Wire Wire Line
6950 2700 7100 2700
Wire Wire Line
7100 2700 7100 3150
Connection ~ 7100 3150
$Comp
L Device:Crystal XTAL1
U 1 1 5D756FAB
P 6500 2950
F 0 "XTAL1" V 6550 3300 50 0000 R CNN
F 1 "16 Mhz" V 6450 3350 50 0000 R CNN
F 2 "Crystals:Crystal_HC49-U_Vertical" H 6500 2950 50 0001 C CNN
F 3 "~" H 6500 2950 50 0001 C CNN
1 6500 2950
0 -1 -1 0
$EndComp
Wire Wire Line
6500 2800 6500 2700
Wire Wire Line
6500 2700 6650 2700
Wire Wire Line
6500 3100 6500 3150
Wire Wire Line
6500 3150 6650 3150
Wire Wire Line
5700 2800 6050 2800
Wire Wire Line
6050 2800 6050 2700
Wire Wire Line
6050 2700 6500 2700
Connection ~ 6500 2700
Wire Wire Line
5700 2900 6050 2900
Wire Wire Line
6050 2900 6050 3150
Wire Wire Line
6050 3150 6500 3150
Connection ~ 6500 3150
Text GLabel 5700 3500 2 50 Input ~ 0
SDA
Text GLabel 5700 3600 2 50 Input ~ 0
SCL
Text GLabel 5700 2500 2 50 Input ~ 0
MOSI
Text GLabel 5700 2600 2 50 Input ~ 0
MISO
Text GLabel 5700 2700 2 50 Input ~ 0
SCK
$Comp
L Device:R R1
U 1 1 5D758534
P 6250 3550
F 0 "R1" H 6320 3596 50 0000 L CNN
F 1 "10k" H 6320 3505 50 0000 L CNN
F 2 "Resistors_SMD:R_0603" V 6180 3550 50 0001 C CNN
F 3 "~" H 6250 3550 50 0001 C CNN
1 6250 3550
1 0 0 -1
$EndComp
$Comp
L power:+5V #PWR011
U 1 1 5D7585CC
P 6250 3400
F 0 "#PWR011" H 6250 3250 50 0001 C CNN
F 1 "+5V" H 6265 3573 50 0000 C CNN
F 2 "" H 6250 3400 50 0001 C CNN
F 3 "" H 6250 3400 50 0001 C CNN
1 6250 3400
1 0 0 -1
$EndComp
Wire Wire Line
5700 3700 6250 3700
Text GLabel 6450 3700 2 50 Input ~ 0
RST
Wire Wire Line
6250 3700 6450 3700
Connection ~ 6250 3700
$Comp
L power:GND #PWR012
U 1 1 5D75920D
P 5100 4900
F 0 "#PWR012" H 5100 4650 50 0001 C CNN
F 1 "GND" H 5105 4727 50 0000 C CNN
F 2 "" H 5100 4900 50 0001 C CNN
F 3 "" H 5100 4900 50 0001 C CNN
1 5100 4900
1 0 0 -1
$EndComp
$Comp
L Switch:SW_Push SW1
U 1 1 5D759C24
P 6250 1600
F 0 "SW1" H 6250 1885 50 0000 C CNN
F 1 "SW_Push" H 6250 1794 50 0000 C CNN
F 2 "SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM" H 6250 1800 50 0001 C CNN
F 3 "" H 6250 1800 50 0001 C CNN
1 6250 1600
1 0 0 -1
$EndComp
$Comp
L Switch:SW_Push SW2
U 1 1 5D759CB0
P 6250 2000
F 0 "SW2" H 6250 2285 50 0000 C CNN
F 1 "SW_Push" H 6250 2194 50 0000 C CNN
F 2 "SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM" H 6250 2200 50 0001 C CNN
F 3 "" H 6250 2200 50 0001 C CNN
1 6250 2000
1 0 0 -1
$EndComp
$Comp
L Switch:SW_Push SW3
U 1 1 5D759CF0
P 6250 2400
F 0 "SW3" H 6250 2685 50 0000 C CNN
F 1 "SW_Push" H 6250 2594 50 0000 C CNN
F 2 "SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM" H 6250 2600 50 0001 C CNN
F 3 "" H 6250 2600 50 0001 C CNN
1 6250 2400
1 0 0 -1
$EndComp
Wire Wire Line
5700 2200 5800 2200
Wire Wire Line
5800 2200 5800 1600
Wire Wire Line
5800 1600 6050 1600
Wire Wire Line
5700 2300 5850 2300
Wire Wire Line
5850 2300 5850 2000
Wire Wire Line
5850 2000 6050 2000
Wire Wire Line
5700 2400 6050 2400
$Comp
L power:GND #PWR05
U 1 1 5D75B49B
P 6550 2400
F 0 "#PWR05" H 6550 2150 50 0001 C CNN
F 1 "GND" H 6555 2227 50 0000 C CNN
F 2 "" H 6550 2400 50 0001 C CNN
F 3 "" H 6550 2400 50 0001 C CNN
1 6550 2400
1 0 0 -1
$EndComp
Wire Wire Line
6450 2400 6550 2400
Wire Wire Line
6450 2000 6550 2000
Wire Wire Line
6550 2000 6550 2400
Connection ~ 6550 2400
Wire Wire Line
6450 1600 6550 1600
Wire Wire Line
6550 1600 6550 2000
Connection ~ 6550 2000
NoConn ~ 5700 3100
NoConn ~ 5700 3200
NoConn ~ 5700 3300
NoConn ~ 5700 3400
NoConn ~ 5700 4100
NoConn ~ 5700 4200
NoConn ~ 5700 4300
NoConn ~ 5700 4400
NoConn ~ 5700 4500
NoConn ~ 5700 4600
$Comp
L Connector_Generic:Conn_01x04 J?
U 1 1 5D7651C5
P 6500 4000
F 0 "J?" H 6650 4050 50 0000 L CNN
F 1 "L298" H 6580 3951 50 0000 L CNN
F 2 "" H 6500 4000 50 0001 C CNN
F 3 "~" H 6500 4000 50 0001 C CNN
1 6500 4000
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR?
U 1 1 5D765563
P 6150 4200
F 0 "#PWR?" H 6150 3950 50 0001 C CNN
F 1 "GND" H 6155 4027 50 0000 C CNN
F 2 "" H 6150 4200 50 0001 C CNN
F 3 "" H 6150 4200 50 0001 C CNN
1 6150 4200
1 0 0 -1
$EndComp
Wire Wire Line
5700 3900 6300 3900
Wire Wire Line
5700 4000 6300 4000
$Comp
L power:+5V #PWR?
U 1 1 5D767927
P 6000 4100
F 0 "#PWR?" H 6000 3950 50 0001 C CNN
F 1 "+5V" H 6015 4273 50 0000 C CNN
F 2 "" H 6000 4100 50 0001 C CNN
F 3 "" H 6000 4100 50 0001 C CNN
1 6000 4100
-1 0 0 1
$EndComp
Wire Wire Line
6000 4100 6300 4100
Wire Wire Line
6150 4200 6300 4200
$EndSCHEMATC

734
pcb/DeskControl.kicad_pcb Normal file
View File

@ -0,0 +1,734 @@
(kicad_pcb (version 20171130) (host pcbnew "(5.0.1)-3")
(general
(thickness 1.6)
(drawings 0)
(tracks 0)
(zones 0)
(modules 14)
(nets 17)
)
(page A4)
(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.25)
(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 FFFFFF7F)
(pcbplotparams
(layerselection 0x010fc_ffffffff)
(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 false)
(psa4output false)
(plotreference true)
(plotvalue true)
(plotinvisibletext false)
(padsonsilk false)
(subtractmaskfromsilk false)
(outputformat 1)
(mirror false)
(drillshape 1)
(scaleselection 1)
(outputdirectory ""))
)
(net 0 "")
(net 1 +5V)
(net 2 GND)
(net 3 "Net-(C3-Pad2)")
(net 4 "Net-(C4-Pad1)")
(net 5 "Net-(C5-Pad1)")
(net 6 RST)
(net 7 MOSI)
(net 8 SCK)
(net 9 MISO)
(net 10 SCL)
(net 11 SDA)
(net 12 "Net-(J3-Pad1)")
(net 13 "Net-(J3-Pad2)")
(net 14 "Net-(SW1-Pad1)")
(net 15 "Net-(SW2-Pad1)")
(net 16 "Net-(SW3-Pad1)")
(net_class Default "This is the default net class."
(clearance 0.2)
(trace_width 0.25)
(via_dia 0.8)
(via_drill 0.4)
(uvia_dia 0.3)
(uvia_drill 0.1)
(add_net +5V)
(add_net GND)
(add_net MISO)
(add_net MOSI)
(add_net "Net-(C3-Pad2)")
(add_net "Net-(C4-Pad1)")
(add_net "Net-(C5-Pad1)")
(add_net "Net-(J3-Pad1)")
(add_net "Net-(J3-Pad2)")
(add_net "Net-(SW1-Pad1)")
(add_net "Net-(SW2-Pad1)")
(add_net "Net-(SW3-Pad1)")
(add_net RST)
(add_net SCK)
(add_net SCL)
(add_net SDA)
)
(module Capacitors_Tantalum_SMD:CP_Tantalum_Case-D_EIA-7343-31_Reflow (layer F.Cu) (tedit 58CC8C08) (tstamp 5D755080)
(at 108.458 80.01 270)
(descr "Tantalum capacitor, Case D, EIA 7343-31, 7.3x4.3x2.8mm, Reflow soldering footprint")
(tags "capacitor tantalum smd")
(path /5D75463E)
(attr smd)
(fp_text reference C1 (at 0 -3.9 270) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value 10uF (at 0 3.9 270) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -4.75 -2.4) (end -4.75 2.4) (layer F.SilkS) (width 0.12))
(fp_line (start -4.75 2.4) (end 3.65 2.4) (layer F.SilkS) (width 0.12))
(fp_line (start -4.75 -2.4) (end 3.65 -2.4) (layer F.SilkS) (width 0.12))
(fp_line (start -2.555 -2.15) (end -2.555 2.15) (layer F.Fab) (width 0.1))
(fp_line (start -2.92 -2.15) (end -2.92 2.15) (layer F.Fab) (width 0.1))
(fp_line (start 3.65 -2.15) (end -3.65 -2.15) (layer F.Fab) (width 0.1))
(fp_line (start 3.65 2.15) (end 3.65 -2.15) (layer F.Fab) (width 0.1))
(fp_line (start -3.65 2.15) (end 3.65 2.15) (layer F.Fab) (width 0.1))
(fp_line (start -3.65 -2.15) (end -3.65 2.15) (layer F.Fab) (width 0.1))
(fp_line (start 4.85 -2.5) (end -4.85 -2.5) (layer F.CrtYd) (width 0.05))
(fp_line (start 4.85 2.5) (end 4.85 -2.5) (layer F.CrtYd) (width 0.05))
(fp_line (start -4.85 2.5) (end 4.85 2.5) (layer F.CrtYd) (width 0.05))
(fp_line (start -4.85 -2.5) (end -4.85 2.5) (layer F.CrtYd) (width 0.05))
(fp_text user %R (at 0 0 270) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(pad 2 smd rect (at 3.175 0 270) (size 2.55 2.7) (layers F.Cu F.Paste F.Mask)
(net 1 +5V))
(pad 1 smd rect (at -3.175 0 270) (size 2.55 2.7) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(model Capacitors_Tantalum_SMD.3dshapes/CP_Tantalum_Case-D_EIA-7343-31.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module Capacitors_SMD:C_1206 (layer F.Cu) (tedit 58AA84B8) (tstamp 5D755091)
(at 117.094 85.09)
(descr "Capacitor SMD 1206, reflow soldering, AVX (see smccp.pdf)")
(tags "capacitor 1206")
(path /5D7545D2)
(attr smd)
(fp_text reference C2 (at 0 -1.75) (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_text user %R (at 0 -1.75) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(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_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 -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))
(pad 1 smd rect (at -1.5 0) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(pad 2 smd rect (at 1.5 0) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
(net 1 +5V))
(model Capacitors_SMD.3dshapes/C_1206.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module Capacitors_SMD:C_1206 (layer F.Cu) (tedit 58AA84B8) (tstamp 5D7550A2)
(at 125.984 82.55)
(descr "Capacitor SMD 1206, reflow soldering, AVX (see smccp.pdf)")
(tags "capacitor 1206")
(path /5D754323)
(attr smd)
(fp_text reference C3 (at 0 -1.75) (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 3 "Net-(C3-Pad2)"))
(pad 1 smd rect (at -1.5 0) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(model Capacitors_SMD.3dshapes/C_1206.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module Capacitors_SMD:C_1206 (layer F.Cu) (tedit 58AA84B8) (tstamp 5D7550B3)
(at 114.554 88.646 90)
(descr "Capacitor SMD 1206, reflow soldering, AVX (see smccp.pdf)")
(tags "capacitor 1206")
(path /5D75696A)
(attr smd)
(fp_text reference C4 (at 0 -1.75 90) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value 33pF (at 0 2 90) (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 90) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(pad 2 smd rect (at 1.5 0 90) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(pad 1 smd rect (at -1.5 0 90) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
(net 4 "Net-(C4-Pad1)"))
(model Capacitors_SMD.3dshapes/C_1206.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module Capacitors_SMD:C_1206 (layer F.Cu) (tedit 58AA84B8) (tstamp 5D7550C4)
(at 114.554 96.52 270)
(descr "Capacitor SMD 1206, reflow soldering, AVX (see smccp.pdf)")
(tags "capacitor 1206")
(path /5D756A0E)
(attr smd)
(fp_text reference C5 (at 0 -1.75 270) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value 33pF (at 0 2 270) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text user %R (at 0 -1.75 270) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(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_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 -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))
(pad 1 smd rect (at -1.5 0 270) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
(net 5 "Net-(C5-Pad1)"))
(pad 2 smd rect (at 1.5 0 270) (size 1 1.6) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(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_2x03_Pitch2.54mm (layer F.Cu) (tedit 59650532) (tstamp 5D7550E0)
(at 141.224 69.85)
(descr "Through hole straight pin header, 2x03, 2.54mm pitch, double rows")
(tags "Through hole pin header THT 2x03 2.54mm double row")
(path /5D753DE7)
(fp_text reference J1 (at 1.27 -2.33) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value PROG (at 1.27 7.41) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text user %R (at 1.27 2.54 90) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start 4.35 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05))
(fp_line (start 4.35 6.85) (end 4.35 -1.8) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.8 6.85) (end 4.35 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.27 -1.33) (end 3.87 -1.33) (layer F.SilkS) (width 0.12))
(fp_line (start 1.27 1.27) (end 1.27 -1.33) (layer F.SilkS) (width 0.12))
(fp_line (start -1.33 1.27) (end 1.27 1.27) (layer F.SilkS) (width 0.12))
(fp_line (start 3.87 -1.33) (end 3.87 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 3.87 6.41) (layer F.SilkS) (width 0.12))
(fp_line (start -1.27 0) (end 0 -1.27) (layer F.Fab) (width 0.1))
(fp_line (start -1.27 6.35) (end -1.27 0) (layer F.Fab) (width 0.1))
(fp_line (start 3.81 6.35) (end -1.27 6.35) (layer F.Fab) (width 0.1))
(fp_line (start 3.81 -1.27) (end 3.81 6.35) (layer F.Fab) (width 0.1))
(fp_line (start 0 -1.27) (end 3.81 -1.27) (layer F.Fab) (width 0.1))
(pad 6 thru_hole oval (at 2.54 5.08) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 2 GND))
(pad 5 thru_hole oval (at 0 5.08) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 6 RST))
(pad 4 thru_hole oval (at 2.54 2.54) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 7 MOSI))
(pad 3 thru_hole oval (at 0 2.54) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 8 SCK))
(pad 2 thru_hole oval (at 2.54 0) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 1 +5V))
(pad 1 thru_hole rect (at 0 0) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 9 MISO))
(model ${KISYS3DMOD}/Pin_Headers.3dshapes/Pin_Header_Straight_2x03_Pitch2.54mm.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm (layer F.Cu) (tedit 59650532) (tstamp 5D7550F8)
(at 145.034 96.266 180)
(descr "Through hole straight pin header, 1x04, 2.54mm pitch, single row")
(tags "Through hole pin header THT 1x04 2.54mm single row")
(path /5D753B7C)
(fp_text reference J2 (at 0 -2.33 180) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value SSD1306 (at 0 9.95 180) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text user %R (at 0 3.81 270) (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 9.4) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.8 9.4) (end 1.8 9.4) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.8 -1.8) (end -1.8 9.4) (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 8.95) (layer F.SilkS) (width 0.12))
(fp_line (start -1.33 1.27) (end -1.33 8.95) (layer F.SilkS) (width 0.12))
(fp_line (start -1.33 8.95) (end 1.33 8.95) (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 8.89) (end -1.27 -0.635) (layer F.Fab) (width 0.1))
(fp_line (start 1.27 8.89) (end -1.27 8.89) (layer F.Fab) (width 0.1))
(fp_line (start 1.27 -1.27) (end 1.27 8.89) (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 4 thru_hole oval (at 0 7.62 180) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 2 GND))
(pad 3 thru_hole oval (at 0 5.08 180) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 1 +5V))
(pad 2 thru_hole oval (at 0 2.54 180) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 10 SCL))
(pad 1 thru_hole rect (at 0 0 180) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 11 SDA))
(model ${KISYS3DMOD}/Pin_Headers.3dshapes/Pin_Header_Straight_1x04_Pitch2.54mm.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm (layer F.Cu) (tedit 59650532) (tstamp 5D755110)
(at 128.27 75.946 270)
(descr "Through hole straight pin header, 1x04, 2.54mm pitch, single row")
(tags "Through hole pin header THT 1x04 2.54mm single row")
(path /5D7651C5)
(fp_text reference J3 (at 0 -2.33 270) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value L298 (at 0 9.95 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 8.89) (layer F.Fab) (width 0.1))
(fp_line (start 1.27 8.89) (end -1.27 8.89) (layer F.Fab) (width 0.1))
(fp_line (start -1.27 8.89) (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 8.95) (end 1.33 8.95) (layer F.SilkS) (width 0.12))
(fp_line (start -1.33 1.27) (end -1.33 8.95) (layer F.SilkS) (width 0.12))
(fp_line (start 1.33 1.27) (end 1.33 8.95) (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 9.4) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.8 9.4) (end 1.8 9.4) (layer F.CrtYd) (width 0.05))
(fp_line (start 1.8 9.4) (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 3.81) (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 12 "Net-(J3-Pad1)"))
(pad 2 thru_hole oval (at 0 2.54 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 13 "Net-(J3-Pad2)"))
(pad 3 thru_hole oval (at 0 5.08 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 1 +5V))
(pad 4 thru_hole oval (at 0 7.62 270) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 2 GND))
(model ${KISYS3DMOD}/Pin_Headers.3dshapes/Pin_Header_Straight_1x04_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 5D755121)
(at 122.936 85.852)
(descr "Resistor SMD 0603, reflow soldering, Vishay (see dcrcw.pdf)")
(tags "resistor 0603")
(path /5D758534)
(attr smd)
(fp_text reference R1 (at 0 -1.45) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value 10k (at 0 1.5) (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) (layer F.Fab)
(effects (font (size 0.4 0.4) (thickness 0.075)))
)
(pad 2 smd rect (at 0.75 0) (size 0.5 0.9) (layers F.Cu F.Paste F.Mask)
(net 6 RST))
(pad 1 smd rect (at -0.75 0) (size 0.5 0.9) (layers F.Cu F.Paste F.Mask)
(net 1 +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 SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM (layer F.Cu) (tedit 5C236DB7) (tstamp 5D755136)
(at 118.618 106.68)
(path /5D759C24)
(attr smd)
(fp_text reference SW1 (at 0 0) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value SW_Push (at -0.112861 -0.218191) (layer F.SilkS) hide
(effects (font (size 0.501589 0.501589) (thickness 0.05)))
)
(fp_line (start 2.6 1.46863) (end 1.46863 2.6) (layer Dwgs.User) (width 0.127))
(fp_line (start 1.5 2.6) (end -1.1 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.1 2.6) (end -1.45982 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.45982 2.6) (end -2.6 1.45982) (layer Dwgs.User) (width 0.127))
(fp_line (start -2.6 -1.39584) (end -1.39584 -2.6) (layer Dwgs.User) (width 0.127))
(fp_line (start -1.4 -2.6) (end 1.5 -2.6) (layer F.SilkS) (width 0.127))
(fp_line (start 1.43381 -2.6) (end 2.6 -1.43381) (layer Dwgs.User) (width 0.127))
(fp_poly (pts (xy -2.50464 -2.6) (xy 2.6 -2.6) (xy 2.6 2.60484) (xy -2.50464 2.60484)) (layer Eco1.User) (width 0))
(fp_line (start -1.4 -2.6) (end -2.4 -1.6) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 -2.6) (end 2.4 -1.7) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 2.6) (end 2.4 1.7) (layer F.SilkS) (width 0.127))
(fp_line (start -1.45982 2.6) (end -1.5 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.5 2.6) (end -2.4 1.7) (layer F.SilkS) (width 0.127))
(pad 1 smd rect (at -3 -1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask)
(net 14 "Net-(SW1-Pad1)"))
(pad 3 smd rect (at 3 -1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at -3 1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(pad 4 smd rect (at 3 1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(model ${KISYS3DMOD}/Button_Switch_SMD.3dshapes/SW_SPST_TL3342.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM (layer F.Cu) (tedit 5C236DB7) (tstamp 5D75514B)
(at 132.08 106.68)
(path /5D759CB0)
(attr smd)
(fp_text reference SW2 (at 0 0) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value SW_Push (at -0.112861 -0.218191) (layer F.SilkS) hide
(effects (font (size 0.501589 0.501589) (thickness 0.05)))
)
(fp_line (start -1.5 2.6) (end -2.4 1.7) (layer F.SilkS) (width 0.127))
(fp_line (start -1.45982 2.6) (end -1.5 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 2.6) (end 2.4 1.7) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 -2.6) (end 2.4 -1.7) (layer F.SilkS) (width 0.127))
(fp_line (start -1.4 -2.6) (end -2.4 -1.6) (layer F.SilkS) (width 0.127))
(fp_poly (pts (xy -2.50464 -2.6) (xy 2.6 -2.6) (xy 2.6 2.60484) (xy -2.50464 2.60484)) (layer Eco1.User) (width 0))
(fp_line (start 1.43381 -2.6) (end 2.6 -1.43381) (layer Dwgs.User) (width 0.127))
(fp_line (start -1.4 -2.6) (end 1.5 -2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -2.6 -1.39584) (end -1.39584 -2.6) (layer Dwgs.User) (width 0.127))
(fp_line (start -1.45982 2.6) (end -2.6 1.45982) (layer Dwgs.User) (width 0.127))
(fp_line (start -1.1 2.6) (end -1.45982 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 2.6) (end -1.1 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start 2.6 1.46863) (end 1.46863 2.6) (layer Dwgs.User) (width 0.127))
(pad 4 smd rect (at 3 1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at -3 1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(pad 3 smd rect (at 3 -1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(pad 1 smd rect (at -3 -1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask)
(net 15 "Net-(SW2-Pad1)"))
(model ${KISYS3DMOD}/Button_Switch_SMD.3dshapes/SW_SPST_TL3342.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM (layer F.Cu) (tedit 5C236DB7) (tstamp 5D755160)
(at 144.78 106.68)
(path /5D759CF0)
(attr smd)
(fp_text reference SW3 (at 0 0) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value SW_Push (at -0.112861 -0.218191) (layer F.SilkS) hide
(effects (font (size 0.501589 0.501589) (thickness 0.05)))
)
(fp_line (start 2.6 1.46863) (end 1.46863 2.6) (layer Dwgs.User) (width 0.127))
(fp_line (start 1.5 2.6) (end -1.1 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.1 2.6) (end -1.45982 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.45982 2.6) (end -2.6 1.45982) (layer Dwgs.User) (width 0.127))
(fp_line (start -2.6 -1.39584) (end -1.39584 -2.6) (layer Dwgs.User) (width 0.127))
(fp_line (start -1.4 -2.6) (end 1.5 -2.6) (layer F.SilkS) (width 0.127))
(fp_line (start 1.43381 -2.6) (end 2.6 -1.43381) (layer Dwgs.User) (width 0.127))
(fp_poly (pts (xy -2.50464 -2.6) (xy 2.6 -2.6) (xy 2.6 2.60484) (xy -2.50464 2.60484)) (layer Eco1.User) (width 0))
(fp_line (start -1.4 -2.6) (end -2.4 -1.6) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 -2.6) (end 2.4 -1.7) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 2.6) (end 2.4 1.7) (layer F.SilkS) (width 0.127))
(fp_line (start -1.45982 2.6) (end -1.5 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.5 2.6) (end -2.4 1.7) (layer F.SilkS) (width 0.127))
(pad 1 smd rect (at -3 -1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask)
(net 16 "Net-(SW3-Pad1)"))
(pad 3 smd rect (at 3 -1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at -3 1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(pad 4 smd rect (at 3 1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(model ${KISYS3DMOD}/Button_Switch_SMD.3dshapes/SW_SPST_TL3342.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(module Crystals:Crystal_HC49-U_Vertical (layer F.Cu) (tedit 58CD2E9C) (tstamp 5D755177)
(at 108.966 94.996 90)
(descr "Crystal THT HC-49/U http://5hertz.com/pdfs/04404_D.pdf")
(tags "THT crystalHC-49/U")
(path /5D756FAB)
(fp_text reference XTAL1 (at 2.44 -3.525 90) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value "16 Mhz" (at 2.44 3.525 90) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_arc (start 5.565 0) (end 5.565 -2.525) (angle 180) (layer F.SilkS) (width 0.12))
(fp_arc (start -0.685 0) (end -0.685 -2.525) (angle -180) (layer F.SilkS) (width 0.12))
(fp_arc (start 5.44 0) (end 5.44 -2) (angle 180) (layer F.Fab) (width 0.1))
(fp_arc (start -0.56 0) (end -0.56 -2) (angle -180) (layer F.Fab) (width 0.1))
(fp_arc (start 5.565 0) (end 5.565 -2.325) (angle 180) (layer F.Fab) (width 0.1))
(fp_arc (start -0.685 0) (end -0.685 -2.325) (angle -180) (layer F.Fab) (width 0.1))
(fp_line (start 8.4 -2.8) (end -3.5 -2.8) (layer F.CrtYd) (width 0.05))
(fp_line (start 8.4 2.8) (end 8.4 -2.8) (layer F.CrtYd) (width 0.05))
(fp_line (start -3.5 2.8) (end 8.4 2.8) (layer F.CrtYd) (width 0.05))
(fp_line (start -3.5 -2.8) (end -3.5 2.8) (layer F.CrtYd) (width 0.05))
(fp_line (start -0.685 2.525) (end 5.565 2.525) (layer F.SilkS) (width 0.12))
(fp_line (start -0.685 -2.525) (end 5.565 -2.525) (layer F.SilkS) (width 0.12))
(fp_line (start -0.56 2) (end 5.44 2) (layer F.Fab) (width 0.1))
(fp_line (start -0.56 -2) (end 5.44 -2) (layer F.Fab) (width 0.1))
(fp_line (start -0.685 2.325) (end 5.565 2.325) (layer F.Fab) (width 0.1))
(fp_line (start -0.685 -2.325) (end 5.565 -2.325) (layer F.Fab) (width 0.1))
(fp_text user %R (at 2.44 0 90) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(pad 2 thru_hole circle (at 4.88 0 90) (size 1.5 1.5) (drill 0.8) (layers *.Cu *.Mask)
(net 4 "Net-(C4-Pad1)"))
(pad 1 thru_hole circle (at 0 0 90) (size 1.5 1.5) (drill 0.8) (layers *.Cu *.Mask)
(net 5 "Net-(C5-Pad1)"))
(model ${KISYS3DMOD}/Crystals.3dshapes/Crystal_HC49-U_Vertical.wrl
(at (xyz 0 0 0))
(scale (xyz 0.393701 0.393701 0.393701))
(rotate (xyz 0 0 0))
)
)
(module Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm (layer F.Cu) (tedit 58CC9A48) (tstamp 5D7558F7)
(at 124.206 92.456)
(descr "32-Lead Plastic Thin Quad Flatpack (PT) - 7x7x1.0 mm Body, 2.00 mm [TQFP] (see Microchip Packaging Specification 00000049BS.pdf)")
(tags "QFP 0.8")
(path /5D753A97)
(attr smd)
(fp_text reference U1 (at 0 -6.05) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value ATmega328-AU (at 0 6.05) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -3.625 -3.4) (end -5.05 -3.4) (layer F.SilkS) (width 0.15))
(fp_line (start 3.625 -3.625) (end 3.3 -3.625) (layer F.SilkS) (width 0.15))
(fp_line (start 3.625 3.625) (end 3.3 3.625) (layer F.SilkS) (width 0.15))
(fp_line (start -3.625 3.625) (end -3.3 3.625) (layer F.SilkS) (width 0.15))
(fp_line (start -3.625 -3.625) (end -3.3 -3.625) (layer F.SilkS) (width 0.15))
(fp_line (start -3.625 3.625) (end -3.625 3.3) (layer F.SilkS) (width 0.15))
(fp_line (start 3.625 3.625) (end 3.625 3.3) (layer F.SilkS) (width 0.15))
(fp_line (start 3.625 -3.625) (end 3.625 -3.3) (layer F.SilkS) (width 0.15))
(fp_line (start -3.625 -3.625) (end -3.625 -3.4) (layer F.SilkS) (width 0.15))
(fp_line (start -5.3 5.3) (end 5.3 5.3) (layer F.CrtYd) (width 0.05))
(fp_line (start -5.3 -5.3) (end 5.3 -5.3) (layer F.CrtYd) (width 0.05))
(fp_line (start 5.3 -5.3) (end 5.3 5.3) (layer F.CrtYd) (width 0.05))
(fp_line (start -5.3 -5.3) (end -5.3 5.3) (layer F.CrtYd) (width 0.05))
(fp_line (start -3.5 -2.5) (end -2.5 -3.5) (layer F.Fab) (width 0.15))
(fp_line (start -3.5 3.5) (end -3.5 -2.5) (layer F.Fab) (width 0.15))
(fp_line (start 3.5 3.5) (end -3.5 3.5) (layer F.Fab) (width 0.15))
(fp_line (start 3.5 -3.5) (end 3.5 3.5) (layer F.Fab) (width 0.15))
(fp_line (start -2.5 -3.5) (end 3.5 -3.5) (layer F.Fab) (width 0.15))
(fp_text user %R (at 0 0) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(pad 32 smd rect (at -2.8 -4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 31 smd rect (at -2 -4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 13 "Net-(J3-Pad2)"))
(pad 30 smd rect (at -1.2 -4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 12 "Net-(J3-Pad1)"))
(pad 29 smd rect (at -0.4 -4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 6 RST))
(pad 28 smd rect (at 0.4 -4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 10 SCL))
(pad 27 smd rect (at 1.2 -4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 11 SDA))
(pad 26 smd rect (at 2 -4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 25 smd rect (at 2.8 -4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 24 smd rect (at 4.25 -2.8) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 23 smd rect (at 4.25 -2) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 22 smd rect (at 4.25 -1.2) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 21 smd rect (at 4.25 -0.4) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(pad 20 smd rect (at 4.25 0.4) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 3 "Net-(C3-Pad2)"))
(pad 19 smd rect (at 4.25 1.2) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 18 smd rect (at 4.25 2) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 1 +5V))
(pad 17 smd rect (at 4.25 2.8) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 8 SCK))
(pad 16 smd rect (at 2.8 4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 9 MISO))
(pad 15 smd rect (at 2 4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 7 MOSI))
(pad 14 smd rect (at 1.2 4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 16 "Net-(SW3-Pad1)"))
(pad 13 smd rect (at 0.4 4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 15 "Net-(SW2-Pad1)"))
(pad 12 smd rect (at -0.4 4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 14 "Net-(SW1-Pad1)"))
(pad 11 smd rect (at -1.2 4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 10 smd rect (at -2 4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 9 smd rect (at -2.8 4.25 90) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 8 smd rect (at -4.25 2.8) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 5 "Net-(C5-Pad1)"))
(pad 7 smd rect (at -4.25 2) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 4 "Net-(C4-Pad1)"))
(pad 6 smd rect (at -4.25 1.2) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 1 +5V))
(pad 5 smd rect (at -4.25 0.4) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(pad 4 smd rect (at -4.25 -0.4) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 1 +5V))
(pad 3 smd rect (at -4.25 -1.2) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask)
(net 2 GND))
(pad 2 smd rect (at -4.25 -2) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(pad 1 smd rect (at -4.25 -2.8) (size 1.6 0.55) (layers F.Cu F.Paste F.Mask))
(model ${KISYS3DMOD}/Housings_QFP.3dshapes/TQFP-32_7x7mm_Pitch0.8mm.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
)

336
pcb/DeskControl.net Normal file
View File

@ -0,0 +1,336 @@
(export (version D)
(design
(source P:\Electronics\DeskControl\pcb\DeskControl.sch)
(date "8-9-2019 20:52:00")
(tool "Eeschema (5.0.1)-3")
(sheet (number 1) (name /) (tstamps /)
(title_block
(title)
(company)
(rev)
(date)
(source DeskControl.sch)
(comment (number 1) (value ""))
(comment (number 2) (value ""))
(comment (number 3) (value ""))
(comment (number 4) (value "")))))
(components
(comp (ref U1)
(value ATmega328-AU)
(footprint Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm)
(datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega328_P%20AVR%20MCU%20with%20picoPower%20Technology%20Data%20Sheet%2040001984A.pdf)
(libsource (lib MCU_Microchip_ATmega) (part ATmega328-AU) (description "20MHz, 32kB Flash, 2kB SRAM, 1kB EEPROM, TQFP-32"))
(sheetpath (names /) (tstamps /))
(tstamp 5D753A97))
(comp (ref J2)
(value SSD1306)
(footprint Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm)
(datasheet ~)
(libsource (lib Connector_Generic) (part Conn_01x04) (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)"))
(sheetpath (names /) (tstamps /))
(tstamp 5D753B7C))
(comp (ref J1)
(value PROG)
(footprint Pin_Headers:Pin_Header_Straight_2x03_Pitch2.54mm)
(datasheet ~)
(libsource (lib Connector_Generic) (part Conn_02x03_Odd_Even) (description "Generic connector, double row, 02x03, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers), script generated (kicad-library-utils/schlib/autogen/connector/)"))
(sheetpath (names /) (tstamps /))
(tstamp 5D753DE7))
(comp (ref C3)
(value 100nF)
(footprint Capacitors_SMD:C_1206)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5D754323))
(comp (ref C2)
(value 100nF)
(footprint Capacitors_SMD:C_1206)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5D7545D2))
(comp (ref C1)
(value 10uF)
(footprint Capacitors_Tantalum_SMD:CP_Tantalum_Case-D_EIA-7343-31_Reflow)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5D75463E))
(comp (ref C4)
(value 33pF)
(footprint Capacitors_SMD:C_1206)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5D75696A))
(comp (ref C5)
(value 33pF)
(footprint Capacitors_SMD:C_1206)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5D756A0E))
(comp (ref XTAL1)
(value "16 Mhz")
(footprint Crystals:Crystal_HC49-U_Vertical)
(datasheet ~)
(libsource (lib Device) (part Crystal) (description "Two pin crystal"))
(sheetpath (names /) (tstamps /))
(tstamp 5D756FAB))
(comp (ref R1)
(value 10k)
(footprint Resistors_SMD:R_0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 5D758534))
(comp (ref SW1)
(value SW_Push)
(footprint SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM)
(libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins"))
(sheetpath (names /) (tstamps /))
(tstamp 5D759C24))
(comp (ref SW2)
(value SW_Push)
(footprint SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM)
(libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins"))
(sheetpath (names /) (tstamps /))
(tstamp 5D759CB0))
(comp (ref SW3)
(value SW_Push)
(footprint SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM)
(libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins"))
(sheetpath (names /) (tstamps /))
(tstamp 5D759CF0))
(comp (ref J3)
(value L298)
(footprint Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm)
(datasheet ~)
(libsource (lib Connector_Generic) (part Conn_01x04) (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)"))
(sheetpath (names /) (tstamps /))
(tstamp 5D7651C5)))
(libparts
(libpart (lib Connector_Generic) (part Conn_01x04)
(description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)")
(docs ~)
(footprints
(fp Connector*:*_1x??_*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x04))
(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))
(pin (num 4) (name Pin_4) (type passive))))
(libpart (lib Connector_Generic) (part Conn_02x03_Odd_Even)
(description "Generic connector, double row, 02x03, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers), script generated (kicad-library-utils/schlib/autogen/connector/)")
(docs ~)
(footprints
(fp Connector*:*_2x??_*))
(fields
(field (name Reference) J)
(field (name Value) Conn_02x03_Odd_Even))
(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))
(pin (num 4) (name Pin_4) (type passive))
(pin (num 5) (name Pin_5) (type passive))
(pin (num 6) (name Pin_6) (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 Crystal)
(description "Two pin crystal")
(docs ~)
(footprints
(fp Crystal*))
(fields
(field (name Reference) Y)
(field (name Value) Crystal))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (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 MCU_Microchip_ATmega) (part ATmega48A-AU)
(aliases
(alias ATmega48PA-AU)
(alias ATmega88A-AU)
(alias ATmega88PA-AU)
(alias ATmega168A-AU)
(alias ATmega168PA-AU)
(alias ATmega328-AU)
(alias ATmega328P-AU))
(description "20MHz, 4kB Flash, 512B SRAM, 256B EEPROM, TQFP-32")
(docs http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A_88A_168A-Data-Sheet-40002007A.pdf)
(footprints
(fp TQFP*7x7mm*P0.8mm*))
(fields
(field (name Reference) U)
(field (name Value) ATmega48A-AU)
(field (name Footprint) Package_QFP:TQFP-32_7x7mm_P0.8mm))
(pins
(pin (num 1) (name PD3) (type 3state))
(pin (num 2) (name PD4) (type 3state))
(pin (num 3) (name GND) (type power_in))
(pin (num 4) (name VCC) (type power_in))
(pin (num 5) (name GND) (type passive))
(pin (num 6) (name VCC) (type passive))
(pin (num 7) (name XTAL1/PB6) (type 3state))
(pin (num 8) (name XTAL2/PB7) (type 3state))
(pin (num 9) (name PD5) (type 3state))
(pin (num 10) (name PD6) (type 3state))
(pin (num 11) (name PD7) (type 3state))
(pin (num 12) (name PB0) (type 3state))
(pin (num 13) (name PB1) (type 3state))
(pin (num 14) (name PB2) (type 3state))
(pin (num 15) (name PB3) (type 3state))
(pin (num 16) (name PB4) (type 3state))
(pin (num 17) (name PB5) (type 3state))
(pin (num 18) (name AVCC) (type power_in))
(pin (num 19) (name ADC6) (type input))
(pin (num 20) (name AREF) (type passive))
(pin (num 21) (name GND) (type passive))
(pin (num 22) (name ADC7) (type input))
(pin (num 23) (name PC0) (type 3state))
(pin (num 24) (name PC1) (type 3state))
(pin (num 25) (name PC2) (type 3state))
(pin (num 26) (name PC3) (type 3state))
(pin (num 27) (name PC4) (type 3state))
(pin (num 28) (name PC5) (type 3state))
(pin (num 29) (name ~RESET~/PC6) (type 3state))
(pin (num 30) (name PD0) (type 3state))
(pin (num 31) (name PD1) (type 3state))
(pin (num 32) (name PD2) (type 3state))))
(libpart (lib Switch) (part SW_Push)
(description "Push button switch, generic, two pins")
(fields
(field (name Reference) SW)
(field (name Value) SW_Push))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive)))))
(libraries
(library (logical Connector_Generic)
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Connector_Generic.lib"))
(library (logical Device)
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Device.lib"))
(library (logical MCU_Microchip_ATmega)
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/MCU_Microchip_ATmega.lib"))
(library (logical Switch)
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Switch.lib")))
(nets
(net (code 1) (name +5V)
(node (ref U1) (pin 6))
(node (ref C1) (pin 2))
(node (ref C2) (pin 2))
(node (ref J1) (pin 2))
(node (ref U1) (pin 18))
(node (ref J3) (pin 3))
(node (ref U1) (pin 4))
(node (ref R1) (pin 1))
(node (ref J2) (pin 3)))
(net (code 2) (name RST)
(node (ref U1) (pin 29))
(node (ref R1) (pin 2))
(node (ref J1) (pin 5)))
(net (code 3) (name "Net-(U1-Pad19)")
(node (ref U1) (pin 19)))
(net (code 4) (name "Net-(U1-Pad22)")
(node (ref U1) (pin 22)))
(net (code 5) (name GND)
(node (ref J2) (pin 4))
(node (ref J1) (pin 6))
(node (ref U1) (pin 3))
(node (ref U1) (pin 5))
(node (ref C3) (pin 1))
(node (ref U1) (pin 21))
(node (ref C1) (pin 1))
(node (ref C2) (pin 1))
(node (ref J3) (pin 4))
(node (ref C5) (pin 2))
(node (ref C4) (pin 2))
(node (ref SW3) (pin 2))
(node (ref SW1) (pin 2))
(node (ref SW2) (pin 2)))
(net (code 6) (name "Net-(C5-Pad1)")
(node (ref C5) (pin 1))
(node (ref U1) (pin 8))
(node (ref XTAL1) (pin 1)))
(net (code 7) (name "Net-(C4-Pad1)")
(node (ref XTAL1) (pin 2))
(node (ref U1) (pin 7))
(node (ref C4) (pin 1)))
(net (code 8) (name "Net-(J3-Pad2)")
(node (ref U1) (pin 31))
(node (ref J3) (pin 2)))
(net (code 9) (name "Net-(U1-Pad23)")
(node (ref U1) (pin 23)))
(net (code 10) (name "Net-(U1-Pad24)")
(node (ref U1) (pin 24)))
(net (code 11) (name "Net-(U1-Pad25)")
(node (ref U1) (pin 25)))
(net (code 12) (name "Net-(U1-Pad26)")
(node (ref U1) (pin 26)))
(net (code 13) (name "Net-(U1-Pad32)")
(node (ref U1) (pin 32)))
(net (code 14) (name "Net-(U1-Pad1)")
(node (ref U1) (pin 1)))
(net (code 15) (name "Net-(U1-Pad2)")
(node (ref U1) (pin 2)))
(net (code 16) (name "Net-(U1-Pad9)")
(node (ref U1) (pin 9)))
(net (code 17) (name "Net-(U1-Pad10)")
(node (ref U1) (pin 10)))
(net (code 18) (name "Net-(U1-Pad11)")
(node (ref U1) (pin 11)))
(net (code 19) (name "Net-(J3-Pad1)")
(node (ref U1) (pin 30))
(node (ref J3) (pin 1)))
(net (code 20) (name "Net-(SW2-Pad1)")
(node (ref SW2) (pin 1))
(node (ref U1) (pin 13)))
(net (code 21) (name "Net-(SW3-Pad1)")
(node (ref SW3) (pin 1))
(node (ref U1) (pin 14)))
(net (code 22) (name "Net-(SW1-Pad1)")
(node (ref U1) (pin 12))
(node (ref SW1) (pin 1)))
(net (code 23) (name MOSI)
(node (ref J1) (pin 4))
(node (ref U1) (pin 15)))
(net (code 24) (name MISO)
(node (ref J1) (pin 1))
(node (ref U1) (pin 16)))
(net (code 25) (name SCK)
(node (ref U1) (pin 17))
(node (ref J1) (pin 3)))
(net (code 26) (name "Net-(C3-Pad2)")
(node (ref C3) (pin 2))
(node (ref U1) (pin 20)))
(net (code 27) (name SDA)
(node (ref U1) (pin 27))
(node (ref J2) (pin 1)))
(net (code 28) (name SCL)
(node (ref U1) (pin 28))
(node (ref J2) (pin 2)))))

33
pcb/DeskControl.pro Normal file
View File

@ -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]

494
pcb/DeskControl.sch Normal file
View File

@ -0,0 +1,494 @@
EESchema Schematic File Version 4
EELAYER 26 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L MCU_Microchip_ATmega:ATmega328-AU U1
U 1 1 5D753A97
P 5100 3400
F 0 "U1" H 4200 2050 50 0000 C CNN
F 1 "ATmega328-AU" H 4200 2150 50 0000 C CNN
F 2 "Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm" H 5100 3400 50 0001 C CIN
F 3 "http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega328_P%20AVR%20MCU%20with%20picoPower%20Technology%20Data%20Sheet%2040001984A.pdf" H 5100 3400 50 0001 C CNN
1 5100 3400
1 0 0 -1
$EndComp
$Comp
L Connector_Generic:Conn_01x04 J2
U 1 1 5D753B7C
P 9400 2250
F 0 "J2" H 9479 2242 50 0000 L CNN
F 1 "SSD1306" H 9479 2151 50 0000 L CNN
F 2 "Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm" H 9400 2250 50 0001 C CNN
F 3 "~" H 9400 2250 50 0001 C CNN
1 9400 2250
1 0 0 -1
$EndComp
$Comp
L Connector_Generic:Conn_02x03_Odd_Even J1
U 1 1 5D753DE7
P 9350 3100
F 0 "J1" H 9400 3417 50 0000 C CNN
F 1 "PROG" H 9400 3326 50 0000 C CNN
F 2 "Pin_Headers:Pin_Header_Straight_2x03_Pitch2.54mm" H 9350 3100 50 0001 C CNN
F 3 "~" H 9350 3100 50 0001 C CNN
1 9350 3100
1 0 0 -1
$EndComp
Text GLabel 9150 3000 0 50 Input ~ 0
MISO
Text GLabel 9150 3100 0 50 Input ~ 0
SCK
Text GLabel 9150 3200 0 50 Input ~ 0
RST
Text GLabel 9650 3100 2 50 Input ~ 0
MOSI
$Comp
L power:+5V #PWR08
U 1 1 5D753EAE
P 9750 3000
F 0 "#PWR08" H 9750 2850 50 0001 C CNN
F 1 "+5V" H 9765 3173 50 0000 C CNN
F 2 "" H 9750 3000 50 0001 C CNN
F 3 "" H 9750 3000 50 0001 C CNN
1 9750 3000
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR09
U 1 1 5D753EEB
P 9750 3200
F 0 "#PWR09" H 9750 2950 50 0001 C CNN
F 1 "GND" H 9755 3027 50 0000 C CNN
F 2 "" H 9750 3200 50 0001 C CNN
F 3 "" H 9750 3200 50 0001 C CNN
1 9750 3200
1 0 0 -1
$EndComp
Wire Wire Line
9650 3000 9750 3000
Wire Wire Line
9650 3200 9750 3200
$Comp
L power:+5V #PWR04
U 1 1 5D753F2B
P 8900 2350
F 0 "#PWR04" H 8900 2200 50 0001 C CNN
F 1 "+5V" H 8915 2523 50 0000 C CNN
F 2 "" H 8900 2350 50 0001 C CNN
F 3 "" H 8900 2350 50 0001 C CNN
1 8900 2350
-1 0 0 1
$EndComp
$Comp
L power:GND #PWR06
U 1 1 5D753F42
P 9100 2450
F 0 "#PWR06" H 9100 2200 50 0001 C CNN
F 1 "GND" H 9105 2277 50 0000 C CNN
F 2 "" H 9100 2450 50 0001 C CNN
F 3 "" H 9100 2450 50 0001 C CNN
1 9100 2450
1 0 0 -1
$EndComp
Wire Wire Line
9100 2450 9200 2450
Wire Wire Line
9200 2350 8900 2350
Text GLabel 9200 2150 0 50 Input ~ 0
SDA
Text GLabel 9200 2250 0 50 Input ~ 0
SCL
$Comp
L power:+5V #PWR01
U 1 1 5D7540FC
P 900 900
F 0 "#PWR01" H 900 750 50 0001 C CNN
F 1 "+5V" H 915 1073 50 0000 C CNN
F 2 "" H 900 900 50 0001 C CNN
F 3 "" H 900 900 50 0001 C CNN
1 900 900
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR03
U 1 1 5D754134
P 900 1450
F 0 "#PWR03" H 900 1200 50 0001 C CNN
F 1 "GND" H 905 1277 50 0000 C CNN
F 2 "" H 900 1450 50 0001 C CNN
F 3 "" H 900 1450 50 0001 C CNN
1 900 1450
1 0 0 -1
$EndComp
$Comp
L power:PWR_FLAG #FLG02
U 1 1 5D754186
P 900 1450
F 0 "#FLG02" H 900 1525 50 0001 C CNN
F 1 "PWR_FLAG" H 900 1624 50 0000 C CNN
F 2 "" H 900 1450 50 0001 C CNN
F 3 "~" H 900 1450 50 0001 C CNN
1 900 1450
1 0 0 -1
$EndComp
$Comp
L power:PWR_FLAG #FLG01
U 1 1 5D7541A4
P 900 900
F 0 "#FLG01" H 900 975 50 0001 C CNN
F 1 "PWR_FLAG" H 900 1073 50 0000 C CNN
F 2 "" H 900 900 50 0001 C CNN
F 3 "~" H 900 900 50 0001 C CNN
1 900 900
-1 0 0 1
$EndComp
$Comp
L Device:C C3
U 1 1 5D754323
P 3900 2350
F 0 "C3" H 3785 2304 50 0000 R CNN
F 1 "100nF" H 3785 2395 50 0000 R CNN
F 2 "Capacitors_SMD:C_1206" H 3938 2200 50 0001 C CNN
F 3 "~" H 3900 2350 50 0001 C CNN
1 3900 2350
-1 0 0 1
$EndComp
$Comp
L power:GND #PWR07
U 1 1 5D75441A
P 3350 2750
F 0 "#PWR07" H 3350 2500 50 0001 C CNN
F 1 "GND" H 3355 2577 50 0000 C CNN
F 2 "" H 3350 2750 50 0001 C CNN
F 3 "" H 3350 2750 50 0001 C CNN
1 3350 2750
1 0 0 -1
$EndComp
$Comp
L Device:C C2
U 1 1 5D7545D2
P 3350 2350
F 0 "C2" H 3235 2304 50 0000 R CNN
F 1 "100nF" H 3235 2395 50 0000 R CNN
F 2 "Capacitors_SMD:C_1206" H 3388 2200 50 0001 C CNN
F 3 "~" H 3350 2350 50 0001 C CNN
1 3350 2350
-1 0 0 1
$EndComp
$Comp
L Device:C C1
U 1 1 5D75463E
P 2800 2350
F 0 "C1" H 2685 2304 50 0000 R CNN
F 1 "10uF" H 2685 2395 50 0000 R CNN
F 2 "Capacitors_Tantalum_SMD:CP_Tantalum_Case-D_EIA-7343-31_Reflow" H 2838 2200 50 0001 C CNN
F 3 "~" H 2800 2350 50 0001 C CNN
1 2800 2350
-1 0 0 1
$EndComp
Wire Wire Line
2800 2200 3100 2200
Wire Wire Line
3900 2200 4500 2200
$Comp
L power:+5V #PWR02
U 1 1 5D754E27
P 3100 1400
F 0 "#PWR02" H 3100 1250 50 0001 C CNN
F 1 "+5V" H 3115 1573 50 0000 C CNN
F 2 "" H 3100 1400 50 0001 C CNN
F 3 "" H 3100 1400 50 0001 C CNN
1 3100 1400
1 0 0 -1
$EndComp
Connection ~ 3100 2200
Wire Wire Line
3100 2200 3350 2200
Wire Wire Line
5200 1900 5200 1750
Wire Wire Line
5200 1750 5100 1750
Wire Wire Line
5100 1750 5100 1900
Wire Wire Line
5100 1750 3100 1750
Connection ~ 5100 1750
Wire Wire Line
3900 2500 3900 2650
Wire Wire Line
3900 2650 3350 2650
Wire Wire Line
3350 2650 3350 2750
Wire Wire Line
3350 2500 3350 2650
Connection ~ 3350 2650
Wire Wire Line
2800 2500 2800 2650
Wire Wire Line
2800 2650 3350 2650
NoConn ~ 4500 2400
NoConn ~ 4500 2500
Wire Wire Line
3100 1400 3100 1750
Connection ~ 3100 1750
Wire Wire Line
3100 1750 3100 2200
$Comp
L Device:C C4
U 1 1 5D75696A
P 6800 2700
F 0 "C4" V 7052 2700 50 0000 C CNN
F 1 "33pF" V 6961 2700 50 0000 C CNN
F 2 "Capacitors_SMD:C_1206" H 6838 2550 50 0001 C CNN
F 3 "~" H 6800 2700 50 0001 C CNN
1 6800 2700
0 -1 -1 0
$EndComp
$Comp
L Device:C C5
U 1 1 5D756A0E
P 6800 3150
F 0 "C5" V 7052 3150 50 0000 C CNN
F 1 "33pF" V 6961 3150 50 0000 C CNN
F 2 "Capacitors_SMD:C_1206" H 6838 3000 50 0001 C CNN
F 3 "~" H 6800 3150 50 0001 C CNN
1 6800 3150
0 -1 -1 0
$EndComp
$Comp
L power:GND #PWR010
U 1 1 5D756A8A
P 7100 3300
F 0 "#PWR010" H 7100 3050 50 0001 C CNN
F 1 "GND" H 7105 3127 50 0000 C CNN
F 2 "" H 7100 3300 50 0001 C CNN
F 3 "" H 7100 3300 50 0001 C CNN
1 7100 3300
1 0 0 -1
$EndComp
Wire Wire Line
6950 3150 7100 3150
Wire Wire Line
7100 3150 7100 3300
Wire Wire Line
6950 2700 7100 2700
Wire Wire Line
7100 2700 7100 3150
Connection ~ 7100 3150
$Comp
L Device:Crystal XTAL1
U 1 1 5D756FAB
P 6500 2950
F 0 "XTAL1" V 6550 3300 50 0000 R CNN
F 1 "16 Mhz" V 6450 3350 50 0000 R CNN
F 2 "Crystals:Crystal_HC49-U_Vertical" H 6500 2950 50 0001 C CNN
F 3 "~" H 6500 2950 50 0001 C CNN
1 6500 2950
0 -1 -1 0
$EndComp
Wire Wire Line
6500 2800 6500 2700
Wire Wire Line
6500 2700 6650 2700
Wire Wire Line
6500 3100 6500 3150
Wire Wire Line
6500 3150 6650 3150
Wire Wire Line
5700 2800 6050 2800
Wire Wire Line
6050 2800 6050 2700
Wire Wire Line
6050 2700 6500 2700
Connection ~ 6500 2700
Wire Wire Line
5700 2900 6050 2900
Wire Wire Line
6050 2900 6050 3150
Wire Wire Line
6050 3150 6500 3150
Connection ~ 6500 3150
Text GLabel 5700 3500 2 50 Input ~ 0
SDA
Text GLabel 5700 3600 2 50 Input ~ 0
SCL
Text GLabel 5700 2500 2 50 Input ~ 0
MOSI
Text GLabel 5700 2600 2 50 Input ~ 0
MISO
Text GLabel 5700 2700 2 50 Input ~ 0
SCK
$Comp
L Device:R R1
U 1 1 5D758534
P 6250 3550
F 0 "R1" H 6320 3596 50 0000 L CNN
F 1 "10k" H 6320 3505 50 0000 L CNN
F 2 "Resistors_SMD:R_0603" V 6180 3550 50 0001 C CNN
F 3 "~" H 6250 3550 50 0001 C CNN
1 6250 3550
1 0 0 -1
$EndComp
$Comp
L power:+5V #PWR011
U 1 1 5D7585CC
P 6250 3400
F 0 "#PWR011" H 6250 3250 50 0001 C CNN
F 1 "+5V" H 6265 3573 50 0000 C CNN
F 2 "" H 6250 3400 50 0001 C CNN
F 3 "" H 6250 3400 50 0001 C CNN
1 6250 3400
1 0 0 -1
$EndComp
Wire Wire Line
5700 3700 6250 3700
Text GLabel 6450 3700 2 50 Input ~ 0
RST
Wire Wire Line
6250 3700 6450 3700
Connection ~ 6250 3700
$Comp
L power:GND #PWR012
U 1 1 5D75920D
P 5100 4900
F 0 "#PWR012" H 5100 4650 50 0001 C CNN
F 1 "GND" H 5105 4727 50 0000 C CNN
F 2 "" H 5100 4900 50 0001 C CNN
F 3 "" H 5100 4900 50 0001 C CNN
1 5100 4900
1 0 0 -1
$EndComp
$Comp
L Switch:SW_Push SW1
U 1 1 5D759C24
P 6250 1600
F 0 "SW1" H 6250 1885 50 0000 C CNN
F 1 "SW_Push" H 6250 1794 50 0000 C CNN
F 2 "SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM" H 6250 1800 50 0001 C CNN
F 3 "" H 6250 1800 50 0001 C CNN
1 6250 1600
1 0 0 -1
$EndComp
$Comp
L Switch:SW_Push SW2
U 1 1 5D759CB0
P 6250 2000
F 0 "SW2" H 6250 2285 50 0000 C CNN
F 1 "SW_Push" H 6250 2194 50 0000 C CNN
F 2 "SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM" H 6250 2200 50 0001 C CNN
F 3 "" H 6250 2200 50 0001 C CNN
1 6250 2000
1 0 0 -1
$EndComp
$Comp
L Switch:SW_Push SW3
U 1 1 5D759CF0
P 6250 2400
F 0 "SW3" H 6250 2685 50 0000 C CNN
F 1 "SW_Push" H 6250 2594 50 0000 C CNN
F 2 "SMD-BUTTON:SW4-SMD-5.2X5.2X1.5MM" H 6250 2600 50 0001 C CNN
F 3 "" H 6250 2600 50 0001 C CNN
1 6250 2400
1 0 0 -1
$EndComp
Wire Wire Line
5700 2200 5800 2200
Wire Wire Line
5800 2200 5800 1600
Wire Wire Line
5800 1600 6050 1600
Wire Wire Line
5700 2300 5850 2300
Wire Wire Line
5850 2300 5850 2000
Wire Wire Line
5850 2000 6050 2000
Wire Wire Line
5700 2400 6050 2400
$Comp
L power:GND #PWR05
U 1 1 5D75B49B
P 6550 2400
F 0 "#PWR05" H 6550 2150 50 0001 C CNN
F 1 "GND" H 6555 2227 50 0000 C CNN
F 2 "" H 6550 2400 50 0001 C CNN
F 3 "" H 6550 2400 50 0001 C CNN
1 6550 2400
1 0 0 -1
$EndComp
Wire Wire Line
6450 2400 6550 2400
Wire Wire Line
6450 2000 6550 2000
Wire Wire Line
6550 2000 6550 2400
Connection ~ 6550 2400
Wire Wire Line
6450 1600 6550 1600
Wire Wire Line
6550 1600 6550 2000
Connection ~ 6550 2000
NoConn ~ 5700 3100
NoConn ~ 5700 3200
NoConn ~ 5700 3300
NoConn ~ 5700 3400
NoConn ~ 5700 4100
NoConn ~ 5700 4200
NoConn ~ 5700 4300
NoConn ~ 5700 4400
NoConn ~ 5700 4500
NoConn ~ 5700 4600
$Comp
L Connector_Generic:Conn_01x04 J3
U 1 1 5D7651C5
P 6500 4000
F 0 "J3" H 6650 4050 50 0000 L CNN
F 1 "L298" H 6580 3951 50 0000 L CNN
F 2 "Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm" H 6500 4000 50 0001 C CNN
F 3 "~" H 6500 4000 50 0001 C CNN
1 6500 4000
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR014
U 1 1 5D765563
P 6150 4200
F 0 "#PWR014" H 6150 3950 50 0001 C CNN
F 1 "GND" H 6155 4027 50 0000 C CNN
F 2 "" H 6150 4200 50 0001 C CNN
F 3 "" H 6150 4200 50 0001 C CNN
1 6150 4200
1 0 0 -1
$EndComp
Wire Wire Line
5700 3900 6300 3900
Wire Wire Line
5700 4000 6300 4000
$Comp
L power:+5V #PWR013
U 1 1 5D767927
P 6000 4100
F 0 "#PWR013" H 6000 3950 50 0001 C CNN
F 1 "+5V" H 6015 4273 50 0000 C CNN
F 2 "" H 6000 4100 50 0001 C CNN
F 3 "" H 6000 4100 50 0001 C CNN
1 6000 4100
-1 0 0 1
$EndComp
Wire Wire Line
6000 4100 6300 4100
Wire Wire Line
6150 4200 6300 4200
$EndSCHEMATC

3
pcb/fp-lib-table Normal file
View File

@ -0,0 +1,3 @@
(fp_lib_table
(lib (name SMD-BUTTON)(type KiCad)(uri ${KIPRJMOD}/lib/SMD-BUTTON.pretty)(options "")(descr ""))
)

View File

@ -0,0 +1,31 @@
(module SMD-BUTTON_4P-5.2X5.2X1.5MM-SKQGAKE010_:SW4-SMD-5.2X5.2X1.5MM (layer F.Cu) (tedit 5C236DB7)
(attr smd)
(fp_text reference SW1 (at 0 0) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value Button (at -0.112861 -0.218191) (layer F.SilkS) hide
(effects (font (size 0.501589 0.501589) (thickness 0.05)))
)
(fp_line (start 2.6 1.46863) (end 1.46863 2.6) (layer Dwgs.User) (width 0.127))
(fp_line (start 1.5 2.6) (end -1.1 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.1 2.6) (end -1.45982 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.45982 2.6) (end -2.6 1.45982) (layer Dwgs.User) (width 0.127))
(fp_line (start -2.6 -1.39584) (end -1.39584 -2.6) (layer Dwgs.User) (width 0.127))
(fp_line (start -1.4 -2.6) (end 1.5 -2.6) (layer F.SilkS) (width 0.127))
(fp_line (start 1.43381 -2.6) (end 2.6 -1.43381) (layer Dwgs.User) (width 0.127))
(fp_poly (pts (xy -2.50464 -2.6) (xy 2.6 -2.6) (xy 2.6 2.60484) (xy -2.50464 2.60484)) (layer Eco1.User) (width 0))
(fp_line (start -1.4 -2.6) (end -2.4 -1.6) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 -2.6) (end 2.4 -1.7) (layer F.SilkS) (width 0.127))
(fp_line (start 1.5 2.6) (end 2.4 1.7) (layer F.SilkS) (width 0.127))
(fp_line (start -1.45982 2.6) (end -1.5 2.6) (layer F.SilkS) (width 0.127))
(fp_line (start -1.5 2.6) (end -2.4 1.7) (layer F.SilkS) (width 0.127))
(pad 1 smd rect (at -3 -1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(pad 3 smd rect (at 3 -1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at -3 1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(pad 4 smd rect (at 3 1.85) (size 1 0.7) (layers F.Cu F.Paste F.Mask))
(model ${KISYS3DMOD}/Button_Switch_SMD.3dshapes/SW_SPST_TL3342.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)

View File

@ -0,0 +1,47 @@
EESchema-LIBRARY Version 2.3
#encoding utf-8
#(c) SnapEDA 2016 (snapeda.com)
#This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA) with Design Exception 1.0
#
# SMD-BUTTON(4P-5.2X5.2X1.5MM-SKQGAKE010)
#
DEF SMD-BUTTON(4P-5.2X5.2X1.5MM-SKQGAKE010) SW 0 40 Y Y 1 L N
F0 "SW" -201 201 50 H V L BNN
F1 "SMD-BUTTON(4P-5.2X5.2X1.5MM-SKQGAKE010)" -200 -250 50 H V L BNN
F2 "SW4-SMD-5.2X5.2X1.5MM" 0 0 50 H I L BNN
F3 "None" 0 0 50 H I L BNN
F4 "SKQGAKE010" 0 0 50 H I L BNN
F5 "None" 0 0 50 H I L BNN
F6 "Unavailable" 0 0 50 H I L BNN
F7 "ALPS" 0 0 50 H I L BNN
F8 "Switch Tactile N.O. SPST Button Gull Wing 0.05A 12VDC 3.43N SMD T/R" 0 0 50 H I L BNN
DRAW
P 2 0 0 10 -200 200 200 200 N
P 2 0 0 10 200 200 200 100 N
P 2 0 0 10 200 100 200 -100 N
P 2 0 0 10 200 -100 200 -200 N
P 2 0 0 10 200 -200 -200 -200 N
P 2 0 0 10 -200 -200 -200 -100 N
P 2 0 0 10 -200 -100 -200 100 N
P 2 0 0 10 -200 100 -200 200 N
P 2 0 0 6 -200 100 0 100 N
P 2 0 0 6 0 100 200 100 N
P 2 0 0 6 0 100 0 50 N
P 2 0 0 6 0 50 -50 -30 N
P 2 0 0 6 0 -50 0 -100 N
P 2 0 0 6 0 -100 200 -100 N
P 2 0 0 6 0 -100 -200 -100 N
P 2 0 0 6 -250 100 -200 100 N
P 2 0 0 6 -250 -100 -200 -100 N
P 2 0 0 6 250 -100 200 -100 N
P 2 0 0 6 250 100 200 100 N
C -50 -30 6 0 0 0 N
C 0 -50 6 0 0 0 N
X A0 1 -350 100 100 R 40 40 0 0 B
X A1 2 350 100 100 L 40 40 0 0 B
X B0 3 -350 -100 100 R 40 40 0 0 B
X B1 4 350 -100 100 L 40 40 0 0 B
ENDDRAW
ENDDEF
#
# End Library

View File

@ -0,0 +1,67 @@
PCBNEW-LibModule-V1
# encoding utf-8
Units mm
$INDEX
SW4-SMD-5.2X5.2X1.5MM
$EndINDEX
$MODULE SW4-SMD-5.2X5.2X1.5MM
Po 0 0 0 15 00000000 00000000 ~~
Li SW4-SMD-5.2X5.2X1.5MM
Cd
Sc 00000000
At SMD
Op 0 0 0
.SolderMask 0
.SolderPaste 0
T0 -0.523383 -3.25313 0.701862 0.701862 0 0.05 N V 21 "SW4-SMD-5.2X5.2X1.5MM"
T1 -0.112861 -0.218191 0.501589 0.501589 0 0.05 N V 21 "VAL**"
DS 2.6 1.46863 1.46863 2.6 0.127 24
DS 1.5 2.6 -1.1 2.6 0.127 21
DS -1.1 2.6 -1.45982 2.6 0.127 21
DS -1.45982 2.6 -2.6 1.45982 0.127 24
DS -2.6 -1.39584 -1.39584 -2.6 0.127 24
DS -1.4 -2.6 1.5 -2.6 0.127 21
DS 1.43381 -2.6 2.6 -1.43381 0.127 24
DP 0 0 0 0 4 0 26
Dl -2.50464 -2.6
Dl 2.6 -2.6
Dl 2.6 2.60484
Dl -2.50464 2.60484
DS -1.4 -2.6 -2.4 -1.6 0.127 21
DS 1.5 -2.6 2.4 -1.7 0.127 21
DS 1.5 2.6 2.4 1.7 0.127 21
DS -1.45982 2.6 -1.5 2.6 0.127 21
DS -1.5 2.6 -2.4 1.7 0.127 21
$PAD
Sh "1" R 1 0.7 0 0 0
At SMD N 00888000
.SolderMask 0
.SolderPaste 0
Ne 0 ""
Po -3 -1.85
$EndPAD
$PAD
Sh "2" R 1 0.7 0 0 0
At SMD N 00888000
.SolderMask 0
.SolderPaste 0
Ne 0 ""
Po 3 -1.85
$EndPAD
$PAD
Sh "3" R 1 0.7 0 0 0
At SMD N 00888000
.SolderMask 0
.SolderPaste 0
Ne 0 ""
Po -3 1.85
$EndPAD
$PAD
Sh "4" R 1 0.7 0 0 0
At SMD N 00888000
.SolderMask 0
.SolderPaste 0
Ne 0 ""
Po 3 1.85
$EndPAD
$EndMODULE SW4-SMD-5.2X5.2X1.5MM

3
pcb/sym-lib-table Normal file
View File

@ -0,0 +1,3 @@
(sym_lib_table
(lib (name SMD-BUTTON_4P-5.2X5.2X1.5MM-SKQGAKE010_)(type Legacy)(uri ${KIPRJMOD}/lib/SMD-BUTTON_4P-5.2X5.2X1.5MM-SKQGAKE010_.lib)(options "")(descr ""))
)