sonnt 5 years ago
commit
e8a1a21db7
7 changed files with 1510 additions and 0 deletions
  1. 338 0
      _saved_motor.sch
  2. 64 0
      conecter.sch
  3. 91 0
      display.sch
  4. 81 0
      keypad.sch
  5. 472 0
      main.sch
  6. 338 0
      motor.sch
  7. 126 0
      vinhome.sch

+ 338 - 0
_saved_motor.sch

@@ -0,0 +1,338 @@
+EESchema Schematic File Version 4
+LIBS:vinhome-cache
+EELAYER 26 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 3 6
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L Connector:Conn_01x02 J?
+U 1 1 5B62FA88
+P 2000 2300
+F 0 "J?" H 1920 1975 50  0000 C CNN
+F 1 "power 12V" H 1920 2066 50  0000 C CNN
+F 2 "" H 2000 2300 50  0001 C CNN
+F 3 "~" H 2000 2300 50  0001 C CNN
+	1    2000 2300
+	-1   0    0    1   
+$EndComp
+$Comp
+L power:GND #PWR?
+U 1 1 5B62FC7F
+P 2350 2800
+F 0 "#PWR?" H 2350 2550 50  0001 C CNN
+F 1 "GND" H 2355 2627 50  0000 C CNN
+F 2 "" H 2350 2800 50  0001 C CNN
+F 3 "" H 2350 2800 50  0001 C CNN
+	1    2350 2800
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	2200 2300 2350 2300
+Wire Wire Line
+	2200 2200 2400 2200
+$Comp
+L power:+12V #PWR?
+U 1 1 5B62FD2D
+P 2400 2050
+F 0 "#PWR?" H 2400 1900 50  0001 C CNN
+F 1 "+12V" H 2415 2223 50  0000 C CNN
+F 2 "" H 2400 2050 50  0001 C CNN
+F 3 "" H 2400 2050 50  0001 C CNN
+	1    2400 2050
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	2400 2050 2400 2200
+Connection ~ 2400 2200
+$Comp
+L device:R R?
+U 1 1 5B63085B
+P 7750 2900
+F 0 "R?" V 7543 2900 50  0000 C CNN
+F 1 "10R" V 7634 2900 50  0000 C CNN
+F 2 "Resistors_SMD:R_0805" V 7680 2900 50  0001 C CNN
+F 3 "" H 7750 2900 50  0001 C CNN
+	1    7750 2900
+	0    1    1    0   
+$EndComp
+Wire Wire Line
+	7600 2900 7300 2900
+Text HLabel 7300 2900 0    50   Input ~ 0
+Motor
+Wire Wire Line
+	7900 2900 8000 2900
+$Comp
+L power:GND #PWR?
+U 1 1 5B630BB8
+P 8400 3400
+F 0 "#PWR?" H 8400 3150 50  0001 C CNN
+F 1 "GND" H 8405 3227 50  0000 C CNN
+F 2 "" H 8400 3400 50  0001 C CNN
+F 3 "" H 8400 3400 50  0001 C CNN
+	1    8400 3400
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8400 3400 8400 3200
+$Comp
+L Motor:Motor_DC M?
+U 1 1 5B630FA5
+P 8400 2250
+F 0 "M?" H 8558 2246 50  0000 L CNN
+F 1 "Motor_DC" H 8558 2155 50  0000 L CNN
+F 2 "Pin_Headers:Pin_Header_Angled_1x02_Pitch2.54mm" H 8400 2160 50  0001 C CNN
+F 3 "" H 8400 2160 50  0001 C CNN
+	1    8400 2250
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8400 2550 8400 2650
+$Comp
+L power:+12V #PWR?
+U 1 1 5B6312F1
+P 8400 1900
+F 0 "#PWR?" H 8400 1750 50  0001 C CNN
+F 1 "+12V" H 8415 2073 50  0000 C CNN
+F 2 "" H 8400 1900 50  0001 C CNN
+F 3 "" H 8400 1900 50  0001 C CNN
+	1    8400 1900
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8400 1900 8400 2050
+$Comp
+L device:D_Schottky D?
+U 1 1 5B631428
+P 8800 2900
+F 0 "D?" V 8754 2979 50  0000 L CNN
+F 1 "D_Schottky" V 8845 2979 50  0000 L CNN
+F 2 "Diodes_SMD:D_SMB_Handsoldering" H 8800 2900 50  0001 C CNN
+F 3 "" H 8800 2900 50  0001 C CNN
+	1    8800 2900
+	0    1    1    0   
+$EndComp
+Wire Wire Line
+	8400 2650 8800 2650
+Wire Wire Line
+	8800 2650 8800 2750
+Connection ~ 8400 2650
+Wire Wire Line
+	8400 2650 8400 2700
+Wire Wire Line
+	8400 3100 8800 3100
+Wire Wire Line
+	8800 3100 8800 3050
+$Comp
+L device:R R?
+U 1 1 5B632236
+P 8000 3050
+F 0 "R?" H 7930 3004 50  0000 R CNN
+F 1 "47k" H 7930 3095 50  0000 R CNN
+F 2 "Resistors_SMD:R_0805" V 7930 3050 50  0001 C CNN
+F 3 "" H 8000 3050 50  0001 C CNN
+	1    8000 3050
+	-1   0    0    1   
+$EndComp
+Connection ~ 8000 2900
+Wire Wire Line
+	8000 2900 8100 2900
+Wire Wire Line
+	8000 3200 8400 3200
+Connection ~ 8400 3200
+Wire Wire Line
+	8400 3200 8400 3100
+Wire Wire Line
+	2400 2200 2750 2200
+$Comp
+L device:Q_NMOS_GSD Q?
+U 1 1 5B633A97
+P 8300 2900
+F 0 "Q?" H 8505 2946 50  0000 L CNN
+F 1 "Q_NMOS_GSD" H 8505 2855 50  0000 L CNN
+F 2 "TO_SOT_Packages_SMD:SOT-23" H 8500 3000 50  0001 C CNN
+F 3 "" H 8300 2900 50  0001 C CNN
+	1    8300 2900
+	1    0    0    -1  
+$EndComp
+Connection ~ 8400 3100
+$Comp
+L device:CP1 C?
+U 1 1 5B633F38
+P 2750 2450
+F 0 "C?" H 2865 2496 50  0000 L CNN
+F 1 "100u/35v" H 2600 2400 50  0000 L CNN
+F 2 "Capacitors_SMD:CP_Elec_5x5.8" H 2750 2450 50  0001 C CNN
+F 3 "" H 2750 2450 50  0001 C CNN
+	1    2750 2450
+	1    0    0    -1  
+$EndComp
+$Comp
+L device:C_Small C?
+U 1 1 5B63429C
+P 3050 2450
+F 0 "C?" H 3142 2496 50  0000 L CNN
+F 1 "104" H 3142 2405 50  0000 L CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 3050 2450 50  0001 C CNN
+F 3 "" H 3050 2450 50  0001 C CNN
+	1    3050 2450
+	1    0    0    -1  
+$EndComp
+$Comp
+L device:CP1 C?
+U 1 1 5B634915
+P 4650 2350
+F 0 "C?" H 4765 2396 50  0000 L CNN
+F 1 "100u/16v" H 4500 2300 50  0000 L CNN
+F 2 "Capacitors_SMD:CP_Elec_5x5.8" H 4650 2350 50  0001 C CNN
+F 3 "" H 4650 2350 50  0001 C CNN
+	1    4650 2350
+	1    0    0    -1  
+$EndComp
+$Comp
+L device:C_Small C?
+U 1 1 5B6349A5
+P 4950 2400
+F 0 "C?" H 5042 2446 50  0000 L CNN
+F 1 "104" H 5042 2355 50  0000 L CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 4950 2400 50  0001 C CNN
+F 3 "" H 4950 2400 50  0001 C CNN
+	1    4950 2400
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	2750 2300 2750 2200
+Connection ~ 2750 2200
+Wire Wire Line
+	2750 2200 3050 2200
+Wire Wire Line
+	3050 2350 3050 2200
+Connection ~ 3050 2200
+Wire Wire Line
+	3050 2200 3300 2200
+Wire Wire Line
+	2350 2300 2350 2650
+Wire Wire Line
+	2350 2650 2750 2650
+Wire Wire Line
+	4950 2650 4950 2500
+Connection ~ 2350 2650
+Wire Wire Line
+	2350 2650 2350 2800
+Wire Wire Line
+	2750 2600 2750 2650
+Connection ~ 2750 2650
+Wire Wire Line
+	2750 2650 3050 2650
+Wire Wire Line
+	3050 2550 3050 2650
+Wire Wire Line
+	4650 2500 4650 2650
+Wire Wire Line
+	4650 2650 4950 2650
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B636C36
+P 4950 2200
+F 0 "#PWR?" H 4950 2050 50  0001 C CNN
+F 1 "+3V3" H 4965 2373 50  0000 C CNN
+F 2 "" H 4950 2200 50  0001 C CNN
+F 3 "" H 4950 2200 50  0001 C CNN
+	1    4950 2200
+	1    0    0    -1  
+$EndComp
+Wire Notes Line
+	6900 1600 9600 1600
+Wire Notes Line
+	9600 1600 9600 3800
+Wire Notes Line
+	9600 3800 6900 3800
+Wire Notes Line
+	6900 3800 6900 1600
+Wire Wire Line
+	4650 2200 4950 2200
+Connection ~ 4650 2200
+Wire Wire Line
+	4950 2300 4950 2200
+Connection ~ 4950 2200
+$Comp
+L vinhome-rescue:HX_mini_360-lanhnd U?
+U 1 1 5B67BC79
+P 3800 2350
+F 0 "U?" H 3800 2725 50  0000 C CNN
+F 1 "HX_mini_360" H 3800 2634 50  0000 C CNN
+F 2 "iot:hx_mini_360" H 3400 2150 50  0001 C CNN
+F 3 "" H 3400 2150 50  0001 C CNN
+	1    3800 2350
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	4300 2200 4650 2200
+Connection ~ 3050 2650
+Connection ~ 4650 2650
+Wire Wire Line
+	4300 2450 4300 2650
+Connection ~ 4300 2650
+Wire Wire Line
+	4300 2650 4650 2650
+Wire Wire Line
+	3300 2450 3300 2650
+Wire Wire Line
+	3050 2650 3300 2650
+Connection ~ 3300 2650
+Wire Wire Line
+	3300 2650 4300 2650
+$Comp
+L Connector:Conn_01x05 J?
+U 1 1 5B6875E8
+P 8050 4750
+F 0 "J?" H 7970 5167 50  0000 C CNN
+F 1 "sensor clock" H 7970 5076 50  0000 C CNN
+F 2 "" H 8050 4750 50  0001 C CNN
+F 3 "~" H 8050 4750 50  0001 C CNN
+	1    8050 4750
+	-1   0    0    -1  
+$EndComp
+$Comp
+L vinhome-rescue:12V-SparkFun-Aesthetics #SUPPLY?
+U 1 1 5B68FC92
+P 8400 4450
+F 0 "#SUPPLY?" H 8400 4450 50  0001 L BNN
+F 1 "12V" H 8400 4624 50  0000 C CNN
+F 2 "" H 8400 4450 50  0001 C CNN
+F 3 "" H 8400 4450 50  0001 C CNN
+	1    8400 4450
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8250 4550 8400 4550
+Wire Wire Line
+	8400 4550 8400 4450
+Text Label 8600 2650 0    50   ~ 0
+lock
+Wire Wire Line
+	8250 4650 8600 4650
+Text Label 8350 4650 0    50   ~ 0
+lock
+Wire Wire Line
+	8250 4750 8600 4750
+Wire Wire Line
+	8250 4850 8600 4850
+Wire Wire Line
+	8250 4950 8600 4950
+Text HLabel 9050 4950 2    50   Input ~ 0
+open
+Text HLabel 9150 5100 2    50   Input ~ 0
+NO
+Text Label 8350 4950 0    50   ~ 0
+com
+$EndSCHEMATC

