update firmware

add 3d cad design
updated PCB layout and chematics
This commit is contained in:
2021-03-25 18:33:02 +01:00
parent 7d9fbc228e
commit 79edcef8ce
30 changed files with 178878 additions and 42354 deletions

BIN
.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -156,29 +156,6 @@ X 2 2 150 0 50 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_L
#
DEF Device_L L 0 40 N N 1 F N
F0 "L" -50 0 50 V V C CNN
F1 "Device_L" 75 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Choke_*
*Coil*
Inductor_*
L_*
$ENDFPLIST
DRAW
A 0 -75 25 -899 899 0 1 0 N 0 -100 0 -50
A 0 -25 25 -899 899 0 1 0 N 0 -50 0 0
A 0 25 25 -899 899 0 1 0 N 0 0 0 50
A 0 75 25 -899 899 0 1 0 N 0 50 0 100
X 1 1 0 150 50 D 50 50 1 1 P
X 2 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_LED
#
DEF Device_LED D 0 40 N N 1 F N
@@ -240,27 +217,6 @@ X VOUT 5 300 100 100 L 50 50 1 1 w
ENDDRAW
ENDDEF
#
# Regulator_Switching_LM3670MF
#
DEF Regulator_Switching_LM3670MF U 0 20 Y Y 1 F N
F0 "U" -200 200 50 H V L CNN
F1 "Regulator_Switching_LM3670MF" 0 200 50 H V L CNN
F2 "Package_TO_SOT_SMD:TSOT-23-5" 50 -250 50 H I L CNN
F3 "" -250 -350 50 H I C CNN
ALIAS ADP2108AUJ-1.1 ADP2108AUJ-1.2 ADP2108AUJ-1.3 ADP2108AUJ-1.5 ADP2108AUJ-1.8 ADP2108AUJ-1.82 ADP2108AUJ-2.3 ADP2108AUJ-2.5 ADP2108AUJ-3.0 ADP2108AUJ-3.3 LM3670MF
$FPLIST
TSOT?23*
$ENDFPLIST
DRAW
S -200 150 200 -200 0 1 10 f
X Vin 1 -300 100 100 R 50 50 1 1 W
X GND 2 0 -300 100 U 50 50 1 1 W
X EN 3 -300 0 100 R 50 50 1 1 I
X FB 4 300 -100 100 L 50 50 1 1 I
X SW 5 300 100 100 L 50 50 1 1 I
ENDDRAW
ENDDEF
#
# Switch_SW_SPDT_MSM
#
DEF Switch_SW_SPDT_MSM SW 0 0 Y N 1 F N
@@ -333,11 +289,11 @@ X PROG 5 -400 -200 100 R 50 50 1 1 I
ENDDRAW
ENDDEF
#
# dk_Slide-Switches_EG1218
# ledTruck-rescue_EG1218-dk_Slide-Switches
#
DEF dk_Slide-Switches_EG1218 S 0 0 Y Y 1 F N
DEF ledTruck-rescue_EG1218-dk_Slide-Switches S 0 0 Y Y 1 F N
F0 "S" -150 90 50 H V C CNN
F1 "dk_Slide-Switches_EG1218" 0 -210 50 H V C CNN
F1 "ledTruck-rescue_EG1218-dk_Slide-Switches" 0 -210 50 H V C CNN
F2 "digikey-footprints:Switch_Slide_11.6x4mm_EG1218" 200 200 50 H I L CNN
F3 "http://spec_sheets.e-switch.com/specs/P040040.pdf" 200 300 60 H I L CNN
F4 "EG1903-ND" 200 400 60 H I L CNN "Digi-Key_PN"

View File

