Je reflechie encore à comment mettre les label kicad. J'ai fait des tests avec les endstop je pense que ce que j'ai fait c'est pas mal. Faudra que je verifie le cablage en reel par rapport au schema

This commit is contained in:
Geekoid 2019-08-28 17:39:48 +02:00
parent 35f19c5325
commit 17cd1787ef
7 changed files with 336 additions and 295 deletions

2
.gitmodules vendored Normal file
View File

@ -0,0 +1,2 @@
[submodule "Grbl_Esp32"]
url = https://github.com/bdring/Grbl_Esp32.git

@ -1 +1 @@
Subproject commit aa8f458b8d1afab8c0381df14a84c3749157cddb
Subproject commit 996b0b6594a7e0b445ca71fef3308e9cd0b9bab8

View File

@ -29,6 +29,79 @@ X A- 9 600 -300 200 L 50 50 1 1 w
ENDDRAW
ENDDEF
#
# Connector_Conn_01x08_Male
#
DEF Connector_Conn_01x08_Male J 0 40 Y N 1 F N
F0 "J" 0 400 50 H V C CNN
F1 "Connector_Conn_01x08_Male" 0 -500 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 -395 0 -405 1 1 6 F
S 34 -295 0 -305 1 1 6 F
S 34 -195 0 -205 1 1 6 F
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
S 34 205 0 195 1 1 6 F
S 34 305 0 295 1 1 6 F
P 2 1 1 6 50 -400 34 -400 N
P 2 1 1 6 50 -300 34 -300 N
P 2 1 1 6 50 -200 34 -200 N
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
P 2 1 1 6 50 200 34 200 N
P 2 1 1 6 50 300 34 300 N
X Pin_1 1 200 300 150 L 50 50 1 1 P
X Pin_2 2 200 200 150 L 50 50 1 1 P
X Pin_3 3 200 100 150 L 50 50 1 1 P
X Pin_4 4 200 0 150 L 50 50 1 1 P
X Pin_5 5 200 -100 150 L 50 50 1 1 P
X Pin_6 6 200 -200 150 L 50 50 1 1 P
X Pin_7 7 200 -300 150 L 50 50 1 1 P
X Pin_8 8 200 -400 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
#
# Motor_Stepper_Motor_bipolar
#
DEF Motor_Stepper_Motor_bipolar M 0 0 Y N 1 F N
@ -117,6 +190,41 @@ X IO33 9 600 -900 100 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
# Switch_SW_Push_SPDT
#
DEF Switch_SW_Push_SPDT SW 0 0 Y N 1 F N
F0 "SW" 0 170 50 H V C CNN
F1 "Switch_SW_Push_SPDT" 0 -200 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 -100 20 0 0 0 N
C 80 100 20 0 1 0 N
P 2 0 0 0 0 40 0 120 N
P 2 0 1 0 -60 10 100 80 N
X A 1 200 100 100 L 50 50 1 1 P
X B 2 -200 0 100 R 50 50 1 1 P
X C 3 200 -100 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# power_+3.3V
#
DEF power_+3.3V #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "power_+3.3V" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS +3.3V
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 +3V3 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power_+36V
#
DEF power_+36V #PWR 0 0 Y Y 1 F P

View File