+ 64 - 0
conecter.sch

@@ -0,0 +1,64 @@
+EESchema Schematic File Version 4
+LIBS:vinhome-cache
+EELAYER 26 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 5 6
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L Connector:Conn_01x04 J?
+U 1 1 5B626E99
+P 2750 2350
+F 0 "J?" H 2670 1925 50  0000 C CNN
+F 1 "nap UART" H 2670 2016 50  0000 C CNN
+F 2 "" H 2750 2350 50  0001 C CNN
+F 3 "~" H 2750 2350 50  0001 C CNN
+	1    2750 2350
+	-1   0    0    1   
+$EndComp
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B626FCD
+P 3200 2100
+F 0 "#PWR?" H 3200 1950 50  0001 C CNN
+F 1 "+3V3" H 3215 2273 50  0000 C CNN
+F 2 "" H 3200 2100 50  0001 C CNN
+F 3 "" H 3200 2100 50  0001 C CNN
+	1    3200 2100
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	2950 2150 3200 2150
+Wire Wire Line
+	3200 2150 3200 2100
+$Comp
+L power:GND #PWR?
+U 1 1 5B62702F
+P 3250 2250
+F 0 "#PWR?" H 3250 2000 50  0001 C CNN
+F 1 "GND" V 3255 2122 50  0000 R CNN
+F 2 "" H 3250 2250 50  0001 C CNN
+F 3 "" H 3250 2250 50  0001 C CNN
+	1    3250 2250
+	0    -1   -1   0   
+$EndComp
+Wire Wire Line
+	2950 2250 3250 2250
+Wire Wire Line
+	2950 2350 3200 2350
+Text HLabel 3200 2350 2    50   Input ~ 0
+TXD
+Text HLabel 3200 2450 2    50   Input ~ 0
+RXD
+Wire Wire Line
+	2950 2450 3200 2450
+$EndSCHEMATC