@@ -1,6 +1,34 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# EG1218-dk_Slide-Switches
#
DEF EG1218-dk_Slide-Switches S 0 0 Y Y 1 F N
F0 "S" -150 90 50 H V C CNN
F1 "EG1218-dk_Slide-Switches" 0 -210 50 H V C CNN
F2 "digikey-footprints:Switch_Slide_11.6x4mm_EG1218" 200 200 50 H I L CNN
F3 "http://spec_sheets.e-switch.com/specs/P040040.pdf" 200 300 60 H I L CNN
F4 "EG1903-ND" 200 400 60 H I L CNN "Digi-Key_PN"
F5 "EG1218" 200 500 60 H I L CNN "MPN"
F6 "Switches" 200 600 60 H I L CNN "Category"
F7 "Slide Switches" 200 700 60 H I L CNN "Family"
F8 "http://spec_sheets.e-switch.com/specs/P040040.pdf" 200 800 60 H I L CNN "DK_Datasheet_Link"
F9 "/product-detail/en/e-switch/EG1218/EG1903-ND/101726" 200 900 60 H I L CNN "DK_Detail_Page"
F10 "SWITCH SLIDE SPDT 200MA 30V" 200 1000 60 H I L CNN "Description"
F11 "E-Switch" 200 1100 60 H I L CNN "Manufacturer"
F12 "Active" 200 1200 60 H I L CNN "Status"
DRAW
C -90 0 14 0 1 0 F
C 90 -100 14 0 1 0 F
C 100 100 14 0 1 0 F
P 2 0 1 0 -80 0 120 90 N
X ~ 1 200 100 100 L 50 50 1 1 P
X ~ 2 -200 0 100 R 50 50 1 1 P
X ~ 3 200 -100 100 L 50 50 1 1 P
X SH 4 200 -300 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# STM32L031K6Ux-MCU_ST_STM32L0
#
DEF STM32L031K6Ux-MCU_ST_STM32L0 U 0 20 Y Y 1 F N

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
update=2021 March 12, Friday 15:20:05
update=2021 March 23, Tuesday 22:13:16
version=1
last_client=kicad
[general]
@@ -12,6 +12,16 @@ NetIExt=net
version=1
LibDir=
[eeschema/libraries]
[schematic_editor]
version=1
PageLayoutDescrFile=
PlotDirectoryName=
SubpartIdSeparator=0
SubpartFirstId=65
NetFmtName=Pcbnew
SpiceAjustPassiveValues=0
LabSize=50
ERC_TestSimilarLabels=1
[pcbnew]
version=1
PageLayoutDescrFile=
@@ -29,6 +39,7 @@ MinMicroViaDiameter=0.2
MinMicroViaDrill=0.09999999999999999
MinHoleToHole=0.25
TrackWidth1=0.25
TrackWidth2=0.3048
ViaDiameter1=0.8
ViaDrill1=0.4
dPairWidth1=0.2
@@ -247,13 +258,3 @@ uViaDrill=0.1
dPairWidth=0.2
dPairGap=0.25
dPairViaGap=0.25
[schematic_editor]
version=1
PageLayoutDescrFile=
PlotDirectoryName=
SubpartIdSeparator=0
SubpartFirstId=65
NetFmtName=Pcbnew
SpiceAjustPassiveValues=0
LabSize=50
ERC_TestSimilarLabels=1

View File

