added presence detection

This commit is contained in:
dekunukem
2022-11-10 23:15:03 +00:00
parent db5fe350db
commit 666d124474
3 changed files with 55 additions and 43 deletions

View File

@@ -43,11 +43,11 @@ PA0.GPIO_ModeDefaultOutputPP=GPIO_MODE_OUTPUT_OD
PA0.Locked=true
PA0.PinState=GPIO_PIN_SET
PA0.Signal=GPIO_Output
PA1.GPIOParameters=GPIO_Label,GPIO_ModeDefaultOutputPP
PA1.GPIO_Label=SLAVE_REQ
PA1.GPIO_ModeDefaultOutputPP=GPIO_MODE_OUTPUT_PP
PA1.GPIOParameters=GPIO_PuPd,GPIO_Label
PA1.GPIO_Label=KB5V
PA1.GPIO_PuPd=GPIO_PULLDOWN
PA1.Locked=true
PA1.Signal=GPIO_Output
PA1.Signal=GPIO_Input
PA13.Mode=Serial_Wire
PA13.Signal=SYS_SWDIO
PA14.Mode=Serial_Wire

View File

@@ -1168,7 +1168,7 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<attribute name="NAME" x="8.3185" y="45.847" size="0.8128" layer="25" rot="R90"/>
</element>
<element name="C8" library="clock" package="0805@1" value="100nF" x="35.56" y="39.116" smashed="yes" rot="R90">
<attribute name="NAME" x="37.5285" y="37.973" size="0.8128" layer="25" rot="R90"/>
<attribute name="NAME" x="37.6555" y="37.846" size="0.8128" layer="25" rot="R90"/>
</element>
<element name="JP1" library="adafruit_changed" package="2X20-BIG" value="" x="3.5" y="32.5" smashed="yes" rot="MR90">
<attribute name="VALUE" x="-0.945" y="7.1" size="1.27" layer="28" rot="MR90"/>
@@ -1213,6 +1213,9 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<attribute name="POPULARITY" value="69" x="29.337" y="18.415" size="1.778" layer="27" rot="R270" display="off"/>
<attribute name="VALUE" x="26.162" y="24.765" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R11" library="SparkFun-Passives" package="0805" value="5.1K" x="21.336" y="37.338" smashed="yes" rot="R180">
<attribute name="NAME" x="22.225" y="39.4335" size="0.8128" layer="25" rot="R180"/>
</element>
</elements>
<signals>
<signal name="GND">
@@ -1335,10 +1338,10 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<signal name="N$1">
<contactref element="J4" pad="A5"/>
<contactref element="R3" pad="1"/>
<wire x1="49.51" y1="34.056" x2="48.26" y2="34.056" width="0.2032" layer="1"/>
<wire x1="49.51" y1="34.056" x2="50.938" y2="32.628" width="0.2032" layer="1"/>
<wire x1="50.938" y1="32.628" x2="50.938" y2="28.68" width="0.2032" layer="1"/>
<wire x1="50.938" y1="28.68" x2="51.297" y2="28.321" width="0.2032" layer="1"/>
<wire x1="50.018" y1="34.056" x2="48.26" y2="34.056" width="0.2032" layer="1"/>
<wire x1="50.018" y1="34.056" x2="51.319" y2="32.755" width="0.2032" layer="1"/>
<wire x1="51.319" y1="32.755" x2="51.319" y2="28.343" width="0.2032" layer="1"/>
<wire x1="51.297" y1="28.321" x2="51.319" y2="28.343" width="0.2032" layer="1"/>
</signal>
<signal name="N$7">
<contactref element="J4" pad="B5"/>
@@ -1487,17 +1490,6 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<wire x1="25.0822" y1="41.625" x2="26.385" y2="41.625" width="0.2032" layer="1"/>
<wire x1="26.385" y1="41.625" x2="26.797" y2="42.037" width="0.2032" layer="1"/>
</signal>
<signal name="N$12">
<contactref element="IC3" pad="7"/>
<contactref element="JP1" pad="36"/>
<wire x1="25.0822" y1="39.025" x2="26.96" y2="39.025" width="0.2032" layer="1"/>
<wire x1="26.96" y1="39.025" x2="27.813" y2="39.878" width="0.2032" layer="1"/>
<wire x1="27.813" y1="39.878" x2="27.813" y2="45.974" width="0.2032" layer="1"/>
<wire x1="25.908" y1="47.879" x2="11.811" y2="47.879" width="0.2032" layer="1"/>
<wire x1="11.811" y1="47.879" x2="8.14" y2="51.55" width="0.2032" layer="1"/>
<wire x1="8.14" y1="51.55" x2="4.77" y2="51.55" width="0.2032" layer="1"/>
<wire x1="27.813" y1="45.974" x2="25.908" y2="47.879" width="0.2032" layer="1"/>
</signal>
<signal name="N$17">
<contactref element="LED1" pad="C"/>
<contactref element="R2" pad="2"/>
@@ -1524,10 +1516,10 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<wire x1="31.877" y1="18.415" x2="29.337" y2="18.415" width="0.2032" layer="1"/>
<wire x1="33.147" y1="17.145" x2="31.877" y2="18.415" width="0.2032" layer="1"/>
<wire x1="29.337" y1="18.415" x2="25.411" y2="18.415" width="0.2032" layer="1"/>
<wire x1="28.702" y1="37.084" x2="32.512" y2="33.274" width="0.2032" layer="16"/>
<wire x1="32.512" y1="33.274" x2="32.512" y2="19.812" width="0.2032" layer="16"/>
<wire x1="28.702" y1="37.084" x2="32.766" y2="33.02" width="0.2032" layer="16"/>
<wire x1="32.766" y1="33.02" x2="32.766" y2="20.066" width="0.2032" layer="16"/>
<wire x1="31.115" y1="18.415" x2="29.337" y2="18.415" width="0.2032" layer="16"/>
<wire x1="32.512" y1="19.812" x2="31.115" y2="18.415" width="0.2032" layer="16"/>
<wire x1="32.766" y1="20.066" x2="31.115" y2="18.415" width="0.2032" layer="16"/>
</signal>
<signal name="KBACK">
<contactref element="R10" pad="1"/>
@@ -1537,10 +1529,10 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<contactref element="JP3" pad="4"/>
<wire x1="36.195" y1="15.875" x2="29.337" y2="15.875" width="0.2032" layer="1"/>
<wire x1="29.337" y1="15.875" x2="25.411" y2="15.875" width="0.2032" layer="1"/>
<wire x1="40.513" y1="31.242" x2="40.513" y2="16.51" width="0.2032" layer="1"/>
<wire x1="32.73" y1="39.025" x2="40.513" y2="31.242" width="0.2032" layer="1"/>
<wire x1="40.513" y1="16.51" x2="39.878" y2="15.875" width="0.2032" layer="1"/>
<wire x1="40.259" y1="16.256" x2="39.878" y2="15.875" width="0.2032" layer="1"/>
<wire x1="39.878" y1="15.875" x2="36.195" y2="15.875" width="0.2032" layer="1"/>
<wire x1="40.259" y1="31.496" x2="40.259" y2="16.256" width="0.2032" layer="1"/>
<wire x1="32.73" y1="39.025" x2="40.259" y2="31.496" width="0.2032" layer="1"/>
</signal>
<signal name="N$27">
<contactref element="R10" pad="2"/>
@@ -1563,6 +1555,12 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<wire x1="23.611" y1="20.955" x2="23.611" y2="22.595" width="0.2032" layer="1"/>
<wire x1="24.511" y1="23.495" x2="29.337" y2="23.495" width="0.2032" layer="1"/>
<wire x1="23.611" y1="22.595" x2="24.511" y2="23.495" width="0.2032" layer="1"/>
<contactref element="R11" pad="2"/>
<wire x1="20.436" y1="37.338" x2="20.436" y2="35.698" width="0.2032" layer="1"/>
<wire x1="20.436" y1="35.698" x2="20.447" y2="35.687" width="0.2032" layer="1"/>
<via x="20.447" y="35.687" extent="1-16" drill="0.5"/>
<wire x1="20.447" y1="35.687" x2="20.447" y2="32.385" width="0.2032" layer="16"/>
<wire x1="20.447" y1="32.385" x2="29.337" y2="23.495" width="0.2032" layer="16"/>
</signal>
<signal name="KBDATA">
<contactref element="R8" pad="1"/>
@@ -1576,9 +1574,11 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<wire x1="32.004" y1="20.955" x2="29.337" y2="20.955" width="0.2032" layer="1"/>
<wire x1="34.544" y1="18.415" x2="32.004" y2="20.955" width="0.2032" layer="1"/>
<wire x1="29.337" y1="20.955" x2="25.411" y2="20.955" width="0.2032" layer="1"/>
<wire x1="26.67" y1="40.005" x2="26.67" y2="21.971" width="0.2032" layer="16"/>
<wire x1="27.686" y1="20.955" x2="29.337" y2="20.955" width="0.2032" layer="16"/>
<wire x1="26.67" y1="21.971" x2="27.686" y2="20.955" width="0.2032" layer="16"/>
<wire x1="26.67" y1="40.005" x2="26.67" y2="37.338" width="0.2032" layer="16"/>
<wire x1="26.67" y1="37.338" x2="31.877" y2="32.131" width="0.2032" layer="16"/>
<wire x1="31.877" y1="32.131" x2="31.877" y2="22.352" width="0.2032" layer="16"/>
<wire x1="30.48" y1="20.955" x2="29.337" y2="20.955" width="0.2032" layer="16"/>
<wire x1="31.877" y1="22.352" x2="30.48" y2="20.955" width="0.2032" layer="16"/>
</signal>
<signal name="N$3">
<contactref element="IC3" pad="17"/>
@@ -1587,11 +1587,10 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<wire x1="30.9178" y1="40.975" x2="37.892" y2="40.975" width="0.2032" layer="1"/>
<wire x1="48.26" y1="34.556" x2="46.724" y2="34.556" width="0.2032" layer="1"/>
<wire x1="46.724" y1="34.556" x2="46.482" y2="34.798" width="0.2032" layer="1"/>
<wire x1="37.892" y1="40.975" x2="41.5925" y2="37.2745" width="0.2032" layer="1"/>
<wire x1="41.5925" y1="37.2745" x2="43.311" y2="35.556" width="0.2032" layer="1"/>
<wire x1="43.311" y1="35.556" x2="46.482" y2="35.556" width="0.2032" layer="1"/>
<wire x1="46.482" y1="35.556" x2="48.26" y2="35.556" width="0.2032" layer="1"/>
<wire x1="46.482" y1="34.798" x2="46.482" y2="35.556" width="0.2032" layer="1"/>
<wire x1="43.311" y1="35.556" x2="46.482" y2="35.556" width="0.2032" layer="1"/>
<wire x1="37.892" y1="40.975" x2="43.311" y2="35.556" width="0.2032" layer="1"/>
</signal>
<signal name="N$14">
<contactref element="IC3" pad="18"/>
@@ -1601,6 +1600,12 @@ These rules have been curated by SparkFuns DFM commitee. After doing much resear
<wire x1="44.208" y1="36.056" x2="38.639" y2="41.625" width="0.2032" layer="1"/>
<wire x1="30.9178" y1="41.625" x2="38.639" y2="41.625" width="0.2032" layer="1"/>
</signal>
<signal name="N$4">
<contactref element="R11" pad="1"/>
<contactref element="IC3" pad="7"/>
<wire x1="25.0822" y1="39.025" x2="23.923" y2="39.025" width="0.2032" layer="1"/>
<wire x1="23.923" y1="39.025" x2="22.236" y2="37.338" width="0.2032" layer="1"/>
</signal>
</signals>
<mfgpreviewcolors>
<mfgpreviewcolor name="soldermaskcolor" color="0xC8008000"/>