+ 91 - 0
display.sch

@@ -0,0 +1,91 @@
+EESchema Schematic File Version 4
+LIBS:vinhome-cache
+EELAYER 26 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 2 6
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L Connector:Conn_01x08 J?
+U 1 1 5B62B126
+P 2250 2350
+F 0 "J?" H 2170 2867 50  0000 C CNN
+F 1 "LCD TFT 2.4 inch" H 2170 2776 50  0000 C CNN
+F 2 "Pin_Headers:Pin_Header_Straight_1x08_Pitch2.54mm" H 2250 2350 50  0001 C CNN
+F 3 "~" H 2250 2350 50  0001 C CNN
+	1    2250 2350
+	-1   0    0    -1  
+$EndComp
+$Comp
+L power:GND #PWR?
+U 1 1 5B62B5E5
+P 2600 2050
+F 0 "#PWR?" H 2600 1800 50  0001 C CNN
+F 1 "GND" V 2605 1922 50  0000 R CNN
+F 2 "" H 2600 2050 50  0001 C CNN
+F 3 "" H 2600 2050 50  0001 C CNN
+	1    2600 2050
+	0    -1   -1   0   
+$EndComp
+Wire Wire Line
+	2450 2050 2600 2050
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B62B66C
+P 2950 2100
+F 0 "#PWR?" H 2950 1950 50  0001 C CNN
+F 1 "+3V3" H 2965 2273 50  0000 C CNN
+F 2 "" H 2950 2100 50  0001 C CNN
+F 3 "" H 2950 2100 50  0001 C CNN
+	1    2950 2100
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	2450 2150 2950 2150
+Wire Wire Line
+	2950 2150 2950 2100
+Wire Wire Line
+	2450 2250 2800 2250
+Wire Wire Line
+	2450 2350 2800 2350
+Wire Wire Line
+	2450 2450 2800 2450
+Wire Wire Line
+	2450 2550 2800 2550
+Wire Wire Line
+	2450 2750 2800 2750
+Text HLabel 2800 2250 2    50   Input ~ 0
+CLK
+Text HLabel 2800 2350 2    50   Input ~ 0
+MOSI
+Text HLabel 2800 2450 2    50   Input ~ 0
+RES
+Text HLabel 2800 2550 2    50   Input ~ 0
+DC
+Text HLabel 2800 2750 2    50   Input ~ 0
+MISO
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B62B951
+P 3150 2600
+F 0 "#PWR?" H 3150 2450 50  0001 C CNN
+F 1 "+3V3" H 3165 2773 50  0000 C CNN
+F 2 "" H 3150 2600 50  0001 C CNN
+F 3 "" H 3150 2600 50  0001 C CNN
+	1    3150 2600
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	3150 2650 3150 2600
+Wire Wire Line
+	2450 2650 3150 2650
+$EndSCHEMATC

+ 81 - 0
keypad.sch

@@ -0,0 +1,81 @@
+EESchema Schematic File Version 4
+LIBS:vinhome-cache
+EELAYER 26 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 5 6
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L Connector:Conn_01x04 J?
+U 1 1 5B628A4A
+P 1650 2300
+F 0 "J?" H 1570 1875 50  0000 C CNN
+F 1 "Conn_01x04" H 1570 1966 50  0000 C CNN
+F 2 "Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm" H 1650 2300 50  0001 C CNN
+F 3 "~" H 1650 2300 50  0001 C CNN
+	1    1650 2300
+	-1   0    0    1   
+$EndComp
+$Comp
+L device:C_Small C?
+U 1 1 5B628D63
+P 2200 2100
+F 0 "C?" H 2292 2146 50  0000 L CNN
+F 1 "C_Small" H 2292 2055 50  0000 L CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 2200 2100 50  0001 C CNN
+F 3 "" H 2200 2100 50  0001 C CNN
+	1    2200 2100
+	1    0    0    -1  
+$EndComp
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B628E8A
+P 1850 1900
+F 0 "#PWR?" H 1850 1750 50  0001 C CNN
+F 1 "+3V3" H 1865 2073 50  0000 C CNN
+F 2 "" H 1850 1900 50  0001 C CNN
+F 3 "" H 1850 1900 50  0001 C CNN
+	1    1850 1900
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	1850 1900 1850 2000
+Wire Wire Line
+	1850 2200 2200 2200
+Wire Wire Line
+	1850 2000 2200 2000
+Connection ~ 1850 2000
+Wire Wire Line
+	1850 2000 1850 2100
+$Comp
+L power:GND #PWR?
+U 1 1 5B628F47
+P 2450 2200
+F 0 "#PWR?" H 2450 1950 50  0001 C CNN
+F 1 "GND" V 2455 2072 50  0000 R CNN
+F 2 "" H 2450 2200 50  0001 C CNN
+F 3 "" H 2450 2200 50  0001 C CNN
+	1    2450 2200
+	0    -1   -1   0   
+$EndComp
+Wire Wire Line
+	2200 2200 2450 2200
+Connection ~ 2200 2200
+Wire Wire Line
+	1850 2300 2150 2300
+Wire Wire Line
+	1850 2400 2150 2400
+Text HLabel 2150 2300 2    50   Input ~ 0
+SCL
+Text HLabel 2150 2400 2    50   Input ~ 0
+SDO
+$EndSCHEMATC

+ 472 - 0
main.sch

