add buttons for voltmeters

This commit is contained in:
eddyem
2015-04-19 23:23:40 +03:00
parent f5bd901e9e
commit 8cde19f5b1
26 changed files with 3620 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
update=Пт 10 апр 2015 00:07:11
version=1
last_client=kicad
[cvpcb]
version=1
NetIExt=net
[cvpcb/libraries]
EquName1=devcms
[pcbnew]
version=1
LastNetListRead=
PadDrlX=320
PadDimH=550
PadDimV=550
BoardThickness=620
TxtPcbV=600
TxtPcbH=600
TxtModV=500
TxtModH=500
TxtModW=100
VEgarde=100
DrawLar=120
EdgeLar=80
TxtLar=120
MSegLar=120
[pcbnew/libraries]
LibDir=
LibName1=sockets
LibName2=connect
LibName3=discret
LibName4=pin_array
LibName5=divers
LibName6=libcms
LibName7=display
LibName8=led
LibName9=dip_sockets
LibName10=pga_sockets
LibName11=valves
[general]
version=1
[eeschema]
version=1
PageLayoutDescrFile=
SubpartIdSeparator=0
SubpartFirstId=65
LibDir=/home/eddy/Docs/ELECTRONICS/STM8/voltmeters/kicad
NetFmtName=
SpiceForceRefPrefix=0
SpiceUseNetNumbers=0
RptD_X=0
RptD_Y=100
RptLab=1
LabSize=60
[eeschema/libraries]
LibName1=power
LibName2=device
LibName3=transistors
LibName4=conn
LibName5=linear
LibName6=regul
LibName7=74xx
LibName8=cmos4000
LibName9=adc-dac
LibName10=memory
LibName11=xilinx
LibName12=special
LibName13=microcontrollers
LibName14=dsp
LibName15=microchip
LibName16=analog_switches
LibName17=motorola
LibName18=texas
LibName19=intel
LibName20=audio
LibName21=interface
LibName22=digital-audio
LibName23=philips
LibName24=display
LibName25=cypress
LibName26=siliconi
LibName27=opto
LibName28=atmel
LibName29=contrib
LibName30=valves
LibName31=stm8
LibName32=ht7136
LibName33=mcp3421
LibName34=seven_segm
LibName35=stm8s003

View File