@ -3,7 +3,7 @@ EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 2
Sheet 1 3
Title ""
Date ""
Rev ""
@ -25,18 +25,204 @@ F 3 "https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32d
1 0 0 -1
$EndComp
$Sheet
S 2700 1150 1100 1350
S 4000 700 1100 1350
U 5D66B5B1
F0 "Motor and driver" 50
F1 "MotorDriver.sch" 50
F2 "Enable" I L 2700 1250 50
F3 "GND" I R 3800 1250 50
F4 "DirX" I L 2700 1400 50
F5 "StepX" I L 2700 1500 50
F6 "DirY" I L 2700 1650 50
F7 "StepY" I L 2700 1750 50
F8 "DirZ" I L 2700 1900 50
F9 "StepZ" I L 2700 2000 50
F10 "+33v(10-40v)" I R 3800 1400 50
F2 "Enable" I L 4000 800 50
F3 "GND" I R 5100 800 50
F4 "DirX" I L 4000 950 50
F5 "StepX" I L 4000 1050 50
F6 "DirY" I L 4000 1200 50
F7 "StepY" I L 4000 1300 50
F8 "DirZ" I L 4000 1450 50
F9 "StepZ" I L 4000 1550 50
F10 "+33v(10-40v)" I R 5100 950 50
$EndSheet
Text Label 2200 1350 0 50 ~ 0
Enable
Wire Wire Line
2100 1350 2200 1350
Text Label 3900 800 2 50 ~ 0
IO2
Wire Wire Line
4000 800 3900 800
$Sheet
S 4000 2500 1100 300
U 5D72017A
F0 "SpindleRelayRedLedSolenoid" 50
F1 "Spindle.sch" 50
$EndSheet
$Comp
L Switch:SW_Push_SPDT SW1(X)
U 1 1 5D7211A8
P 5200 3550
F 0 "SW1(X)" H 5200 3835 50 0000 C CNN
F 1 "SW_Push_SPDT" H 5200 3744 50 0000 C CNN
F 2 "" H 5200 3550 50 0001 C CNN
F 3 "~" H 5200 3550 50 0001 C CNN
1 5200 3550
-1 0 0 -1
$EndComp
$Comp
L power:GND #PWR?
U 1 1 5D7219C8
P 5500 3550
F 0 "#PWR?" H 5500 3300 50 0001 C CNN
F 1 "GND" V 5505 3422 50 0000 R CNN
F 2 "" H 5500 3550 50 0001 C CNN
F 3 "" H 5500 3550 50 0001 C CNN
1 5500 3550
0 -1 1 0
$EndComp
Wire Wire Line
5500 3550 5400 3550
Text Label 4250 3450 2 50 ~ 0
X_LIMIT
Wire Wire Line
4250 3450 4450 3450
$Comp
L Device:R R1
U 1 1 5D72315A
P 4800 3700
F 0 "R1" H 4870 3746 50 0000 L CNN
F 1 "10k" H 4870 3655 50 0000 L CNN
F 2 "" V 4730 3700 50 0001 C CNN
F 3 "~" H 4800 3700 50 0001 C CNN
1 4800 3700
-1 0 0 -1
$EndComp
Wire Wire Line
4800 3550 4800 3450
Connection ~ 4800 3450
Wire Wire Line
4800 3450 5000 3450
$Comp
L power:+3.3V #PWR?
U 1 1 5D723B7F
P 4800 3950
F 0 "#PWR?" H 4800 3800 50 0001 C CNN
F 1 "+3.3V" H 4815 4123 50 0000 C CNN
F 2 "" H 4800 3950 50 0001 C CNN
F 3 "" H 4800 3950 50 0001 C CNN
1 4800 3950
1 0 0 1
$EndComp
Wire Wire Line
4800 3950 4800 3850
$Comp
L Device:C C1
U 1 1 5D724733
P 4450 3700
F 0 "C1" H 4565 3746 50 0000 L CNN
F 1 "100nf" H 4565 3655 50 0000 L CNN
F 2 "" H 4488 3550 50 0001 C CNN
F 3 "~" H 4450 3700 50 0001 C CNN
1 4450 3700
-1 0 0 -1
$EndComp
Wire Wire Line
4450 3550 4450 3450
Connection ~ 4450 3450
Wire Wire Line
4450 3450 4800 3450
$Comp
L power:GND #PWR?
U 1 1 5D724DA5
P 4450 3950
F 0 "#PWR?" H 4450 3700 50 0001 C CNN
F 1 "GND" H 4455 3777 50 0000 C CNN
F 2 "" H 4450 3950 50 0001 C CNN
F 3 "" H 4450 3950 50 0001 C CNN
1 4450 3950
-1 0 0 -1
$EndComp
Wire Wire Line
4450 3950 4450 3850
$Comp
L Switch:SW_Push_SPDT SW2(Y)
U 1 1 5D72D97B
P 5200 4650
F 0 "SW2(Y)" H 5200 4935 50 0000 C CNN
F 1 "SW_Push_SPDT" H 5200 4844 50 0000 C CNN
F 2 "" H 5200 4650 50 0001 C CNN
F 3 "~" H 5200 4650 50 0001 C CNN
1 5200 4650
-1 0 0 -1
$EndComp
$Comp
L power:GND #PWR?
U 1 1 5D72D985
P 5500 4650
F 0 "#PWR?" H 5500 4400 50 0001 C CNN
F 1 "GND" V 5505 4522 50 0000 R CNN
F 2 "" H 5500 4650 50 0001 C CNN
F 3 "" H 5500 4650 50 0001 C CNN
1 5500 4650
0 -1 1 0
$EndComp
Wire Wire Line
5500 4650 5400 4650
Text Label 4250 4550 2 50 ~ 0
Y_LIMIT
Wire Wire Line
4250 4550 4450 4550
Wire Wire Line
4800 4650 4800 4550
Connection ~ 4800 4550
Wire Wire Line
4800 4550 5000 4550
$Comp
L power:+3.3V #PWR?
U 1 1 5D72D99F
P 4800 5050
F 0 "#PWR?" H 4800 4900 50 0001 C CNN
F 1 "+3.3V" H 4815 5223 50 0000 C CNN
F 2 "" H 4800 5050 50 0001 C CNN
F 3 "" H 4800 5050 50 0001 C CNN
1 4800 5050
1 0 0 1
$EndComp
Wire Wire Line
4800 5050 4800 4950
Wire Wire Line
4450 4650 4450 4550
Connection ~ 4450 4550
Wire Wire Line
4450 4550 4800 4550
$Comp
L power:GND #PWR?
U 1 1 5D72D9B7
P 4450 5050
F 0 "#PWR?" H 4450 4800 50 0001 C CNN
F 1 "GND" H 4455 4877 50 0000 C CNN
F 2 "" H 4450 5050 50 0001 C CNN
F 3 "" H 4450 5050 50 0001 C CNN
1 4450 5050
-1 0 0 -1
$EndComp
Wire Wire Line
4450 5050 4450 4950
$Comp
L Device:C C2
U 1 1 5D72D9AA
P 4450 4800
F 0 "C2" H 4565 4846 50 0000 L CNN
F 1 "100nf" H 4565 4755 50 0000 L CNN
F 2 "" H 4488 4650 50 0001 C CNN
F 3 "~" H 4450 4800 50 0001 C CNN
1 4450 4800
-1 0 0 -1
$EndComp
$Comp
L Device:R R2
U 1 1 5D72D992
P 4800 4800
F 0 "R2" H 4870 4846 50 0000 L CNN
F 1 "10k" H 4870 4755 50 0000 L CNN
F 2 "" V 4730 4800 50 0001 C CNN
F 3 "~" H 4800 4800 50 0001 C CNN
1 4800 4800
-1 0 0 -1
$EndComp
$EndSCHEMATC