@@ -0,0 +1,472 @@
+EESchema Schematic File Version 4
+LIBS:vinhome-cache
+EELAYER 26 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 6 6
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L ESP8266:ESP-12E U?
+U 1 1 5B61664F
+P 4800 3150
+F 0 "U?" H 4800 3915 50  0000 C CNN
+F 1 "ESP-12E" H 4800 3824 50  0000 C CNN
+F 2 "ESP8266:ESP-12E" H 4800 3150 50  0001 C CNN
+F 3 "" H 4800 3150 50  0001 C CNN
+	1    4800 3150
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	3900 2850 3600 2850
+Text Label 3650 2850 0    50   ~ 0
+RST
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B618403
+P 3750 3550
+F 0 "#PWR?" H 3750 3400 50  0001 C CNN
+F 1 "+3V3" V 3765 3678 50  0000 L CNN
+F 2 "" H 3750 3550 50  0001 C CNN
+F 3 "" H 3750 3550 50  0001 C CNN
+	1    3750 3550
+	0    -1   -1   0   
+$EndComp
+Wire Wire Line
+	3900 3550 3800 3550
+$Comp
+L power:GND #PWR?
+U 1 1 5B6184D1
+P 5900 3550
+F 0 "#PWR?" H 5900 3300 50  0001 C CNN
+F 1 "GND" V 5905 3422 50  0000 R CNN
+F 2 "" H 5900 3550 50  0001 C CNN
+F 3 "" H 5900 3550 50  0001 C CNN
+	1    5900 3550
+	0    -1   -1   0   
+$EndComp
+Wire Wire Line
+	5700 3550 5900 3550
+$Comp
+L device:C_Small C?
+U 1 1 5B618730
+P 3800 3750
+F 0 "C?" H 3892 3796 50  0000 L CNN
+F 1 "105" H 3892 3705 50  0000 L CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 3800 3750 50  0001 C CNN
+F 3 "" H 3800 3750 50  0001 C CNN
+	1    3800 3750
+	1    0    0    -1  
+$EndComp
+$Comp
+L power:GND #PWR?
+U 1 1 5B618843
+P 3800 3950
+F 0 "#PWR?" H 3800 3700 50  0001 C CNN
+F 1 "GND" H 3805 3777 50  0000 C CNN
+F 2 "" H 3800 3950 50  0001 C CNN
+F 3 "" H 3800 3950 50  0001 C CNN
+	1    3800 3950
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	3800 3650 3800 3550
+Connection ~ 3800 3550
+Wire Wire Line
+	3800 3550 3750 3550
+Wire Wire Line
+	3800 3850 3800 3950
+NoConn ~ 3900 2950
+Wire Wire Line
+	3900 3050 3600 3050
+Text Label 3650 3050 0    50   ~ 0
+CH_PD
+Wire Wire Line
+	3900 3150 3600 3150
+Wire Wire Line
+	3900 3250 3600 3250
+Wire Wire Line
+	3600 3350 3900 3350
+Wire Wire Line
+	3900 3450 3600 3450
+Wire Wire Line
+	5700 3250 6000 3250
+Wire Wire Line
+	5700 3350 6000 3350
+Wire Wire Line
+	5700 3450 6000 3450
+Wire Wire Line
+	4550 4050 4550 4250
+Wire Wire Line
+	4650 4050 4650 4250
+Wire Wire Line
+	4750 4050 4750 4250
+Wire Wire Line
+	4850 4050 4850 4250
+Wire Wire Line
+	4950 4050 4950 4250
+Wire Wire Line
+	5050 4050 5050 4250
+$Comp
+L device:R R?
+U 1 1 5B61A13D
+P 1650 1950
+F 0 "R?" V 1550 1950 50  0000 C CNN
+F 1 "12k" V 1650 1950 50  0000 C CNN
+F 2 "Resistors_SMD:R_0805_HandSoldering" V 1580 1950 50  0001 C CNN
+F 3 "" H 1650 1950 50  0001 C CNN
+	1    1650 1950
+	0    1    1    0   
+$EndComp
+$Comp
+L device:R R?
+U 1 1 5B61A490
+P 1650 2150
+F 0 "R?" V 1550 2150 50  0000 C CNN
+F 1 "12k" V 1650 2150 50  0000 C CNN
+F 2 "Resistors_SMD:R_0805_HandSoldering" V 1580 2150 50  0001 C CNN
+F 3 "" H 1650 2150 50  0001 C CNN
+	1    1650 2150
+	0    1    1    0   
+$EndComp
+$Comp
+L device:R R?
+U 1 1 5B61A4C8
+P 1650 2350
+F 0 "R?" V 1550 2350 50  0000 C CNN
+F 1 "12k" V 1650 2350 50  0000 C CNN
+F 2 "Resistors_SMD:R_0805_HandSoldering" V 1580 2350 50  0001 C CNN
+F 3 "" H 1650 2350 50  0001 C CNN
+	1    1650 2350
+	0    1    1    0   
+$EndComp
+$Comp
+L device:R R?
+U 1 1 5B61A4EA
+P 1650 2550
+F 0 "R?" V 1550 2550 50  0000 C CNN
+F 1 "12k" V 1650 2550 50  0000 C CNN
+F 2 "Resistors_SMD:R_0805_HandSoldering" V 1580 2550 50  0001 C CNN
+F 3 "" H 1650 2550 50  0001 C CNN
+	1    1650 2550
+	0    1    1    0   
+$EndComp
+$Comp
+L device:R R?
+U 1 1 5B61A5B4
+P 1650 2750
+F 0 "R?" V 1550 2750 50  0000 C CNN
+F 1 "12k" V 1650 2750 50  0000 C CNN
+F 2 "Resistors_SMD:R_0805_HandSoldering" V 1580 2750 50  0001 C CNN
+F 3 "" H 1650 2750 50  0001 C CNN
+	1    1650 2750
+	0    1    1    0   
+$EndComp
+Wire Wire Line
+	1500 2550 1400 2550
+Wire Wire Line
+	1400 2350 1500 2350
+Wire Wire Line
+	1500 2150 1400 2150
+Wire Wire Line
+	1500 1950 1400 1950
+Wire Wire Line
+	1400 2550 1400 2350
+Connection ~ 1400 2150
+Wire Wire Line
+	1400 2150 1400 1950
+Connection ~ 1400 2350
+Wire Wire Line
+	1400 2350 1400 2150
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B61BD51
+P 1400 1850
+F 0 "#PWR?" H 1400 1700 50  0001 C CNN
+F 1 "+3V3" H 1415 2023 50  0000 C CNN
+F 2 "" H 1400 1850 50  0001 C CNN
+F 3 "" H 1400 1850 50  0001 C CNN
+	1    1400 1850
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	1400 1950 1400 1850
+Connection ~ 1400 1950
+Wire Wire Line
+	1800 1950 2050 1950
+Wire Wire Line
+	1800 2150 2050 2150
+Wire Wire Line
+	1800 2350 2050 2350
+Wire Wire Line
+	1500 2750 1400 2750
+$Comp
+L power:GND #PWR?
+U 1 1 5B61EC07
+P 1400 2850
+F 0 "#PWR?" H 1400 2600 50  0001 C CNN
+F 1 "GND" H 1405 2677 50  0000 C CNN
+F 2 "" H 1400 2850 50  0001 C CNN
+F 3 "" H 1400 2850 50  0001 C CNN
+	1    1400 2850
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	1400 2850 1400 2750
+Text Label 1850 1950 0    50   ~ 0
+GPIO0
+Text Label 1850 2150 0    50   ~ 0
+GPIO2
+Text Label 1850 2350 0    50   ~ 0
+CH_PD
+Text Label 1850 2550 0    50   ~ 0
+RST
+Text Label 1850 2750 0    50   ~ 0
+GPIO15
+$Comp
+L device:C_Small C?
+U 1 1 5B620CF1
+P 2400 2650
+F 0 "C?" H 2492 2696 50  0000 L CNN
+F 1 "103" H 2492 2605 50  0000 L CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 2400 2650 50  0001 C CNN
+F 3 "" H 2400 2650 50  0001 C CNN
+	1    2400 2650
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	1800 2750 2200 2750
+$Comp
+L power:GND #PWR?
+U 1 1 5B621FFB
+P 2400 2850
+F 0 "#PWR?" H 2400 2600 50  0001 C CNN
+F 1 "GND" H 2405 2677 50  0000 C CNN
+F 2 "" H 2400 2850 50  0001 C CNN
+F 3 "" H 2400 2850 50  0001 C CNN
+	1    2400 2850
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	1800 2550 2400 2550
+Wire Wire Line
+	2400 2850 2400 2750
+Text HLabel 6000 2850 2    50   Input ~ 0
+TXD
+Text HLabel 6000 2950 2    50   Input ~ 0
+RXD
+Wire Wire Line
+	5700 2850 6000 2850
+Wire Wire Line
+	5700 2950 6000 2950
+Wire Wire Line
+	5700 3050 6000 3050
+Wire Wire Line
+	5700 3150 6000 3150
+Text HLabel 6000 3050 2    50   Input ~ 0
+P.5
+Text HLabel 6000 3150 2    50   Input ~ 0
+P.4
+Text HLabel 6000 3250 2    50   Input ~ 0
+P.0
+Text HLabel 6000 3350 2    50   Input ~ 0
+P.2
+Text HLabel 6000 3450 2    50   Input ~ 0
+P.15
+Text HLabel 4650 4250 3    50   Input ~ 0
+MISO
+Text HLabel 4750 4250 3    50   Input ~ 0
+P.9
+Text HLabel 4850 4250 3    50   Input ~ 0
+P.10
+Text HLabel 4950 4250 3    50   Input ~ 0
+MOSI
+Text HLabel 5050 4250 3    50   Input ~ 0
+SCLK
+Text HLabel 3600 3150 0    50   Input ~ 0
+P.16
+Text HLabel 3600 3250 0    50   Input ~ 0
+P.14
+Text HLabel 3600 3350 0    50   Input ~ 0
+P.12
+Text HLabel 3600 3450 0    50   Input ~ 0
+P.13
+NoConn ~ 4550 4250
+Text Label 5700 3450 0    50   ~ 0
+GPIO15
+Text Label 5700 3250 0    50   ~ 0
+GPIO0
+Text Label 5700 3350 0    50   ~ 0
+GPIO2
+$Comp
+L Connector:Conn_01x02 J?
+U 1 1 5B62DC1E
+P 1450 3600
+F 0 "J?" H 1370 3275 50  0000 C CNN
+F 1 "select boot" H 1370 3366 50  0000 C CNN
+F 2 "Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm" H 1450 3600 50  0001 C CNN
+F 3 "~" H 1450 3600 50  0001 C CNN
+	1    1450 3600
+	-1   0    0    1   
+$EndComp
+$Comp
+L power:GND #PWR?
+U 1 1 5B62E025
+P 1800 3650
+F 0 "#PWR?" H 1800 3400 50  0001 C CNN
+F 1 "GND" H 1805 3477 50  0000 C CNN
+F 2 "" H 1800 3650 50  0001 C CNN
+F 3 "" H 1800 3650 50  0001 C CNN
+	1    1800 3650
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	1650 3600 1800 3600
+Wire Wire Line
+	1800 3600 1800 3650
+Wire Wire Line
+	1650 3500 2000 3500
+Text Label 1750 3500 0    50   ~ 0
+GPIO0
+$Comp
+L MCU_ST_STM8:STM8S003F3P U?
+U 1 1 5B69698B
+P 8750 3250
+F 0 "U?" H 8750 4228 50  0000 C CNN
+F 1 "STM8S003F3P" H 8750 4137 50  0000 C CNN
+F 2 "Housings_SSOP:TSSOP-20_4.4x6.5mm_Pitch0.65mm" H 7600 2450 50  0001 L CIN
+F 3 "http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00024550.pdf" H 8700 2850 50  0001 C CNN
+	1    8750 3250
+	1    0    0    -1  
+$EndComp
+$Comp
+L vinhome-rescue:SWITCH_PUSHBUTTONC&K_KSS-adafruit SW?
+U 1 1 5B697455
+P 2850 2550
+F 0 "SW?" H 2850 2805 50  0000 C CNN
+F 1 "SWITCH_PUSHBUTTONC&K_KSS" H 2850 2714 50  0000 C CNN
+F 2 "iot_Swich:smd_push" H 2880 2700 20  0001 C CNN
+F 3 "" H 2850 2550 50  0001 C CNN
+	1    2850 2550
+	1    0    0    -1  
+$EndComp
+$Comp
+L device:C_Small C?
+U 1 1 5B69841A
+P 7300 4050
+F 0 "C?" H 7392 4096 50  0000 L CNN
+F 1 "104" H 7392 4005 50  0000 L CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 7300 4050 50  0001 C CNN
+F 3 "" H 7300 4050 50  0001 C CNN
+	1    7300 4050
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	7300 3950 7300 3850
+Wire Wire Line
+	7300 3850 7450 3850
+$Comp
+L power:GND #PWR?
+U 1 1 5B698F7D
+P 8750 4400
+F 0 "#PWR?" H 8750 4150 50  0001 C CNN
+F 1 "GND" H 8755 4227 50  0000 C CNN
+F 2 "" H 8750 4400 50  0001 C CNN
+F 3 "" H 8750 4400 50  0001 C CNN
+	1    8750 4400
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8750 4400 8750 4150
+$Comp
+L power:GND #PWR?
+U 1 1 5B699A1E
+P 7300 4300
+F 0 "#PWR?" H 7300 4050 50  0001 C CNN
+F 1 "GND" H 7305 4127 50  0000 C CNN
+F 2 "" H 7300 4300 50  0001 C CNN
+F 3 "" H 7300 4300 50  0001 C CNN
+	1    7300 4300
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	7300 4300 7300 4150
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B69A7B0
+P 8750 2200
+F 0 "#PWR?" H 8750 2050 50  0001 C CNN
+F 1 "+3V3" H 8765 2373 50  0000 C CNN
+F 2 "" H 8750 2200 50  0001 C CNN
+F 3 "" H 8750 2200 50  0001 C CNN
+	1    8750 2200
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8750 2200 8750 2300
+$Comp
+L device:C_Small C?
+U 1 1 5B69B71F
+P 9000 2300
+F 0 "C?" V 8771 2300 50  0000 C CNN
+F 1 "104" V 8862 2300 50  0000 C CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 9000 2300 50  0001 C CNN
+F 3 "" H 9000 2300 50  0001 C CNN
+	1    9000 2300
+	0    1    1    0   
+$EndComp
+Wire Wire Line
+	8900 2300 8750 2300
+Connection ~ 8750 2300
+Wire Wire Line
+	8750 2300 8750 2450
+$Comp
+L power:GND #PWR?
+U 1 1 5B69C3FA
+P 9250 2300
+F 0 "#PWR?" H 9250 2050 50  0001 C CNN
+F 1 "GND" H 9255 2127 50  0000 C CNN
+F 2 "" H 9250 2300 50  0001 C CNN
+F 3 "" H 9250 2300 50  0001 C CNN
+	1    9250 2300
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	9100 2300 9250 2300
+$Comp
+L device:R R?
+U 1 1 5B69D306
+P 7400 2450
+F 0 "R?" H 7470 2496 50  0000 L CNN
+F 1 "103" H 7470 2405 50  0000 L CNN
+F 2 "" V 7330 2450 50  0001 C CNN
+F 3 "" H 7400 2450 50  0001 C CNN
+	1    7400 2450
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	7400 2600 7400 2750
+Wire Wire Line
+	7400 2750 7450 2750
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B69E095
+P 7400 2150
+F 0 "#PWR?" H 7400 2000 50  0001 C CNN
+F 1 "+3V3" H 7415 2323 50  0000 C CNN
+F 2 "" H 7400 2150 50  0001 C CNN
+F 3 "" H 7400 2150 50  0001 C CNN
+	1    7400 2150
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	7400 2150 7400 2300
+$EndSCHEMATC