@@ -14,52 +14,12 @@ Comment3 ""
Comment4 ""
$EndDescr
$Comp
L dk_Barrel-Audio-Connectors:SJ1-3523N CON1
U 1 1 6021CA8A
P 8650 1200
F 0 "CON1" H 8322 1253 60 0000 R CNN
F 1 "SJ1-3523N" H 8322 1147 60 0000 R CNN
F 2 "MySymbols:3,5mm_straight_circular" H 8850 1400 60 0001 L CNN
F 3 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" H 8850 1500 60 0001 L CNN
F 4 "CP1-3523N-ND" H 8850 1600 60 0001 L CNN "Digi-Key_PN"
F 5 "SJ1-3523N" H 8850 1700 60 0001 L CNN "MPN"
F 6 "Connectors, Interconnects" H 8850 1800 60 0001 L CNN "Category"
F 7 "Barrel - Audio Connectors" H 8850 1900 60 0001 L CNN "Family"
F 8 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" H 8850 2000 60 0001 L CNN "DK_Datasheet_Link"
F 9 "/product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689" H 8850 2100 60 0001 L CNN "DK_Detail_Page"
F 10 "CONN JACK STEREO 3.5MM R/A" H 8850 2200 60 0001 L CNN "Description"
F 11 "CUI Inc." H 8850 2300 60 0001 L CNN "Manufacturer"
F 12 "Active" H 8850 2400 60 0001 L CNN "Status"
1 8650 1200
-1 0 0 -1
$EndComp
$Comp
L dk_Barrel-Audio-Connectors:SJ1-3523N CON3
U 1 1 6021F7DC
P 8650 3800
F 0 "CON3" H 8322 3853 60 0000 R CNN
F 1 "SJ1-3523N" H 8322 3747 60 0000 R CNN
F 2 "MySymbols:3,5mm_straight_circular" H 8850 4000 60 0001 L CNN
F 3 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" H 8850 4100 60 0001 L CNN
F 4 "CP1-3523N-ND" H 8850 4200 60 0001 L CNN "Digi-Key_PN"
F 5 "SJ1-3523N" H 8850 4300 60 0001 L CNN "MPN"
F 6 "Connectors, Interconnects" H 8850 4400 60 0001 L CNN "Category"
F 7 "Barrel - Audio Connectors" H 8850 4500 60 0001 L CNN "Family"
F 8 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" H 8850 4600 60 0001 L CNN "DK_Datasheet_Link"
F 9 "/product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689" H 8850 4700 60 0001 L CNN "DK_Detail_Page"
F 10 "CONN JACK STEREO 3.5MM R/A" H 8850 4800 60 0001 L CNN "Description"
F 11 "CUI Inc." H 8850 4900 60 0001 L CNN "Manufacturer"
F 12 "Active" H 8850 5000 60 0001 L CNN "Status"
1 8650 3800
-1 0 0 -1
$EndComp
$Comp
L dk_PMIC-Battery-Chargers:MCP73832T-2ACI_OT U2
U 1 1 60220E3E
P 3300 4300
F 0 "U2" H 3300 4603 60 0000 C CNN
F 1 "MCP73832T-2ACI_OT" H 3300 4497 60 0000 C CNN
F 2 "Package_TO_SOT_SMD:SOT-23-5_HandSoldering" H 3500 4500 60 0001 L CNN
F 2 "Package_TO_SOT_SMD:SOT-23-5" H 3500 4500 60 0001 L CNN
F 3 "http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf" H 3500 4600 60 0001 L CNN
F 4 "MCP73832T-2ACI/OTCT-ND" H 3500 4700 60 0001 L CNN "Digi-Key_PN"
F 5 "MCP73832T-2ACI/OT" H 3500 4800 60 0001 L CNN "MPN"
@@ -90,7 +50,7 @@ U 1 1 60232097
P 2550 6050
F 0 "J1" H 2522 6024 50 0000 R CNN
F 1 "Conn_01x02_Male" H 2522 5933 50 0000 R CNN
F 2 "Connector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal" H 2550 6050 50 0001 C CNN
F 2 "Connector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_Horizontal" H 2550 6050 50 0001 C CNN
F 3 "~" H 2550 6050 50 0001 C CNN
1 2550 6050
-1 0 0 -1
@@ -150,17 +110,6 @@ F 3 "~" H 750 6000 50 0001 C CNN
-1 0 0 -1
$EndComp
$Comp
L Switch:SW_SPDT_MSM SW1
U 1 1 6024D1C8
P 1200 1050
F 0 "SW1" H 1200 1335 50 0000 C CNN
F 1 "SW_SPDT_MSM" H 1200 1244 50 0000 C CNN
F 2 "MySymbols:Toggle_Switch_100SP1T1B4M2QE" H 1200 1050 50 0001 C CNN
F 3 "~" H 1200 1050 50 0001 C CNN
1 1200 1050
1 0 0 -1
$EndComp
$Comp
L Switch:SW_SPDT_MSM SW2
U 1 1 6024DE6D
P 1200 1900
@@ -172,17 +121,6 @@ F 3 "~" H 1200 1900 50 0001 C CNN
1 0 0 -1
$EndComp
$Comp
L Switch:SW_SPDT_MSM SW3
U 1 1 6024E1D7
P 1250 2750
F 0 "SW3" H 1250 3035 50 0000 C CNN
F 1 "SW_SPDT_MSM" H 1250 2944 50 0000 C CNN
F 2 "MySymbols:Toggle_Switch_100SP1T1B4M2QE" H 1250 2750 50 0001 C CNN
F 3 "~" H 1250 2750 50 0001 C CNN
1 1250 2750
1 0 0 -1
$EndComp
$Comp
L Device:R R1
U 1 1 6024F4D7
P 7900 1200
@@ -204,12 +142,8 @@ F 3 "~" H 7900 3800 50 0001 C CNN
1 7900 3800
0 1 1 0
$EndComp
Text GLabel 7450 1200 0 50 Input ~ 0
LED1
Text GLabel 7450 2450 0 50 Input ~ 0
LED2
Text GLabel 7450 3800 0 50 Input ~ 0
LED3
Wire Wire Line
7450 1200 7750 1200
$Comp
@@ -236,32 +170,18 @@ F 3 "~" H 8100 950 50 0001 C CNN
$EndComp
Text GLabel 7450 2350 0 50 Input ~ 0
DET2
Text GLabel 7450 1100 0 50 Input ~ 0
DET1
Text GLabel 7450 3700 0 50 Input ~ 0
DET3
Text GLabel 5500 1750 2 50 Input ~ 0
DET3
Text GLabel 5500 1850 2 50 Input ~ 0
DET2
Text GLabel 5500 1950 2 50 Input ~ 0
DET1
Text GLabel 3900 2300 0 50 Input ~ 0
LED1
Text GLabel 3950 2750 0 50 Input ~ 0
LED2
Text GLabel 3950 2650 0 50 Input ~ 0
LED3
Text GLabel 1650 1150 2 50 Input ~ 0
SWITCH12
Text GLabel 1650 1800 2 50 Input ~ 0
SWITCH2
Text GLabel 1650 2000 2 50 Input ~ 0
SWITCH22
Text GLabel 1650 2650 2 50 Input ~ 0
SWITCH3
Text GLabel 1650 2850 2 50 Input ~ 0
SWITCH32
Wire Wire Line
1650 2850 1450 2850
Wire Wire Line
@@ -320,18 +240,10 @@ Connection ~ 4600 950
Wire Wire Line
4800 950 4700 950
Connection ~ 4700 950
Text GLabel 5500 2050 2 50 Input ~ 0
SWITCH1
Text GLabel 5500 1550 2 50 Input ~ 0
SWITCH12
Text GLabel 5500 1450 2 50 Input ~ 0
SWITCH2
Text GLabel 5500 1650 2 50 Input ~ 0
SWITCH22
Text GLabel 3950 2550 0 50 Input ~ 0
SWITCH3
Text GLabel 3950 2450 0 50 Input ~ 0
SWITCH32
$Comp
L power:GND #PWR0110
U 1 1 60292EB9
@@ -620,8 +532,6 @@ Wire Wire Line
Wire Wire Line
4900 950 4800 950
Connection ~ 4800 950
Text GLabel 1650 950 2 50 Input ~ 0
SWITCH1
Wire Wire Line
5500 2750 5300 2750
Wire Wire Line
@@ -857,17 +767,6 @@ Wire Wire Line
Wire Wire Line
1350 6200 950 6200
$Comp
L Regulator_Switching:LM3670MF U3
U 1 1 604D4EA0
P 9400 5100
F 0 "U3" H 9400 5425 50 0000 C CNN
F 1 "LM3671MF-3.3" H 9400 5334 50 0000 C CNN
F 2 "Package_TO_SOT_SMD:SOT-23-5_HandSoldering" H 9450 4850 50 0001 L CNN
F 3 "http://www.ti.com/lit/ds/symlink/lm3670.pdf" H 9150 4750 50 0001 C CNN
1 9400 5100
1 0 0 -1
$EndComp
$Comp
L power:+BATT #PWR0121
U 1 1 604DCAFD
P 1300 7100
@@ -890,25 +789,6 @@ F 3 "" H 9400 5700 50 0001 C CNN
1 0 0 -1
$EndComp
$Comp
L Device:L L1
U 1 1 604EE10C
P 10000 5000
F 0 "L1" V 10190 5000 50 0000 C CNN
F 1 "2,2uH" V 10099 5000 50 0000 C CNN
F 2 "Inductor_SMD:L_0805_2012Metric" H 10000 5000 50 0001 C CNN
F 3 "~" H 10000 5000 50 0001 C CNN
1 10000 5000
0 -1 -1 0
$EndComp
Wire Wire Line
9850 5000 9700 5000
Wire Wire Line
9700 5200 10200 5200
Wire Wire Line
10200 5200 10200 5000
Wire Wire Line
10200 5000 10150 5000
$Comp
L power:+3.3V #PWR0123
U 1 1 604FE347
P 10600 4900
@@ -919,11 +799,8 @@ F 3 "" H 10600 4900 50 0001 C CNN
1 10600 4900
1 0 0 -1
$EndComp
Wire Wire Line
10200 5000 10450 5000
Wire Wire Line
10600 5000 10600 4900
Connection ~ 10200 5000
$Comp
L Device:C_Polarized C9
U 1 1 60506A3D
@@ -939,11 +816,10 @@ Wire Wire Line
10450 5700 9400 5700
Wire Wire Line
10450 5150 10450 5000
Connection ~ 10450 5000
Wire Wire Line
10450 5000 10600 5000
$Comp
L dk_Slide-Switches:EG1218 S1
L ledTruck-rescue:EG1218-dk_Slide-Switches S1
U 1 1 602A1158
P 1800 7300
F 0 "S1" H 1800 6975 50 0000 C CNN
@@ -1061,47 +937,7 @@ Text Notes 2150 4350 0 50 ~ 0
R7 \n3k3 = 220mA\n2k = 500mA
Text Notes 3350 7550 0 50 ~ 0
v1.1. - 2021-03-19\n- updated stat LED\n- Updated R12 to 220K (e-series resistor value)\n- Updated R7 to 3K3 (charger Iset to 220mA)\n- Updated U3 Enable pin topo\n- Updated D1 & D2 footprint\n- Updated SW1, SW2, SW3 footprint\n- moved LED1 to PB0\n- moved LED2 to PB7\n- moved LED3 to PB6\n- Changed led connection (shorted out on metal case)
$Comp
L Device:R R15
U 1 1 6061107D
P 8700 5150
F 0 "R15" H 8770 5196 50 0000 L CNN
F 1 "100K" H 8770 5105 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" V 8630 5150 50 0001 C CNN
F 3 "~" H 8700 5150 50 0001 C CNN
1 8700 5150
1 0 0 -1
$EndComp
Wire Wire Line
9100 5100 9050 5100
Wire Wire Line
8600 5000 8700 5000
Connection ~ 8700 5000
Wire Wire Line
8700 5000 9100 5000
$Comp
L Device:C C10
U 1 1 60681778
P 8700 5500
F 0 "C10" H 8815 5546 50 0000 L CNN
F 1 "C" H 8815 5455 50 0000 L CNN
F 2 "Capacitor_SMD:C_0603_1608Metric" H 8738 5350 50 0001 C CNN
F 3 "~" H 8700 5500 50 0001 C CNN
1 8700 5500
1 0 0 -1
$EndComp
Wire Wire Line
8700 5700 8700 5650
Wire Wire Line
8700 5700 9400 5700
Connection ~ 9400 5700
Wire Wire Line
8700 5350 8700 5300
Wire Wire Line
9050 5100 9050 5350
Wire Wire Line
9050 5350 8700 5350
Connection ~ 8700 5350
Wire Wire Line
9400 5400 9400 5700
Wire Wire Line
@@ -1320,14 +1156,116 @@ $EndComp
Wire Wire Line
8100 750 8100 800
$Comp
L Regulator_Linear:TPS76333 U?
U 1 1 607F9B20
P 6650 5250
F 0 "U?" H 6650 5592 50 0000 C CNN
F 1 "TPS76333" H 6650 5501 50 0000 C CNN
F 2 "Package_TO_SOT_SMD:SOT-23-5" H 6650 5575 50 0001 C CIN
F 3 "http://www.ti.com/lit/ds/symlink/tps763.pdf" H 6650 5250 50 0001 C CNN
1 6650 5250
L Switch:SW_SPDT_MSM SW3
U 1 1 6024E1D7
P 1250 2750
F 0 "SW3" H 1250 3035 50 0000 C CNN
F 1 "SW_SPDT_MSM" H 1250 2944 50 0000 C CNN
F 2 "MySymbols:Toggle_Switch_100SP1T1B4M2QE" H 1250 2750 50 0001 C CNN
F 3 "~" H 1250 2750 50 0001 C CNN
1 1250 2750
1 0 0 -1
$EndComp
$Comp
L Switch:SW_SPDT_MSM SW1
U 1 1 6024D1C8
P 1200 1050
F 0 "SW1" H 1200 1335 50 0000 C CNN
F 1 "SW_SPDT_MSM" H 1200 1244 50 0000 C CNN
F 2 "MySymbols:Toggle_Switch_100SP1T1B4M2QE" H 1200 1050 50 0001 C CNN
F 3 "~" H 1200 1050 50 0001 C CNN
1 1200 1050
1 0 0 -1
$EndComp
Text GLabel 5500 1550 2 50 Input ~ 0
SWITCH12
Text GLabel 5500 2050 2 50 Input ~ 0
SWITCH1
Text GLabel 3950 2550 0 50 Input ~ 0
SWITCH3
Text GLabel 3950 2450 0 50 Input ~ 0
SWITCH32
Text GLabel 1650 2850 2 50 Input ~ 0
SWITCH32
Text GLabel 1650 2650 2 50 Input ~ 0
SWITCH3
Text GLabel 1650 1150 2 50 Input ~ 0
SWITCH12
Text GLabel 1650 950 2 50 Input ~ 0
SWITCH1
$Comp
L dk_Barrel-Audio-Connectors:SJ1-3523N CON1
U 1 1 6021CA8A
P 8650 1200
F 0 "CON1" H 8322 1253 60 0000 R CNN
F 1 "SJ1-3523N" H 8322 1147 60 0000 R CNN
F 2 "MySymbols:3,5mm_straight_circular" H 8850 1400 60 0001 L CNN
F 3 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" H 8850 1500 60 0001 L CNN
F 4 "CP1-3523N-ND" H 8850 1600 60 0001 L CNN "Digi-Key_PN"
F 5 "SJ1-3523N" H 8850 1700 60 0001 L CNN "MPN"
F 6 "Connectors, Interconnects" H 8850 1800 60 0001 L CNN "Category"
F 7 "Barrel - Audio Connectors" H 8850 1900 60 0001 L CNN "Family"
F 8 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" H 8850 2000 60 0001 L CNN "DK_Datasheet_Link"
F 9 "/product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689" H 8850 2100 60 0001 L CNN "DK_Detail_Page"
F 10 "CONN JACK STEREO 3.5MM R/A" H 8850 2200 60 0001 L CNN "Description"
F 11 "CUI Inc." H 8850 2300 60 0001 L CNN "Manufacturer"
F 12 "Active" H 8850 2400 60 0001 L CNN "Status"
1 8650 1200
-1 0 0 -1
$EndComp
$Comp
L dk_Barrel-Audio-Connectors:SJ1-3523N CON3
U 1 1 6021F7DC
P 8650 3800
F 0 "CON3" H 8322 3853 60 0000 R CNN
F 1 "SJ1-3523N" H 8322 3747 60 0000 R CNN
F 2 "MySymbols:3,5mm_straight_circular" H 8850 4000 60 0001 L CNN
F 3 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" H 8850 4100 60 0001 L CNN
F 4 "CP1-3523N-ND" H 8850 4200 60 0001 L CNN "Digi-Key_PN"
F 5 "SJ1-3523N" H 8850 4300 60 0001 L CNN "MPN"
F 6 "Connectors, Interconnects" H 8850 4400 60 0001 L CNN "Category"
F 7 "Barrel - Audio Connectors" H 8850 4500 60 0001 L CNN "Family"
F 8 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" H 8850 4600 60 0001 L CNN "DK_Datasheet_Link"
F 9 "/product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689" H 8850 4700 60 0001 L CNN "DK_Detail_Page"
F 10 "CONN JACK STEREO 3.5MM R/A" H 8850 4800 60 0001 L CNN "Description"
F 11 "CUI Inc." H 8850 4900 60 0001 L CNN "Manufacturer"
F 12 "Active" H 8850 5000 60 0001 L CNN "Status"
1 8650 3800
-1 0 0 -1
$EndComp
Text GLabel 3900 2300 0 50 Input ~ 0
LED1
Text GLabel 3950 2650 0 50 Input ~ 0
LED3
Text GLabel 7450 3800 0 50 Input ~ 0
LED3
Text GLabel 7450 3700 0 50 Input ~ 0
DET3
Text GLabel 7450 1200 0 50 Input ~ 0
LED1
$Comp
L Regulator_Linear:TPS76333 U3
U 1 1 607F9B20
P 9400 5100
F 0 "U3" H 9400 5442 50 0000 C CNN
F 1 "TPS76333" H 9400 5351 50 0000 C CNN
F 2 "Package_TO_SOT_SMD:SOT-23-5" H 9400 5425 50 0001 C CIN
F 3 "http://www.ti.com/lit/ds/symlink/tps763.pdf" H 9400 5100 50 0001 C CNN
1 9400 5100
1 0 0 -1
$EndComp
Wire Wire Line
9700 5000 10450 5000
Connection ~ 10450 5000
Wire Wire Line
8900 5100 8900 5000
Wire Wire Line
8900 5100 9100 5100
Wire Wire Line
8600 5000 8900 5000
Wire Wire Line
8900 5000 9100 5000
Connection ~ 8900 5000
Text GLabel 7450 1100 0 50 Input ~ 0
DET1
$EndSCHEMATC

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -15,6 +15,3 @@ framework = arduino
upload_port = stlink
debug_tool = stlink
boards_dir = boards