View File

@ -3,7 +3,7 @@ EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 2 2
Sheet 2 3
Title ""
Date ""
Rev ""
@ -268,4 +268,15 @@ Wire Wire Line
8350 2100 8100 2100
Wire Wire Line
8200 1000 8750 1000
$Comp
L Connector:Conn_01x08_Male J?
U 1 1 5D71BD31
P 900 3900
F 0 "J?" H 1008 4381 50 0000 C CNN
F 1 "Conn_01x08_Male" H 1008 4290 50 0000 C CNN
F 2 "" H 900 3900 50 0001 C CNN
F 3 "~" H 900 3900 50 0001 C CNN
1 900 3900
1 0 0 -1
$EndComp
$EndSCHEMATC

View File

@ -0,0 +1,16 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 3
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$EndSCHEMATC

View File

@ -1,282 +0,0 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 2 2
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L CRA4_GRBL_ESP32:TB6600StyleMotorDriver U1(X)
U 1 1 5D6704B3
P 1700 2200
F 0 "U1(X)" H 1708 3187 60 0000 C CNN
F 1 "TB6600StyleMotorDriver" H 1708 3081 60 0000 C CNN
F 2 "" H 1700 2200 60 0001 C CNN
F 3 "" H 1700 2200 60 0001 C CNN
1 1700 2200
1 0 0 -1
$EndComp
Wire Wire Line
2300 1500 2450 1500
Wire Wire Line
2450 1500 2450 1750
Wire Wire Line
2450 2750 2300 2750
Wire Wire Line
2300 1750 2450 1750
Connection ~ 2450 1750
Wire Wire Line
2450 1750 2450 2000
Wire Wire Line
2300 2000 2450 2000
Connection ~ 2450 2000
Wire Wire Line
2450 2000 2450 2750
$Comp
L CRA4_GRBL_ESP32:TB6600StyleMotorDriver U3(Z)
U 1 1 5D670FEB
P 7500 2200
F 0 "U3(Z)" H 7508 3187 60 0000 C CNN
F 1 "TB6600StyleMotorDriver" H 7508 3081 60 0000 C CNN
F 2 "" H 7500 2200 60 0001 C CNN
F 3 "" H 7500 2200 60 0001 C CNN
1 7500 2200
1 0 0 -1
$EndComp
$Comp
L Motor:Stepper_Motor_bipolar M3(Z)
U 1 1 5D67250B
P 8650 2600
F 0 "M3(Z)" H 8838 2724 50 0000 L CNN
F 1 "Stepper_Motor_bipolar" H 8838 2633 50 0000 L CNN
F 2 "" H 8660 2590 50 0001 C CNN
F 3 "http://www.infineon.com/dgdl/Application-Note-TLE8110EE_driving_UniPolarStepperMotor_V1.1.pdf?fileId=db3a30431be39b97011be5d0aa0a00b0" H 8660 2590 50 0001 C CNN
1 8650 2600
1 0 0 -1
$EndComp
$Comp
L Motor:Stepper_Motor_bipolar M2(Y)
U 1 1 5D671A5B
P 5750 2600
F 0 "M2(Y)" H 5938 2724 50 0000 L CNN
F 1 "Stepper_Motor_bipolar" H 5938 2633 50 0000 L CNN
F 2 "" H 5760 2590 50 0001 C CNN
F 3 "http://www.infineon.com/dgdl/Application-Note-TLE8110EE_driving_UniPolarStepperMotor_V1.1.pdf?fileId=db3a30431be39b97011be5d0aa0a00b0" H 5760 2590 50 0001 C CNN
1 5750 2600
1 0 0 -1
$EndComp
$Comp
L CRA4_GRBL_ESP32:TB6600StyleMotorDriver U2(Y)
U 1 1 5D670966
P 4600 2200
F 0 "U2(Y)" H 4608 3187 60 0000 C CNN
F 1 "TB6600StyleMotorDriver" H 4608 3081 60 0000 C CNN
F 2 "" H 4600 2200 60 0001 C CNN
F 3 "" H 4600 2200 60 0001 C CNN
1 4600 2200
1 0 0 -1
$EndComp
Wire Wire Line
2300 2850 2300 3200
Wire Wire Line
2300 3200 5200 3200
Wire Wire Line
5200 3200 5200 2850
Wire Wire Line
2450 2750 2450 3050
Wire Wire Line
2450 3050 5350 3050
Wire Wire Line
5350 3050 5350 2750
Wire Wire Line
5350 2750 5200 2750
Connection ~ 2450 2750
Wire Wire Line
5350 2750 5350 2000
Wire Wire Line
5350 1500 5200 1500
Connection ~ 5350 2750
Wire Wire Line
5200 1750 5350 1750
Connection ~ 5350 1750
Wire Wire Line
5350 1750 5350 1500
Wire Wire Line
5200 2000 5350 2000
Connection ~ 5350 2000
Wire Wire Line
5350 2000 5350 1750
Wire Wire Line
5200 3200 8100 3200
Wire Wire Line
8100 3200 8100 2850
Connection ~ 5200 3200
Wire Wire Line
5350 3050 8250 3050
Wire Wire Line
8250 3050 8250 2750
Wire Wire Line
8250 2750 8100 2750
Connection ~ 5350 3050
Wire Wire Line
8250 2750 8250 2000
Wire Wire Line
8250 1500 8100 1500
Connection ~ 8250 2750
Wire Wire Line
8100 1750 8250 1750
Connection ~ 8250 1750
Wire Wire Line
8250 1750 8250 1500
Wire Wire Line
8100 2000 8250 2000
Connection ~ 8250 2000
Wire Wire Line
8250 2000 8250 1750
$Comp
L power:GND #PWR?
U 1 1 5D6DB9B5
P 8350 3050
F 0 "#PWR?" H 8350 2800 50 0001 C CNN
F 1 "GND" V 8355 2922 50 0000 R CNN
F 2 "" H 8350 3050 50 0001 C CNN
F 3 "" H 8350 3050 50 0001 C CNN
1 8350 3050
0 -1 -1 0
$EndComp
Wire Wire Line
8250 3050 8350 3050
Connection ~ 8250 3050
$Comp
L power:+36V #PWR?
U 1 1 5D6DD82A
P 8350 3200
F 0 "#PWR?" H 8350 3050 50 0001 C CNN
F 1 "+36V" V 8365 3328 50 0000 L CNN
F 2 "" H 8350 3200 50 0001 C CNN
F 3 "" H 8350 3200 50 0001 C CNN
1 8350 3200
0 1 1 0
$EndComp
Wire Wire Line
8100 3200 8350 3200
Connection ~ 8100 3200
Wire Wire Line
2300 2600 2300 2700
Wire Wire Line
2300 2700 2550 2700
Wire Wire Line
2300 2500 2550 2500
Wire Wire Line
2950 2250 2300 2250
Wire Wire Line
2750 2300 2300 2300
Wire Wire Line
2300 2300 2300 2350
Wire Wire Line
2950 2250 2950 2300
$Comp
L Motor:Stepper_Motor_bipolar M1(X)
U 1 1 5D671537
P 2850 2600
F 0 "M1(X)" H 3038 2724 50 0000 L CNN
F 1 "Stepper_Motor_bipolar" H 3038 2633 50 0000 L CNN
F 2 "" H 2860 2590 50 0001 C CNN
F 3 "http://www.infineon.com/dgdl/Application-Note-TLE8110EE_driving_UniPolarStepperMotor_V1.1.pdf?fileId=db3a30431be39b97011be5d0aa0a00b0" H 2860 2590 50 0001 C CNN
1 2850 2600
1 0 0 -1
$EndComp
Wire Wire Line
5450 2500 5200 2500
Wire Wire Line
5200 2600 5200 2700
Wire Wire Line
5200 2700 5450 2700
Wire Wire Line
5850 2300 5850 2250
Wire Wire Line
5850 2250 5200 2250
Wire Wire Line
5200 2350 5200 2300
Wire Wire Line
5200 2300 5650 2300
Wire Wire Line
8350 2500 8100 2500
Wire Wire Line
8100 2600 8100 2700
Wire Wire Line
8100 2700 8350 2700
Wire Wire Line
8750 2300 8750 2250
Wire Wire Line
8750 2250 8100 2250
Wire Wire Line
8100 2350 8100 2300
Wire Wire Line
8100 2300 8550 2300
Wire Wire Line
2300 1600 2400 1600
Wire Wire Line
2400 1600 2400 1000
Wire Wire Line
2400 1000 5300 1000
Wire Wire Line
8200 1000 8200 1600
Wire Wire Line
8200 1600 8100 1600
Wire Wire Line
5200 1600 5300 1600
Wire Wire Line
5300 1600 5300 1000
Connection ~ 5300 1000
Wire Wire Line
5300 1000 8200 1000
Text HLabel 8750 1000 2 50 Input ~ 0
Enable
Connection ~ 8200 1000
Wire Wire Line
2300 1850 2550 1850
Text HLabel 2550 1850 2 50 Input ~ 0
DirX
Text HLabel 2550 2100 2 50 Input ~ 0
StepX
Wire Wire Line
2550 2100 2300 2100
Text HLabel 5450 1850 2 50 Input ~ 0
DirY
Wire Wire Line
5450 1850 5200 1850
Text HLabel 5450 2100 2 50 Input ~ 0
StepY
Wire Wire Line
5450 2100 5200 2100
Text HLabel 8350 1850 2 50 Input ~ 0
DirZ
Wire Wire Line
8350 1850 8100 1850
Text HLabel 8350 2100 2 50 Input ~ 0
StepZ
Wire Wire Line
8350 2100 8100 2100
Wire Wire Line
8200 1000 8750 1000
$Comp
L Connector:Conn_01x08_Male J?
U 1 1 5D71BD31
P 900 3900
F 0 "J?" H 1008 4381 50 0000 C CNN
F 1 "Conn_01x08_Male" H 1008 4290 50 0000 C CNN
F 2 "" H 900 3900 50 0001 C CNN
F 3 "~" H 900 3900 50 0001 C CNN
1 900 3900
1 0 0 -1
$EndComp
$EndSCHEMATC