+ 338 - 0
motor.sch

@@ -0,0 +1,338 @@
+EESchema Schematic File Version 4
+LIBS:vinhome-cache
+EELAYER 26 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 3 6
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L Connector:Conn_01x02 J?
+U 1 1 5B62FA88
+P 2000 2300
+F 0 "J?" H 1920 1975 50  0000 C CNN
+F 1 "power 12V" H 1920 2066 50  0000 C CNN
+F 2 "" H 2000 2300 50  0001 C CNN
+F 3 "~" H 2000 2300 50  0001 C CNN
+	1    2000 2300
+	-1   0    0    1   
+$EndComp
+$Comp
+L power:GND #PWR?
+U 1 1 5B62FC7F
+P 2350 2800
+F 0 "#PWR?" H 2350 2550 50  0001 C CNN
+F 1 "GND" H 2355 2627 50  0000 C CNN
+F 2 "" H 2350 2800 50  0001 C CNN
+F 3 "" H 2350 2800 50  0001 C CNN
+	1    2350 2800
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	2200 2300 2350 2300
+Wire Wire Line
+	2200 2200 2400 2200
+$Comp
+L power:+12V #PWR?
+U 1 1 5B62FD2D
+P 2400 2050
+F 0 "#PWR?" H 2400 1900 50  0001 C CNN
+F 1 "+12V" H 2415 2223 50  0000 C CNN
+F 2 "" H 2400 2050 50  0001 C CNN
+F 3 "" H 2400 2050 50  0001 C CNN
+	1    2400 2050
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	2400 2050 2400 2200
+Connection ~ 2400 2200
+$Comp
+L device:R R?
+U 1 1 5B63085B
+P 7750 2900
+F 0 "R?" V 7543 2900 50  0000 C CNN
+F 1 "10R" V 7634 2900 50  0000 C CNN
+F 2 "Resistors_SMD:R_0805" V 7680 2900 50  0001 C CNN
+F 3 "" H 7750 2900 50  0001 C CNN
+	1    7750 2900
+	0    1    1    0   
+$EndComp
+Wire Wire Line
+	7600 2900 7300 2900
+Text HLabel 7300 2900 0    50   Input ~ 0
+Motor
+Wire Wire Line
+	7900 2900 8000 2900
+$Comp
+L power:GND #PWR?
+U 1 1 5B630BB8
+P 8400 3400
+F 0 "#PWR?" H 8400 3150 50  0001 C CNN
+F 1 "GND" H 8405 3227 50  0000 C CNN
+F 2 "" H 8400 3400 50  0001 C CNN
+F 3 "" H 8400 3400 50  0001 C CNN
+	1    8400 3400
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8400 3400 8400 3200
+$Comp
+L Motor:Motor_DC M?
+U 1 1 5B630FA5
+P 8400 2250
+F 0 "M?" H 8558 2246 50  0000 L CNN
+F 1 "Motor_DC" H 8558 2155 50  0000 L CNN
+F 2 "Pin_Headers:Pin_Header_Angled_1x02_Pitch2.54mm" H 8400 2160 50  0001 C CNN
+F 3 "" H 8400 2160 50  0001 C CNN
+	1    8400 2250
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8400 2550 8400 2650
+$Comp
+L power:+12V #PWR?
+U 1 1 5B6312F1
+P 8400 1900
+F 0 "#PWR?" H 8400 1750 50  0001 C CNN
+F 1 "+12V" H 8415 2073 50  0000 C CNN
+F 2 "" H 8400 1900 50  0001 C CNN
+F 3 "" H 8400 1900 50  0001 C CNN
+	1    8400 1900
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8400 1900 8400 2050
+$Comp
+L device:D_Schottky D?
+U 1 1 5B631428
+P 8800 2900
+F 0 "D?" V 8754 2979 50  0000 L CNN
+F 1 "D_Schottky" V 8845 2979 50  0000 L CNN
+F 2 "Diodes_SMD:D_SMB_Handsoldering" H 8800 2900 50  0001 C CNN
+F 3 "" H 8800 2900 50  0001 C CNN
+	1    8800 2900
+	0    1    1    0   
+$EndComp
+Wire Wire Line
+	8400 2650 8800 2650
+Wire Wire Line
+	8800 2650 8800 2750
+Connection ~ 8400 2650
+Wire Wire Line
+	8400 2650 8400 2700
+Wire Wire Line
+	8400 3100 8800 3100
+Wire Wire Line
+	8800 3100 8800 3050
+$Comp
+L device:R R?
+U 1 1 5B632236
+P 8000 3050
+F 0 "R?" H 7930 3004 50  0000 R CNN
+F 1 "47k" H 7930 3095 50  0000 R CNN
+F 2 "Resistors_SMD:R_0805" V 7930 3050 50  0001 C CNN
+F 3 "" H 8000 3050 50  0001 C CNN
+	1    8000 3050
+	-1   0    0    1   
+$EndComp
+Connection ~ 8000 2900
+Wire Wire Line
+	8000 2900 8100 2900
+Wire Wire Line
+	8000 3200 8400 3200
+Connection ~ 8400 3200
+Wire Wire Line
+	8400 3200 8400 3100
+Wire Wire Line
+	2400 2200 2750 2200
+$Comp
+L device:Q_NMOS_GSD Q?
+U 1 1 5B633A97
+P 8300 2900
+F 0 "Q?" H 8505 2946 50  0000 L CNN
+F 1 "Q_NMOS_GSD" H 8505 2855 50  0000 L CNN
+F 2 "TO_SOT_Packages_SMD:SOT-23" H 8500 3000 50  0001 C CNN
+F 3 "" H 8300 2900 50  0001 C CNN
+	1    8300 2900
+	1    0    0    -1  
+$EndComp
+Connection ~ 8400 3100
+$Comp
+L device:CP1 C?
+U 1 1 5B633F38
+P 2750 2450
+F 0 "C?" H 2865 2496 50  0000 L CNN
+F 1 "100u/35v" H 2600 2400 50  0000 L CNN
+F 2 "Capacitors_SMD:CP_Elec_5x5.8" H 2750 2450 50  0001 C CNN
+F 3 "" H 2750 2450 50  0001 C CNN
+	1    2750 2450
+	1    0    0    -1  
+$EndComp
+$Comp
+L device:C_Small C?
+U 1 1 5B63429C
+P 3050 2450
+F 0 "C?" H 3142 2496 50  0000 L CNN
+F 1 "104" H 3142 2405 50  0000 L CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 3050 2450 50  0001 C CNN
+F 3 "" H 3050 2450 50  0001 C CNN
+	1    3050 2450
+	1    0    0    -1  
+$EndComp
+$Comp
+L device:CP1 C?
+U 1 1 5B634915
+P 4650 2350
+F 0 "C?" H 4765 2396 50  0000 L CNN
+F 1 "100u/16v" H 4500 2300 50  0000 L CNN
+F 2 "Capacitors_SMD:CP_Elec_5x5.8" H 4650 2350 50  0001 C CNN
+F 3 "" H 4650 2350 50  0001 C CNN
+	1    4650 2350
+	1    0    0    -1  
+$EndComp
+$Comp
+L device:C_Small C?
+U 1 1 5B6349A5
+P 4950 2400
+F 0 "C?" H 5042 2446 50  0000 L CNN
+F 1 "104" H 5042 2355 50  0000 L CNN
+F 2 "Capacitors_SMD:C_0805_HandSoldering" H 4950 2400 50  0001 C CNN
+F 3 "" H 4950 2400 50  0001 C CNN
+	1    4950 2400
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	2750 2300 2750 2200
+Connection ~ 2750 2200
+Wire Wire Line
+	2750 2200 3050 2200
+Wire Wire Line
+	3050 2350 3050 2200
+Connection ~ 3050 2200
+Wire Wire Line
+	3050 2200 3300 2200
+Wire Wire Line
+	2350 2300 2350 2650
+Wire Wire Line
+	2350 2650 2750 2650
+Wire Wire Line
+	4950 2650 4950 2500
+Connection ~ 2350 2650
+Wire Wire Line
+	2350 2650 2350 2800
+Wire Wire Line
+	2750 2600 2750 2650
+Connection ~ 2750 2650
+Wire Wire Line
+	2750 2650 3050 2650
+Wire Wire Line
+	3050 2550 3050 2650
+Wire Wire Line
+	4650 2500 4650 2650
+Wire Wire Line
+	4650 2650 4950 2650
+$Comp
+L power:+3V3 #PWR?
+U 1 1 5B636C36
+P 4950 2200
+F 0 "#PWR?" H 4950 2050 50  0001 C CNN
+F 1 "+3V3" H 4965 2373 50  0000 C CNN
+F 2 "" H 4950 2200 50  0001 C CNN
+F 3 "" H 4950 2200 50  0001 C CNN
+	1    4950 2200
+	1    0    0    -1  
+$EndComp
+Wire Notes Line
+	6900 1600 9600 1600
+Wire Notes Line
+	9600 1600 9600 3800
+Wire Notes Line
+	9600 3800 6900 3800
+Wire Notes Line
+	6900 3800 6900 1600
+Wire Wire Line
+	4650 2200 4950 2200
+Connection ~ 4650 2200
+Wire Wire Line
+	4950 2300 4950 2200
+Connection ~ 4950 2200
+$Comp
+L vinhome-rescue:HX_mini_360-lanhnd U?
+U 1 1 5B67BC79
+P 3800 2350
+F 0 "U?" H 3800 2725 50  0000 C CNN
+F 1 "HX_mini_360" H 3800 2634 50  0000 C CNN
+F 2 "iot:hx_mini_360" H 3400 2150 50  0001 C CNN
+F 3 "" H 3400 2150 50  0001 C CNN
+	1    3800 2350
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	4300 2200 4650 2200
+Connection ~ 3050 2650
+Connection ~ 4650 2650
+Wire Wire Line
+	4300 2450 4300 2650
+Connection ~ 4300 2650
+Wire Wire Line
+	4300 2650 4650 2650
+Wire Wire Line
+	3300 2450 3300 2650
+Wire Wire Line
+	3050 2650 3300 2650
+Connection ~ 3300 2650
+Wire Wire Line
+	3300 2650 4300 2650
+$Comp
+L Connector:Conn_01x05 J?
+U 1 1 5B6875E8
+P 8050 4750
+F 0 "J?" H 7970 5167 50  0000 C CNN
+F 1 "sensor clock" H 7970 5076 50  0000 C CNN
+F 2 "" H 8050 4750 50  0001 C CNN
+F 3 "~" H 8050 4750 50  0001 C CNN
+	1    8050 4750
+	-1   0    0    -1  
+$EndComp
+$Comp
+L vinhome-rescue:12V-SparkFun-Aesthetics #SUPPLY?
+U 1 1 5B68FC92
+P 8400 4450
+F 0 "#SUPPLY?" H 8400 4450 50  0001 L BNN
+F 1 "12V" H 8400 4624 50  0000 C CNN
+F 2 "" H 8400 4450 50  0001 C CNN
+F 3 "" H 8400 4450 50  0001 C CNN
+	1    8400 4450
+	1    0    0    -1  
+$EndComp
+Wire Wire Line
+	8250 4550 8400 4550
+Wire Wire Line
+	8400 4550 8400 4450
+Text Label 8600 2650 0    50   ~ 0
+lock
+Wire Wire Line
+	8250 4650 8600 4650
+Text Label 8350 4650 0    50   ~ 0
+lock
+Wire Wire Line
+	8250 4750 8600 4750
+Wire Wire Line
+	8250 4850 8600 4850
+Wire Wire Line
+	8250 4950 8600 4950
+Text HLabel 8600 4750 2    50   Input ~ 0
+open
+Text HLabel 8600 4850 2    50   Input ~ 0
+NO
+Text Label 8350 4950 0    50   ~ 0
+com
+$EndSCHEMATC

