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_SMD" 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 1250 2050 F 0 "R?" V 1150 2050 50 0000 C CNN F 1 "12k" V 1250 2050 50 0000 C CNN F 2 "Resistors_SMD:R_0805_HandSoldering" V 1180 2050 50 0001 C CNN F 3 "" H 1250 2050 50 0001 C CNN 1 1250 2050 0 1 1 0 $EndComp $Comp L device:R R? U 1 1 5B61A490 P 1250 2250 F 0 "R?" V 1150 2250 50 0000 C CNN F 1 "12k" V 1250 2250 50 0000 C CNN F 2 "Resistors_SMD:R_0805_HandSoldering" V 1180 2250 50 0001 C CNN F 3 "" H 1250 2250 50 0001 C CNN 1 1250 2250 0 1 1 0 $EndComp $Comp L device:R R? U 1 1 5B61A4C8 P 1250 2450 F 0 "R?" V 1150 2450 50 0000 C CNN F 1 "12k" V 1250 2450 50 0000 C CNN F 2 "Resistors_SMD:R_0805_HandSoldering" V 1180 2450 50 0001 C CNN F 3 "" H 1250 2450 50 0001 C CNN 1 1250 2450 0 1 1 0 $EndComp $Comp L device:R R? U 1 1 5B61A4EA P 1250 2650 F 0 "R?" V 1150 2650 50 0000 C CNN F 1 "12k" V 1250 2650 50 0000 C CNN F 2 "Resistors_SMD:R_0805_HandSoldering" V 1180 2650 50 0001 C CNN F 3 "" H 1250 2650 50 0001 C CNN 1 1250 2650 0 1 1 0 $EndComp $Comp L device:R R? U 1 1 5B61A5B4 P 1250 2850 F 0 "R?" V 1150 2850 50 0000 C CNN F 1 "12k" V 1250 2850 50 0000 C CNN F 2 "Resistors_SMD:R_0805_HandSoldering" V 1180 2850 50 0001 C CNN F 3 "" H 1250 2850 50 0001 C CNN 1 1250 2850 0 1 1 0 $EndComp Wire Wire Line 1100 2650 1000 2650 Wire Wire Line 1000 2450 1100 2450 Wire Wire Line 1100 2250 1000 2250 Wire Wire Line 1100 2050 1000 2050 Wire Wire Line 1000 2650 1000 2450 Connection ~ 1000 2250 Wire Wire Line 1000 2250 1000 2050 Connection ~ 1000 2450 Wire Wire Line 1000 2450 1000 2250 $Comp L power:+3V3 #PWR? U 1 1 5B61BD51 P 1000 1950 F 0 "#PWR?" H 1000 1800 50 0001 C CNN F 1 "+3V3" H 1015 2123 50 0000 C CNN F 2 "" H 1000 1950 50 0001 C CNN F 3 "" H 1000 1950 50 0001 C CNN 1 1000 1950 1 0 0 -1 $EndComp Wire Wire Line 1000 2050 1000 1950 Connection ~ 1000 2050 Wire Wire Line 1400 2050 1650 2050 Wire Wire Line 1400 2250 1650 2250 Wire Wire Line 1400 2450 1650 2450 Wire Wire Line 1100 2850 1000 2850 $Comp L power:GND #PWR? U 1 1 5B61EC07 P 1000 2950 F 0 "#PWR?" H 1000 2700 50 0001 C CNN F 1 "GND" H 1005 2777 50 0000 C CNN F 2 "" H 1000 2950 50 0001 C CNN F 3 "" H 1000 2950 50 0001 C CNN 1 1000 2950 1 0 0 -1 $EndComp Wire Wire Line 1000 2950 1000 2850 Text Label 1450 2050 0 50 ~ 0 GPIO0 Text Label 1450 2250 0 50 ~ 0 GPIO2 Text Label 1450 2450 0 50 ~ 0 CH_PD Text Label 1450 2650 0 50 ~ 0 RST Text Label 1450 2850 0 50 ~ 0 GPIO15 $Comp L device:C_Small C? U 1 1 5B620CF1 P 2000 2750 F 0 "C?" H 2092 2796 50 0000 L CNN F 1 "103" H 2092 2705 50 0000 L CNN F 2 "Capacitors_SMD:C_0805_HandSoldering" H 2000 2750 50 0001 C CNN F 3 "" H 2000 2750 50 0001 C CNN 1 2000 2750 1 0 0 -1 $EndComp Wire Wire Line 1400 2850 1800 2850 $Comp L power:GND #PWR? U 1 1 5B621FFB P 2000 2950 F 0 "#PWR?" H 2000 2700 50 0001 C CNN F 1 "GND" H 2005 2777 50 0000 C CNN F 2 "" H 2000 2950 50 0001 C CNN F 3 "" H 2000 2950 50 0001 C CNN 1 2000 2950 1 0 0 -1 $EndComp Wire Wire Line 1400 2650 2000 2650 Wire Wire Line 2000 2950 2000 2850 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 1050 3700 F 0 "J?" H 970 3375 50 0000 C CNN F 1 "select boot" H 970 3466 50 0000 C CNN F 2 "Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm" H 1050 3700 50 0001 C CNN F 3 "~" H 1050 3700 50 0001 C CNN 1 1050 3700 -1 0 0 1 $EndComp $Comp L power:GND #PWR? U 1 1 5B62E025 P 1400 3750 F 0 "#PWR?" H 1400 3500 50 0001 C CNN F 1 "GND" H 1405 3577 50 0000 C CNN F 2 "" H 1400 3750 50 0001 C CNN F 3 "" H 1400 3750 50 0001 C CNN 1 1400 3750 1 0 0 -1 $EndComp Wire Wire Line 1250 3700 1400 3700 Wire Wire Line 1400 3700 1400 3750 Wire Wire Line 1250 3600 1600 3600 Text Label 1350 3600 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 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 "Resistors_SMD:R_0805_HandSoldering" 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 Wire Wire Line 6950 2750 7400 2750 Connection ~ 7400 2750 Wire Wire Line 7450 3050 6950 3050 Text Label 7050 2750 0 50 ~ 0 NRST Text Label 7050 3050 0 50 ~ 0 SWIM Wire Wire Line 7450 3150 6950 3150 Text Label 7050 3150 0 50 ~ 0 RST NoConn ~ 10050 2950 NoConn ~ 10050 3150 NoConn ~ 10050 3250 NoConn ~ 10050 3450 NoConn ~ 10050 3550 NoConn ~ 10050 3650 NoConn ~ 10050 3750 NoConn ~ 10050 3850 NoConn ~ 7450 3250 NoConn ~ 7450 3350 NoConn ~ 7450 3450 NoConn ~ 7450 3550 $Comp L Connector:Conn_01x04 J? U 1 1 5B6AC160 P 6750 1200 F 0 "J?" H 6670 775 50 0000 C CNN F 1 "nap stm8" H 6670 866 50 0000 C CNN F 2 "Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm" H 6750 1200 50 0001 C CNN F 3 "~" H 6750 1200 50 0001 C CNN 1 6750 1200 -1 0 0 1 $EndComp Wire Wire Line 6950 1000 7200 1000 Wire Wire Line 6950 1100 7200 1100 Wire Wire Line 6950 1200 7200 1200 Wire Wire Line 6950 1300 7200 1300 $Comp L power:GND #PWR? U 1 1 5B6B301A P 7200 1300 F 0 "#PWR?" H 7200 1050 50 0001 C CNN F 1 "GND" H 7205 1127 50 0000 C CNN F 2 "" H 7200 1300 50 0001 C CNN F 3 "" H 7200 1300 50 0001 C CNN 1 7200 1300 1 0 0 -1 $EndComp $Comp L power:+3V3 #PWR? U 1 1 5B6B30D6 P 7200 1000 F 0 "#PWR?" H 7200 850 50 0001 C CNN F 1 "+3V3" H 7215 1173 50 0000 C CNN F 2 "" H 7200 1000 50 0001 C CNN F 3 "" H 7200 1000 50 0001 C CNN 1 7200 1000 1 0 0 -1 $EndComp Text Label 7000 1100 0 50 ~ 0 SWIM Text Label 7000 1200 0 50 ~ 0 NRST $Comp L device:Crystal_GND23 Y? U 1 1 5B6B527A P 10450 2750 F 0 "Y?" V 10404 2991 50 0000 L CNN F 1 "Crystal_GND23" V 10495 2991 50 0000 L CNN F 2 "Crystals:Crystal_SMD_EuroQuartz_X22-4pin_2.5x2.0mm" H 10450 2750 50 0001 C CNN F 3 "" H 10450 2750 50 0001 C CNN 1 10450 2750 0 1 1 0 $EndComp Wire Wire Line 10050 2850 10200 2850 Wire Wire Line 10200 2850 10200 3000 Wire Wire Line 10200 3000 10450 3000 Wire Wire Line 10450 3000 10450 2900 Wire Wire Line 10050 2750 10050 2550 Wire Wire Line 10050 2550 10450 2550 Wire Wire Line 10450 2550 10450 2600 $Comp L device:C_Small C? U 1 1 5B6BAFD9 P 10650 3000 F 0 "C?" V 10421 3000 50 0000 C CNN F 1 "20pF" V 10512 3000 50 0000 C CNN F 2 "Capacitors_SMD:C_0805" H 10650 3000 50 0001 C CNN F 3 "" H 10650 3000 50 0001 C CNN 1 10650 3000 0 1 1 0 $EndComp $Comp L device:C_Small C? U 1 1 5B6BB094 P 10650 2550 F 0 "C?" V 10421 2550 50 0000 C CNN F 1 "20pF" V 10512 2550 50 0000 C CNN F 2 "Capacitors_SMD:C_0805" H 10650 2550 50 0001 C CNN F 3 "" H 10650 2550 50 0001 C CNN 1 10650 2550 0 1 1 0 $EndComp Wire Wire Line 10450 2550 10550 2550 Connection ~ 10450 2550 Wire Wire Line 10450 3000 10550 3000 Connection ~ 10450 3000 Wire Wire Line 10750 2550 10750 2750 Wire Wire Line 10650 2750 10750 2750 Connection ~ 10750 2750 Wire Wire Line 10750 2750 10750 3000 $Comp L power:GND #PWR? U 1 1 5B6C7C4B P 10750 3100 F 0 "#PWR?" H 10750 2850 50 0001 C CNN F 1 "GND" H 10755 2927 50 0000 C CNN F 2 "" H 10750 3100 50 0001 C CNN F 3 "" H 10750 3100 50 0001 C CNN 1 10750 3100 1 0 0 -1 $EndComp Wire Wire Line 10750 3100 10750 3000 Connection ~ 10750 3000 Wire Wire Line 10250 2750 10650 2750 Connection ~ 10650 2750 $EndSCHEMATC