2015-01-31 21:19:39 +03:00

752 lines
15 KiB
Plaintext

EESchema Schematic File Version 2
LIBS:power
LIBS:device
LIBS:transistors
LIBS:conn
LIBS:linear
LIBS:regul
LIBS:74xx
LIBS:cmos4000
LIBS:adc-dac
LIBS:memory
LIBS:xilinx
LIBS:special
LIBS:microcontrollers
LIBS:dsp
LIBS:microchip
LIBS:analog_switches
LIBS:motorola
LIBS:texas
LIBS:intel
LIBS:audio
LIBS:interface
LIBS:digital-audio
LIBS:philips
LIBS:display
LIBS:cypress
LIBS:siliconi
LIBS:opto
LIBS:atmel
LIBS:contrib
LIBS:valves
LIBS:stm8s105k4t6c
LIBS:L9110
LIBS:LM1117
LIBS:s8205a
LIBS:MCU_module-cache
EELAYER 24 0
EELAYER END
$Descr A3 16535 11693
encoding utf-8
Sheet 1 2
Title ""
Date "14 nov 2014"
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L GND #PWR01
U 1 1 52FB03EF
P 1600 1650
F 0 "#PWR01" H 1600 1650 30 0001 C CNN
F 1 "GND" H 1600 1580 30 0001 C CNN
F 2 "" H 1600 1650 60 0000 C CNN
F 3 "" H 1600 1650 60 0000 C CNN
1 1600 1650
1 0 0 -1
$EndComp
Text Label 2150 1700 2 60 ~ 0
NRST
Text Label 2150 1800 2 60 ~ 0
OSC1IN
Text Label 2150 1900 2 60 ~ 0
OSC2IN
Text Label 2150 2000 2 60 ~ 0
PF4
Text Label 2150 2100 2 60 ~ 0
PB5
Text Label 2150 2200 2 60 ~ 0
PB4
Text Label 2150 2300 2 60 ~ 0
PB3
Text Label 2150 2400 2 60 ~ 0
PB2
Text Label 2150 2500 2 60 ~ 0
PB1
Text Label 2150 2600 2 60 ~ 0
PB0
Text Label 2150 2700 2 60 ~ 0
PE5
Text Label 2150 2800 2 60 ~ 0
PC1
Text Label 4950 2800 0 60 ~ 0
PC2
Text Label 4950 2700 0 60 ~ 0
PC3
Text Label 4950 2600 0 60 ~ 0
PC4
Text Label 4950 2500 0 60 ~ 0
PC5
Text Label 4950 2400 0 60 ~ 0
PC6
Text Label 4950 2300 0 60 ~ 0
PC7
Text Label 4950 2200 0 60 ~ 0
PD0
Text Label 4950 2100 0 60 ~ 0
SWIM/PD1
Text Label 4950 2000 0 60 ~ 0
PD2
Text Label 4950 1900 0 60 ~ 0
PD3
Text Label 4950 1800 0 60 ~ 0
PD4
Text Label 4950 1700 0 60 ~ 0
PD5
Text Label 4950 1600 0 60 ~ 0
PD6
Text Label 4950 1500 0 60 ~ 0
PD7
Text Label 1200 5850 2 60 ~ 0
PC1
Text Label 4000 6200 2 60 ~ 0
PB3
Text Label 4000 6300 2 60 ~ 0
PB2
Text Label 4000 5450 2 60 ~ 0
PB1
Text Label 4000 5550 2 60 ~ 0
PB0
$Sheet
S 1350 5600 750 650
U 53EF036E
F0 "Drill motor" 50
F1 "drill.sch" 50
F2 "PWM_in" I L 1350 5850 60
F3 "Sence" O L 1350 6000 60
F4 "DRILL+" O R 2100 5700 60
F5 "DRILL-" O R 2100 6100 60
$EndSheet
Wire Wire Line
1200 5850 1350 5850
Text Label 1200 6000 2 60 ~ 0
PF4
Wire Wire Line
1200 6000 1350 6000
$Comp
L L9110 DA1
U 1 1 53F0EE9F
P 4600 5500
F 0 "DA1" H 4600 5200 50 0000 C CNN
F 1 "L9110" H 4600 5800 50 0000 C CNN
F 2 "" H 4600 5500 50 0001 C CNN
F 3 "" H 4600 5500 50 0001 C CNN
1 4600 5500
-1 0 0 -1
$EndComp
$Comp
L L9110 DA2
U 1 1 53F0EF24
P 4600 6250
F 0 "DA2" H 4600 5950 50 0000 C CNN
F 1 "L9110" H 4600 6550 50 0000 C CNN
F 2 "" H 4600 6250 50 0001 C CNN
F 3 "" H 4600 6250 50 0001 C CNN
1 4600 6250
-1 0 0 -1
$EndComp
$Comp
L L9110 DA3
U 1 1 53F0EF3C
P 4600 7650
F 0 "DA3" H 4600 7350 50 0000 C CNN
F 1 "L9110" H 4600 7950 50 0000 C CNN
F 2 "" H 4600 7650 50 0001 C CNN
F 3 "" H 4600 7650 50 0001 C CNN
1 4600 7650
-1 0 0 -1
$EndComp
$Comp
L CONN_4 P3
U 1 1 53F0F09A
P 6100 5850
F 0 "P3" V 6050 5850 50 0000 C CNN
F 1 "Stepper" V 6150 5850 50 0000 C CNN
F 2 "" H 6100 5850 60 0000 C CNN
F 3 "" H 6100 5850 60 0000 C CNN
1 6100 5850
1 0 0 -1
$EndComp
Wire Wire Line
5200 5450 5200 5550
Wire Wire Line
5200 6200 5200 6300
Wire Wire Line
3700 6400 4000 6400
Wire Wire Line
3700 6400 3700 6100
Wire Wire Line
3700 6100 4000 6100
Wire Wire Line
4000 6100 4000 5650
Wire Wire Line
4000 5650 3700 5650
Wire Wire Line
3700 5650 3700 5350
Wire Wire Line
3700 5350 4000 5350
$Comp
L GND #PWR02
U 1 1 53F0F2B8
P 4000 6500
F 0 "#PWR02" H 4000 6500 30 0001 C CNN
F 1 "GND" H 4000 6430 30 0001 C CNN
F 2 "" H 4000 6500 60 0000 C CNN
F 3 "" H 4000 6500 60 0000 C CNN
1 4000 6500
1 0 0 -1
$EndComp
Wire Wire Line
4000 6400 4000 6500
Connection ~ 4000 6400
Connection ~ 4000 6100
Connection ~ 4000 5650
Connection ~ 4000 5350
Wire Wire Line
5200 5500 5350 5500
Wire Wire Line
5350 5500 5350 6250
Wire Wire Line
5350 6250 5200 6250
Connection ~ 5200 6250
Connection ~ 5200 5500
Wire Wire Line
5100 5900 5350 5900
Connection ~ 5350 5900
$Comp
L +5V #PWR03
U 1 1 53F0F5FC
P 5100 5900
F 0 "#PWR03" H 5100 5990 20 0001 C CNN
F 1 "+5V" H 5100 5990 30 0000 C CNN
F 2 "" H 5100 5900 60 0000 C CNN
F 3 "" H 5100 5900 60 0000 C CNN
1 5100 5900
1 0 0 -1
$EndComp
$Comp
L LM1117MPX-3.3 U2
U 1 1 53F0F811
P 9450 2950
F 0 "U2" H 9250 3150 40 0000 C CNN
F 1 "LM1117MPX-3.3" H 9450 3150 40 0000 L CNN
F 2 "SOT223" H 9450 3050 30 0001 C CIN
F 3 "~" H 9450 2950 60 0000 C CNN
1 9450 2950
1 0 0 -1
$EndComp
$Comp
L C C4
U 1 1 53F0F83E
P 8800 3100
F 0 "C4" H 8800 3200 40 0000 L CNN
F 1 "0.1u" H 8806 3015 40 0000 L CNN
F 2 "SM0603" H 8838 2950 30 0001 C CNN
F 3 "~" H 8800 3100 60 0000 C CNN
1 8800 3100
1 0 0 -1
$EndComp
$Comp
L CP1 C5
U 1 1 53F0F88C
P 10000 3100
F 0 "C5" H 10050 3200 50 0000 L CNN
F 1 "47u" H 10050 3000 50 0000 L CNN
F 2 "SM1206" H 10000 3100 60 0001 C CNN
F 3 "~" H 10000 3100 60 0000 C CNN
1 10000 3100
1 0 0 -1
$EndComp
Wire Wire Line
8300 2900 9050 2900
Wire Wire Line
9850 2900 10200 2900
Wire Wire Line
8800 3300 10000 3300
Wire Wire Line
9450 3200 9450 3400
Connection ~ 9450 3300
$Comp
L GND #PWR04
U 1 1 53F0FCF1
P 9450 3400
F 0 "#PWR04" H 9450 3400 30 0001 C CNN
F 1 "GND" H 9450 3330 30 0001 C CNN
F 2 "" H 9450 3400 60 0000 C CNN
F 3 "" H 9450 3400 60 0000 C CNN
1 9450 3400
1 0 0 -1
$EndComp
$Comp
L CONN_3 K1
U 1 1 53F0FD67
P 7950 2900
F 0 "K1" V 7900 2900 50 0000 C CNN
F 1 "POWER" V 8000 2900 40 0000 C CNN
F 2 "" H 7950 2900 60 0000 C CNN
F 3 "" H 7950 2900 60 0000 C CNN
1 7950 2900
-1 0 0 1
$EndComp
$Comp
L GND #PWR05
U 1 1 53F0FD7A
P 8350 3100
F 0 "#PWR05" H 8350 3100 30 0001 C CNN
F 1 "GND" H 8350 3030 30 0001 C CNN
F 2 "" H 8350 3100 60 0000 C CNN
F 3 "" H 8350 3100 60 0000 C CNN
1 8350 3100
1 0 0 -1
$EndComp
Wire Wire Line
8300 3000 8550 3000
Wire Wire Line
8350 3000 8350 3100
Connection ~ 8800 2900
$Comp
L +5V #PWR06
U 1 1 53F0FE51
P 8800 2850
F 0 "#PWR06" H 8800 2940 20 0001 C CNN
F 1 "+5V" H 8800 2940 30 0000 C CNN
F 2 "" H 8800 2850 60 0000 C CNN
F 3 "" H 8800 2850 60 0000 C CNN
1 8800 2850
1 0 0 -1
$EndComp
Wire Wire Line
8800 2900 8800 2850
$Comp
L +12V #PWR07
U 1 1 53F0FEBE
P 8350 2750
F 0 "#PWR07" H 8350 2700 20 0001 C CNN
F 1 "+12V" H 8350 2850 30 0000 C CNN
F 2 "" H 8350 2750 60 0000 C CNN
F 3 "" H 8350 2750 60 0000 C CNN
1 8350 2750
1 0 0 -1
$EndComp
Wire Wire Line
8350 2750 8350 2800
Wire Wire Line
8350 2800 8300 2800
$Comp
L +3.3V #PWR08
U 1 1 53F1006E
P 10200 2850
F 0 "#PWR08" H 10200 2810 30 0001 C CNN
F 1 "+3.3V" H 10200 2960 30 0000 C CNN
F 2 "" H 10200 2850 60 0000 C CNN
F 3 "" H 10200 2850 60 0000 C CNN
1 10200 2850
1 0 0 -1
$EndComp
Wire Wire Line
10200 2900 10200 2850
Connection ~ 10000 2900
Wire Wire Line
5500 5350 5500 5800
Wire Wire Line
5500 5350 5200 5350
Wire Wire Line
5200 5650 5250 5650
Wire Wire Line
5450 6100 5200 6100
Wire Wire Line
5600 5900 5600 6400
Wire Wire Line
5600 6400 5200 6400
Text Label 4000 7700 2 60 ~ 0
PD2
Text Label 4000 7600 2 60 ~ 0
PD3
Wire Wire Line
4000 7800 3700 7800
Wire Wire Line
3700 7800 3700 7500
Wire Wire Line
3700 7500 4000 7500
Wire Wire Line
5200 7600 5200 7700
Wire Wire Line
4000 7900 4000 7800
Connection ~ 4000 7800
$Comp
L +5V #PWR09
U 1 1 53F11209
P 5300 7650
F 0 "#PWR09" H 5300 7740 20 0001 C CNN
F 1 "+5V" H 5300 7740 30 0000 C CNN
F 2 "" H 5300 7650 60 0000 C CNN
F 3 "" H 5300 7650 60 0000 C CNN
1 5300 7650
1 0 0 -1
$EndComp
Wire Wire Line
5200 7650 5300 7650
Connection ~ 5200 7650
Text Notes 5700 5500 0 60 ~ 0
Stepper motor module
$Comp
L CONN_2 P4
U 1 1 53F1169C
P 6100 7650
F 0 "P4" V 6050 7650 40 0000 C CNN
F 1 "Slide" V 6150 7650 40 0000 C CNN
F 2 "" H 6100 7650 60 0000 C CNN
F 3 "" H 6100 7650 60 0000 C CNN
1 6100 7650
1 0 0 -1
$EndComp
Wire Wire Line
5200 7500 5500 7500
Wire Wire Line
5500 7500 5500 7550
Wire Wire Line
5500 7550 5750 7550
Wire Wire Line
5200 7800 5500 7800
Wire Wire Line
5500 7800 5500 7750
Wire Wire Line
5500 7750 5750 7750
Wire Notes Line
5700 7050 5700 8850
$Comp
L PWR_FLAG #FLG010
U 1 1 53F11FC5
P 8550 2750
F 0 "#FLG010" H 8550 2845 30 0001 C CNN
F 1 "PWR_FLAG" H 8550 2930 30 0000 C CNN
F 2 "" H 8550 2750 60 0000 C CNN
F 3 "" H 8550 2750 60 0000 C CNN
1 8550 2750
1 0 0 -1
$EndComp
Wire Wire Line
8550 2750 8350 2750
$Comp
L PWR_FLAG #FLG011
U 1 1 53F12233
P 8550 3000
F 0 "#FLG011" H 8550 3095 30 0001 C CNN
F 1 "PWR_FLAG" H 8550 3180 30 0000 C CNN
F 2 "" H 8550 3000 60 0000 C CNN
F 3 "" H 8550 3000 60 0000 C CNN
1 8550 3000
-1 0 0 1
$EndComp
Connection ~ 8350 3000
$Comp
L PWR_FLAG #FLG012
U 1 1 53F122D9
P 9000 2800
F 0 "#FLG012" H 9000 2895 30 0001 C CNN
F 1 "PWR_FLAG" H 9000 2980 30 0000 C CNN
F 2 "" H 9000 2800 60 0000 C CNN
F 3 "" H 9000 2800 60 0000 C CNN
1 9000 2800
1 0 0 -1
$EndComp
Wire Wire Line
9000 2800 9000 2900
Connection ~ 9000 2900
Text Label 5500 8150 2 60 ~ 0
PC3
Text Label 5500 8000 2 60 ~ 0
PC4
Text Label 800 5650 2 60 ~ 0
PC5
Wire Notes Line
2350 4750 750 4750
Text Notes 1050 5000 0 60 ~ 0
Drill motor + pedal
Text Notes 950 4250 0 60 ~ 0
"DRILLSW" is foot-switch.\nPress it to move drill down,\nrelease to return it to start position.\nDouble-click turns drill motor on/off.\n
Text Notes 6600 7150 0 60 ~ 0
Two buttons on tray have following functionality:\nBTN1 - setup zero point (move slowly + set coordinate\n to 0 after footswitch released); next pressing returns\n device to normal state;\nBTN2 - switch between regulation of drill speed/stepper speed;\nBTN1+BTN2 (simultaneously) - move tray up/down.\n\n"volume" varistor allows to regulate motor speed.\nDefault is max drill speed, varistor regulates stepper speed.
Text Notes 1750 2800 2 60 ~ 0
Drill PWM
Text Notes 1700 2000 2 60 ~ 0
Drill sense
Text Notes 5300 2550 0 60 ~ 0
Drill SW
Wire Notes Line
2000 2600 1950 2600
Wire Notes Line
1950 2600 1950 2250
Text Notes 1900 2450 2 60 ~ 0
Stepper phases
Text Notes 5300 1950 0 60 ~ 0
Tray bridge
Text Notes 5300 2450 0 60 ~ 0
BTN1
Text Notes 5300 2350 0 60 ~ 0
BTN2
Text Notes 1950 2200 2 60 ~ 0
Rvar
Text Label 5500 8600 2 60 ~ 0
PB4
Text Notes 5250 2750 0 60 ~ 0
Tray Down
Text Notes 5300 2650 0 60 ~ 0
Tray Up
Text Label 5500 8450 2 60 ~ 0
PC7
Text Label 5500 8300 2 60 ~ 0
PC6
Text Notes 6450 4500 0 60 ~ 0
All MCU inputs connected to switches\nshould be in "pull-up input" mode.
Text Notes 5250 2850 0 60 ~ 0
LED onbrd
Wire Notes Line
5250 1700 5300 1700
Wire Notes Line
5300 1700 5300 1550
Text Notes 5350 1650 0 60 ~ 0
UART
Wire Notes Line
5250 2000 5300 2000
Wire Notes Line
5300 2000 5300 1850
Wire Wire Line
1600 1650 1600 1600
Wire Wire Line
1600 1600 2150 1600
$Comp
L +3.3V #PWR013
U 1 1 54627FDB
P 2150 1400
F 0 "#PWR013" H 2150 1360 30 0001 C CNN
F 1 "+3.3V" H 2150 1510 30 0000 C CNN
F 2 "" H 2150 1400 60 0000 C CNN
F 3 "" H 2150 1400 60 0000 C CNN
1 2150 1400
1 0 0 -1
$EndComp
Wire Wire Line
2150 1400 2150 1500
$Comp
L CONN_1 UP1
U 1 1 54628F0D
P 5950 8000
F 0 "UP1" H 6030 8000 40 0000 L CNN
F 1 "CONN_1" H 5950 8055 30 0001 C CNN
F 2 "" H 5950 8000 60 0000 C CNN
F 3 "" H 5950 8000 60 0000 C CNN
1 5950 8000
1 0 0 -1
$EndComp
$Comp
L CONN_1 DOWN1
U 1 1 54628F38
P 5950 8150
F 0 "DOWN1" H 6030 8150 40 0000 L CNN
F 1 "CONN_1" H 5950 8205 30 0001 C CNN
F 2 "" H 5950 8150 60 0000 C CNN
F 3 "" H 5950 8150 60 0000 C CNN
1 5950 8150
1 0 0 -1
$EndComp
$Comp
L CONN_1 BTN1
U 1 1 54628F3E
P 5950 8300
F 0 "BTN1" H 6030 8300 40 0000 L CNN
F 1 "CONN_1" H 5950 8355 30 0001 C CNN
F 2 "" H 5950 8300 60 0000 C CNN
F 3 "" H 5950 8300 60 0000 C CNN
1 5950 8300
1 0 0 -1
$EndComp
$Comp
L CONN_1 BTN2
U 1 1 54628FEC
P 5950 8450
F 0 "BTN2" H 6030 8450 40 0000 L CNN
F 1 "CONN_1" H 5950 8505 30 0001 C CNN
F 2 "" H 5950 8450 60 0000 C CNN
F 3 "" H 5950 8450 60 0000 C CNN
1 5950 8450
1 0 0 -1
$EndComp
$Comp
L CONN_1 POT1
U 1 1 54628FF2
P 5950 8600
F 0 "POT1" H 6030 8600 40 0000 L CNN
F 1 "CONN_1" H 5950 8655 30 0001 C CNN
F 2 "" H 5950 8600 60 0000 C CNN
F 3 "" H 5950 8600 60 0000 C CNN
1 5950 8600
1 0 0 -1
$EndComp
Wire Wire Line
5500 8000 5800 8000
Wire Wire Line
5500 8150 5800 8150
Wire Wire Line
5500 8300 5800 8300
Wire Wire Line
5500 8450 5800 8450
Wire Wire Line
5500 8600 5800 8600
Wire Notes Line
5700 8850 6300 8850
Wire Notes Line
6300 8850 6300 7050
Wire Notes Line
6300 7050 5700 7050
Text Notes 5900 7200 0 60 ~ 0
Tray
$Comp
L CONN_1 DRILL+1
U 1 1 54629D60
P 1900 5350
F 0 "DRILL+1" H 1980 5350 40 0000 L CNN
F 1 "CONN_1" H 1900 5405 30 0001 C CNN
F 2 "" H 1900 5350 60 0000 C CNN
F 3 "" H 1900 5350 60 0000 C CNN
1 1900 5350
-1 0 0 1
$EndComp
$Comp
L CONN_1 DRILL-1
U 1 1 54629E20
P 1900 5150
F 0 "DRILL-1" H 1980 5150 40 0000 L CNN
F 1 "CONN_1" H 1900 5205 30 0001 C CNN
F 2 "" H 1900 5150 60 0000 C CNN
F 3 "" H 1900 5150 60 0000 C CNN
1 1900 5150
-1 0 0 1
$EndComp
Wire Wire Line
2050 5350 2150 5350
Wire Wire Line
2150 5350 2150 5700
Wire Wire Line
2150 5700 2100 5700
Wire Wire Line
2100 6100 2200 6100
Wire Wire Line
2200 6100 2200 5150
Wire Wire Line
2200 5150 2050 5150
Wire Notes Line
2350 5400 750 5400
Wire Notes Line
2350 5400 2350 4750
Wire Notes Line
750 5400 750 4750
$Comp
L CONN_1 DRILLSW1
U 1 1 5462B0E5
P 1100 5150
F 0 "DRILLSW1" H 1180 5150 40 0000 L CNN
F 1 "CONN_1" H 1100 5205 30 0001 C CNN
F 2 "" H 1100 5150 60 0000 C CNN
F 3 "" H 1100 5150 60 0000 C CNN
1 1100 5150
1 0 0 -1
$EndComp
$Comp
L CONN_1 GND1
U 1 1 5462B0EB
P 1100 5300
F 0 "GND1" H 1180 5300 40 0000 L CNN
F 1 "CONN_1" H 1100 5355 30 0001 C CNN
F 2 "" H 1100 5300 60 0000 C CNN
F 3 "" H 1100 5300 60 0000 C CNN
1 1100 5300
1 0 0 -1
$EndComp
$Comp
L GND #PWR014
U 1 1 5462B234
P 950 5500
F 0 "#PWR014" H 950 5500 30 0001 C CNN
F 1 "GND" H 950 5430 30 0001 C CNN
F 2 "" H 950 5500 60 0000 C CNN
F 3 "" H 950 5500 60 0000 C CNN
1 950 5500
1 0 0 -1
$EndComp
Wire Wire Line
950 5500 950 5300
Wire Wire Line
800 5650 800 5150
Wire Wire Line
800 5150 950 5150
Wire Notes Line
5650 5350 5650 6100
Wire Notes Line
5650 6100 6800 6100
Wire Notes Line
6800 6100 6800 5350
Wire Notes Line
6800 5350 5650 5350
NoConn ~ 2150 1700
NoConn ~ 2150 1800
NoConn ~ 2150 1900
NoConn ~ 2150 2100
NoConn ~ 2150 2700
NoConn ~ 4950 1500
NoConn ~ 4950 1800
NoConn ~ 4950 2100
NoConn ~ 4950 2200
NoConn ~ 4950 2800
$Comp
L GND #PWR015
U 1 1 5462CB9D
P 4000 7900
F 0 "#PWR015" H 4000 7900 30 0001 C CNN
F 1 "GND" H 4000 7830 30 0001 C CNN
F 2 "" H 4000 7900 60 0000 C CNN
F 3 "" H 4000 7900 60 0000 C CNN
1 4000 7900
1 0 0 -1
$EndComp
NoConn ~ 4950 1600
NoConn ~ 4950 1700
Wire Wire Line
5500 5800 5750 5800
Wire Wire Line
5250 5650 5250 5700
Wire Wire Line
5250 5700 5750 5700
Wire Wire Line
5600 5900 5750 5900
Wire Wire Line
5450 6100 5450 6000
Wire Wire Line
5450 6000 5750 6000
$Comp
L stm8s105board X1
U 1 1 549FF443
P 3550 2350
F 0 "X1" H 3550 3400 60 0000 C CNN
F 1 "stm8s105board" H 3550 1700 60 0000 C CNN
F 2 "devboard_pins-9-14" H 3550 2350 60 0001 C CNN
F 3 "" H 3550 2350 60 0000 C CNN
1 3550 2350
1 0 0 -1
$EndComp
$EndSCHEMATC