View File

@@ -4981,6 +4981,7 @@ new: Attribute TP_SIGNAL_NAME&lt;br&gt;
<part name="GND11" library="supply1" library_urn="urn:adsk.eagle:library:371" deviceset="GND" device=""/>
<part name="JP3" library="pinhead" library_urn="urn:adsk.eagle:library:325" deviceset="PINHD-1X5" device="" package3d_urn="urn:adsk.eagle:package:22469/2"/>
<part name="GND13" library="supply1" library_urn="urn:adsk.eagle:library:371" deviceset="GND" device=""/>
<part name="R11" library="SparkFun-Passives" deviceset="RESISTOR" device="0805-RES" value="5.1K"/>
</parts>
<sheets>
<sheet>
@@ -5155,6 +5156,10 @@ new: Attribute TP_SIGNAL_NAME&lt;br&gt;
<instance part="GND13" gate="1" x="-53.34" y="-142.24" smashed="yes">
<attribute name="VALUE" x="-55.88" y="-144.78" size="1.778" layer="96"/>
</instance>
<instance part="R11" gate="G$1" x="-40.64" y="-96.52" smashed="yes" rot="R180">
<attribute name="NAME" x="-36.83" y="-98.0186" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="-36.83" y="-93.218" size="1.778" layer="96" rot="R180"/>
</instance>
</instances>
<busses>
</busses>
@@ -5514,17 +5519,6 @@ new: Attribute TP_SIGNAL_NAME&lt;br&gt;
<wire x1="137.16" y1="-104.14" x2="119.38" y2="-104.14" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$12" class="0">
<segment>
<pinref part="IC3" gate="G$1" pin="PA1"/>
<wire x1="81.28" y1="-91.44" x2="63.5" y2="-91.44" width="0.1524" layer="91"/>
<wire x1="63.5" y1="-91.44" x2="63.5" y2="-81.28" width="0.1524" layer="91"/>
<wire x1="63.5" y1="-81.28" x2="127" y2="-81.28" width="0.1524" layer="91"/>
<wire x1="127" y1="-81.28" x2="127" y2="-60.96" width="0.1524" layer="91"/>
<pinref part="JP1" gate="A" pin="36"/>
<wire x1="127" y1="-60.96" x2="104.14" y2="-60.96" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$17" class="0">
<segment>
<pinref part="LED1" gate="G$1" pin="C"/>
@@ -5599,6 +5593,10 @@ new: Attribute TP_SIGNAL_NAME&lt;br&gt;
<wire x1="-66.04" y1="-114.3" x2="-53.34" y2="-114.3" width="0.1524" layer="91"/>
<wire x1="-53.34" y1="-114.3" x2="-53.34" y2="-124.46" width="0.1524" layer="91"/>
<junction x="-66.04" y="-114.3"/>
<wire x1="-53.34" y1="-114.3" x2="-53.34" y2="-96.52" width="0.1524" layer="91"/>
<wire x1="-53.34" y1="-96.52" x2="-45.72" y2="-96.52" width="0.1524" layer="91"/>
<junction x="-53.34" y="-114.3"/>
<pinref part="R11" gate="G$1" pin="2"/>
</segment>
</net>
<net name="KBDATA" class="0">
@@ -5634,6 +5632,15 @@ new: Attribute TP_SIGNAL_NAME&lt;br&gt;
<wire x1="81.28" y1="-111.76" x2="22.86" y2="-111.76" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$4" class="0">
<segment>
<pinref part="R11" gate="G$1" pin="1"/>
<wire x1="-35.56" y1="-96.52" x2="-15.24" y2="-96.52" width="0.1524" layer="91"/>
<pinref part="IC3" gate="G$1" pin="PA1"/>
<wire x1="81.28" y1="-91.44" x2="-15.24" y2="-91.44" width="0.1524" layer="91"/>
<wire x1="-15.24" y1="-91.44" x2="-15.24" y2="-96.52" width="0.1524" layer="91"/>
</segment>
</net>
</nets>
</sheet>
</sheets>