EESchema Schematic File Version 4 EELAYER 30 0 EELAYER END $Descr A4 11693 8268 encoding utf-8 Sheet 1 1 Title "" Date "" Rev "" Comp "" Comment1 "" Comment2 "" Comment3 "" Comment4 "" $EndDescr $Comp L Modules-FloKra:ArduinoProMini_noAddHeaders Module1 U 1 1 5F80A727 P 5500 2950 F 0 "Module1" H 5550 4294 40 0000 C CNN F 1 "ArduinoProMini" H 5550 4218 40 0000 C CNN F 2 "FloKra_Modules:ArduinoProMini_V2wCrystal_allHeaders" H 5500 2950 30 0001 C CIN F 3 "" H 5550 4233 60 0000 C CNN 1 5500 2950 1 0 0 -1 $EndComp Wire Wire Line 4350 4750 4350 3650 Text Notes 4450 4750 0 35 ~ 0 reset from software used for firmware flashing w/o DTR line connected $Comp L power:GND #PWR0101 U 1 1 5F820294 P 4500 4350 F 0 "#PWR0101" H 4500 4100 50 0001 C CNN F 1 "GND" H 4505 4177 50 0000 C CNN F 2 "" H 4500 4350 50 0001 C CNN F 3 "" H 4500 4350 50 0001 C CNN 1 4500 4350 1 0 0 -1 $EndComp Wire Wire Line 4600 4150 4500 4150 Wire Wire Line 4500 4150 4500 4350 Wire Wire Line 4500 4150 4500 4050 Wire Wire Line 4500 4050 4600 4050 Connection ~ 4500 4150 Wire Wire Line 4500 4050 4500 3950 Wire Wire Line 4500 3950 4600 3950 Connection ~ 4500 4050 Wire Wire Line 6500 2450 6700 2450 Wire Wire Line 6700 2450 6700 4750 $Comp L Connector:Screw_Terminal_01x02 J1 U 1 1 5F843696 P 1300 1050 F 0 "J1" H 1218 1267 50 0000 C CNN F 1 "Supply 9-12 VDC" H 1218 1175 50 0000 C CNN F 2 "Connectors_Terminal_Blocks:TerminalBlock_bornier-2_P5.08mm" H 1300 1050 50 0001 C CNN F 3 "~" H 1300 1050 50 0001 C CNN 1 1300 1050 -1 0 0 -1 $EndComp $Comp L power:GND #PWR0102 U 1 1 5F844655 P 1500 1300 F 0 "#PWR0102" H 1500 1050 50 0001 C CNN F 1 "GND" H 1505 1127 50 0000 C CNN F 2 "" H 1500 1300 50 0001 C CNN F 3 "" H 1500 1300 50 0001 C CNN 1 1500 1300 1 0 0 -1 $EndComp Wire Wire Line 1500 1150 1500 1300 $Comp L Diode:1N4001 D1 U 1 1 5F84C042 P 2250 1450 F 0 "D1" V 2296 1371 50 0000 R CNN F 1 "1N4001" V 2205 1371 50 0000 R CNN F 2 "Diodes_THT:D_DO-41_SOD81_P10.16mm_Horizontal" H 2250 1275 50 0001 C CNN F 3 "http://www.vishay.com/docs/88503/1n4001.pdf" H 2250 1450 50 0001 C CNN 1 2250 1450 0 -1 -1 0 $EndComp Wire Wire Line 2250 1050 2250 1300 $Comp L Device:CP C1 U 1 1 5F84E231 P 2250 1950 F 0 "C1" H 2368 1996 50 0000 L CNN F 1 "2200u" H 2368 1905 50 0000 L CNN F 2 "Capacitors_THT:CP_Radial_D12.5mm_P5.00mm" H 2288 1800 50 0001 C CNN F 3 "~" H 2250 1950 50 0001 C CNN 1 2250 1950 1 0 0 -1 $EndComp $Comp L power:GND #PWR0103 U 1 1 5F84EA75 P 2250 2250 F 0 "#PWR0103" H 2250 2000 50 0001 C CNN F 1 "GND" H 2255 2077 50 0000 C CNN F 2 "" H 2250 2250 50 0001 C CNN F 3 "" H 2250 2250 50 0001 C CNN 1 2250 2250 1 0 0 -1 $EndComp Wire Wire Line 2250 2100 2250 2250 $Comp L power:GND #PWR0104 U 1 1 5F853210 P 3650 1400 F 0 "#PWR0104" H 3650 1150 50 0001 C CNN F 1 "GND" H 3655 1227 50 0000 C CNN F 2 "" H 3650 1400 50 0001 C CNN F 3 "" H 3650 1400 50 0001 C CNN 1 3650 1400 1 0 0 -1 $EndComp Wire Wire Line 3650 1400 3650 1350 $Comp L Device:R R1 U 1 1 5F860BAB P 3750 2300 F 0 "R1" H 3820 2346 50 0000 L CNN F 1 "56k" H 3820 2255 50 0000 L CNN F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 3680 2300 50 0001 C CNN F 3 "~" H 3750 2300 50 0001 C CNN 1 3750 2300 1 0 0 -1 $EndComp $Comp L Device:R R2 U 1 1 5F8629E7 P 3750 2750 F 0 "R2" H 3820 2796 50 0000 L CNN F 1 "24k" H 3820 2705 50 0000 L CNN F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 3680 2750 50 0001 C CNN F 3 "~" H 3750 2750 50 0001 C CNN 1 3750 2750 1 0 0 -1 $EndComp Wire Wire Line 3750 2450 3750 2550 Wire Wire Line 3750 2550 4000 2550 Wire Wire Line 4000 2550 4000 4950 Connection ~ 3750 2550 Wire Wire Line 3750 2550 3750 2600 Wire Wire Line 4000 4950 6800 4950 $Comp L power:GND #PWR0105 U 1 1 5F86AB14 P 3750 3000 F 0 "#PWR0105" H 3750 2750 50 0001 C CNN F 1 "GND" H 3755 2827 50 0000 C CNN F 2 "" H 3750 3000 50 0001 C CNN F 3 "" H 3750 3000 50 0001 C CNN 1 3750 3000 1 0 0 -1 $EndComp Wire Wire Line 3750 3000 3750 2900 $Comp L power:+5V #PWR0106 U 1 1 5F885BEA P 4100 850 F 0 "#PWR0106" H 4100 700 50 0001 C CNN F 1 "+5V" H 4115 1023 50 0000 C CNN F 2 "" H 4100 850 50 0001 C CNN F 3 "" H 4100 850 50 0001 C CNN 1 4100 850 1 0 0 -1 $EndComp Wire Wire Line 4100 850 4100 1050 Wire Wire Line 3950 1050 4100 1050 $Comp L Device:CP C2 U 1 1 5F88AF10 P 4100 1200 F 0 "C2" H 4218 1246 50 0000 L CNN F 1 "47u" H 4218 1155 50 0000 L CNN F 2 "Capacitors_THT:CP_Radial_D5.0mm_P2.50mm" H 4138 1050 50 0001 C CNN F 3 "~" H 4100 1200 50 0001 C CNN 1 4100 1200 1 0 0 -1 $EndComp Connection ~ 4100 1050 $Comp L power:GND #PWR0107 U 1 1 5F88BA01 P 4100 1400 F 0 "#PWR0107" H 4100 1150 50 0001 C CNN F 1 "GND" H 4105 1227 50 0000 C CNN F 2 "" H 4100 1400 50 0001 C CNN F 3 "" H 4100 1400 50 0001 C CNN 1 4100 1400 1 0 0 -1 $EndComp Wire Wire Line 4100 1350 4100 1400 Text Notes 4000 2450 0 35 ~ 0 Power Good Detection \nfor triggering save to \nEEPROM before buffered \npower supply is out Wire Wire Line 6800 3750 6800 4950 Wire Wire Line 4350 3650 4600 3650 Wire Wire Line 3750 2150 4600 2150 Wire Wire Line 6700 4750 4350 4750 Wire Wire Line 6800 3750 6500 3750 Wire Notes Line 700 600 7900 600 Wire Notes Line 7900 600 7900 6300 Wire Notes Line 7900 6300 6350 6300 Wire Notes Line 6350 6300 6350 7100 Wire Notes Line 6350 7100 700 7100 Wire Notes Line 700 7100 700 600 Text Notes 800 750 0 50 ~ 0 Impulse Counter Unit Text Notes 7150 7000 0 79 ~ 0 Dual Impulse Counter \nwith EEPROM persistent storage, Power Fail detection $Comp L Isolator:PC817 U2 U 1 1 5F925BDD P 2150 3400 F 0 "U2" H 2150 3725 50 0000 C CNN F 1 "PC817" H 2150 3634 50 0000 C CNN F 2 "Housings_DIP:DIP-4_W7.62mm" H 1950 3200 50 0001 L CIN F 3 "http://www.soselectronic.cz/a_info/resource/d/pc817.pdf" H 2150 3400 50 0001 L CNN 1 2150 3400 1 0 0 -1 $EndComp $Comp L Connector:Screw_Terminal_01x03 J2 U 1 1 5F92B88F P 1100 3500 F 0 "J2" H 1018 3817 50 0000 C CNN F 1 "IMP_IN_1" H 1018 3726 50 0000 C CNN F 2 "Connectors_Terminal_Blocks:TerminalBlock_bornier-3_P5.08mm" H 1100 3500 50 0001 C CNN F 3 "~" H 1100 3500 50 0001 C CNN 1 1100 3500 -1 0 0 1 $EndComp Wire Wire Line 3750 2150 3750 1700 Connection ~ 3750 2150 $Comp L power:GND #PWR0108 U 1 1 5F946F37 P 2450 3600 F 0 "#PWR0108" H 2450 3350 50 0001 C CNN F 1 "GND" H 2455 3427 50 0000 C CNN F 2 "" H 2450 3600 50 0001 C CNN F 3 "" H 2450 3600 50 0001 C CNN 1 2450 3600 1 0 0 -1 $EndComp Wire Wire Line 2450 3600 2450 3500 $Comp L Device:R R3 U 1 1 5F94A6CF P 1650 3500 F 0 "R3" V 1443 3500 50 0000 C CNN F 1 "220" V 1534 3500 50 0000 C CNN F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 1580 3500 50 0001 C CNN F 3 "~" H 1650 3500 50 0001 C CNN 1 1650 3500 0 1 1 0 $EndComp $Comp L power:+5V #PWR0109 U 1 1 5F94CADA P 1400 2600 F 0 "#PWR0109" H 1400 2450 50 0001 C CNN F 1 "+5V" H 1415 2773 50 0000 C CNN F 2 "" H 1400 2600 50 0001 C CNN F 3 "" H 1400 2600 50 0001 C CNN 1 1400 2600 1 0 0 -1 $EndComp $Comp L Regulator_Linear:L7805 U1 U 1 1 5F94F630 P 3650 1050 F 0 "U1" H 3650 1292 50 0000 C CNN F 1 "L7805" H 3650 1201 50 0000 C CNN F 2 "TO_SOT_Packages_THT:TO-220-3_Vertical" H 3675 900 50 0001 L CIN F 3 "http://www.st.com/content/ccc/resource/technical/document/datasheet/41/4f/b3/b0/12/d4/47/88/CD00000444.pdf/files/CD00000444.pdf/jcr:content/translations/en.CD00000444.pdf" H 3650 1000 50 0001 C CNN 1 3650 1050 1 0 0 -1 $EndComp Wire Wire Line 1300 3400 1400 3400 Wire Wire Line 1300 3500 1500 3500 $Comp L power:GND #PWR0110 U 1 1 5F963EDF P 1300 3700 F 0 "#PWR0110" H 1300 3450 50 0001 C CNN F 1 "GND" H 1305 3527 50 0000 C CNN F 2 "" H 1300 3700 50 0001 C CNN F 3 "" H 1300 3700 50 0001 C CNN 1 1300 3700 1 0 0 -1 $EndComp Wire Wire Line 1300 3600 1300 3700 Wire Wire Line 1850 3500 1800 3500 Wire Wire Line 1850 3300 1850 3200 Wire Wire Line 2450 3300 2700 3300 $Comp L Device:LED D3 U 1 1 5F983BBB P 1650 2650 F 0 "D3" H 1643 2395 50 0000 C CNN F 1 "LED" H 1643 2486 50 0000 C CNN F 2 "LEDs:LED_D3.0mm" H 1650 2650 50 0001 C CNN F 3 "~" H 1650 2650 50 0001 C CNN 1 1650 2650 -1 0 0 1 $EndComp Wire Wire Line 1850 3200 1400 3200 Connection ~ 1400 3200 Wire Wire Line 1400 3200 1400 3400 $Comp L Device:R R4 U 1 1 5F9A2208 P 1650 3050 F 0 "R4" V 1443 3050 50 0000 C CNN F 1 "560" V 1534 3050 50 0000 C CNN F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 1580 3050 50 0001 C CNN F 3 "~" H 1650 3050 50 0001 C CNN 1 1650 3050 0 1 1 0 $EndComp Wire Wire Line 1500 3050 1500 3500 Connection ~ 1500 3500 $Comp L Isolator:PC817 U3 U 1 1 5F9B7136 P 2200 5150 F 0 "U3" H 2200 5475 50 0000 C CNN F 1 "PC817" H 2200 5384 50 0000 C CNN F 2 "Housings_DIP:DIP-4_W7.62mm" H 2000 4950 50 0001 L CIN F 3 "http://www.soselectronic.cz/a_info/resource/d/pc817.pdf" H 2200 5150 50 0001 L CNN 1 2200 5150 1 0 0 -1 $EndComp $Comp L Connector:Screw_Terminal_01x03 J3 U 1 1 5F9B713C P 1150 5250 F 0 "J3" H 1068 5567 50 0000 C CNN F 1 "IMP_IN_2" H 1068 5476 50 0000 C CNN F 2 "Connectors_Terminal_Blocks:TerminalBlock_bornier-3_P5.08mm" H 1150 5250 50 0001 C CNN F 3 "~" H 1150 5250 50 0001 C CNN 1 1150 5250 -1 0 0 1 $EndComp $Comp L power:GND #PWR0111 U 1 1 5F9B7142 P 2500 5350 F 0 "#PWR0111" H 2500 5100 50 0001 C CNN F 1 "GND" H 2505 5177 50 0000 C CNN F 2 "" H 2500 5350 50 0001 C CNN F 3 "" H 2500 5350 50 0001 C CNN 1 2500 5350 1 0 0 -1 $EndComp Wire Wire Line 2500 5350 2500 5250 $Comp L Device:R R5 U 1 1 5F9B7149 P 1700 5250 F 0 "R5" V 1907 5250 50 0000 C CNN F 1 "220" V 1816 5250 50 0000 C CNN F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 1630 5250 50 0001 C CNN F 3 "~" H 1700 5250 50 0001 C CNN 1 1700 5250 0 1 -1 0 $EndComp $Comp L power:+5V #PWR0112 U 1 1 5F9B714F P 1450 4400 F 0 "#PWR0112" H 1450 4250 50 0001 C CNN F 1 "+5V" H 1465 4573 50 0000 C CNN F 2 "" H 1450 4400 50 0001 C CNN F 3 "" H 1450 4400 50 0001 C CNN 1 1450 4400 1 0 0 -1 $EndComp Wire Wire Line 1350 5150 1450 5150 Wire Wire Line 1350 5250 1550 5250 $Comp L power:GND #PWR0113 U 1 1 5F9B7157 P 1350 5450 F 0 "#PWR0113" H 1350 5200 50 0001 C CNN F 1 "GND" H 1355 5277 50 0000 C CNN F 2 "" H 1350 5450 50 0001 C CNN F 3 "" H 1350 5450 50 0001 C CNN 1 1350 5450 1 0 0 -1 $EndComp Wire Wire Line 1350 5350 1350 5450 Wire Wire Line 1900 5250 1850 5250 Wire Wire Line 1900 5050 1900 4950 Wire Wire Line 2500 5050 2750 5050 $Comp L Device:LED D4 U 1 1 5F9B7161 P 1700 4400 F 0 "D4" H 1693 4145 50 0000 C CNN F 1 "LED" H 1693 4236 50 0000 C CNN F 2 "LEDs:LED_D3.0mm" H 1700 4400 50 0001 C CNN F 3 "~" H 1700 4400 50 0001 C CNN 1 1700 4400 -1 0 0 1 $EndComp Wire Wire Line 1900 4950 1450 4950 Connection ~ 1450 4950 Wire Wire Line 1450 4950 1450 5150 $Comp L Device:R R6 U 1 1 5F9B716A P 1700 4800 F 0 "R6" V 1493 4800 50 0000 C CNN F 1 "560" V 1584 4800 50 0000 C CNN F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 1630 4800 50 0001 C CNN F 3 "~" H 1700 4800 50 0001 C CNN 1 1700 4800 0 1 1 0 $EndComp Wire Wire Line 1550 4800 1550 5250 Connection ~ 1550 5250 Wire Wire Line 1550 4650 1450 4650 Connection ~ 1450 4650 Wire Wire Line 1450 4650 1450 4950 Wire Wire Line 1450 4400 1450 4650 Wire Wire Line 1500 1050 2250 1050 Text Label 6550 2050 0 50 ~ 0 MCU_INT0 Wire Wire Line 6550 2050 6500 2050 Text Label 6550 2150 0 50 ~ 0 MCU_INT1 Wire Wire Line 6550 2150 6500 2150 Text Label 2750 5050 0 50 ~ 0 MCU_INT1 Text Label 2700 3300 0 50 ~ 0 MCU_INT0 Wire Wire Line 1550 4400 1550 4650 Wire Wire Line 1850 4400 1850 4800 Wire Wire Line 1800 2650 1800 3050 Wire Wire Line 1500 2900 1400 2900 Connection ~ 1400 2900 Wire Wire Line 1400 2900 1400 3200 Wire Wire Line 1500 2650 1500 2900 Wire Wire Line 1400 2600 1400 2900 Text Label 6550 1850 0 50 ~ 0 MCU_RX Wire Wire Line 6550 1850 6500 1850 Text Label 6550 1950 0 50 ~ 0 MCU_TX Wire Wire Line 6550 1950 6500 1950 Wire Wire Line 2250 1600 2250 1700 Wire Wire Line 2250 1700 3750 1700 Connection ~ 2250 1700 Wire Wire Line 2250 1700 2250 1800 $Comp L Diode:1N4001 D2 U 1 1 5FA7B88E P 2650 1050 F 0 "D2" V 2696 971 50 0000 R CNN F 1 "1N4001" V 2605 971 50 0000 R CNN F 2 "Diodes_THT:D_DO-41_SOD81_P10.16mm_Horizontal" H 2650 875 50 0001 C CNN F 3 "http://www.vishay.com/docs/88503/1n4001.pdf" H 2650 1050 50 0001 C CNN 1 2650 1050 -1 0 0 1 $EndComp Wire Wire Line 2500 1050 2250 1050 Connection ~ 2250 1050 Wire Wire Line 2800 1050 3350 1050 $EndSCHEMATC