1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 06:41:53 +02:00

labsw/: added low-pass filters to button input (with help from Joerg Reisenweber)

This commit is contained in:
Werner Almesberger 2011-09-10 20:35:23 -03:00
parent 6190dbe261
commit bdaff51ad3
3 changed files with 201 additions and 47 deletions

View File

@ -221,6 +221,8 @@ To do: debounce buttons (in software) before accepting a state change.
- added external pull-ups to IN_* and to buttons (so that we can turn
off the internal pull-ups and thus avoid sneak current through the
opto-coupler LEDs from VBUS via the pull-ups into VDD)
- added low-pass filters to button inputs, to suppress interferences,
e.g., from load being switched (with help from Joerg Reisenweber)
Pending:
- widen column cavities by 0.2 mm on each side

View File

@ -1,4 +1,4 @@
EESchema Schematic File Version 2 date Sat Sep 10 20:21:28 2011
EESchema Schematic File Version 2 date Sat Sep 10 20:32:16 2011
LIBS:power
LIBS:device
LIBS:conn
@ -22,70 +22,180 @@ Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
Connection ~ 5100 4300
Wire Wire Line
5100 3900 5100 4300
Connection ~ 4700 4100
3800 5100 3800 5300
Wire Wire Line
4700 3900 4700 4100
Connection ~ 4700 3200
3200 5100 3200 5300
Connection ~ 3500 4300
Wire Wire Line
4700 3200 5100 3200
3500 4700 3500 4300
Connection ~ 5100 4500
Wire Wire Line
5100 3200 5100 3400
Connection ~ 8150 4200
5100 3900 5100 4500
Connection ~ 4900 4300
Wire Wire Line
7950 4200 8150 4200
4900 3900 4900 4300
Wire Wire Line
3750 4300 7150 4300
3000 4500 4000 4500
Wire Wire Line
4400 4200 7150 4200
3000 4100 4000 4100
Connection ~ 4900 3200
Wire Wire Line
8550 3100 8550 2900
4900 3400 4900 3200
Wire Wire Line
8150 3100 8150 2900
4700 3400 4700 3000
Connection ~ 8150 4300
Wire Wire Line
8350 3600 8350 3900
7950 4300 8150 4300
Wire Wire Line
8350 3900 7950 3900
8150 4450 8150 4100
Wire Wire Line
6200 4000 7150 4000
Wire Wire Line
6200 3800 7150 3800
Wire Wire Line
7150 3900 6950 3900
Wire Wire Line
7950 3800 8150 3800
Wire Wire Line
8150 3800 8150 3600
Wire Wire Line
7950 4000 8550 4000
Wire Wire Line
8550 4000 8550 3600
8150 4100 7950 4100
Wire Wire Line
8350 3100 8350 2900
Wire Wire Line
3750 4100 7150 4100
8550 3600 8550 4000
Wire Wire Line
7950 4100 8150 4100
8550 4000 7950 4000
Wire Wire Line
8150 4100 8150 4450
8150 3600 8150 3800
Wire Wire Line
7950 4300 8150 4300
Connection ~ 8150 4300
8150 3800 7950 3800
Wire Wire Line
4700 3000 4700 3400
7150 3900 6950 3900
Wire Wire Line
4900 3400 4900 3200
Connection ~ 4900 3200
6200 3800 7150 3800
Wire Wire Line
4900 3900 4900 4200
Connection ~ 4900 4200
6200 4000 7150 4000
Wire Wire Line
7950 3900 8350 3900
Wire Wire Line
8350 3900 8350 3600
Wire Wire Line
8150 3100 8150 2900
Wire Wire Line
8550 3100 8550 2900
Wire Wire Line
7950 4200 8150 4200
Connection ~ 8150 4200
Wire Wire Line
5100 3400 5100 3200
Wire Wire Line
5100 3200 4700 3200
Connection ~ 4700 3200
Wire Wire Line
4700 4100 4700 3900
Connection ~ 4700 4100
Wire Wire Line
7150 4100 4500 4100
Wire Wire Line
3000 4300 4000 4300
Wire Wire Line
7150 4200 5400 4200
Wire Wire Line
5400 4200 5400 4300
Wire Wire Line
5400 4300 4500 4300
Wire Wire Line
7150 4300 5500 4300
Wire Wire Line
5500 4300 5500 4500
Wire Wire Line
5500 4500 4500 4500
Wire Wire Line
3200 4700 3200 4100
Connection ~ 3200 4100
Wire Wire Line
3800 4700 3800 4500
Connection ~ 3800 4500
Wire Wire Line
3500 5100 3500 5300
$Comp
L VDD #PWR023
L GND #PWR023
U 1 1 4E6BF2F6
P 3800 5300
F 0 "#PWR023" H 3800 5300 30 0001 C CNN
F 1 "GND" H 3800 5230 30 0001 C CNN
1 3800 5300
1 0 0 -1
$EndComp
$Comp
L GND #PWR024
U 1 1 4E6BF2F3
P 3500 5300
F 0 "#PWR024" H 3500 5300 30 0001 C CNN
F 1 "GND" H 3500 5230 30 0001 C CNN
1 3500 5300
1 0 0 -1
$EndComp
$Comp
L GND #PWR025
U 1 1 4E6BF2EE
P 3200 5300
F 0 "#PWR025" H 3200 5300 30 0001 C CNN
F 1 "GND" H 3200 5230 30 0001 C CNN
1 3200 5300
1 0 0 -1
$EndComp
$Comp
L C C7
U 1 1 4E6BF249
P 3800 4900
F 0 "C7" H 3850 5000 50 0000 L CNN
F 1 "1nF" H 3850 4800 50 0000 L CNN
1 3800 4900
1 0 0 -1
$EndComp
$Comp
L C C6
U 1 1 4E6BF247
P 3500 4900
F 0 "C6" H 3550 5000 50 0000 L CNN
F 1 "1nF" H 3550 4800 50 0000 L CNN
1 3500 4900
1 0 0 -1
$EndComp
$Comp
L C C5
U 1 1 4E6BF245
P 3200 4900
F 0 "C5" H 3250 5000 50 0000 L CNN
F 1 "1nF" H 3250 4800 50 0000 L CNN
1 3200 4900
1 0 0 -1
$EndComp
$Comp
L R R25
U 1 1 4E6BF242
P 4250 4500
F 0 "R25" V 4330 4500 50 0000 C CNN
F 1 "10k" V 4250 4500 50 0000 C CNN
1 4250 4500
0 -1 -1 0
$EndComp
$Comp
L R R24
U 1 1 4E6BF23E
P 4250 4300
F 0 "R24" V 4330 4300 50 0000 C CNN
F 1 "10k" V 4250 4300 50 0000 C CNN
1 4250 4300
0 -1 -1 0
$EndComp
$Comp
L R R23
U 1 1 4E6BF237
P 4250 4100
F 0 "R23" V 4330 4100 50 0000 C CNN
F 1 "10k" V 4250 4100 50 0000 C CNN
1 4250 4100
0 -1 -1 0
$EndComp
$Comp
L VDD #PWR026
U 1 1 4E6BEF5F
P 4700 3000
F 0 "#PWR023" H 4700 3100 30 0001 C CNN
F 0 "#PWR026" H 4700 3100 30 0001 C CNN
F 1 "VDD" H 4700 3110 50 0000 C CNN
1 4700 3000
1 0 0 -1
@ -150,11 +260,11 @@ Text GLabel 8350 2900 1 60 Input ~ 0
LED_CH2_R
Text GLabel 8150 2900 1 60 Input ~ 0
LED_CH1_R
Text GLabel 3750 4300 0 60 Input ~ 0
Text GLabel 3000 4500 0 60 Input ~ 0
BUT_MAIN
Text GLabel 4400 4200 0 60 Input ~ 0
Text GLabel 3000 4300 0 60 Input ~ 0
BUT_CH2
Text GLabel 3750 4100 0 60 Input ~ 0
Text GLabel 3000 4100 0 60 Input ~ 0
BUT_CH1
Text GLabel 6200 4000 0 60 Input ~ 0
LED_MAIN_G
@ -172,10 +282,10 @@ F 1 "CONN_6X2" V 7550 4050 60 0000 C CNN
1 0 0 -1
$EndComp
$Comp
L GND #PWR024
L GND #PWR027
U 1 1 4E55C01C
P 8150 4450
F 0 "#PWR024" H 8150 4450 30 0001 C CNN
F 0 "#PWR027" H 8150 4450 30 0001 C CNN
F 1 "GND" H 8150 4380 30 0001 C CNN
1 8150 4450
1 0 0 -1

View File

@ -1,4 +1,4 @@
Cmp-Mod V01 Created by CvPCB (2010-12-27 BZR 2685)-unstable date = Sat Sep 10 20:21:25 2011
Cmp-Mod V01 Created by CvPCB (2010-12-27 BZR 2685)-unstable date = Sat Sep 10 20:32:12 2011
BeginCmp
TimeStamp = /4E55CABB;
@ -28,6 +28,27 @@ ValeurCmp = 100nF;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E6BF245;
Reference = C5;
ValeurCmp = 1nF;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E6BF247;
Reference = C6;
ValeurCmp = 1nF;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E6BF249;
Reference = C7;
ValeurCmp = 1nF;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E534734;
Reference = CON1;
@ -280,6 +301,27 @@ ValeurCmp = 1k;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E6BF237;
Reference = R23;
ValeurCmp = 10k;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E6BF23E;
Reference = R24;
ValeurCmp = 10k;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E6BF242;
Reference = R25;
ValeurCmp = 10k;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E5344A0;
Reference = U1;