diff --git a/circuit/atkstepper23/atkstepper23.brd b/circuit/atkstepper23/atkstepper23.brd index 06a6c521e4126b808f17c308de0b2fd3c18fb95a..6a216656897cbe139ad9b12c344989f3567bbbac 100644 --- a/circuit/atkstepper23/atkstepper23.brd +++ b/circuit/atkstepper23/atkstepper23.brd @@ -31,7 +31,7 @@ <layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/> <layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/> <layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/> -<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="yes"/> +<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/> <layer number="25" name="tNames" color="7" fill="1" visible="no" active="yes"/> <layer number="26" name="bNames" color="7" fill="1" visible="no" active="yes"/> <layer number="27" name="tValues" color="7" fill="1" visible="no" active="yes"/> @@ -167,7 +167,7 @@ <text x="5.55" y="24.45" size="0.8128" layer="21" font="vector">A2</text> <text x="5.55" y="32.15" size="0.8128" layer="21" font="vector">B1</text> <text x="5.55" y="29.65" size="0.8128" layer="21" font="vector">B2</text> -<text x="1" y="48.6" size="0.8128" layer="21" font="vector" rot="R270">atkstepper23 v0.31</text> +<text x="1" y="48.6" size="0.8128" layer="21" font="vector" rot="R270">atkstepper23 v0.32</text> <text x="41.05" y="6.5" size="1.778" layer="21" font="vector">GND</text> <text x="13.75" y="6.4" size="1.778" layer="21" font="vector">V+</text> <text x="39.7" y="21.3" size="1.778" layer="21" font="vector" rot="R180">ATXP0</text> @@ -193,17 +193,23 @@ <wire x1="57" y1="13" x2="57" y2="44" width="0.1524" layer="20"/> <text x="17.5" y="50" size="1.016" layer="21" font="vector" rot="R270" align="center-left">pwr</text> <text x="20" y="50" size="1.016" layer="21" font="vector" rot="R270" align="center-left">clk</text> -<text x="22" y="50" size="1.016" layer="21" font="vector" rot="R270" align="center-left">err</text> +<text x="22.5" y="50" size="1.016" layer="21" font="vector" rot="R270" align="center-left">err</text> <wire x1="57" y1="13" x2="53.5" y2="9.5" width="0.1524" layer="20" curve="-90"/> <wire x1="53.5" y1="9.5" x2="52" y2="9.5" width="0.1524" layer="20"/> <dimension x1="0" y1="59.5" x2="57" y2="59.5" x3="28.5" y3="61" textsize="1.778" layer="47"/> <wire x1="47.5" y1="3" x2="47.5" y2="5" width="0.1524" layer="20"/> <wire x1="47.5" y1="5" x2="52" y2="9.5" width="0.1524" layer="20" curve="-90"/> -<text x="15.7" y="20.9" size="0.8128" layer="22" font="vector" rot="MR90">my men worship none -yet luscious diamond pole -incubates wax dream</text> +<text x="7.8" y="10.7" size="0.8128" layer="22" font="vector" rot="MR90">His speech was full of mutterings, warnings. +The artist's life is strewn with traps. +Beware "the machinations of the enemy." +"Mr. Lytle", I whispered, "who is the enemy?" +He sat up. His unfocused eyes were an icy blue. +"Why, boy," he said, "the bourgeoisie!" +Then he peered at me for a second as if he'd forgotten who I was. +"Of course," he said. +"You're only a baby."</text> <text x="22.4" y="45.5" size="0.8128" layer="21" font="vector" rot="R180">rst</text> -<text x="31.4" y="53.2" size="0.8128" layer="21" font="vector" rot="R270">PDI</text> +<text x="33.7" y="53.6" size="0.8128" layer="21" font="vector">PDI</text> <text x="35.2" y="26.5" size="0.8128" layer="21" font="vector" rot="R270">spi</text> <dimension x1="-1" y1="12.5" x2="-1" y2="44.5" x3="-3" y3="28.5" textsize="1.778" layer="47"/> <dimension x1="3" y1="8.5" x2="35" y2="8.5" x3="19" y3="-7.5" textsize="1.778" layer="47"/> @@ -1096,21 +1102,10 @@ You are welcome to use this library for commercial purposes. For attribution, we <library name="connector"> <packages> <package name="JRTOMBSTONE"> -<wire x1="-1.1" y1="-1" x2="-1.1" y2="0.7" width="0.127" layer="21"/> -<wire x1="-1.1" y1="0.7" x2="1" y2="0.7" width="0.127" layer="21" curve="-180"/> +<wire x1="-1" y1="-1" x2="-1" y2="0.7" width="0.127" layer="21"/> +<wire x1="-1" y1="0.7" x2="1" y2="0.7" width="0.127" layer="21" curve="-180"/> <wire x1="1" y1="0.7" x2="1" y2="-1" width="0.127" layer="21"/> -<wire x1="1" y1="-1" x2="-1.1" y2="-1" width="0.127" layer="21"/> -<wire x1="-0.8" y1="-0.5" x2="-0.6" y2="-0.5" width="0.127" layer="21"/> -<wire x1="-0.6" y1="-0.5" x2="-0.3" y2="-0.2" width="0.127" layer="21" curve="90"/> -<wire x1="-0.3" y1="-0.2" x2="-0.3" y2="0.7" width="0.127" layer="21"/> -<wire x1="-0.3" y1="0.7" x2="-0.8" y2="0.7" width="0.127" layer="21"/> -<wire x1="-0.3" y1="0.7" x2="0.1" y2="0.7" width="0.127" layer="21"/> -<wire x1="0.1" y1="0.7" x2="0.1" y2="0.1" width="0.127" layer="21"/> -<wire x1="0.1" y1="0.1" x2="0.1" y2="-0.5" width="0.127" layer="21"/> -<wire x1="0.1" y1="0.7" x2="0.4" y2="0.7" width="0.127" layer="21"/> -<wire x1="0.4" y1="0.7" x2="0.4" y2="0.1" width="0.127" layer="21" curve="-180"/> -<wire x1="0.4" y1="0.1" x2="0.7" y2="-0.5" width="0.127" layer="21"/> -<wire x1="0.4" y1="0.1" x2="0.1" y2="0.1" width="0.127" layer="21"/> +<wire x1="1" y1="-1" x2="-1" y2="-1" width="0.127" layer="21"/> </package> <package name="FIDUCIAL_1MM"> <smd name="1" x="0" y="0" dx="1" dy="1" layer="1" roundness="100" stop="no" cream="no"/> @@ -1271,7 +1266,7 @@ You are welcome to use this library for commercial purposes. For attribution, we <vertex x="0.57" y="-0.57"/> </polygon> </package> -<package name="PDI_2X3_SMD"> +<package name="PDI_2X3_THRU"> <description><h3>Surface Mount - 2x3</h3> <p>Specifications: <ul><li>Pin count:6</li> @@ -1284,21 +1279,15 @@ You are welcome to use this library for commercial purposes. For attribution, we <wire x1="-3.81" y1="2.5" x2="3.81" y2="2.5" width="0.127" layer="51"/> <wire x1="3.81" y1="2.5" x2="3.81" y2="-2.5" width="0.127" layer="51"/> <wire x1="3.81" y1="-2.5" x2="-3.81" y2="-2.5" width="0.127" layer="51"/> -<rectangle x1="-0.3" y1="2.55" x2="0.3" y2="3.35" layer="51"/> -<rectangle x1="-2.84" y1="2.55" x2="-2.24" y2="3.35" layer="51"/> -<rectangle x1="2.24" y1="2.55" x2="2.84" y2="3.35" layer="51"/> -<rectangle x1="-2.84" y1="-3.35" x2="-2.24" y2="-2.55" layer="51" rot="R180"/> -<rectangle x1="-0.3" y1="-3.35" x2="0.3" y2="-2.55" layer="51" rot="R180"/> -<rectangle x1="2.24" y1="-3.35" x2="2.84" y2="-2.55" layer="51" rot="R180"/> -<smd name="1" x="-2.54" y="-2.85" dx="1.02" dy="1.9" layer="1"/> -<smd name="2" x="-2.54" y="2.85" dx="1.02" dy="1.9" layer="1"/> -<smd name="3" x="0" y="-2.85" dx="1.02" dy="1.9" layer="1"/> -<smd name="4" x="0" y="2.85" dx="1.02" dy="1.9" layer="1"/> -<smd name="5" x="2.54" y="-2.85" dx="1.02" dy="1.9" layer="1"/> -<smd name="6" x="2.54" y="2.85" dx="1.02" dy="1.9" layer="1"/> <text x="-1.397" y="0.381" size="0.6096" layer="25" font="vector" ratio="20">>NAME</text> <text x="-1.778" y="-1.016" size="0.6096" layer="27" font="vector" ratio="20">>VALUE</text> -<wire x1="-1.27" y1="-4.38" x2="1.27" y2="-4.38" width="0.2032" layer="21"/> +<wire x1="-1.27" y1="-3.11" x2="1.27" y2="-3.11" width="0.2032" layer="21"/> +<pad name="1" x="-2.54" y="-1.27" drill="1.016" shape="octagon"/> +<pad name="3" x="0" y="-1.27" drill="1.016" shape="octagon"/> +<pad name="2" x="-2.54" y="1.27" drill="1.016" shape="octagon"/> +<pad name="4" x="0" y="1.27" drill="1.016" shape="octagon"/> +<pad name="6" x="2.54" y="1.27" drill="1.016" shape="octagon"/> +<pad name="5" x="2.54" y="-1.27" drill="1.016" shape="octagon"/> </package> </packages> </library> @@ -1677,9 +1666,9 @@ design rules under a new name.</description> <attribute name="TYPE" value="" x="20" y="26.9" size="1.778" layer="27" display="off"/> <attribute name="VOLTAGE" value="" x="20" y="26.9" size="1.778" layer="27" display="off"/> </element> -<element name="R2" library="borkedlabs-passives" package="0805" value="470R" x="22" y="52" rot="R90"> -<attribute name="PACKAGE" value="0805" x="22" y="52" size="1.778" layer="27" rot="R90" display="off"/> -<attribute name="PRECISION" value="" x="22" y="52" size="1.778" layer="27" rot="R90" display="off"/> +<element name="R2" library="borkedlabs-passives" package="0805" value="470R" x="22.5" y="52" rot="R90"> +<attribute name="PACKAGE" value="0805" x="22.5" y="52" size="1.778" layer="27" rot="R90" display="off"/> +<attribute name="PRECISION" value="" x="22.5" y="52" size="1.778" layer="27" rot="R90" display="off"/> </element> <element name="R3" library="borkedlabs-passives" package="0805" value="470R" x="20" y="52" rot="R90"> <attribute name="PACKAGE" value="0805" x="20" y="52" size="1.778" layer="27" rot="R90" display="off"/> @@ -1716,12 +1705,12 @@ design rules under a new name.</description> <attribute name="TYPE" value="" x="30.7" y="5.5" size="0.6096" layer="27" rot="R180" display="off"/> <attribute name="VOLTAGE" value="" x="30.7" y="5.5" size="0.6096" layer="27" rot="R180" display="off"/> </element> -<element name="D1" library="lights" package="LED0805" value="LED0805-RED" x="22" y="55" rot="R270"/> +<element name="D1" library="lights" package="LED0805" value="LED0805-RED" x="22.5" y="55" rot="R270"/> <element name="D2" library="lights" package="LED0805" value="LED0805-BLUE" x="20" y="55" rot="R270"/> <element name="D3" library="lights" package="LED0805" value="LED0805-GRN" x="17.5" y="55" rot="R270"/> <element name="J6" library="power" package="PWRPAD_3-25MM-SKINNY" value="PWRPADM3-SKINNY" x="44.5" y="3" rot="R180"/> <element name="J8" library="SparkFun-Connectors" package="1X05_NO_SILK" value="" x="33.85" y="23.25" rot="R90"/> -<element name="MP1" library="connector" package="JRTOMBSTONE" value="JRTOMBSTONE" x="16.8" y="17.9" rot="MR90"/> +<element name="MP1" library="connector" package="JRTOMBSTONE" value="JRTOMBSTONE" x="5" y="11.9" rot="MR90"/> <element name="R9" library="borkedlabs-passives" package="0805" value="10k" x="31.3" y="33.9" rot="R270"> <attribute name="PACKAGE" value="0805" x="31.3" y="33.9" size="1.778" layer="27" rot="R270" display="off"/> <attribute name="PRECISION" value="" x="31.3" y="33.9" size="1.778" layer="27" rot="R270" display="off"/> @@ -1745,9 +1734,7 @@ design rules under a new name.</description> <element name="J12" library="power" package="PWRPAD_3-25MM-SKINNY" value="PWRPADM3-SKINNY" x="12.5" y="54" rot="R180"/> <element name="J13" library="power" package="PWRPAD_3-25MM-SKINNY" value="PWRPADM3-SKINNY" x="44.5" y="54" rot="R180"/> <element name="U1" library="microcontrollers" package="QFN-64-9X9MM" value="ATXMEGA_A3UQFN" x="36" y="40.5"/> -<element name="J1" library="microcontrollers" package="PDI_2X3_SMD" value="" x="36.5" y="52"> -<attribute name="PROD_ID" value="CONN-11290" x="36.5" y="52" size="1.778" layer="27" display="off"/> -</element> +<element name="J1" library="microcontrollers" package="PDI_2X3_THRU" value="" x="37" y="50.7"/> <element name="Y1" library="passives" package="RES_PRQC" value="RESONATORPQRC" x="34.6" y="46.9" rot="R180"/> <element name="C5" library="borkedlabs-passives" package="1206" value="10uF" x="46.5" y="12" rot="R270"> <attribute name="PACKAGE" value="1206" x="46.5" y="12" size="1.778" layer="27" rot="R270" display="off"/> @@ -1963,7 +1950,6 @@ design rules under a new name.</description> <contactref element="J1" pad="6"/> <contactref element="S1" pad="P$2"/> <via x="34.6" y="46.9" extent="1-16" drill="0.3"/> -<via x="39.04" y="54.85" extent="1-16" drill="0.3"/> <wire x1="34.25" y1="45" x2="34.25" y2="42.25" width="0.1524" layer="1"/> <wire x1="34.25" y1="42.25" x2="35.9" y2="40.6" width="0.1524" layer="1"/> <wire x1="35.75" y1="38.75" x2="35.9" y2="38.6" width="0.1524" layer="1"/> @@ -2053,11 +2039,10 @@ design rules under a new name.</description> <via x="40.2" y="48" extent="1-16" drill="0.3"/> <via x="46.5" y="50.8" extent="1-16" drill="0.3"/> <via x="41.4" y="55.9" extent="1-16" drill="0.3"/> -<via x="35.2" y="56.1" extent="1-16" drill="0.3"/> -<via x="23.5" y="55" extent="1-16" drill="0.3"/> -<via x="23.1" y="56.4" extent="1-16" drill="0.3"/> +<via x="24" y="56.4" extent="1-16" drill="0.3"/> +<via x="24" y="55.1" extent="1-16" drill="0.3"/> <via x="20.8" y="52.1" extent="1-16" drill="0.3"/> -<via x="23.4" y="51.1" extent="1-16" drill="0.3"/> +<via x="24.1" y="51" extent="1-16" drill="0.3"/> <contactref element="C9" pad="2"/> <contactref element="C26" pad="1"/> <contactref element="U6" pad="TH"/> @@ -2111,8 +2096,16 @@ design rules under a new name.</description> <via x="38.9" y="20.2" extent="1-16" drill="0.3"/> <via x="29.1" y="18.2" extent="1-16" drill="0.3"/> <via x="21.8" y="12" extent="1-16" drill="0.3"/> +<via x="30.2" y="51.2" extent="1-16" drill="0.3"/> +<via x="32.2" y="50.1" extent="1-16" drill="0.3"/> +<via x="32.4" y="55" extent="1-16" drill="0.3"/> +<via x="33.6" y="56.2" extent="1-16" drill="0.3"/> <wire x1="25.3" y1="27.9" x2="24.9" y2="27.4" width="0" layer="19" extent="1-1"/> <wire x1="28" y1="14" x2="27.5" y2="13.5" width="0" layer="19" extent="1-1"/> +<via x="32.4" y="24.6" extent="1-16" drill="0.3"/> +<via x="31.1" y="28.6" extent="1-16" drill="0.3"/> +<via x="37.3" y="27" extent="1-16" drill="0.3"/> +<via x="36" y="31.4" extent="1-16" drill="0.3"/> </signal> <signal name="+3V3"> <contactref element="C10" pad="2"/> @@ -2193,10 +2186,10 @@ design rules under a new name.</description> <wire x1="21.4754" y1="48.5252" x2="21.3" y2="48.3498" width="0.254" layer="1"/> <via x="21.3" y="48.3498" extent="1-16" drill="0.3"/> <wire x1="29.947675" y1="48.5252" x2="21.4754" y2="48.5252" width="0.254" layer="1"/> -<wire x1="21.8" y1="51.8" x2="21.8" y2="55.65" width="0.2032" layer="16"/> -<wire x1="21.8" y1="55.65" x2="22" y2="55.85" width="0.2032" layer="16"/> -<via x="22" y="55.85" extent="1-16" drill="0.3"/> -<wire x1="22" y1="55.85" x2="20" y2="55.85" width="0.2032" layer="1"/> +<wire x1="21.8" y1="51.8" x2="21.8" y2="55.15" width="0.2032" layer="16"/> +<wire x1="21.8" y1="55.15" x2="22.5" y2="55.85" width="0.2032" layer="16"/> +<via x="22.5" y="55.85" extent="1-16" drill="0.3"/> +<wire x1="22.5" y1="55.85" x2="20" y2="55.85" width="0.2032" layer="1"/> <wire x1="20" y1="55.85" x2="17.5" y2="55.85" width="0.2032" layer="1"/> <wire x1="17.5" y1="55.85" x2="17.45" y2="55.8" width="0.2032" layer="1"/> <wire x1="17.45" y1="55.8" x2="16.4" y2="55.8" width="0.2032" layer="1"/> @@ -2207,7 +2200,6 @@ design rules under a new name.</description> <wire x1="14.2" y1="50.4" x2="14.2" y2="49.15" width="0.2032" layer="1"/> <wire x1="14.2" y1="49.15" x2="14.25" y2="49.1" width="0.2032" layer="1"/> <wire x1="15.7" y1="55.1" x2="15.7" y2="52.3" width="0.2032" layer="16"/> -<wire x1="33.76" y1="54.85" x2="32.76" y2="55.85" width="0.2032" layer="1"/> <via x="32.575475" y="46.775475" extent="1-16" drill="0.3"/> <wire x1="33.25" y1="45" x2="33.25" y2="45.9267125" width="0.1524" layer="1"/> <wire x1="33.25" y1="45.9267125" x2="33.1214" y2="46.0553125" width="0.1524" layer="1"/> @@ -2285,12 +2277,6 @@ design rules under a new name.</description> <wire x1="20.436234375" y1="47.963765625" x2="20.82226875" y2="48.3498" width="0.2032" layer="16"/> <wire x1="20.3564" y1="50.3564" x2="20.3564" y2="48.0436" width="0.2032" layer="16"/> <wire x1="20.3564" y1="48.0436" x2="20.436234375" y2="47.963765625" width="0.2032" layer="16"/> -<wire x1="33.96" y1="54.85" x2="33.76" y2="54.85" width="0.2032" layer="1"/> -<wire x1="32.76" y1="55.85" x2="23.33686875" y2="55.85" width="0.2032" layer="1"/> -<wire x1="23.33686875" y1="55.85" x2="23.33046875" y2="55.8436" width="0.2032" layer="1"/> -<wire x1="23.33046875" y1="55.8436" x2="22.86953125" y2="55.8436" width="0.2032" layer="1"/> -<wire x1="22.86953125" y1="55.8436" x2="22.86313125" y2="55.85" width="0.2032" layer="1"/> -<wire x1="22.86313125" y1="55.85" x2="22" y2="55.85" width="0.2032" layer="1"/> <wire x1="14.2" y1="50.8" x2="14.2" y2="50.4" width="0.2032" layer="16"/> <contactref element="U3" pad="5"/> <contactref element="C17" pad="1"/> @@ -2326,6 +2312,10 @@ design rules under a new name.</description> <wire x1="41.396" y1="29.072" x2="43.728" y2="29.072" width="0.1524" layer="1"/> <wire x1="43.728" y1="29.072" x2="43.8" y2="29" width="0.1524" layer="1"/> <via x="43.8" y="29" extent="1-16" drill="0.3"/> +<wire x1="32.86" y1="55.75" x2="34.46" y2="54.15" width="0.2032" layer="1"/> +<wire x1="34.46" y1="54.15" x2="34.46" y2="51.97" width="0.2032" layer="1"/> +<wire x1="22.6" y1="55.75" x2="32.86" y2="55.75" width="0.2032" layer="1"/> +<wire x1="22.5" y1="55.85" x2="22.6" y2="55.75" width="0.2032" layer="1"/> </signal> <signal name="V+"> <contactref element="J9" pad="P$1"/> @@ -2569,7 +2559,7 @@ design rules under a new name.</description> <signal name="N$6"> <contactref element="R2" pad="2"/> <contactref element="D1" pad="2"/> -<wire x1="22" y1="54.15" x2="22" y2="52.95" width="0.1524" layer="1"/> +<wire x1="22.5" y1="54.15" x2="22.5" y2="52.95" width="0.1524" layer="1"/> </signal> <signal name="TMC_MISO"> <contactref element="U2" pad="10"/> @@ -3314,7 +3304,7 @@ design rules under a new name.</description> </signal> <signal name="STLERR"> <contactref element="R2" pad="1"/> -<wire x1="22.95" y1="50.1" x2="30.6" y2="50.1" width="0.1524" layer="1"/> +<wire x1="23.45" y1="50.1" x2="30.6" y2="50.1" width="0.1524" layer="1"/> <wire x1="30.6" y1="50.1" x2="32.1" y2="48.6" width="0.1524" layer="1"/> <contactref element="U1" pad="54"/> <wire x1="32.1" y1="48.6" x2="32.259946875" y2="48.759946875" width="0.1524" layer="1"/> @@ -3324,14 +3314,7 @@ design rules under a new name.</description> <wire x1="35.315528125" y1="47.515528125" x2="36.984471875" y2="47.515528125" width="0.1524" layer="16"/> <wire x1="33.21509375" y1="47.8048" x2="35.02625625" y2="47.8048" width="0.1524" layer="16"/> <wire x1="36.984471875" y1="47.515528125" x2="38.509" y2="49.04005625" width="0.1524" layer="16"/> -<wire x1="38.509" y1="49.04005625" x2="38.509" y2="49.36995" width="0.1524" layer="16"/> -<wire x1="38.509" y1="49.36995" x2="38.82005" y2="49.681" width="0.1524" layer="16"/> -<wire x1="38.82005" y1="49.681" x2="39.25995" y2="49.681" width="0.1524" layer="16"/> -<wire x1="39.25995" y1="49.681" x2="39.571" y2="49.36995" width="0.1524" layer="16"/> -<wire x1="39.571" y1="49.36995" x2="39.571" y2="48.93005" width="0.1524" layer="16"/> -<wire x1="39.571" y1="48.93005" x2="39.25995" y2="48.619" width="0.1524" layer="16"/> -<wire x1="39.25995" y1="48.619" x2="38.95005625" y2="48.619" width="0.1524" layer="16"/> -<wire x1="38.95005625" y1="48.619" x2="38.365528125" y2="48.034471875" width="0.1524" layer="16"/> +<wire x1="38.365528125" y1="48.034471875" x2="38.95005625" y2="48.619" width="0.1524" layer="16"/> <wire x1="38.365528125" y1="48.034471875" x2="38.365528125" y2="47.605315625" width="0.1524" layer="16"/> <wire x1="38.365528125" y1="47.605315625" x2="38.435421875" y2="47.535421875" width="0.1524" layer="16"/> <via x="38.435421875" y="47.535421875" extent="1-16" drill="0.3"/> @@ -3340,7 +3323,18 @@ design rules under a new name.</description> <wire x1="38.435421875" y1="47.535421875" x2="38.435421875" y2="46.784471875" width="0.1524" layer="1"/> <wire x1="37.25" y1="45.63354375" x2="37.25" y2="45" width="0.1524" layer="1"/> <wire x1="38.08545625" y1="46.469" x2="37.25" y2="45.63354375" width="0.1524" layer="1"/> -<wire x1="22" y1="51.05" x2="22.95" y2="50.1" width="0.1524" layer="1"/> +<wire x1="22.5" y1="51.05" x2="23.45" y2="50.1" width="0.1524" layer="1"/> +<wire x1="39.1717625" y1="48.541" x2="39.9082375" y2="48.541" width="0.1524" layer="16"/> +<wire x1="39.9082375" y1="48.541" x2="40.429" y2="49.0617625" width="0.1524" layer="16"/> +<wire x1="40.429" y1="49.0617625" x2="40.429" y2="49.7982375" width="0.1524" layer="16"/> +<wire x1="40.429" y1="49.7982375" x2="39.9082375" y2="50.319" width="0.1524" layer="16"/> +<wire x1="39.9082375" y1="50.319" x2="39.1717625" y2="50.319" width="0.1524" layer="16"/> +<wire x1="38.519" y1="49.0500625" x2="38.508996875" y2="49.040059375" width="0.1524" layer="16"/> +<wire x1="38.95005625" y1="48.619" x2="39.0937625" y2="48.619" width="0.1524" layer="16"/> +<wire x1="39.0937625" y1="48.619" x2="39.1717625" y2="48.541" width="0.1524" layer="16"/> +<wire x1="39.1717625" y1="50.319" x2="38.519" y2="49.6662375" width="0.1524" layer="16"/> +<wire x1="38.519" y1="49.6662375" x2="38.519" y2="49.0500625" width="0.1524" layer="16"/> +<wire x1="38.509" y1="49.04005625" x2="38.519" y2="49.0500625" width="0" layer="19" extent="16-16"/> </signal> <signal name="N$7"> <contactref element="Y1" pad="1"/> @@ -3370,28 +3364,38 @@ design rules under a new name.</description> <wire x1="36.0786" y1="46.4" x2="36.5786" y2="46.9" width="0.1524" layer="1"/> <wire x1="36.5786" y1="46.9" x2="36.7" y2="46.9" width="0.1524" layer="1"/> <via x="36.7" y="46.9" extent="1-16" drill="0.3"/> -<via x="39.04" y="49.15" extent="1-16" drill="0.3"/> -<wire x1="38.813809375" y1="48.923809375" x2="38.813809375" y2="48.913803125" width="0.1524" layer="16"/> -<wire x1="38.813809375" y1="48.913803125" x2="36.80000625" y2="46.9" width="0.1524" layer="16"/> <wire x1="36.80000625" y1="46.9" x2="36.7" y2="46.9" width="0.1524" layer="16"/> -<wire x1="39.04" y1="49.15" x2="35.99" y2="52.2" width="0.1524" layer="1"/> -<wire x1="35.99" y1="52.2" x2="29.6" y2="52.2" width="0.1524" layer="1"/> -<wire x1="29.6" y1="52.2" x2="29.5" y2="52.1" width="0.1524" layer="1"/> -<via x="29.5" y="52.1" extent="1-16" drill="0.3"/> -<wire x1="29.5" y1="52.1" x2="26.1" y2="48.7" width="0.1524" layer="16"/> +<via x="28.3" y="50.9" extent="1-16" drill="0.3"/> +<wire x1="28.3" y1="50.9" x2="26.1" y2="48.7" width="0.1524" layer="16"/> <wire x1="26.1" y1="48.7" x2="26.1" y2="46.35" width="0.1524" layer="16"/> <via x="26.1" y="46.35" extent="1-16" drill="0.3"/> -<wire x1="39.04" y1="49.15" x2="38.813809375" y2="48.923809375" width="0" layer="19" extent="1-16"/> +<wire x1="36.7" y1="46.9" x2="37.01" y2="46.9" width="0.1524" layer="16"/> +<wire x1="37.01" y1="46.9" x2="38.060725" y2="47.950725" width="0.1524" layer="16"/> +<wire x1="38.060725" y1="47.950725" x2="38.060725" y2="48.16073125" width="0.1524" layer="16"/> +<wire x1="38.060725" y1="48.16073125" x2="38.823803125" y2="48.923809375" width="0.1524" layer="16"/> +<wire x1="38.823803125" y1="48.923809375" x2="39.033809375" y2="48.923809375" width="0.1524" layer="16"/> +<wire x1="39.033809375" y1="48.923809375" x2="39.54" y2="49.43" width="0.1524" layer="16"/> +<wire x1="35.9446875" y1="47.8786" x2="36.0786" y2="47.7446875" width="0.1524" layer="1"/> +<wire x1="36.0786" y1="47.7446875" x2="36.0786" y2="47.5214" width="0.1524" layer="1"/> +<wire x1="36.0786" y1="47.5214" x2="36.7" y2="46.9" width="0.1524" layer="1"/> +<wire x1="33.89225625" y1="47.8786" x2="35.9446875" y2="47.8786" width="0.1524" layer="1"/> +<wire x1="32.4799" y1="49.29095625" x2="32.585428125" y2="49.185428125" width="0.1524" layer="1"/> +<wire x1="32.585428125" y1="49.185428125" x2="33.89225625" y2="47.8786" width="0.1524" layer="1"/> +<wire x1="28.3" y1="50.9" x2="28.7952" y2="50.4048" width="0.1524" layer="1"/> +<wire x1="28.7952" y1="50.4048" x2="30.72625625" y2="50.4048" width="0.1524" layer="1"/> +<wire x1="32.4799" y1="49.29095625" x2="32.585428125" y2="49.185428125" width="0.1524" layer="1"/> +<wire x1="31.8401" y1="49.29095625" x2="32.4799" y2="49.29095625" width="0.1524" layer="1"/> +<wire x1="30.72625625" y1="50.4048" x2="31.8401" y2="49.29095625" width="0.1524" layer="1"/> </signal> <signal name="N$10"> <contactref element="U1" pad="56"/> <contactref element="J1" pad="1"/> -<wire x1="33.96" y1="49.15" x2="35.1314" y2="47.8786" width="0.1524" layer="1"/> <wire x1="36.25" y1="45.49565625" x2="36.25" y2="45" width="0.1524" layer="1"/> <wire x1="37.331" y1="47.11995" x2="37.331" y2="46.57665625" width="0.1524" layer="1"/> <wire x1="37.331" y1="46.57665625" x2="36.25" y2="45.49565625" width="0.1524" layer="1"/> -<wire x1="35.1314" y1="47.8786" x2="36.47235" y2="47.8786" width="0.1524" layer="1"/> <wire x1="36.47235" y1="47.8786" x2="37.331" y2="47.11995" width="0.1524" layer="1"/> +<wire x1="34.46" y1="49.43" x2="34.92095" y2="49.43" width="0.1524" layer="1"/> +<wire x1="34.92095" y1="49.43" x2="36.47235" y2="47.8786" width="0.1524" layer="1"/> </signal> <signal name="ATK-CLKOUT"> <contactref element="U1" pad="46"/> diff --git a/circuit/atkstepper23/atkstepper23.sch b/circuit/atkstepper23/atkstepper23.sch index e9054ecfd9c81e5db8afc3213b5421fff9b46e2d..67564cd878cd8faed7e65f6ea8a92c1cf76b3d85 100644 --- a/circuit/atkstepper23/atkstepper23.sch +++ b/circuit/atkstepper23/atkstepper23.sch @@ -4455,21 +4455,10 @@ part number 2062-2P from STA</description> <library name="connector"> <packages> <package name="JRTOMBSTONE"> -<wire x1="-1.1" y1="-1" x2="-1.1" y2="0.7" width="0.127" layer="21"/> -<wire x1="-1.1" y1="0.7" x2="1" y2="0.7" width="0.127" layer="21" curve="-180"/> +<wire x1="-1" y1="-1" x2="-1" y2="0.7" width="0.127" layer="21"/> +<wire x1="-1" y1="0.7" x2="1" y2="0.7" width="0.127" layer="21" curve="-180"/> <wire x1="1" y1="0.7" x2="1" y2="-1" width="0.127" layer="21"/> -<wire x1="1" y1="-1" x2="-1.1" y2="-1" width="0.127" layer="21"/> -<wire x1="-0.8" y1="-0.5" x2="-0.6" y2="-0.5" width="0.127" layer="21"/> -<wire x1="-0.6" y1="-0.5" x2="-0.3" y2="-0.2" width="0.127" layer="21" curve="90"/> -<wire x1="-0.3" y1="-0.2" x2="-0.3" y2="0.7" width="0.127" layer="21"/> -<wire x1="-0.3" y1="0.7" x2="-0.8" y2="0.7" width="0.127" layer="21"/> -<wire x1="-0.3" y1="0.7" x2="0.1" y2="0.7" width="0.127" layer="21"/> -<wire x1="0.1" y1="0.7" x2="0.1" y2="0.1" width="0.127" layer="21"/> -<wire x1="0.1" y1="0.1" x2="0.1" y2="-0.5" width="0.127" layer="21"/> -<wire x1="0.1" y1="0.7" x2="0.4" y2="0.7" width="0.127" layer="21"/> -<wire x1="0.4" y1="0.7" x2="0.4" y2="0.1" width="0.127" layer="21" curve="-180"/> -<wire x1="0.4" y1="0.1" x2="0.7" y2="-0.5" width="0.127" layer="21"/> -<wire x1="0.4" y1="0.1" x2="0.1" y2="0.1" width="0.127" layer="21"/> +<wire x1="1" y1="-1" x2="-1" y2="-1" width="0.127" layer="21"/> </package> <package name="FIDUCIAL_1MM"> <smd name="1" x="0" y="0" dx="1" dy="1" layer="1" roundness="100" stop="no" cream="no"/> @@ -4534,6 +4523,12 @@ part number 2062-2P from STA</description> <pad name="GRNP" x="4.572" y="6.604" drill="0.889"/> <pad name="YLWN" x="-4.572" y="6.604" drill="0.889"/> </package> +<package name="FIDUCIAL_RECT_1MM"> +<smd name="P$1" x="0" y="0" dx="1" dy="1" layer="1"/> +<rectangle x1="-1" y1="-1" x2="1" y2="1" layer="39"/> +<rectangle x1="-1" y1="-1" x2="1" y2="1" layer="29"/> +<rectangle x1="-1" y1="-1" x2="1" y2="1" layer="41"/> +</package> </packages> <symbols> <symbol name="JRTOMBSTONE"> @@ -4541,15 +4536,6 @@ part number 2062-2P from STA</description> <wire x1="-5.08" y1="2.54" x2="5.08" y2="2.54" width="0.254" layer="94" curve="-180"/> <wire x1="5.08" y1="2.54" x2="5.08" y2="-5.08" width="0.254" layer="94"/> <wire x1="5.08" y1="-5.08" x2="-5.08" y2="-5.08" width="0.254" layer="94"/> -<wire x1="-3.81" y1="3.175" x2="-1.27" y2="3.175" width="0.254" layer="94"/> -<wire x1="-1.27" y1="3.175" x2="0" y2="3.175" width="0.254" layer="94"/> -<wire x1="-1.27" y1="3.175" x2="-1.27" y2="-0.635" width="0.254" layer="94"/> -<wire x1="-1.27" y1="-0.635" x2="-3.81" y2="-1.27" width="0.254" layer="94" curve="-143.130069"/> -<wire x1="0.635" y1="3.175" x2="0.635" y2="-1.905" width="0.254" layer="94"/> -<wire x1="0.635" y1="3.175" x2="1.27" y2="3.175" width="0.254" layer="94"/> -<wire x1="1.27" y1="3.175" x2="2.54" y2="0.635" width="0.254" layer="94" curve="-126.869898"/> -<wire x1="2.54" y1="0.635" x2="1.27" y2="0" width="0.254" layer="94" curve="-53.129967"/> -<wire x1="1.27" y1="0" x2="3.175" y2="-1.905" width="0.254" layer="94"/> </symbol> <symbol name="DOT"> <circle x="0" y="0" radius="2.54" width="0.254" layer="94"/> @@ -4587,7 +4573,7 @@ part number 2062-2P from STA</description> </device> </devices> </deviceset> -<deviceset name="FIDUCIAL"> +<deviceset name="FIDUCIAL" prefix="J"> <description>For use by pick and place machines to calibrate the vision/machine, 1mm <p>By microbuilder.eu</p></description> <gates> @@ -4599,6 +4585,11 @@ part number 2062-2P from STA</description> <technology name=""/> </technologies> </device> +<device name="RCT" package="FIDUCIAL_RECT_1MM"> +<technologies> +<technology name=""/> +</technologies> +</device> </devices> </deviceset> <deviceset name="ATK-RS48PHYVE" prefix="J"> @@ -4874,6 +4865,29 @@ part number 2062-2P from STA</description> <text x="-1.778" y="-1.016" size="0.6096" layer="27" font="vector" ratio="20">>VALUE</text> <wire x1="-1.27" y1="-4.38" x2="1.27" y2="-4.38" width="0.2032" layer="21"/> </package> +<package name="PDI_2X3_THRU"> +<description><h3>Surface Mount - 2x3</h3> +<p>Specifications: +<ul><li>Pin count:6</li> +<li>Pin pitch:2.54mm</li> +</ul></p> +<p>Example device(s): +<ul><li>CONN_03x2</li> +</ul></p></description> +<wire x1="-3.81" y1="-2.5" x2="-3.81" y2="2.5" width="0.127" layer="51"/> +<wire x1="-3.81" y1="2.5" x2="3.81" y2="2.5" width="0.127" layer="51"/> +<wire x1="3.81" y1="2.5" x2="3.81" y2="-2.5" width="0.127" layer="51"/> +<wire x1="3.81" y1="-2.5" x2="-3.81" y2="-2.5" width="0.127" layer="51"/> +<text x="-1.397" y="0.381" size="0.6096" layer="25" font="vector" ratio="20">>NAME</text> +<text x="-1.778" y="-1.016" size="0.6096" layer="27" font="vector" ratio="20">>VALUE</text> +<wire x1="-1.27" y1="-3.11" x2="1.27" y2="-3.11" width="0.2032" layer="21"/> +<pad name="1" x="-2.54" y="-1.27" drill="1.016" shape="octagon"/> +<pad name="3" x="0" y="-1.27" drill="1.016" shape="octagon"/> +<pad name="2" x="-2.54" y="1.27" drill="1.016" shape="octagon"/> +<pad name="4" x="0" y="1.27" drill="1.016" shape="octagon"/> +<pad name="6" x="2.54" y="1.27" drill="1.016" shape="octagon"/> +<pad name="5" x="2.54" y="-1.27" drill="1.016" shape="octagon"/> +</package> </packages> <symbols> <symbol name="ATXMEGA_A3U"> @@ -5134,6 +5148,19 @@ part number 2062-2P from STA</description> </technology> </technologies> </device> +<device name="THRU" package="PDI_2X3_THRU"> +<connects> +<connect gate="G$1" pin="GND" pad="6"/> +<connect gate="G$1" pin="NC1" pad="3"/> +<connect gate="G$1" pin="NC2" pad="4"/> +<connect gate="G$1" pin="PDI_CLK" pad="5"/> +<connect gate="G$1" pin="PDI_DATA" pad="1"/> +<connect gate="G$1" pin="VCC" pad="2"/> +</connects> +<technologies> +<technology name=""/> +</technologies> +</device> </devices> </deviceset> </devicesets> @@ -5598,7 +5625,7 @@ thin small outline package</description> <part name="J12" library="power" deviceset="PWRPAD" device="M3-SKINNY" value="PWRPADM3-SKINNY"/> <part name="J13" library="power" deviceset="PWRPAD" device="M3-SKINNY" value="PWRPADM3-SKINNY"/> <part name="U1" library="microcontrollers" deviceset="ATXMEGA_A3U" device="QFN"/> -<part name="J1" library="microcontrollers" deviceset="PDI" device="FEMALE_SMD"/> +<part name="J1" library="microcontrollers" deviceset="PDI" device="THRU"/> <part name="Y1" library="passives" deviceset="RESONATOR" device="PQRC"/> <part name="GND2" library="supply1" library_urn="urn:adsk.eagle:library:371" deviceset="GND" device=""/> <part name="+3V1" library="supply1" library_urn="urn:adsk.eagle:library:371" deviceset="+3V3" device=""/> diff --git a/circuit/atkstepper23/atkstepper23_2018-11-12.zip b/circuit/atkstepper23/atkstepper23_2018-11-12.zip new file mode 100644 index 0000000000000000000000000000000000000000..930184f3b4892007073260244c276e0cba4f0340 Binary files /dev/null and b/circuit/atkstepper23/atkstepper23_2018-11-12.zip differ diff --git a/circuit/atkstepper23/eagle.epf b/circuit/atkstepper23/eagle.epf index c66bf732631d935577aaa6395e77adb362790171..8e83059238e9a0a918961366ffdecb60950b2fa4 100644 --- a/circuit/atkstepper23/eagle.epf +++ b/circuit/atkstepper23/eagle.epf @@ -14,25 +14,25 @@ UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/fab.lbr" UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/lights.lbr" UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/microcontrollers.lbr" UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/motors.lbr" +UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/passives.lbr" UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/power.lbr" UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/sensor.lbr" UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries_jake/eagle/sparkfun/SparkFun-Connectors.lbr" UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries_jake/eagle/jake/tag-connect-2050.lbr" -UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/passives.lbr" UsedLibrary="D:/Dropbox (Personal)/CBA/doc/libraries_jake/eagle/marekr/borkedlabs-passives.lbr" [Win_1] Type="Library Editor" -Number=4 -File="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/power.lbr" -View="-12.3515 -9.81456 4.74844 11.8466" -WireWidths=" 0.508 0.4 0.0254 0.001 0.0508 0.09 0.2032 0.125 0.5 0.1016 0.6096 0.4064 0 0.1524 0.254 0.127" -PadDiameters=" 1 1.4478 1.6 1.8796 2.032 1.9 0 1.4224 3.8 4.65 5.75 5.35 6.35 7 6 4.24" -PadDrills=" 0.7 1.2 1.3 1.016 0.9 2 1.1 1.8 0.8128 2.05 2.65 3.25 3.9878 4.4 3.7 2.45" -ViaDiameters=" 1 1.4478 1.6 1.8796 2.032 1.9 0 1.4224 3.8 4.65 5.75 5.35 6.35 7 6 4.24" -ViaDrills=" 0.7 1.2 1.3 1.016 0.9 2 1.1 1.8 0.8128 2.05 2.65 3.25 3.9878 4.4 3.7 2.45" -HoleDrills=" 0.7 1.2 1.3 1.016 0.9 2 1.1 1.8 0.8128 2.05 2.65 3.25 3.9878 4.4 3.7 2.45" -TextSizes=" 0.3048 0.8128 1.4224 1.6764 1.9304 2.1844 2.54 3.81 5.08 6.4516 0.8 0.6096 0.4064 1.016 1.778 1.27" +Number=3 +File="D:/Dropbox (Personal)/CBA/doc/libraries/eagle/microcontrollers.lbr" +View="-20.3403 -8.58052 20.3403 10.5482" +WireWidths=" 0.0762 0.1016 0.15 0.2 0.2032 0.254 0.3048 0.4064 0.508 0.6096 0.8128 1.016 1.27 2.54 0.1524 0.127" +PadDiameters=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0" +PadDrills=" 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.65 0.7 0.75 0.8 0.85 0.9 1 0.6 1.016" +ViaDiameters=" 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 1.05 1.1 1.15 1.2 1.3 0" +ViaDrills=" 0.2 0.25 0.3 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 1 0.35" +HoleDrills=" 0.2 0.25 0.3 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 1 0.35" +TextSizes=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.4224 1.6764 1.9304 2.1844 2.54 3.81 5.08 6.4516 1.778 1.27" PolygonSpacings=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 5.08 6.4516 1.27" PolygonIsolates=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0" MiterRadiuss=" 0.254 0.3175 0.635 1.27 2.54 1 2 2.5 5 7.5 10 0" @@ -40,12 +40,12 @@ DimensionWidths=" 0 0.127 0.254 0.1 0.26 0.13" DimensionExtWidths=" 0.127 0.254 0.1 0.13 0.26 0" DimensionExtLengths=" 1.27 2.54 1 2 3 0" DimensionExtOffsets=" 1.27 2.54 1 2 3 0" -SmdSizes=" 0.275 0.7 7.6 7.6 1.524 0.3302 3.9 0.8 1.5 0.4 1.5 0.6 6.4 5.8 2.2 0.8 0.65 1 2.5 4.35 0.6 0.25 0.55 0.25 3.2 3.2 0.5334 1.1938 0.762 1.016 0.3048 0.9906" -WireBend=2 +SmdSizes=" 0.3048 0.1524 0.4064 0.2032 0.6096 0.3048 0.8128 0.4064 1.016 0.508 1.27 0.6604 1.4224 0.7112 1.6764 0.8128 1.778 0.9144 1.9304 0.9652 2.1844 1.0668 2.54 1.27 3.81 1.9304 5.08 2.54 6.4516 3.2512 1.27 0.635" +WireBend=0 WireBendSet=0 WireCap=1 MiterStyle=1 -PadShape=1 +PadShape=2 ViaShape=1 PolygonPour=0 PolygonRank=0 @@ -55,15 +55,16 @@ TextRatio=8 DimensionUnit=1 DimensionPrecision=2 DimensionShowUnit=0 -PinDirection=8 +PinDirection=3 PinFunction=0 -PinLength=1 -PinVisible=0 +PinLength=2 +PinVisible=3 SwapLevel=0 ArcDirection=0 AddLevel=2 PadsSameType=0 Layer=94 +Device="PDI" [Win_2] Type="Schematic Editor" @@ -115,8 +116,8 @@ Sheet="1" Type="Board Editor" Number=2 File="atkstepper23.brd" -View="-4.15589 -10.3803 110.32 69.968" -WireWidths=" 0.1016 0.127 0.15 0.2 0.508 1.016 1.27 2.54 0.8128 0.6096 0.4064 0.3048 0.0762 0.2032 0.254 0.1524" +View="2.54458 -4.52397 97.9412 62.4331" +WireWidths=" 0.1016 0.127 0.15 0.2 0.508 1.016 1.27 2.54 0.8128 0.6096 0.4064 0.3048 0.0762 0.254 0.1524 0.2032" PadDiameters=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0" PadDrills=" 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.65 0.7 0.75 0.8 0.85 0.9 1 0.6" ViaDiameters=" 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 1.05 1.1 1.15 1.2 1.3 0" @@ -160,7 +161,7 @@ Type="Control Panel" Number=0 [Desktop] -Screen="3840 1080" +Screen="1920 1080" Window="Win_1" Window="Win_2" Window="Win_3" diff --git a/embedded/atkstepper23/atkstepper23/atkhandler.c b/embedded/atkstepper23/atkstepper23/atkhandler.c index 0e73fedd11a19288d62b363b2dec15be37ce0a68..eb4a362e7b09b89e233827f18bd456f422580aa3 100644 --- a/embedded/atkstepper23/atkstepper23/atkhandler.c +++ b/embedded/atkstepper23/atkstepper23/atkhandler.c @@ -30,7 +30,17 @@ void atk_handle_packet(uint8_t *packet, uint8_t length){ case ATK_HANDLER_INSIDE: switch (packet[i]){ case DELIM_KEY_TEST: - pin_toggle(&stlerr); + pin_clear(&stlclk); + uint32_t counter = 0; + uint16_t loop = 0; + while(loop < 12){ + counter ++; + if(counter > 1200000){ + pin_toggle(&stlclk); + loop ++; + counter = 0; + } + } // see the packet, make sure you're not doing something else with this light atk_reply_packet(packet, testReply, 4); i ++; diff --git a/embedded/atkstepper23/atkstepper23/stepper.c b/embedded/atkstepper23/atkstepper23/stepper.c index b2da8ea9db138e9b1dec0c02cbaa02ef4a889fcf..67aacca907f5a040a5a0f2b35d7f78779be40146 100644 --- a/embedded/atkstepper23/atkstepper23/stepper.c +++ b/embedded/atkstepper23/atkstepper23/stepper.c @@ -93,6 +93,7 @@ void stepper_new_block(uint8_t *packet, stepper_t *stepper, uint8_t is_wait, int } void stepper_updatesteps(stepper_t *stepper){ + // this should just count down or up or something, I mean yikes if(stepper->blockhead == stepper->blocktail){ // no steps to make, ringbuffer is empty pin_set(&stlerr);