+ 126 - 0
vinhome.sch

@@ -0,0 +1,126 @@
+EESchema Schematic File Version 4
+LIBS:vinhome-cache
+EELAYER 26 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 6
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Sheet
+S 5150 1650 1750 850 
+U 5B616228
+F0 "Sheet5B616227" 50
+F1 "display.sch" 50
+F2 "CLK" I R 6900 2350 50 
+F3 "MOSI" I R 6900 2250 50 
+F4 "RES" I R 6900 2050 50 
+F5 "DC" I R 6900 2150 50 
+F6 "MISO" I R 6900 1950 50 
+$EndSheet
+$Sheet
+S 1950 3050 1750 1350
+U 5B6162EC
+F0 "Sheet5B6162EB" 50
+F1 "motor.sch" 50
+F2 "motor" I R 3700 3250 50 
+F3 "open" I R 3700 3350 50 
+F4 "NO" I R 3700 3450 50 
+$EndSheet
+$Sheet
+S 7500 4550 1250 1050
+U 5B626CB4
+F0 "Sheet5B626CB3" 50
+F1 "conecter.sch" 50
+F2 "TXD" I L 7500 4900 50 
+F3 "RXD" I L 7500 4800 50 
+$EndSheet
+Wire Wire Line
+	7300 4200 6950 4200
+Wire Wire Line
+	7350 4100 6950 4100
+Wire Wire Line
+	7500 4900 7300 4900
+Wire Wire Line
+	7500 4800 7350 4800
+Wire Wire Line
+	7350 4800 7350 4100
+Wire Wire Line
+	7300 4900 7300 4200
+$Sheet
+S 7350 3450 850  550 
+U 5B629A42
+F0 "Sheet5B629A41" 50
+F1 "keypad.sch" 50
+F2 "SCL" I L 7350 3700 50 
+F3 "SDO" I L 7350 3800 50 
+$EndSheet
+$Sheet
+S 4600 2850 2350 1500
+U 5B627057
+F0 "Sheet5B627056" 50
+F1 "main.sch" 50
+F2 "TXD" I R 6950 4200 50 
+F3 "RXD" I R 6950 4100 50 
+F4 "P.5" I R 6950 3700 50 
+F5 "P.4" I R 6950 3800 50 
+F6 "MISO" I R 6950 3350 50 
+F7 "P.0" I L 4600 3150 50 
+F8 "P.2" I L 4600 3250 50 
+F9 "P.15" I L 4600 3350 50 
+F10 "P.9" I R 6950 3150 50 
+F11 "P.10" I R 6950 3250 50 
+F12 "MOSI" I R 6950 3050 50 
+F13 "SCLK" I R 6950 2950 50 
+F14 "P.16" I L 4600 3450 50 
+F15 "P.14" I L 4600 3550 50 
+F16 "P.12" I L 4600 3650 50 
+$EndSheet
+Wire Wire Line
+	6950 3700 7350 3700
+Wire Wire Line
+	6950 3800 7350 3800
+Wire Wire Line
+	6900 2350 7100 2350
+Wire Wire Line
+	7100 2350 7100 2950
+Wire Wire Line
+	7100 2950 6950 2950
+Wire Wire Line
+	6900 2250 7150 2250
+Wire Wire Line
+	7150 2250 7150 3050
+Wire Wire Line
+	7150 3050 6950 3050
+Wire Wire Line
+	6950 3150 7250 3150
+Wire Wire Line
+	7250 3150 7250 2150
+Wire Wire Line
+	7250 2150 6900 2150
+Wire Wire Line
+	6900 2050 7300 2050
+Wire Wire Line
+	7300 2050 7300 3250
+Wire Wire Line
+	7300 3250 6950 3250
+Wire Wire Line
+	6950 3350 7400 3350
+Wire Wire Line
+	7400 3350 7400 1950
+Wire Wire Line
+	7400 1950 6900 1950
+Wire Wire Line
+	3700 3250 4600 3250
+Wire Wire Line
+	3700 3350 4600 3350
+Wire Wire Line
+	3700 3450 4600 3450
+$EndSCHEMATC