View File

@@ -7,20 +7,20 @@
#if HARDWAREVERSION==11
#define LED1 PB2 //D3
#define LED3 PB2 //D3
#define LED2 PB8 //D4
#define LED3 PB7 //D5
#define LED1 PB7 //D5
#define DETECT1 PA6 //A5
#define DETECT3 PA6 //A5
#define DETECT2 PA5 //A4
#define DETECT3 PA4 //A3
#define DETECT1 PA4 //A3
#define SWITCH1 PA7 //A6 TOGGLE1
#define SWITCH12 PA2 //A7 MOMENTARY1
#define SWITCH3 PA7 //A6 TOGGLE1
#define SWITCH32 PA2 //A7 MOMENTARY1
#define SWITCH2 PA1 //A1 TOGGLE1
#define SWITCH22 PA3 //A2 MOMENTARY1
#define SWITCH3 PB6 //D11 TOGGLE1
#define SWITCH32 PB5 //D12 MOMENTARY1
#define SWITCH1 PB6 //D11 TOGGLE1
#define SWITCH12 PB5 //D12 MOMENTARY1
#define LD3LED PB3
#define WAKEUPPIN PA2
@@ -31,20 +31,20 @@
#elif HARDWAREVERSION==10
#define LED1 PB0 //D3
#define LED3 PB0 //D3
#define LED2 PB7 //D4
#define LED3 PB6 //D5
#define LED2 PB6 //D5
#define DETECT1 PA6 //A5
#define DETECT3 PA6 //A5
#define DETECT2 PA5 //A4
#define DETECT3 PA4 //A3
#define DETECT1 PA4 //A3
#define SWITCH1 PA7 //A6 TOGGLE1
#define SWITCH12 PA2 //A7 MOMENTARY1
#define SWITCH3 PA7 //A6 TOGGLE1
#define SWITCH32 PA2 //A7 MOMENTARY1
#define SWITCH2 PA1 //A1 TOGGLE1
#define SWITCH22 PA3 //A2 MOMENTARY1
#define SWITCH3 PB5 //D11 TOGGLE1
#define SWITCH32 PB4 //D12 MOMENTARY1
#define SWITCH1 PB5 //D11 TOGGLE1
#define SWITCH12 PB4 //D12 MOMENTARY1
#define LD3LED PB3
#define WAKEUPPIN PA2