@@ -0,0 +1,625 @@
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:stm8
LIBS:3digit_voltmeter-cache
EELAYER 24 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date "16 feb 2015"
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L STM8S003F3P6 IC1
U 1 1 54CCE7DB
P 5050 4600
F 0 "IC1" H 5050 5200 60 0000 C CNN
F 1 "STM8S003F3P6" H 5050 3800 60 0000 C CNN
F 2 "TSSOP20" H 4950 5100 60 0001 C CNN
F 3 "~" H 5050 4600 60 0000 C CNN
1 5050 4600
1 0 0 -1
$EndComp
$Comp
L R_PACK4 RP2
U 1 1 54CCE809
P 7200 4200
F 0 "RP2" H 7200 4650 40 0000 C CNN
F 1 "220" H 7200 4150 40 0000 C CNN
F 2 "" H 7200 4200 60 0000 C CNN
F 3 "" H 7200 4200 60 0000 C CNN
1 7200 4200
1 0 0 1
$EndComp
$Comp
L ARK-SP410361N DIS2
U 1 1 54CCF1F0
P 6550 3100
F 0 "DIS2" H 6550 3600 60 0000 C CNN
F 1 "ARK-SP410361N" H 6550 2650 60 0000 C CNN
F 2 "~" H 6300 3100 60 0000 C CNN
F 3 "~" H 6300 3100 60 0000 C CNN
1 6550 3100
1 0 0 -1
$EndComp
$Comp
L HT7136 U2
U 1 1 54CD13ED
P 3200 3050
F 0 "U2" H 3350 2854 60 0000 C CNN
F 1 "HT7136" H 3200 3250 60 0000 C CNN
F 2 "~" H 3200 3050 60 0000 C CNN
F 3 "~" H 3200 3050 60 0000 C CNN
1 3200 3050
1 0 0 -1
$EndComp
$Comp
L GND #PWR01
U 1 1 54CD1463
P 3200 3400
F 0 "#PWR01" H 3200 3400 30 0001 C CNN
F 1 "GND" H 3200 3330 30 0001 C CNN
F 2 "" H 3200 3400 60 0000 C CNN
F 3 "" H 3200 3400 60 0000 C CNN
1 3200 3400
1 0 0 -1
$EndComp
Wire Wire Line
3200 3400 3200 3300
$Comp
L C C1
U 1 1 54CD1475
P 2700 3350
F 0 "C1" H 2750 3450 50 0000 L CNN
F 1 "100n" H 2750 3250 50 0000 L CNN
F 2 "" H 2700 3350 60 0000 C CNN
F 3 "" H 2700 3350 60 0000 C CNN
1 2700 3350
1 0 0 -1
$EndComp
Wire Wire Line
2700 3150 2700 3000
$Comp
L GND #PWR02
U 1 1 54CD148D
P 2700 3650
F 0 "#PWR02" H 2700 3650 30 0001 C CNN
F 1 "GND" H 2700 3580 30 0001 C CNN
F 2 "" H 2700 3650 60 0000 C CNN
F 3 "" H 2700 3650 60 0000 C CNN
1 2700 3650
1 0 0 -1
$EndComp
Wire Wire Line
2700 3550 2700 3650
$Comp
L CP1 C2
U 1 1 54CD14C2
P 3750 3200
F 0 "C2" H 3800 3300 50 0000 L CNN
F 1 "100u" H 3800 3100 50 0000 L CNN
F 2 "" H 3750 3200 60 0000 C CNN
F 3 "" H 3750 3200 60 0000 C CNN
1 3750 3200
1 0 0 -1
$EndComp
Wire Wire Line
3600 3000 3900 3000
$Comp
L GND #PWR03
U 1 1 54CD271D
P 3750 3500
F 0 "#PWR03" H 3750 3500 30 0001 C CNN
F 1 "GND" H 3750 3430 30 0001 C CNN
F 2 "" H 3750 3500 60 0000 C CNN
F 3 "" H 3750 3500 60 0000 C CNN
1 3750 3500
1 0 0 -1
$EndComp
Wire Wire Line
3750 3400 3750 3500
Connection ~ 3750 3000
$Comp
L VCC #PWR04
U 1 1 54CD31C2
P 3900 3000
F 0 "#PWR04" H 3900 3100 30 0001 C CNN
F 1 "VCC" H 3900 3100 30 0000 C CNN
F 2 "" H 3900 3000 60 0000 C CNN
F 3 "" H 3900 3000 60 0000 C CNN
1 3900 3000
1 0 0 -1
$EndComp
$Comp
L CONN_4 P1
U 1 1 54CD436B
P 4900 2950
F 0 "P1" V 4850 2950 50 0000 C CNN
F 1 "CONN_5" V 4950 2950 50 0000 C CNN
F 2 "" H 4900 2950 60 0000 C CNN
F 3 "" H 4900 2950 60 0000 C CNN
1 4900 2950
0 1 -1 0
$EndComp
Wire Wire Line
5050 3450 5050 3300
$Comp
L R_PACK4 RP1
U 1 1 54CD4EA1
P 6950 4800
F 0 "RP1" H 6950 5250 40 0000 C CNN
F 1 "220" H 6950 4750 40 0000 C CNN
F 2 "" H 6950 4800 60 0000 C CNN
F 3 "" H 6950 4800 60 0000 C CNN
1 6950 4800
1 0 0 1
$EndComp
Text Label 7400 4350 0 60 ~ 0
G
Text Label 7400 4450 0 60 ~ 0
DP
Text Label 7150 4950 0 60 ~ 0
A
Text Label 7150 5050 0 60 ~ 0
F
Text Label 7400 4550 0 60 ~ 0
D
Text Label 7150 4850 0 60 ~ 0
E
Text Label 7400 4250 0 60 ~ 0
C
Text Label 7150 5150 0 60 ~ 0
B
Text Label 5450 3250 2 60 ~ 0
G
Text Label 5450 3050 2 60 ~ 0
DP
Text Label 7600 2950 0 60 ~ 0
A
Text Label 7600 3050 0 60 ~ 0
F
Text Label 5450 2950 2 60 ~ 0
D
Text Label 5450 2850 2 60 ~ 0
E
Text Label 5450 3150 2 60 ~ 0
C
Text Label 7600 3350 0 60 ~ 0
B
Text Label 4850 3300 3 60 ~ 0
SWIM
Text Label 4750 3300 3 60 ~ 0
RST
Text Label 7600 2850 0 60 ~ 0
A1
Text Label 7600 3150 0 60 ~ 0
A2
Text Label 7600 3250 0 60 ~ 0
A3
$Comp
L VCC #PWR05
U 1 1 54CD9F1D
P 3750 5050
F 0 "#PWR05" H 3750 5150 30 0001 C CNN
F 1 "VCC" H 3750 5150 30 0000 C CNN
F 2 "" H 3750 5050 60 0000 C CNN
F 3 "" H 3750 5050 60 0000 C CNN
1 3750 5050
0 -1 -1 0
$EndComp
$Comp
L GND #PWR06
U 1 1 54CDA116
P 3700 4850
F 0 "#PWR06" H 3700 4850 30 0001 C CNN
F 1 "GND" H 3700 4780 30 0001 C CNN
F 2 "" H 3700 4850 60 0000 C CNN
F 3 "" H 3700 4850 60 0000 C CNN
1 3700 4850
0 1 1 0
$EndComp
$Comp
L C C3
U 1 1 54CDA380
P 3600 5450
F 0 "C3" H 3600 5550 40 0000 L CNN
F 1 "0.68u" H 3606 5365 40 0000 L CNN
F 2 "" H 3638 5300 30 0000 C CNN
F 3 "" H 3600 5450 60 0000 C CNN
1 3600 5450
1 0 0 -1
$EndComp
Wire Wire Line
3600 4450 3600 5250
Wire Wire Line
3600 4950 3800 4950
$Comp
L GND #PWR07
U 1 1 54CDA4A6
P 3600 5750
F 0 "#PWR07" H 3600 5750 30 0001 C CNN
F 1 "GND" H 3600 5680 30 0001 C CNN
F 2 "" H 3600 5750 60 0000 C CNN
F 3 "" H 3600 5750 60 0000 C CNN
1 3600 5750
1 0 0 -1
$EndComp
Wire Wire Line
3600 5750 3600 5650
Text Label 3800 4350 2 60 ~ 0
A3
Text Label 3800 4250 2 60 ~ 0
A2
Wire Wire Line
3600 4450 3800 4450
Connection ~ 3600 4950
Wire Wire Line
3700 4850 3800 4850
Wire Wire Line
3750 5050 3800 5050
Wire Wire Line
2700 3000 2800 3000
Text Label 3800 4550 2 60 ~ 0
RST
Text Label 6400 4450 0 60 ~ 0
SWIM
Text Label 3800 5150 2 60 ~ 0
A1
Wire Wire Line
6400 5150 6750 5150
Wire Wire Line
6400 5050 6750 5050
Wire Wire Line
6400 4950 6750 4950
Wire Wire Line
6400 4850 6750 4850
$Comp
L CONN_2 P2
U 1 1 54E2B17F
P 1400 2950
F 0 "P2" V 1350 2950 40 0000 C CNN
F 1 "CONN_2" V 1450 2950 40 0000 C CNN
F 2 "" H 1400 2950 60 0000 C CNN
F 3 "" H 1400 2950 60 0000 C CNN
1 1400 2950
-1 0 0 1
$EndComp
$Comp
L GND #PWR08
U 1 1 54E2B1F6
P 1750 3200
F 0 "#PWR08" H 1750 3200 30 0001 C CNN
F 1 "GND" H 1750 3130 30 0001 C CNN
F 2 "" H 1750 3200 60 0000 C CNN
F 3 "" H 1750 3200 60 0000 C CNN
1 1750 3200
1 0 0 -1
$EndComp
Wire Wire Line
1750 3050 1750 3200
Text Label 1750 2850 0 60 ~ 0
VIN
Text Label 2700 3000 2 60 ~ 0
VIN
Text Label 4950 3300 3 60 ~ 0
VIN
$Comp
L GND #PWR09
U 1 1 54CD4689
P 5050 3450
F 0 "#PWR09" H 5050 3450 30 0001 C CNN
F 1 "GND" H 5050 3380 30 0001 C CNN
F 2 "" H 5050 3450 60 0000 C CNN
F 3 "" H 5050 3450 60 0000 C CNN
1 5050 3450
1 0 0 -1
$EndComp
$Comp
L R R3
U 1 1 54E2B6E2
P 2550 4450
F 0 "R3" V 2630 4450 40 0000 C CNN
F 1 "absent" V 2557 4451 40 0000 C CNN
F 2 "" V 2480 4450 30 0000 C CNN
F 3 "" H 2550 4450 30 0000 C CNN
1 2550 4450
1 0 0 -1
$EndComp
$Comp
L VCC #PWR010
U 1 1 54E2B7D6
P 2550 4100
F 0 "#PWR010" H 2550 4200 30 0001 C CNN
F 1 "VCC" H 2550 4200 30 0000 C CNN
F 2 "" H 2550 4100 60 0000 C CNN
F 3 "" H 2550 4100 60 0000 C CNN
1 2550 4100
1 0 0 -1
$EndComp
Wire Wire Line
2550 4100 2550 4200
$Comp
L R R2
U 1 1 54E2B804
P 2550 5050
F 0 "R2" V 2630 5050 40 0000 C CNN
F 1 "10k" V 2557 5051 40 0000 C CNN
F 2 "" V 2480 5050 30 0000 C CNN
F 3 "" H 2550 5050 30 0000 C CNN
1 2550 5050
1 0 0 -1
$EndComp
Wire Wire Line
2550 4800 2550 4700
$Comp
L C C4
U 1 1 54E2BAD0
P 2850 5100
F 0 "C4" H 2850 5200 40 0000 L CNN
F 1 "absent" H 2856 5015 40 0000 L CNN
F 2 "" H 2888 4950 30 0000 C CNN
F 3 "" H 2850 5100 60 0000 C CNN
1 2850 5100
1 0 0 -1
$EndComp
Text Label 6400 4250 0 60 ~ 0
AIN
Text Label 3000 4750 0 60 ~ 0
AIN
Connection ~ 2550 4750
Wire Wire Line
2550 5300 2850 5300
Wire Wire Line
2850 4900 2850 4750
Connection ~ 2850 4750
Wire Wire Line
2150 4750 3000 4750
Wire Wire Line
6400 4750 6850 4750
Wire Wire Line
6400 4650 6800 4650
Wire Wire Line
6400 4550 6750 4550
Wire Wire Line
6850 4750 6850 4550
Wire Wire Line
6850 4550 7000 4550
Wire Wire Line
6800 4650 6800 4450
Wire Wire Line
6800 4450 7000 4450
Wire Wire Line
6750 4550 6750 4350
Wire Wire Line
6750 4350 7000 4350
Wire Wire Line
6400 4450 6650 4450
Wire Wire Line
6650 4450 6650 4250
Wire Wire Line
6650 4250 7000 4250
$Comp
L R R1
U 1 1 54E2D592
P 2150 4400
F 0 "R1" V 2230 4400 40 0000 C CNN
F 1 "91k" V 2157 4401 40 0000 C CNN
F 2 "" V 2080 4400 30 0000 C CNN
F 3 "" H 2150 4400 30 0000 C CNN
1 2150 4400
1 0 0 -1
$EndComp
Wire Wire Line
2150 4750 2150 4650
Text Label 2150 4150 2 60 ~ 0
VIN
NoConn ~ 3800 4650
NoConn ~ 3800 4750
NoConn ~ 6400 4350
$Comp
L GND #PWR?
U 1 1 54E2711D
P 2700 5400
F 0 "#PWR?" H 2700 5400 30 0001 C CNN
F 1 "GND" H 2700 5330 30 0001 C CNN
F 2 "" H 2700 5400 60 0000 C CNN
F 3 "" H 2700 5400 60 0000 C CNN
1 2700 5400
1 0 0 -1
$EndComp
Wire Wire Line
2700 5400 2700 5300
Connection ~ 2700 5300
Text Notes 900 5000 0 60 ~ 0
Remove R2 & C4\nSolder R3: 4.7k\nInstead o9f R1 solder jumper
$Comp
L DS18x20 DD1
U 1 1 5526FD33
P 1050 2050
F 0 "DD1" H 1050 2500 60 0000 C CNN
F 1 "DS18x20" H 1050 2400 60 0000 C CNN
F 2 "" H 1050 2050 60 0000 C CNN
F 3 "" H 1050 2050 60 0000 C CNN
1 1050 2050
1 0 0 -1
$EndComp
Wire Wire Line
1750 2850 1750 2550
Wire Wire Line
1750 2550 1050 2550
Wire Wire Line
1050 2550 1050 2350
Wire Wire Line
1750 3150 950 3150
Wire Wire Line
950 3150 950 2350
Connection ~ 1750 3150
Wire Wire Line
1150 2350 2050 2350
$Comp
L VCC #PWR?
U 1 1 552709AA
P 2050 2350
F 0 "#PWR?" H 2050 2450 30 0001 C CNN
F 1 "VCC" H 2050 2450 30 0000 C CNN
F 2 "" H 2050 2350 60 0000 C CNN
F 3 "" H 2050 2350 60 0000 C CNN
1 2050 2350
1 0 0 -1
$EndComp
Text Notes 1600 2200 0 60 ~ 0
Solder this wire to Vcc
Text Notes 8100 4850 0 60 ~ 0
To attach keys solder wires to them directly to LED legs\nCapacitor (10nF) and resisror (47..56kOhm) solder on key
$Comp
L SW_PUSH SWN
U 1 1 552713A2
P 8400 5150
F 0 "SWN" H 8550 5260 50 0000 C CNN
F 1 "SW_PUSH" H 8400 5070 50 0000 C CNN
F 2 "" H 8400 5150 60 0000 C CNN
F 3 "" H 8400 5150 60 0000 C CNN
1 8400 5150
1 0 0 -1
$EndComp
Wire Wire Line
7150 5150 8100 5150
$Comp
L C CN
U 1 1 5527146F
P 9000 5150
F 0 "CN" H 9000 5250 40 0000 L CNN
F 1 "10n" H 9006 5065 40 0000 L CNN
F 2 "" H 9038 5000 30 0000 C CNN
F 3 "" H 9000 5150 60 0000 C CNN
1 9000 5150
0 1 1 0
$EndComp
$Comp
L R RN
U 1 1 55271518
P 8750 5400
F 0 "RN" V 8830 5400 40 0000 C CNN
F 1 "56k" V 8757 5401 40 0000 C CNN
F 2 "" V 8680 5400 30 0000 C CNN
F 3 "" H 8750 5400 30 0000 C CNN
1 8750 5400
0 1 1 0
$EndComp
Wire Wire Line
8000 5150 8000 5400
Wire Wire Line
8000 5400 8500 5400
Connection ~ 8000 5150
Wire Wire Line
8700 5150 8800 5150
$Comp
L GND #PWR?
U 1 1 552716D4
P 9450 5300
F 0 "#PWR?" H 9450 5300 30 0001 C CNN
F 1 "GND" H 9450 5230 30 0001 C CNN
F 2 "" H 9450 5300 60 0000 C CNN
F 3 "" H 9450 5300 60 0000 C CNN
1 9450 5300
1 0 0 -1
$EndComp
Wire Wire Line
9450 5300 9450 5150
Wire Wire Line
9450 5150 9200 5150
Wire Wire Line
9000 5400 9300 5400
Wire Wire Line
9300 5400 9300 5150
Connection ~ 9300 5150
$Comp
L SW_PUSH SWX
U 1 1 55283145
P 8350 3700
F 0 "SWX" H 8500 3810 50 0000 C CNN
F 1 "SW_PUSH" H 8350 3620 50 0000 C CNN
F 2 "" H 8350 3700 60 0000 C CNN
F 3 "" H 8350 3700 60 0000 C CNN
1 8350 3700
1 0 0 -1
$EndComp
$Comp
L DIODE D1
U 1 1 5528332E
P 9000 3700
F 0 "D1" H 9000 3800 40 0000 C CNN
F 1 "DIODE" H 9000 3600 40 0000 C CNN
F 2 "" H 9000 3700 60 0000 C CNN
F 3 "" H 9000 3700 60 0000 C CNN
1 9000 3700
1 0 0 -1
$EndComp
Wire Wire Line
9300 3700 9200 3700
Wire Wire Line
8650 3700 8800 3700
Text Label 9300 3700 0 60 ~ 0
A1
Wire Wire Line
7700 5150 7700 3700
Wire Wire Line
7700 3700 8050 3700
Connection ~ 7700 5150
Text Notes 8150 3450 0 60 ~ 0
Another variant of button's attaching:\nafter power off current digit we setup all segments pins\nas pullup inputs and turn current ditit's pin into 0\nif button pressed we get 0 at appropriate pin else we have 1\n\n!!! When digit is off set anode pin into input mode !!!
Wire Notes Line
8000 2800 8000 3900
Wire Notes Line
8000 3900 11050 3900
Wire Notes Line
11050 3900 11050 2800
Wire Notes Line
11050 2800 8000 2800
Wire Notes Line
7900 4500 7900 5550
Wire Notes Line
10850 4500 7900 4500
Wire Notes Line
10850 5550 10850 4500
Wire Notes Line
7900 5550 10850 5550
Text Notes 9300 3850 0 39 ~ 0
This variant lets us to connect 8 buttons to each digit!
$EndSCHEMATC