View File

@@ -9,7 +9,8 @@
#include "buttons.h"
#include "led.h"
#define TIMEOUT 15000 // 15sec * 1000ms
#define TIMEOUT 300000 // 5min* 60 sec * 1000ms
#define GAMESELECTTIMEOUT 10000 // 7sec * 1000ms
typedef enum
@@ -29,6 +30,7 @@ game nextGame = none;
uint8_t gameState = 0;
uint64_t lasttimeOut = 0;
uint64_t GameSelectTimer = 0;
bool buttonChanged = false;
void HandleIdle(void)
{
@@ -99,23 +101,30 @@ void HandleGameSelectTimeout(void)
// if (!lasttimeOut)
// {
// lasttimeOut = currentmillis;
// buttonChanged = anybutton();
// }
// //check if lastTime is initialized or timeout expired
// if ((currentmillis - lasttimeOut > TIMEOUT))
// {
// //handle timeout
// LowPower.shutdown();
// }
// else
// {
// if (anybutton())
// if (buttonChanged != anybutton())
// {
// buttonChanged = anybutton();
// //game in progress, update timer
// lasttimeOut = currentmillis;
// }
// }
// }
// void initSleep( void )
// {
// LowPower.begin();
// }
void setup()
{
initLeds();

View File

@@ -1,11 +0,0 @@
This directory is intended for PlatformIO Unit Testing and project tests.
Unit Testing is a software testing method by which individual units of
source code, sets of one or more MCU program modules together with associated
control data, usage procedures, and operating procedures, are tested to
determine whether they are fit for use. Unit testing finds problems early
in the development cycle.
More information about PlatformIO Unit Testing:
- https://docs.platformio.org/page/plus/unit-testing.html

View File

@@ -1,30 +0,0 @@
#include <Arduino.h>
#include <cstdlib>
#include <unity.h>
#include "test_simpleled.h"
#ifdef UNIT_TEST
#define RUN_TEST_GROUP(TEST) \
if (!std::getenv("TEST_GROUP") || (strcmp(#TEST, std::getenv("TEST_GROUP")) == 0)) { \
TEST::run_tests(); \
}
void setUp(void)
{
ArduinoFakeReset();
}
int main(int argc, char **argv) {
UNITY_BEGIN();
RUN_TEST_GROUP(simpleLedTest);
UNITY_END();
}
#endif //UNIT_TEST

View File

@@ -1,12 +0,0 @@
#ifdef UNIT_TEST
namespace simpleLedTest
{
void test_initfunction( void )
{
}
}
#endif