No changes between revisions
/Modules/H_Bridge/DRV8835HB01A/SCH_PCB/untitled.s##
0,0 → 1,1040
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.1">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.05" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="no" active="no"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="no"/>
<layer number="17" name="Pads" color="2" fill="1" visible="no" active="no"/>
<layer number="18" name="Vias" color="2" fill="1" visible="no" active="no"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="no" active="no"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="no" active="no"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="no" active="no"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="no" active="no"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="no" active="no"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="no"/>
<layer number="25" name="tNames" color="7" fill="1" visible="no" active="no"/>
<layer number="26" name="bNames" color="7" fill="1" visible="no" active="no"/>
<layer number="27" name="tValues" color="7" fill="1" visible="no" active="no"/>
<layer number="28" name="bValues" color="7" fill="1" visible="no" active="no"/>
<layer number="29" name="tStop" color="7" fill="3" visible="no" active="no"/>
<layer number="30" name="bStop" color="7" fill="6" visible="no" active="no"/>
<layer number="31" name="tCream" color="7" fill="4" visible="no" active="no"/>
<layer number="32" name="bCream" color="7" fill="5" visible="no" active="no"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="no" active="no"/>
<layer number="34" name="bFinish" color="6" fill="6" visible="no" active="no"/>
<layer number="35" name="tGlue" color="7" fill="4" visible="no" active="no"/>
<layer number="36" name="bGlue" color="7" fill="5" visible="no" active="no"/>
<layer number="37" name="tTest" color="7" fill="1" visible="no" active="no"/>
<layer number="38" name="bTest" color="7" fill="1" visible="no" active="no"/>
<layer number="39" name="tKeepout" color="4" fill="11" visible="no" active="no"/>
<layer number="40" name="bKeepout" color="1" fill="11" visible="no" active="no"/>
<layer number="41" name="tRestrict" color="4" fill="10" visible="no" active="no"/>
<layer number="42" name="bRestrict" color="1" fill="10" visible="no" active="no"/>
<layer number="43" name="vRestrict" color="2" fill="10" visible="no" active="no"/>
<layer number="44" name="Drills" color="7" fill="1" visible="no" active="no"/>
<layer number="45" name="Holes" color="7" fill="1" visible="no" active="no"/>
<layer number="46" name="Milling" color="3" fill="1" visible="no" active="no"/>
<layer number="47" name="Measures" color="7" fill="1" visible="no" active="no"/>
<layer number="48" name="Document" color="7" fill="1" visible="no" active="no"/>
<layer number="49" name="Reference" color="7" fill="1" visible="no" active="no"/>
<layer number="50" name="dxf" color="7" fill="1" visible="no" active="no"/>
<layer number="51" name="tDocu" color="7" fill="1" visible="no" active="no"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="no" active="no"/>
<layer number="53" name="tPadExt" color="7" fill="1" visible="no" active="no"/>
<layer number="54" name="bPadExt" color="1" fill="1" visible="no" active="no"/>
<layer number="56" name="wert" color="7" fill="1" visible="no" active="no"/>
<layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
<layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
<layer number="93" name="Pins" color="2" fill="1" visible="no" active="yes"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
<layer number="100" name="PaJa" color="12" fill="7" visible="yes" active="yes"/>
<layer number="101" name="Doplnky" color="5" fill="1" visible="yes" active="yes"/>
<layer number="102" name="Kola" color="11" fill="7" visible="yes" active="yes"/>
<layer number="103" name="Popisy" color="2" fill="8" visible="yes" active="yes"/>
<layer number="104" name="Zapojeni" color="6" fill="7" visible="yes" active="yes"/>
<layer number="151" name="HeatSink" color="7" fill="1" visible="no" active="no"/>
<layer number="200" name="200bmp" color="1" fill="10" visible="no" active="no"/>
<layer number="231" name="Eagle3D_PG1" color="14" fill="1" visible="yes" active="yes"/>
<layer number="232" name="Eagle3D_PG2" color="14" fill="2" visible="yes" active="yes"/>
<layer number="233" name="Eagle3D_PG3" color="14" fill="4" visible="yes" active="yes"/>
<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="OrgLBR" color="13" fill="1" visible="no" active="no"/>
</layers>
<schematic xreflabel="%F%N/%S.%C%R" xrefpart="/%S.%C%R">
<libraries>
<library name="moje_io">
<packages>
<package name="WSON">
<smd name="12" x="-1.25" y="0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="11" x="-0.75" y="0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="10" x="-0.25" y="0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="9" x="0.25" y="0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="8" x="0.75" y="0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="7" x="1.25" y="0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="6" x="1.25" y="-0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="5" x="0.75" y="-0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="4" x="0.25" y="-0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="3" x="-0.25" y="-0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="2" x="-0.75" y="-0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="1" x="-1.25" y="-0.95" dx="0.28" dy="0.5" layer="1"/>
<smd name="P3" x="0" y="0" dx="2" dy="0.9" layer="1"/>
<smd name="P1" x="-1.35" y="0.25" dx="0.7" dy="0.25" layer="1"/>
<smd name="P2" x="-1.35" y="-0.25" dx="0.7" dy="0.25" layer="1"/>
<smd name="P7" x="1.35" y="0.25" dx="0.7" dy="0.25" layer="1"/>
<smd name="P8" x="1.35" y="-0.25" dx="0.7" dy="0.25" layer="1"/>
<pad name="P5" x="0" y="0" drill="0.4" diameter="0.5"/>
<pad name="P4" x="-0.7" y="0" drill="0.4" diameter="0.5"/>
<pad name="P6" x="0.7" y="0" drill="0.4" diameter="0.5"/>
<wire x1="-1.55" y1="1.05" x2="-1.55" y2="-1.05" width="0.127" layer="51"/>
<wire x1="-1.55" y1="-1.05" x2="1.55" y2="-1.05" width="0.127" layer="51"/>
<wire x1="1.55" y1="-1.05" x2="1.55" y2="1.05" width="0.127" layer="51"/>
<wire x1="1.55" y1="1.05" x2="-1.55" y2="1.05" width="0.127" layer="51"/>
<wire x1="-1.6" y1="1" x2="-1.6" y2="0.6" width="0.1" layer="21"/>
<wire x1="1.6" y1="1" x2="1.6" y2="0.6" width="0.1" layer="21"/>
<wire x1="1.6" y1="-1" x2="1.6" y2="-0.6" width="0.1" layer="21"/>
<wire x1="-1.6" y1="-0.6" x2="-1.6" y2="-1" width="0.1" layer="21"/>
<text x="-1.56" y="1.42" size="0.254" layer="25">&gt;NAME</text>
<text x="-1.49" y="-1.64" size="0.254" layer="27">&gt;VALUE</text>
<circle x="-1.74625" y="-1.27" radius="0.15875" width="0.127" layer="21"/>
</package>
</packages>
<symbols>
<symbol name="DRV8835">
<pin name="VN" x="-20.32" y="12.7" visible="pin" length="middle"/>
<pin name="AOUT1" x="-20.32" y="7.62" visible="pin" length="middle"/>
<pin name="AOUT2" x="-20.32" y="2.54" visible="pin" length="middle"/>
<pin name="BOUT1" x="-20.32" y="-2.54" visible="pin" length="middle"/>
<pin name="BOUT2" x="-20.32" y="-7.62" visible="pin" length="middle"/>
<pin name="GND" x="-20.32" y="-12.7" visible="pin" length="middle"/>
<pin name="BIN2/BENBL" x="20.32" y="-12.7" visible="pin" length="middle" rot="R180"/>
<pin name="BIN1/BPHASE" x="20.32" y="-7.62" visible="pin" length="middle" rot="R180"/>
<pin name="AIN2/AENBL" x="20.32" y="-2.54" visible="pin" length="middle" rot="R180"/>
<pin name="AIN1/APHASE" x="20.32" y="2.54" visible="pin" length="middle" rot="R180"/>
<pin name="MODE" x="20.32" y="7.62" visible="pin" length="middle" rot="R180"/>
<pin name="VCC" x="20.32" y="12.7" visible="pin" length="middle" rot="R180"/>
<wire x1="-15.24" y1="15.24" x2="-15.24" y2="-15.24" width="0.254" layer="94"/>
<wire x1="-15.24" y1="-15.24" x2="15.24" y2="-15.24" width="0.254" layer="94"/>
<wire x1="15.24" y1="-15.24" x2="15.24" y2="15.24" width="0.254" layer="94"/>
<wire x1="15.24" y1="15.24" x2="-15.24" y2="15.24" width="0.254" layer="94"/>
<text x="-15.24" y="17.78" size="1.6764" layer="95">&gt;NAME</text>
<text x="-15.24" y="-20.32" size="1.6764" layer="96">&gt;VALUE</text>
</symbol>
</symbols>
<devicesets>
<deviceset name="DRV8835" prefix="U" uservalue="yes">
<description>DRV8835 IO pro dva dc motory 2x1,5A</description>
<gates>
<gate name="G$1" symbol="DRV8835" x="0" y="0"/>
</gates>
<devices>
<device name="" package="WSON">
<connects>
<connect gate="G$1" pin="AIN1/APHASE" pad="10"/>
<connect gate="G$1" pin="AIN2/AENBL" pad="9"/>
<connect gate="G$1" pin="AOUT1" pad="2"/>
<connect gate="G$1" pin="AOUT2" pad="3"/>
<connect gate="G$1" pin="BIN1/BPHASE" pad="8"/>
<connect gate="G$1" pin="BIN2/BENBL" pad="7"/>
<connect gate="G$1" pin="BOUT1" pad="4"/>
<connect gate="G$1" pin="BOUT2" pad="5"/>
<connect gate="G$1" pin="GND" pad="6 P1 P2 P3 P4 P5 P6 P7 P8"/>
<connect gate="G$1" pin="MODE" pad="11"/>
<connect gate="G$1" pin="VCC" pad="12"/>
<connect gate="G$1" pin="VN" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="moje_konektory">
<packages>
<package name="WAGO256">
<wire x1="1.54" y1="-2.5001" x2="7.54" y2="-2.5001" width="0.127" layer="21"/>
<wire x1="1.54" y1="2.5001" x2="7.54" y2="2.5001" width="0.127" layer="21"/>
<wire x1="10.0401" y1="2" x2="10.0401" y2="-2" width="0.127" layer="21"/>
<wire x1="10.0401" y1="-2" x2="7.54" y2="-2" width="0.127" layer="21"/>
<wire x1="7.54" y1="-2" x2="6.54" y2="-2" width="0.127" layer="21"/>
<wire x1="6.54" y1="-2" x2="6.54" y2="-1.5001" width="0.127" layer="21"/>
<wire x1="6.54" y1="-1.5001" x2="6.54" y2="1.5001" width="0.127" layer="21"/>
<wire x1="6.54" y1="1.5001" x2="6.54" y2="2" width="0.127" layer="21"/>
<wire x1="6.54" y1="2" x2="7.54" y2="2" width="0.127" layer="21"/>
<wire x1="7.54" y1="2" x2="10.0401" y2="2" width="0.127" layer="21"/>
<wire x1="9.54" y1="-1.5001" x2="7.0401" y2="-1.5001" width="0.127" layer="21"/>
<wire x1="7.0401" y1="-1.5001" x2="7.0401" y2="1.5001" width="0.127" layer="21"/>
<wire x1="7.0401" y1="1.5001" x2="9.54" y2="1.5001" width="0.127" layer="21"/>
<wire x1="9.54" y1="1.5001" x2="9.54" y2="-1.5001" width="0.127" layer="21"/>
<wire x1="7.54" y1="-2.5001" x2="7.54" y2="-2" width="0.127" layer="21"/>
<wire x1="7.54" y1="2" x2="7.54" y2="2.5001" width="0.127" layer="21"/>
<wire x1="6.54" y1="-1.5001" x2="3.54" y2="-1.5001" width="0.127" layer="21"/>
<wire x1="3.54" y1="-1.5001" x2="3.54" y2="1.5001" width="0.127" layer="21"/>
<wire x1="3.54" y1="1.5001" x2="6.54" y2="1.5001" width="0.127" layer="21"/>
<wire x1="1.54" y1="-2.5001" x2="1.54" y2="-1" width="0.127" layer="21"/>
<wire x1="1.54" y1="-1" x2="1.54" y2="1" width="0.127" layer="21"/>
<wire x1="1.54" y1="1" x2="1.54" y2="2.5001" width="0.127" layer="21"/>
<wire x1="1.0399" y1="-2" x2="-6.9601" y2="-2" width="0.127" layer="21"/>
<wire x1="-6.9601" y1="-2" x2="-6.9601" y2="2" width="0.127" layer="21"/>
<wire x1="-6.9601" y1="2" x2="1.0399" y2="2" width="0.127" layer="21"/>
<wire x1="1.0399" y1="2" x2="1.0399" y2="1" width="0.127" layer="21"/>
<wire x1="1.0399" y1="1" x2="1.0399" y2="-1" width="0.127" layer="21"/>
<wire x1="1.0399" y1="-1" x2="1.0399" y2="-2" width="0.127" layer="21"/>
<wire x1="1.54" y1="-2.5001" x2="-7.46" y2="-2.5001" width="0.127" layer="21"/>
<wire x1="-7.46" y1="-2.5001" x2="-7.46" y2="2.5001" width="0.127" layer="21"/>
<wire x1="-7.46" y1="2.5001" x2="1.54" y2="2.5001" width="0.127" layer="21"/>
<wire x1="1.0399" y1="-1" x2="1.54" y2="-1" width="0.127" layer="21"/>
<wire x1="1.0399" y1="1" x2="1.54" y2="1" width="0.127" layer="21"/>
<circle x="-2.46" y="0" radius="0.5723" width="0.127" layer="102"/>
<circle x="2.54" y="0" radius="0.5724" width="0.127" layer="102"/>
<pad name="1" x="2.54" y="0" drill="1.3" diameter="3.81" shape="square"/>
<pad name="A1" x="-2.46" y="0" drill="1.3" diameter="3.81" shape="square"/>
<text x="10.4775" y="0.3175" size="1.6764" layer="25">&gt;Name</text>
<text x="10.4775" y="-1.905" size="1.6764" layer="27">&gt;Value</text>
</package>
</packages>
<symbols>
<symbol name="WAGO">
<wire x1="-2.54" y1="2.54" x2="-2.54" y2="-2.54" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-2.54" x2="7.62" y2="-2.54" width="0.254" layer="94"/>
<wire x1="7.62" y1="-2.54" x2="7.62" y2="2.54" width="0.254" layer="94"/>
<wire x1="7.62" y1="2.54" x2="-2.54" y2="2.54" width="0.254" layer="94"/>
<pin name="P$1" x="7.62" y="0" visible="off" length="point" direction="pas"/>
<text x="-2.54" y="0" size="1.27" layer="95">&gt;NAME</text>
<text x="-2.54" y="-2.54" size="1.27" layer="95">&gt;VALUE</text>
</symbol>
</symbols>
<devicesets>
<deviceset name="WAGO256" prefix="SV" uservalue="yes">
<description>WAGO256</description>
<gates>
<gate name="G$1" symbol="WAGO" x="-2.54" y="0"/>
</gates>
<devices>
<device name="" package="WAGO256">
<connects>
<connect gate="G$1" pin="P$1" pad="1 A1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="moje_hrebinky">
<description>&lt;b&gt;Pin Headers&lt;/b&gt;&lt;p&gt;
Naming:&lt;p&gt;
MA = male&lt;p&gt;
# contacts - # rows&lt;p&gt;
W = angled&lt;p&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="MA03-2">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
<wire x1="-3.175" y1="2.54" x2="-1.905" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-1.905" y1="2.54" x2="-1.27" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="1.905" x2="-0.635" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-0.635" y1="2.54" x2="0.635" y2="2.54" width="0.1524" layer="21"/>
<wire x1="0.635" y1="2.54" x2="1.27" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-3.175" y1="2.54" x2="-3.81" y2="1.905" width="0.1524" layer="21"/>
<wire x1="1.27" y1="1.905" x2="1.905" y2="2.54" width="0.1524" layer="21"/>
<wire x1="1.905" y1="2.54" x2="3.175" y2="2.54" width="0.1524" layer="21"/>
<wire x1="3.175" y1="2.54" x2="3.81" y2="1.905" width="0.1524" layer="21"/>
<wire x1="3.81" y1="1.905" x2="3.81" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="-1.905" x2="-1.905" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="1.27" y1="-1.905" x2="0.635" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="0.635" y1="-2.54" x2="-0.635" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-0.635" y1="-2.54" x2="-1.27" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="-3.81" y1="1.905" x2="-3.81" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="-3.81" y1="-1.905" x2="-3.175" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-1.905" y1="-2.54" x2="-3.175" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="3.81" y1="-1.905" x2="3.175" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="3.175" y1="-2.54" x2="1.905" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="1.905" y1="-2.54" x2="1.27" y2="-1.905" width="0.1524" layer="21"/>
<pad name="1" x="-2.54" y="-1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="3" x="0" y="-1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="5" x="2.54" y="-1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="2" x="-2.54" y="1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="4" x="0" y="1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="6" x="2.54" y="1.27" drill="0.889" diameter="1.651" shape="square"/>
<text x="-3.81" y="2.921" size="1.27" layer="25" ratio="10">&gt;NAME</text>
<text x="-1.27" y="-4.191" size="1.27" layer="27" ratio="10">&gt;VALUE</text>
<rectangle x1="-0.254" y1="-1.524" x2="0.254" y2="-1.016" layer="51"/>
<rectangle x1="-2.794" y1="-1.524" x2="-2.286" y2="-1.016" layer="51"/>
<rectangle x1="2.286" y1="-1.524" x2="2.794" y2="-1.016" layer="51"/>
<rectangle x1="-2.794" y1="1.016" x2="-2.286" y2="1.524" layer="51"/>
<rectangle x1="-0.254" y1="1.016" x2="0.254" y2="1.524" layer="51"/>
<rectangle x1="2.286" y1="1.016" x2="2.794" y2="1.524" layer="51"/>
</package>
<package name="MA01-1">
<wire x1="-0.635" y1="1.27" x2="0.635" y2="1.27" width="0.1524" layer="21"/>
<wire x1="0.635" y1="1.27" x2="1.27" y2="0.635" width="0.1524" layer="21"/>
<wire x1="1.27" y1="-0.635" x2="0.635" y2="-1.27" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="0.635" x2="-1.27" y2="-0.635" width="0.1524" layer="21"/>
<wire x1="-0.635" y1="1.27" x2="-1.27" y2="0.635" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="-0.635" x2="-0.635" y2="-1.27" width="0.1524" layer="21"/>
<wire x1="0.635" y1="-1.27" x2="-0.635" y2="-1.27" width="0.1524" layer="21"/>
<wire x1="1.27" y1="0.635" x2="1.27" y2="-0.635" width="0.1524" layer="21"/>
<pad name="1" x="0" y="0" drill="0.889" diameter="1.651" shape="square" rot="R90"/>
<text x="-1.27" y="1.651" size="1.27" layer="25" ratio="10">&gt;NAME</text>
<text x="-1.27" y="-2.921" size="1.27" layer="27" ratio="10">&gt;VALUE</text>
<rectangle x1="-0.254" y1="-0.254" x2="0.254" y2="0.254" layer="51"/>
</package>
<package name="MA05-2">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
<wire x1="-5.715" y1="2.54" x2="-4.445" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-4.445" y1="2.54" x2="-3.81" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-3.81" y1="1.905" x2="-3.175" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-3.175" y1="2.54" x2="-1.905" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-1.905" y1="2.54" x2="-1.27" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-5.715" y1="2.54" x2="-6.35" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="1.905" x2="-0.635" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-0.635" y1="2.54" x2="0.635" y2="2.54" width="0.1524" layer="21"/>
<wire x1="0.635" y1="2.54" x2="1.27" y2="1.905" width="0.1524" layer="21"/>
<wire x1="1.905" y1="2.54" x2="3.175" y2="2.54" width="0.1524" layer="21"/>
<wire x1="3.175" y1="2.54" x2="3.81" y2="1.905" width="0.1524" layer="21"/>
<wire x1="3.81" y1="1.905" x2="4.445" y2="2.54" width="0.1524" layer="21"/>
<wire x1="4.445" y1="2.54" x2="5.715" y2="2.54" width="0.1524" layer="21"/>
<wire x1="1.905" y1="2.54" x2="1.27" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-3.81" y1="-1.905" x2="-4.445" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="-1.905" x2="-1.905" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-1.905" y1="-2.54" x2="-3.175" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-3.175" y1="-2.54" x2="-3.81" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="-6.35" y1="1.905" x2="-6.35" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="-6.35" y1="-1.905" x2="-5.715" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-4.445" y1="-2.54" x2="-5.715" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="1.27" y1="-1.905" x2="0.635" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="0.635" y1="-2.54" x2="-0.635" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-0.635" y1="-2.54" x2="-1.27" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="3.81" y1="-1.905" x2="3.175" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="5.715" y1="-2.54" x2="4.445" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="4.445" y1="-2.54" x2="3.81" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="1.27" y1="-1.905" x2="1.905" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="3.175" y1="-2.54" x2="1.905" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="6.35" y1="1.905" x2="6.35" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="5.715" y1="2.54" x2="6.35" y2="1.905" width="0.1524" layer="21"/>
<wire x1="6.35" y1="-1.905" x2="5.715" y2="-2.54" width="0.1524" layer="21"/>
<pad name="1" x="-5.08" y="-1.27" drill="0.9144" diameter="1.651" shape="square"/>
<pad name="3" x="-2.54" y="-1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="5" x="0" y="-1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="7" x="2.54" y="-1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="9" x="5.08" y="-1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="2" x="-5.08" y="1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="4" x="-2.54" y="1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="6" x="0" y="1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="8" x="2.54" y="1.27" drill="0.889" diameter="1.651" shape="square"/>
<pad name="10" x="5.08" y="1.27" drill="0.889" diameter="1.651" shape="square"/>
<text x="-6.35" y="2.921" size="1.27" layer="25" ratio="10">&gt;NAME</text>
<text x="0" y="-4.191" size="1.27" layer="27" ratio="10">&gt;VALUE</text>
<rectangle x1="-2.794" y1="-1.524" x2="-2.286" y2="-1.016" layer="51"/>
<rectangle x1="-5.334" y1="-1.524" x2="-4.826" y2="-1.016" layer="51"/>
<rectangle x1="-0.254" y1="-1.524" x2="0.254" y2="-1.016" layer="51"/>
<rectangle x1="4.826" y1="-1.524" x2="5.334" y2="-1.016" layer="51"/>
<rectangle x1="2.286" y1="-1.524" x2="2.794" y2="-1.016" layer="51"/>
<rectangle x1="-5.334" y1="1.016" x2="-4.826" y2="1.524" layer="51"/>
<rectangle x1="-2.794" y1="1.016" x2="-2.286" y2="1.524" layer="51"/>
<rectangle x1="-0.254" y1="1.016" x2="0.254" y2="1.524" layer="51"/>
<rectangle x1="2.286" y1="1.016" x2="2.794" y2="1.524" layer="51"/>
<rectangle x1="4.826" y1="1.016" x2="5.334" y2="1.524" layer="51"/>
<circle x="-6.35" y="-2.54" radius="0.127" width="0.127" layer="21"/>
</package>
</packages>
<symbols>
<symbol name="MA01-0">
<wire x1="-3.81" y1="0" x2="-2.54" y2="0" width="0.6096" layer="94"/>
<pin name="P$1" x="0" y="0" visible="off" length="short" direction="pas" rot="R180"/>
<text x="-3.429" y="1.143" size="1.778" layer="95">&gt;NAME</text>
</symbol>
<symbol name="MA01-1">
<wire x1="1.27" y1="0" x2="2.54" y2="0" width="0.6096" layer="94"/>
<wire x1="-2.54" y1="0" x2="-1.27" y2="0" width="0.6096" layer="94"/>
<text x="-2.54" y="-2.54" size="1.778" layer="96">&gt;VALUE</text>
<text x="-2.54" y="0.762" size="1.778" layer="95">&gt;NAME</text>
<wire x1="-2.54" y1="0" x2="2.54" y2="0" width="0.254" layer="94"/>
<pin name="K" x="-5.08" y="0" visible="off" length="middle" direction="pas"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="MA03-2" prefix="SV" uservalue="yes">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
<gates>
<gate name="-1" symbol="MA01-1" x="0" y="7.62"/>
<gate name="-2" symbol="MA01-1" x="0" y="-2.54"/>
<gate name="-3" symbol="MA01-1" x="0" y="-12.7"/>
</gates>
<devices>
<device name="" package="MA03-2">
<connects>
<connect gate="-1" pin="K" pad="1 2"/>
<connect gate="-2" pin="K" pad="3 4"/>
<connect gate="-3" pin="K" pad="5 6"/>
</connects>
<technologies>
<technology name="">
<attribute name="MF" value="" constant="no"/>
<attribute name="MPN" value="" constant="no"/>
<attribute name="OC_FARNELL" value="unknown" constant="no"/>
<attribute name="OC_NEWARK" value="unknown" constant="no"/>
</technology>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="MA01-1" prefix="SV" uservalue="yes">
<gates>
<gate name="G$1" symbol="MA01-0" x="2.54" y="0"/>
</gates>
<devices>
<device name="" package="MA01-1">
<connects>
<connect gate="G$1" pin="P$1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="MA05-3" prefix="SV" uservalue="yes">
<gates>
<gate name="-1" symbol="MA01-0" x="-7.62" y="12.7"/>
<gate name="-2" symbol="MA01-0" x="-7.62" y="7.62"/>
<gate name="-3" symbol="MA01-0" x="-7.62" y="2.54"/>
<gate name="-4" symbol="MA01-0" x="-7.62" y="-2.54"/>
<gate name="-5" symbol="MA01-0" x="-7.62" y="-7.62"/>
<gate name="-6" symbol="MA01-0" x="-7.62" y="-12.7"/>
<gate name="-7" symbol="MA01-0" x="-7.62" y="-17.78"/>
<gate name="-8" symbol="MA01-0" x="-7.62" y="-22.86"/>
<gate name="-9" symbol="MA01-0" x="-7.62" y="-27.94"/>
<gate name="-10" symbol="MA01-0" x="-7.62" y="-33.02"/>
</gates>
<devices>
<device name="" package="MA05-2">
<connects>
<connect gate="-1" pin="P$1" pad="1"/>
<connect gate="-10" pin="P$1" pad="10"/>
<connect gate="-2" pin="P$1" pad="2"/>
<connect gate="-3" pin="P$1" pad="3"/>
<connect gate="-4" pin="P$1" pad="4"/>
<connect gate="-5" pin="P$1" pad="5"/>
<connect gate="-6" pin="P$1" pad="6"/>
<connect gate="-7" pin="P$1" pad="7"/>
<connect gate="-8" pin="P$1" pad="8"/>
<connect gate="-9" pin="P$1" pad="9"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="moje_schz">
<packages>
</packages>
<symbols>
<symbol name="GND">
<wire x1="-1.7463" y1="-2.5401" x2="1.7463" y2="-2.5401" width="0.6096" layer="94"/>
<pin name="GND" x="0" y="0" visible="off" length="short" direction="sup" rot="R270"/>
</symbol>
<symbol name="+VCC">
<wire x1="-1.27" y1="0.635" x2="0" y2="2.54" width="0.254" layer="94"/>
<wire x1="0" y1="2.54" x2="1.27" y2="0.635" width="0.254" layer="94"/>
<wire x1="0" y1="0.0001" x2="0" y2="2.54" width="0.1524" layer="94"/>
<text x="0.9525" y="3.175" size="1.778" layer="96" rot="R90">&gt;Value</text>
<pin name="+VCC" x="0" y="-2.54" visible="off" length="short" direction="sup" rot="R90"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="GND">
<gates>
<gate name="G$1" symbol="GND" x="0" y="0"/>
</gates>
<devices>
<device name="">
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="+VCC">
<gates>
<gate name="G$2" symbol="+VCC" x="0" y="0"/>
</gates>
<devices>
<device name="">
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="moje_R">
<packages>
<package name="0805">
<wire x1="-0.41" y1="0.635" x2="0.41" y2="0.635" width="0.1524" layer="51"/>
<wire x1="-0.41" y1="-0.635" x2="0.41" y2="-0.635" width="0.1524" layer="51"/>
<smd name="1" x="-0.95" y="0" dx="1.3" dy="1.5" layer="1"/>
<smd name="2" x="0.95" y="0" dx="1.3" dy="1.5" layer="1"/>
<text x="-0.635" y="1.27" size="1.27" layer="25">&gt;NAME</text>
<text x="-0.635" y="-2.54" size="1.27" layer="27">&gt;VALUE</text>
<rectangle x1="0.4064" y1="-0.6985" x2="1.0564" y2="0.7015" layer="51"/>
<rectangle x1="-1.0668" y1="-0.6985" x2="-0.4168" y2="0.7015" layer="51"/>
</package>
</packages>
<symbols>
<symbol name="1206">
<wire x1="-2.54" y1="-0.889" x2="2.54" y2="-0.889" width="0.254" layer="94"/>
<wire x1="2.54" y1="0.889" x2="-2.54" y2="0.889" width="0.254" layer="94"/>
<wire x1="2.54" y1="-0.889" x2="2.54" y2="0.889" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-0.889" x2="-2.54" y2="0.889" width="0.254" layer="94"/>
<text x="-3.81" y="1.4986" size="1.778" layer="95">&gt;NAME</text>
<text x="-3.81" y="-3.302" size="1.778" layer="96">&gt;VALUE</text>
<pin name="2" x="5.08" y="0" visible="off" length="short" direction="pas" swaplevel="1" rot="R180"/>
<pin name="1" x="-5.08" y="0" visible="off" length="short" direction="pas" swaplevel="1"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="R0805" prefix="R" uservalue="yes">
<gates>
<gate name="G$1" symbol="1206" x="0" y="0"/>
</gates>
<devices>
<device name="" package="0805">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="moje_C">
<packages>
<package name="C">
<wire x1="-3.0163" y1="1.5875" x2="3.0163" y2="1.5875" width="0.127" layer="21"/>
<wire x1="3.0163" y1="1.5875" x2="3.0163" y2="-1.5875" width="0.127" layer="21"/>
<wire x1="3.0163" y1="-1.5875" x2="-3.0163" y2="-1.5875" width="0.127" layer="21"/>
<wire x1="-3.0163" y1="-1.5875" x2="-3.0163" y2="1.5875" width="0.127" layer="21"/>
<wire x1="1.5875" y1="-0.3175" x2="1.5875" y2="0.3175" width="0.127" layer="21"/>
<wire x1="1.27" y1="0" x2="1.905" y2="0" width="0.127" layer="21"/>
<smd name="+" x="2.525" y="0" dx="2.55" dy="2.5" layer="1"/>
<smd name="-" x="-2.525" y="0" dx="2.55" dy="2.5" layer="1"/>
<text x="-2.54" y="1.905" size="1.27" layer="25">&gt;Name</text>
<text x="-2.8575" y="-3.175" size="1.27" layer="27">&gt;Value</text>
</package>
<package name="C0805">
<wire x1="-0.381" y1="0.66" x2="0.381" y2="0.66" width="0.1016" layer="51"/>
<wire x1="-0.356" y1="-0.66" x2="0.381" y2="-0.66" width="0.1016" layer="51"/>
<smd name="1" x="-0.95" y="0" dx="1.3" dy="1.5" layer="1"/>
<smd name="2" x="0.95" y="0" dx="1.3" dy="1.5" layer="1"/>
<text x="-1.27" y="1.27" size="1.27" layer="25">&gt;NAME</text>
<text x="-1.27" y="-2.54" size="1.27" layer="27">&gt;VALUE</text>
<rectangle x1="-1.0922" y1="-0.7239" x2="-0.3421" y2="0.7262" layer="51"/>
<rectangle x1="0.3556" y1="-0.7239" x2="1.1057" y2="0.7262" layer="51"/>
</package>
</packages>
<symbols>
<symbol name="C_EL">
<wire x1="-2.5473" y1="0.9547" x2="-1.2753" y2="0.9547" width="0.155" layer="94"/>
<wire x1="-1.9112" y1="1.5908" x2="-1.9112" y2="0.3188" width="0.155" layer="94"/>
<wire x1="-0.7938" y1="1.7463" x2="-0.1588" y2="1.7463" width="0.254" layer="94"/>
<wire x1="-0.1588" y1="1.7463" x2="-0.1588" y2="-1.5875" width="0.254" layer="94"/>
<wire x1="-0.1588" y1="-1.5875" x2="-0.7938" y2="-1.5875" width="0.254" layer="94"/>
<wire x1="-0.7938" y1="-1.5875" x2="-0.7938" y2="0" width="0.254" layer="94"/>
<wire x1="-0.7938" y1="0" x2="-0.7938" y2="1.7463" width="0.254" layer="94"/>
<wire x1="-1.27" y1="0" x2="-0.7938" y2="0" width="0.152" layer="94"/>
<wire x1="0.7937" y1="0" x2="1.27" y2="0" width="0.152" layer="94"/>
<text x="1.5875" y="0.635" size="1.6764" layer="95">&gt;Name</text>
<text x="1.5875" y="-0.635" size="1.6764" layer="96" rot="MR180">&gt;Value</text>
<rectangle x1="0.3175" y1="-1.7463" x2="0.9525" y2="1.905" layer="94"/>
<pin name="C_EL+" x="-2.54" y="0" visible="off" length="point" direction="pas"/>
<pin name="C_EL-" x="2.54" y="0" visible="off" length="point" direction="pas" rot="R180"/>
<wire x1="-1.27" y1="0" x2="-2.54" y2="0" width="0.127" layer="94"/>
<wire x1="1.27" y1="0" x2="2.54" y2="0" width="0.127" layer="94"/>
</symbol>
<symbol name="C">
<wire x1="0" y1="1.27" x2="0" y2="0.762" width="0.1524" layer="94"/>
<wire x1="0" y1="-1.27" x2="0" y2="-0.762" width="0.1524" layer="94"/>
<text x="1.524" y="1.651" size="1.778" layer="95">&gt;NAME</text>
<text x="1.524" y="-3.429" size="1.778" layer="96">&gt;VALUE</text>
<rectangle x1="-2.032" y1="-0.762" x2="2.032" y2="-0.254" layer="94"/>
<rectangle x1="-2.032" y1="0.254" x2="2.032" y2="0.762" layer="94"/>
<pin name="1" x="0" y="2.54" visible="off" length="point" direction="pas" swaplevel="1" rot="R270"/>
<pin name="2" x="0" y="-2.54" visible="off" length="point" direction="pas" swaplevel="1" rot="R90"/>
<wire x1="0" y1="-1.27" x2="0" y2="-2.54" width="0.127" layer="94"/>
<wire x1="0" y1="1.27" x2="0" y2="2.54" width="0.127" layer="94"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="C" prefix="C" uservalue="yes">
<gates>
<gate name="G$1" symbol="C_EL" x="0" y="0"/>
</gates>
<devices>
<device name="" package="C">
<connects>
<connect gate="G$1" pin="C_EL+" pad="+"/>
<connect gate="G$1" pin="C_EL-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="C0805" prefix="C" uservalue="yes">
<gates>
<gate name="G$1" symbol="C" x="0" y="0"/>
</gates>
<devices>
<device name="" package="C0805">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="moje">
<packages>
<package name="SROUB3M">
<pad name="P$1" x="0" y="0" drill="3.2" diameter="6.4516"/>
</package>
<package name="SMA">
<description>SMA</description>
<wire x1="-2.2225" y1="0.635" x2="2.2225" y2="0.635" width="0.127" layer="51"/>
<wire x1="-2.2225" y1="-0.635" x2="2.2225" y2="-0.635" width="0.127" layer="51"/>
<wire x1="0.3175" y1="0" x2="-0.3175" y2="0.4763" width="0.127" layer="21"/>
<wire x1="-0.3175" y1="0.4763" x2="-0.3175" y2="0" width="0.127" layer="21"/>
<wire x1="-0.3175" y1="0" x2="-0.3175" y2="-0.4763" width="0.127" layer="21"/>
<wire x1="-0.3175" y1="-0.4763" x2="0.3175" y2="0" width="0.127" layer="21"/>
<wire x1="0.3175" y1="0" x2="0.3175" y2="0.4763" width="0.127" layer="21"/>
<wire x1="0.3175" y1="0" x2="0.3175" y2="-0.4763" width="0.127" layer="21"/>
<wire x1="-0.3175" y1="0" x2="-1.1113" y2="0" width="0.127" layer="21"/>
<wire x1="0.3175" y1="0" x2="1.1113" y2="0" width="0.127" layer="21"/>
<smd name="A" x="-2.05" y="0" dx="1.8" dy="1.7" layer="1"/>
<smd name="K" x="2.05" y="0" dx="1.8" dy="1.7" layer="1"/>
<text x="-3.175" y="1.5875" size="1.27" layer="25">&gt;NAME</text>
<text x="-3.175" y="-2.8575" size="1.27" layer="27">&gt;VALUE</text>
<rectangle x1="-2.3813" y1="-0.635" x2="-1.5875" y2="0.635" layer="51"/>
<rectangle x1="1.5875" y1="-0.635" x2="2.3813" y2="0.635" layer="51"/>
</package>
</packages>
<symbols>
<symbol name="SROUB">
<circle x="0" y="0" radius="2" width="0.254" layer="94"/>
<wire x1="-2.54" y1="0" x2="-2.032" y2="0" width="0.1778" layer="94"/>
<text x="-2.54" y="2.54" size="1.778" layer="95">&gt;name</text>
<pin name="P$1" x="-7.62" y="0" visible="off" length="middle"/>
</symbol>
<symbol name="D-OB.">
<wire x1="-1.27" y1="-1.27" x2="1.27" y2="0" width="0.254" layer="94"/>
<wire x1="1.27" y1="0" x2="-1.27" y2="1.27" width="0.254" layer="94"/>
<wire x1="1.27" y1="1.27" x2="1.27" y2="0" width="0.254" layer="94"/>
<wire x1="-1.27" y1="1.27" x2="-1.27" y2="-1.27" width="0.254" layer="94"/>
<wire x1="1.27" y1="0" x2="1.27" y2="-1.27" width="0.254" layer="94"/>
<text x="-2.54" y="2.54" size="1.778" layer="95">&gt;NAME</text>
<text x="-2.54" y="-3.81" size="1.778" layer="96">&gt;VALUE</text>
<pin name="A" x="-2.54" y="0" visible="off" length="short" direction="pas"/>
<pin name="C" x="2.54" y="0" visible="off" length="short" direction="pas" rot="R180"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="SROUB3M" prefix="X">
<gates>
<gate name="P4" symbol="SROUB" x="0" y="0"/>
</gates>
<devices>
<device name="" package="SROUB3M">
<connects>
<connect gate="P4" pin="P$1" pad="P$1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="D-OB.SMA" prefix="D" uservalue="yes">
<description>SMA</description>
<gates>
<gate name="G$1" symbol="D-OB." x="0" y="0"/>
</gates>
<devices>
<device name="" package="SMA">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="K"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
<class number="0" name="default" width="0" drill="0">
</class>
</classes>
<parts>
<part name="U1" library="moje_io" deviceset="DRV8835" device="" value="BRV8835"/>
<part name="SV1" library="moje_konektory" deviceset="WAGO256" device=""/>
<part name="SV2" library="moje_konektory" deviceset="WAGO256" device=""/>
<part name="SV3" library="moje_konektory" deviceset="WAGO256" device=""/>
<part name="SV4" library="moje_konektory" deviceset="WAGO256" device=""/>
<part name="R1" library="moje_R" deviceset="R0805" device="" value="22k"/>
<part name="R2" library="moje_R" deviceset="R0805" device="" value="22k"/>
<part name="U$9" library="moje_schz" deviceset="GND" device=""/>
<part name="U$10" library="moje_schz" deviceset="GND" device=""/>
<part name="U$11" library="moje_schz" deviceset="+VCC" device=""/>
<part name="U$13" library="moje_schz" deviceset="GND" device=""/>
<part name="U$14" library="moje_schz" deviceset="GND" device=""/>
<part name="SV7" library="moje_konektory" deviceset="WAGO256" device=""/>
<part name="SV8" library="moje_konektory" deviceset="WAGO256" device=""/>
<part name="C1" library="moje_C" deviceset="C" device="" value="47uF/16V"/>
<part name="C2" library="moje_C" deviceset="C0805" device="" value="100nF"/>
<part name="U$16" library="moje_schz" deviceset="GND" device=""/>
<part name="U$17" library="moje_schz" deviceset="GND" device=""/>
<part name="C4" library="moje_C" deviceset="C0805" device="" value="100nF"/>
<part name="SV9" library="moje_hrebinky" deviceset="MA03-2" device=""/>
<part name="SV10" library="moje_hrebinky" deviceset="MA01-1" device=""/>
<part name="U$21" library="moje_schz" deviceset="+VCC" device=""/>
<part name="U$22" library="moje_schz" deviceset="GND" device=""/>
<part name="X1" library="moje" deviceset="SROUB3M" device=""/>
<part name="X2" library="moje" deviceset="SROUB3M" device=""/>
<part name="X3" library="moje" deviceset="SROUB3M" device=""/>
<part name="X4" library="moje" deviceset="SROUB3M" device=""/>
<part name="U$23" library="moje_schz" deviceset="GND" device=""/>
<part name="U$15" library="moje_schz" deviceset="GND" device=""/>
<part name="D1" library="moje" deviceset="D-OB.SMA" device="" value="M4"/>
<part name="D2" library="moje" deviceset="D-OB.SMA" device="" value="M4"/>
<part name="U$1" library="moje_schz" deviceset="+VCC" device=""/>
<part name="SV5" library="moje_hrebinky" deviceset="MA05-3" device=""/>
</parts>
<sheets>
<sheet>
<plain>
<text x="96.52" y="68.58" size="1.778" layer="97" rot="R90">AIN1/APHASE</text>
<text x="86.36" y="68.58" size="1.778" layer="97" rot="R90">AIN2/AENBL</text>
<text x="76.2" y="68.58" size="1.778" layer="97" rot="R90">BIN1/BPHASE</text>
<text x="66.04" y="68.58" size="1.778" layer="97" rot="R90">BIN2/BENBL</text>
<text x="57.15" y="60.96" size="1.778" layer="97" rot="R90">MODE</text>
<text x="-19.05" y="76.2" size="1.778" layer="97">MOTOR POWER</text>
<text x="7.62" y="55.88" size="1.778" layer="91">VM</text>
<text x="-27.94" y="-6.35" size="1.778" layer="91">VM</text>
<wire x1="-7.62" y1="35.56" x2="-7.62" y2="30.48" width="0.1524" layer="97"/>
<wire x1="0" y1="30.48" x2="0" y2="25.4" width="0.1524" layer="97"/>
</plain>
<instances>
<instance part="U1" gate="G$1" x="25.4" y="30.48"/>
<instance part="SV1" gate="G$1" x="2.54" y="71.12" rot="R270"/>
<instance part="SV2" gate="G$1" x="-22.86" y="71.12" rot="R270"/>
<instance part="SV3" gate="G$1" x="-20.32" y="22.86"/>
<instance part="SV4" gate="G$1" x="-20.32" y="27.94"/>
<instance part="R1" gate="G$1" x="52.07" y="45.72" rot="R90"/>
<instance part="R2" gate="G$1" x="59.69" y="45.72" rot="R90"/>
<instance part="U$9" gate="G$1" x="59.69" y="38.1"/>
<instance part="U$10" gate="G$1" x="52.07" y="38.1"/>
<instance part="U$11" gate="G$2" x="52.07" y="73.66"/>
<instance part="U$13" gate="G$1" x="-22.86" y="54.61"/>
<instance part="U$14" gate="G$1" x="2.54" y="15.24"/>
<instance part="SV7" gate="G$1" x="-20.32" y="33.02"/>
<instance part="SV8" gate="G$1" x="-20.32" y="38.1"/>
<instance part="C1" gate="G$1" x="-1.27" y="50.8" smashed="yes" rot="R270">
<attribute name="NAME" x="-0.635" y="49.2125" size="1.6764" layer="95" rot="R270"/>
<attribute name="VALUE" x="-4.445" y="54.2925" size="1.6764" layer="96" rot="MR270"/>
</instance>
<instance part="C2" gate="G$1" x="-16.51" y="50.8"/>
<instance part="U$16" gate="G$1" x="-16.51" y="45.72"/>
<instance part="U$17" gate="G$1" x="-1.27" y="45.72"/>
<instance part="C4" gate="G$1" x="41.91" y="55.88" rot="R270"/>
<instance part="SV9" gate="-1" x="-10.16" y="-1.27" rot="R180"/>
<instance part="SV9" gate="-2" x="-10.16" y="-6.35" rot="R180"/>
<instance part="SV9" gate="-3" x="-10.16" y="-11.43" rot="R180"/>
<instance part="SV10" gate="G$1" x="-17.78" y="-6.35" smashed="yes" rot="R180">
<attribute name="NAME" x="-22.479" y="-9.017" size="1.778" layer="95"/>
</instance>
<instance part="U$21" gate="G$2" x="17.78" y="-3.81"/>
<instance part="U$22" gate="G$1" x="35.56" y="50.8"/>
<instance part="X1" gate="P4" x="40.64" y="-15.24"/>
<instance part="X2" gate="P4" x="40.64" y="-7.62"/>
<instance part="X3" gate="P4" x="40.64" y="0"/>
<instance part="X4" gate="P4" x="40.64" y="7.62"/>
<instance part="U$23" gate="G$1" x="33.02" y="-17.78"/>
<instance part="U$15" gate="G$1" x="0" y="-16.51"/>
<instance part="D1" gate="G$1" x="-10.16" y="60.96"/>
<instance part="D2" gate="G$1" x="10.16" y="-11.43" rot="R90"/>
<instance part="U$1" gate="G$2" x="46.99" y="60.96"/>
<instance part="SV5" gate="-1" x="66.04" y="63.5"/>
<instance part="SV5" gate="-2" x="66.04" y="58.42"/>
<instance part="SV5" gate="-3" x="86.36" y="63.5"/>
<instance part="SV5" gate="-4" x="86.36" y="58.42"/>
<instance part="SV5" gate="-5" x="76.2" y="63.5"/>
<instance part="SV5" gate="-6" x="76.2" y="58.42"/>
<instance part="SV5" gate="-7" x="96.52" y="63.5"/>
<instance part="SV5" gate="-8" x="96.52" y="58.42"/>
<instance part="SV5" gate="-9" x="52.07" y="59.69" rot="R270"/>
<instance part="SV5" gate="-10" x="52.07" y="68.58" rot="R90"/>
</instances>
<busses>
</busses>
<nets>
<net name="+VCC" class="0">
<segment>
<pinref part="SV9" gate="-2" pin="K"/>
<wire x1="-5.08" y1="-6.35" x2="10.16" y2="-6.35" width="0.1524" layer="91"/>
<pinref part="U$21" gate="G$2" pin="+VCC"/>
<pinref part="D2" gate="G$1" pin="C"/>
<wire x1="10.16" y1="-6.35" x2="17.78" y2="-6.35" width="0.1524" layer="91"/>
<wire x1="10.16" y1="-8.89" x2="10.16" y2="-6.35" width="0.1524" layer="91"/>
<junction x="10.16" y="-6.35"/>
</segment>
<segment>
<wire x1="46.99" y1="55.88" x2="59.69" y2="55.88" width="0.1524" layer="91"/>
<wire x1="59.69" y1="50.8" x2="59.69" y2="55.88" width="0.1524" layer="91"/>
<pinref part="R2" gate="G$1" pin="2"/>
<wire x1="46.99" y1="55.88" x2="46.99" y2="43.18" width="0.1524" layer="91"/>
<pinref part="U1" gate="G$1" pin="VCC"/>
<wire x1="46.99" y1="43.18" x2="45.72" y2="43.18" width="0.1524" layer="91"/>
<pinref part="C4" gate="G$1" pin="1"/>
<wire x1="44.45" y1="55.88" x2="46.99" y2="55.88" width="0.1524" layer="91"/>
<junction x="46.99" y="55.88"/>
<pinref part="U$1" gate="G$2" pin="+VCC"/>
<wire x1="46.99" y1="55.88" x2="46.99" y2="58.42" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="U$11" gate="G$2" pin="+VCC"/>
<pinref part="SV5" gate="-10" pin="P$1"/>
<wire x1="52.07" y1="68.58" x2="52.07" y2="71.12" width="0.1524" layer="91"/>
</segment>
</net>
<net name="GND" class="0">
<segment>
<pinref part="R2" gate="G$1" pin="1"/>
<pinref part="U$9" gate="G$1" pin="GND"/>
<wire x1="59.69" y1="38.1" x2="59.69" y2="40.64" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R1" gate="G$1" pin="1"/>
<pinref part="U$10" gate="G$1" pin="GND"/>
<wire x1="52.07" y1="38.1" x2="52.07" y2="40.64" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="U$13" gate="G$1" pin="GND"/>
<pinref part="SV2" gate="G$1" pin="P$1"/>
<wire x1="-22.86" y1="54.61" x2="-22.86" y2="60.96" width="0.1524" layer="91"/>
<wire x1="-22.86" y1="60.96" x2="-22.86" y2="63.5" width="0.1524" layer="91"/>
<wire x1="-12.7" y1="60.96" x2="-22.86" y2="60.96" width="0.1524" layer="91"/>
<junction x="-22.86" y="60.96"/>
<pinref part="D1" gate="G$1" pin="A"/>
</segment>
<segment>
<pinref part="U1" gate="G$1" pin="GND"/>
<pinref part="U$14" gate="G$1" pin="GND"/>
<wire x1="5.08" y1="17.78" x2="2.54" y2="17.78" width="0.1524" layer="91"/>
<wire x1="2.54" y1="17.78" x2="2.54" y2="15.24" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="C2" gate="G$1" pin="2"/>
<pinref part="U$16" gate="G$1" pin="GND"/>
<wire x1="-16.51" y1="45.72" x2="-16.51" y2="48.26" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="C1" gate="G$1" pin="C_EL-"/>
<pinref part="U$17" gate="G$1" pin="GND"/>
<wire x1="-1.27" y1="45.72" x2="-1.27" y2="48.26" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="C4" gate="G$1" pin="2"/>
<pinref part="U$22" gate="G$1" pin="GND"/>
<wire x1="39.37" y1="55.88" x2="35.56" y2="55.88" width="0.1524" layer="91"/>
<wire x1="35.56" y1="55.88" x2="35.56" y2="50.8" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="X4" gate="P4" pin="P$1"/>
<wire x1="33.02" y1="7.62" x2="33.02" y2="0" width="0.1524" layer="91"/>
<pinref part="U$23" gate="G$1" pin="GND"/>
<pinref part="X1" gate="P4" pin="P$1"/>
<junction x="33.02" y="-15.24"/>
<wire x1="33.02" y1="0" x2="33.02" y2="-7.62" width="0.1524" layer="91"/>
<wire x1="33.02" y1="-7.62" x2="33.02" y2="-15.24" width="0.1524" layer="91"/>
<wire x1="33.02" y1="-15.24" x2="33.02" y2="-17.78" width="0.1524" layer="91"/>
<pinref part="X2" gate="P4" pin="P$1"/>
<junction x="33.02" y="-7.62"/>
<pinref part="X3" gate="P4" pin="P$1"/>
<junction x="33.02" y="0"/>
</segment>
<segment>
<pinref part="SV9" gate="-1" pin="K"/>
<wire x1="-5.08" y1="-1.27" x2="0" y2="-1.27" width="0.1524" layer="91"/>
<wire x1="0" y1="-1.27" x2="0" y2="-11.43" width="0.1524" layer="91"/>
<pinref part="SV9" gate="-3" pin="K"/>
<wire x1="0" y1="-11.43" x2="0" y2="-13.97" width="0.1524" layer="91"/>
<wire x1="0" y1="-13.97" x2="0" y2="-16.51" width="0.1524" layer="91"/>
<wire x1="-5.08" y1="-11.43" x2="0" y2="-11.43" width="0.1524" layer="91"/>
<wire x1="0" y1="-13.97" x2="10.16" y2="-13.97" width="0.1524" layer="91"/>
<junction x="0" y="-11.43"/>
<junction x="0" y="-13.97"/>
<pinref part="U$15" gate="G$1" pin="GND"/>
<pinref part="D2" gate="G$1" pin="A"/>
</segment>
</net>
<net name="N$8" class="0">
<segment>
<pinref part="U1" gate="G$1" pin="BIN2/BENBL"/>
<wire x1="71.12" y1="17.78" x2="45.72" y2="17.78" width="0.1524" layer="91"/>
<wire x1="71.12" y1="17.78" x2="71.12" y2="58.42" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-1" pin="P$1"/>
<wire x1="71.12" y1="58.42" x2="71.12" y2="63.5" width="0.1524" layer="91"/>
<wire x1="66.04" y1="63.5" x2="71.12" y2="63.5" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-2" pin="P$1"/>
<wire x1="66.04" y1="58.42" x2="71.12" y2="58.42" width="0.1524" layer="91"/>
<junction x="71.12" y="58.42"/>
</segment>
</net>
<net name="N$11" class="0">
<segment>
<pinref part="U1" gate="G$1" pin="AIN2/AENBL"/>
<wire x1="91.44" y1="63.5" x2="91.44" y2="58.42" width="0.1524" layer="91"/>
<wire x1="91.44" y1="58.42" x2="91.44" y2="27.94" width="0.1524" layer="91"/>
<wire x1="45.72" y1="27.94" x2="91.44" y2="27.94" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-3" pin="P$1"/>
<wire x1="86.36" y1="63.5" x2="91.44" y2="63.5" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-4" pin="P$1"/>
<wire x1="86.36" y1="58.42" x2="91.44" y2="58.42" width="0.1524" layer="91"/>
<junction x="91.44" y="58.42"/>
</segment>
</net>
<net name="N$13" class="0">
<segment>
<pinref part="U1" gate="G$1" pin="AIN1/APHASE"/>
<wire x1="45.72" y1="33.02" x2="101.6" y2="33.02" width="0.1524" layer="91"/>
<wire x1="101.6" y1="33.02" x2="101.6" y2="58.42" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-7" pin="P$1"/>
<wire x1="101.6" y1="58.42" x2="101.6" y2="63.5" width="0.1524" layer="91"/>
<wire x1="96.52" y1="63.5" x2="101.6" y2="63.5" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-8" pin="P$1"/>
<wire x1="96.52" y1="58.42" x2="101.6" y2="58.42" width="0.1524" layer="91"/>
<junction x="101.6" y="58.42"/>
</segment>
</net>
<net name="N$9" class="0">
<segment>
<pinref part="U1" gate="G$1" pin="MODE"/>
<wire x1="45.72" y1="38.1" x2="48.26" y2="38.1" width="0.1524" layer="91"/>
<wire x1="48.26" y1="38.1" x2="48.26" y2="50.8" width="0.1524" layer="91"/>
<pinref part="R1" gate="G$1" pin="2"/>
<wire x1="48.26" y1="50.8" x2="52.07" y2="50.8" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-9" pin="P$1"/>
<wire x1="52.07" y1="50.8" x2="52.07" y2="59.69" width="0.1524" layer="91"/>
<junction x="52.07" y="50.8"/>
</segment>
</net>
<net name="VN" class="0">
<segment>
<pinref part="U1" gate="G$1" pin="VN"/>
<wire x1="5.08" y1="43.18" x2="2.54" y2="43.18" width="0.1524" layer="91"/>
<wire x1="2.54" y1="43.18" x2="2.54" y2="55.88" width="0.1524" layer="91"/>
<pinref part="SV1" gate="G$1" pin="P$1"/>
<wire x1="2.54" y1="55.88" x2="2.54" y2="60.96" width="0.1524" layer="91"/>
<wire x1="2.54" y1="60.96" x2="2.54" y2="63.5" width="0.1524" layer="91"/>
<wire x1="2.54" y1="55.88" x2="7.62" y2="55.88" width="0.1524" layer="91"/>
<junction x="2.54" y="55.88"/>
<wire x1="-7.62" y1="60.96" x2="2.54" y2="60.96" width="0.1524" layer="91"/>
<junction x="2.54" y="60.96"/>
<pinref part="C2" gate="G$1" pin="1"/>
<wire x1="2.54" y1="55.88" x2="-1.27" y2="55.88" width="0.1524" layer="91"/>
<wire x1="-16.51" y1="53.34" x2="-16.51" y2="55.88" width="0.1524" layer="91"/>
<pinref part="C1" gate="G$1" pin="C_EL+"/>
<wire x1="-16.51" y1="55.88" x2="-1.27" y2="55.88" width="0.1524" layer="91"/>
<wire x1="-1.27" y1="55.88" x2="-1.27" y2="53.34" width="0.1524" layer="91"/>
<junction x="-1.27" y="55.88"/>
<pinref part="D1" gate="G$1" pin="C"/>
</segment>
<segment>
<pinref part="SV10" gate="G$1" pin="P$1"/>
<wire x1="-17.78" y1="-6.35" x2="-22.86" y2="-6.35" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$2" class="0">
<segment>
<pinref part="U1" gate="G$1" pin="BIN1/BPHASE"/>
<wire x1="45.72" y1="22.86" x2="81.28" y2="22.86" width="0.1524" layer="91"/>
<wire x1="81.28" y1="22.86" x2="81.28" y2="58.42" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-5" pin="P$1"/>
<wire x1="81.28" y1="58.42" x2="81.28" y2="63.5" width="0.1524" layer="91"/>
<wire x1="76.2" y1="63.5" x2="81.28" y2="63.5" width="0.1524" layer="91"/>
<pinref part="SV5" gate="-6" pin="P$1"/>
<wire x1="76.2" y1="58.42" x2="81.28" y2="58.42" width="0.1524" layer="91"/>
<junction x="81.28" y="58.42"/>
</segment>
</net>
<net name="N$1" class="0">
<segment>
<pinref part="U1" gate="G$1" pin="BOUT2"/>
<pinref part="SV3" gate="G$1" pin="P$1"/>
<wire x1="5.08" y1="22.86" x2="-12.7" y2="22.86" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$3" class="0">
<segment>
<pinref part="SV4" gate="G$1" pin="P$1"/>
<pinref part="U1" gate="G$1" pin="BOUT1"/>
<wire x1="-12.7" y1="27.94" x2="5.08" y2="27.94" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$4" class="0">
<segment>
<pinref part="SV7" gate="G$1" pin="P$1"/>
<pinref part="U1" gate="G$1" pin="AOUT2"/>
<wire x1="-12.7" y1="33.02" x2="5.08" y2="33.02" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$5" class="0">
<segment>
<pinref part="SV8" gate="G$1" pin="P$1"/>
<pinref part="U1" gate="G$1" pin="AOUT1"/>
<wire x1="-12.7" y1="38.1" x2="5.08" y2="38.1" width="0.1524" layer="91"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
</schematic>
</drawing>
</eagle>
/Modules/H_Bridge/HBSTEP01A/SW/Wiring/speed_control.pde
File deleted
/Modules/H_Bridge/HBSTEP01A/SW/Wiring/speed_control/build/speed_control.cpp
0,0 → 1,90
#include <SPI.h>
 
#include "WProgram.h"
void command(char* buffer, unsigned int len);
void goTo(unsigned int pos);
void setParam(unsigned int reg, unsigned int val, unsigned int len);
void setup();
int readInt();
void loop();
void command(char* buffer, unsigned int len)
{
for (int i = 0; i < len; i++) {
delay(10);
digitalWrite(SS, 0);
SPI.transfer(buffer[i]);
digitalWrite(SS, 1);
}
}
 
void goTo(unsigned int pos)
{
char buffer[4];
buffer[0] = 0x60;
buffer[1] = pos >> 16;
buffer[2] = (pos >> 8) & 0xff;
buffer[3] = pos & 0xff;
command(buffer, 4);
}
 
void setParam(unsigned int reg, unsigned int val, unsigned int len)
{
char buffer[4];
buffer[0] = reg;
/* BUG: reg? */
for (int i = 0; i < len; i++)
buffer[i + 1] = (reg >> (8 * ((len - 1) - i))) & 0xff;
command(buffer, 1 + len);
}
 
void setup()
{
Serial.begin(9600);
SPI.begin(SPI_MASTER, MSBFIRST, SPI_MODE3, SPI_CLOCK_DIV32);
setParam(5, 0xd0, 2); // ACC
setParam(6, 0xd0, 2); // DEC
setParam(7, 0, 2); // MAX_SPEED
Serial.println("Testovaci program pro HBSTEP01A");
}
 
int readInt()
{
char line[100];
int i = 0;
while (true) {
if (Serial.available()) {
byte c = Serial.read();
if (c == '\n' || c == '\r') {
Serial.println();
line[i] = '\0';
return atoi(line);
}
Serial.write(c);
line[i++] = c;
}
}
}
 
void loop()
{
int speed = readInt();
 
int dir = speed > 0;
if (!dir)
speed = -speed;
char buffer[4];
buffer[0] = 0x50 | dir;
buffer[1] = (speed >> 16) & 0xff;
buffer[2] = (speed >> 8) & 0xff;
buffer[3] = speed & 0xff;
command(buffer, 4);
}
 
/Modules/H_Bridge/HBSTEP01A/SW/Wiring/speed_control/build/speed_control.cpp.eep
0,0 → 1,0
:00000001FF
/Modules/H_Bridge/HBSTEP01A/SW/Wiring/speed_control/build/speed_control.cpp.elf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Modules/H_Bridge/HBSTEP01A/SW/Wiring/speed_control/build/speed_control.cpp.hex
0,0 → 1,270
:100000000C9436000C945E000C945E000C945E0020
:100010000C945E000C945E000C945E000C945705EA
:100020000C9480050C94A9050C944D060C94D205F3
:100030000C94FB050C9424060C94DC040C9405052C
:100040000C942E050C945E000C940D020C945E0230
:100050000C945E000C945E000C945E000C945E00A8
:100060000C945E000C945E004A04BF0711241FBE6E
:10007000CFEFD8E0DEBFCDBF11E0A0E0B1E0E4E714
:10008000F0E102C005900D92A634B107D9F712E055
:10009000A6E4B1E001C01D92A830B107E1F710E07D
:1000A000CCE6D0E004C02297FE010E940E08C836BC
:1000B000D107C9F70E9406020C9438080C9400007E
:1000C000CF92DF92FF920F931F93DF93CF93CDB721
:1000D000DEB7C456D0400FB6F894DEBF0FBECDBF1A
:1000E00000E010E06E010894C11CD11C80E591E095
:1000F0000E94AB03892BD1F380E591E00E94B0030D
:10010000F82E8AE0F81619F0EDE0FE16D9F480E535
:1001100091E00E948F04CE010196080F191FF8018B
:1001200010820E941208CC59DF4F0FB6F894DEBF40
:100130000FBECDBFCF91DF911F910F91FF90DF9048
:10014000CF90089580E591E06F2D0E94F303F601B2
:10015000E00FF11FF0820F5F1F4FC8CFEF92FF92A9
:100160000F931F93CF93DF937C018B01C0E0D0E00E
:1001700011C06AE070E080E090E00E94DC012A9803
:10018000F701EC0FFD1F86E491E060810E94A3015E
:100190002A9A2196C017D10760F3DF91CF911F9162
:1001A0000F91FF90EF900895DF93CF9300D000D090
:1001B000CDB7DEB70E9460009C0180E090E012168F
:1001C00013061CF481E090E003C0309521953F4F69
:1001D000806589831A823B832C83CE01019664E07B
:1001E00070E00E94AE000F900F900F900F90CF9193
:1001F000DF910895DF93CF9300D000D0CDB7DEB765
:10020000BC0189834150504E9A0183E0220F331F75
:100210008A95E1F74F5F5F41FE0132960AC0CB013C
:10022000022E02C0969587950A94E2F78193285092
:1002300030408FEF283F380791F74F5F5F4FCE0177
:100240000196BA010E94AE000F900F900F900F9090
:10025000CF91DF910895CF92DF92EF920F9390E5C7
:10026000C92E91E0D92EC60140E855E260E070E069
:1002700028E001E0EE240E94EB0286E491E061E0D8
:1002800041E02CE006E00E94670185E090E060ED2F
:1002900070E042E050E00E94FA0086E090E060EDFD
:1002A00070E042E050E00E94FA0087E090E060E0F9
:1002B00070E042E050E00E94FA00C60160E071E0A8
:1002C0000E94A6040F91EF90DF90CF9008950F93B6
:1002D000613021F5229A259A239A2498442319F40F
:1002E0008CB5806202C08CB58F7D8CBD8CB5837F50
:1002F000822B8CBD8CB5902F93708C7F982B9CBDDE
:100300002DB5802F90E0959587959595879581706F
:100310002E7F822B8DBD8CB580610FC022982598D1
:100320002398249A442319F48CB5806202C08CB5BA
:100330008F7D8CBD8CB5837F822B8CBD8CB580640A
:100340008CBD0F9108956EBD0DB407FEFDCF8EB527
:10035000089580914B0190914C01A0914D01B09175
:100360004E0130914F010196A11DB11D232F2D5F2C
:100370002D3720F02D570196A11DB11D20934F015F
:1003800080934B0190934C01A0934D01B0934E018B
:100390008091470190914801A0914901B0914A0193
:1003A0000196A11DB11D8093470190934801A09330
:1003B0004901B0934A010895EF92FF920F931F9362
:1003C0007B018C018FB7F89440914B0150914C0107
:1003D00060914D0170914E018FBF2FB7F8948091BD
:1003E0004B0190914C01A0914D01B0914E012FBF56
:1003F000841B950BA60BB70B8E159F05A007B107A5
:1004000060F31F910F91FF90EF9008950E94B10447
:100410000E942B010E94D400FDCF1F920F920FB6B5
:100420000F9211241F932F933F934F935F936F93DA
:100430007F938F939F93AF93BF93EF93FF93E0913D
:10044000A001F091A1011081E0915201F0915301BE
:100450000190F081E02D82E591E009958097E0F42C
:100460008091560190915701019690935701809386
:1004700056018091580190915901FC01E05BFE4FBB
:10048000148701969093590180935801809724F026
:100490001092590110925801FF91EF91BF91AF91C5
:1004A0009F918F917F916F915F914F913F912F918C
:1004B0001F910F900FBE0F901F9018951F920F92D3
:1004C0000FB60F9211242F938F939F93AF93BF93E7
:1004D000EF93FF938091800190918101892B09F125
:1004E000A091A001B091A101809180019091810122
:1004F0000197909381018093800180918401909174
:100500008501FC01E05BFE4F26A9019690938501D1
:1005100080938401409724F0109285011092840109
:100520002C938091800190918101892B31F4E0918D
:100530009C01F0919D0188E98083FF91EF91BF912B
:10054000AF919F918F912F910F900FBE0F901F90A1
:100550001895FC0184E291E09183808386E391E029
:100560009383828380E290E095838483178216824E
:1005700086819781938782879187808780E491E045
:1005800095A784A780E190E097A786A711AA10AA53
:1005900080A991A995AB84AB93AB82AB6623D1F4D0
:1005A000EA5BFF4F85EC90E08193919384EC90E0BF
:1005B0008193919380EC90E08193919381EC90E012
:1005C0008193919382EC90E08193919386EC90E0FB
:1005D0009183808308955F926F927F928F929F9212
:1005E000AF92BF92CF92DF92EF92FF920F931F9341
:1005F000CF93DF93EC015A016B01922E502E8E2C7B
:1006000060E072E18AE790E0A60195010E94CF07C1
:100610002C5F3F4F4F4F5F4F93E05695479537956F
:1006200027959A95D1F7390160E074E284EF90E064
:10063000A60195010E94CF072C5F3F4F4F4F5F4FA0
:1006400083E056954795379527958A95D1F7790197
:1006500040E050E060E874E88EE190E00E94F1072D
:1006600089010A191B0917FF03C0109501951F4F37
:10067000930140E050E060E472E48FE090E00E947B
:10068000F1072A193B0937FF03C0309521953F4FE9
:10069000FE01E65BFF4F021713073CF40190F08167
:1006A000E02D82E08083970105C00190F081E02D6C
:1006B000108293012150304086E0981669F0891528
:1006C00020F095E09916B9F409C087E0981641F03A
:1006D00099E0991681F406C082E00EC080E00CC05B
:1006E00084E00AC0C45BDF4FE881F981CC54D0407C
:1006F00080818460808386E092E0591609F48860E6
:1007000091E0891621F092E0891621F402C08063FD
:1007100001C08062C25BDF4FE881F9818083289746
:10072000E991F9913083E881F98120832496E88169
:10073000F98188E98083DF91CF911F910F91FF901C
:10074000EF90DF90CF90BF90AF909F908F907F9071
:100750006F905F900895FC0126813781C90108954B
:10076000DC01FC0186819781892B19F42FEF3FEF83
:1007700017C03FB7F894FD01868197810197978351
:10078000868382859385E80FF91F24850196FD01F4
:1007900093878287809714F0138612863FBF30E0DC
:1007A000C9010895CF93DF93DC01EC018E819F8115
:1007B000892B19F42FEF3FEF08C0ED01EA85FB8587
:1007C000EA0FFB1F8485282F30E0C901DF91CF910C
:1007D0000895FC011782168286819781938782870C
:1007E0009187808708950F931F93CF93DF93EC0138
:1007F000162F88A999A94097E0F70FB7F894ECA5B0
:10080000FDA50190F081E02DCE018C9609954097D1
:1008100090F488A999A9019699AB88AB8AA99BA95C
:10082000FE01E80FF91F16AB01969BAB8AAB409710
:1008300014F01BAA1AAAC45BDF4FE881F9818081FA
:10084000806280830FBFDF91CF911F910F91089538
:10085000FC0124813581C9010895FC012481358181
:10086000C9010895665F7F4F680F791FCB01089516
:10087000665F7F4F680F791FCB010895665F7F4FDA
:10088000680F791FCB010895665F7F4F680F791F4E
:10089000CB01089580E591E060E00E94A9020895EF
:1008A0000F931F93CF93DF938C01EB0109C0219627
:1008B000D801ED91FC910190F081E02DC8010995DE
:1008C00068816623A1F7DF91CF911F910F91089561
:1008D000EF92FF920F931F93CF93DF938C017B01D5
:1008E000EA010CC0D7016D917D01D801ED91FC9119
:1008F0000190F081E02DC80109952197209791F78B
:10090000DF91CF911F910F91FF90EF900895DC013F
:10091000ED91FC910280F381E02D099508950F93EC
:100920001F938C01DC01ED91FC910190F081E02D91
:100930006DE00995D801ED91FC910190F081E02DD9
:10094000C8016AE009951F910F9108950F931F93B5
:100950008C010E948704C8010E948F041F910F918F
:1009600008950F931F9302EA11E0C80163E00E940B
:10097000A607C80160E049EA51E021E00E947B0738
:10098000C80164E00E94760604EC11E0C80161E051
:100990000E94A607C80164E00E94760606EE11E0F8
:1009A000C80161E00E94A607C80164E00E947606C3
:1009B00078941F910F9108951F920F920FB60F9286
:1009C00011242F933F934F935F936F937F938F9354
:1009D0009F93AF93BF93EF93FF93E091BC01F0918E
:1009E000BD01309709F00995FF91EF91BF91AF914B
:1009F0009F918F917F916F915F914F913F912F9137
:100A00000F900FBE0F901F9018951F920F920FB668
:100A10000F9211242F933F934F935F936F937F9384
:100A20008F939F93AF93BF93EF93FF93E091BE019A
:100A3000F091BF01309709F00995FF91EF91BF91B7
:100A4000AF919F918F917F916F915F914F913F9166
:100A50002F910F900FBE0F901F9018951F920F921D
:100A60000FB60F9211242F933F934F935F936F9381
:100A70007F938F939F93AF93BF93EF93FF93E091F7
:100A8000BA01F091BB01309709F00995FF91EF9100
:100A9000BF91AF919F918F917F916F915F914F9196
:100AA0003F912F910F900FBE0F901F9018951F929E
:100AB0000F920FB60F9211242F933F934F935F9392
:100AC0006F937F938F939F93AF93BF93EF93FF9316
:100AD000E0910002F0910102309709F00995FF9131
:100AE000EF91BF91AF919F918F917F916F915F91A6
:100AF0004F913F912F910F900FBE0F901F9018951F
:100B00001F920F920FB60F9211242F933F934F9382
:100B10005F936F937F938F939F93AF93BF93EF9365
:100B2000FF93E0910202F0910302309709F00995DA
:100B3000FF91EF91BF91AF919F918F917F916F91B5
:100B40005F914F913F912F910F900FBE0F901F908B
:100B500018951F920F920FB60F9211242F933F9367
:100B60004F935F936F937F938F939F93AF93BF93B5
:100B7000EF93FF93E091FE01F091FF01309709F0B0
:100B80000995FF91EF91BF91AF919F918F917F91C7
:100B90006F915F914F913F912F910F900FBE0F90EA
:100BA0001F9018951F920F920FB60F9211242F933A
:100BB0003F934F935F936F937F938F939F93AF93E5
:100BC000BF93EF93FF93E091DE01F091DF01309747
:100BD00009F00995FF91EF91BF91AF919F918F918E
:100BE0007F916F915F914F913F912F910F900FBE29
:100BF0000F901F9018951F920F920FB60F9211240D
:100C00002F933F934F935F936F937F938F939F9314
:100C1000AF93BF93EF93FF93E091E001F091E10177
:100C2000309709F00995FF91EF91BF91AF919F9196
:100C30008F917F916F915F914F913F912F910F9085
:100C40000FBE0F901F9018951F920F920FB60F9224
:100C500011242F933F934F935F936F937F938F93C1
:100C60009F93AF93BF93EF93FF93E091DC01F091DB
:100C7000DD01309709F00995FF91EF91BF91AF9198
:100C80009F918F917F916F915F914F913F912F91A4
:100C90000F900FBE0F901F9018951F920F920FB6D6
:100CA0000F9211242F933F934F935F936F937F93F2
:100CB0008F939F93AF93BF93EF93FF93E091E401E2
:100CC000F091E501309709F00995FF91EF91BF91FF
:100CD000AF919F918F917F916F915F914F913F91D4
:100CE0002F910F900FBE0F901F901895FC018081DF
:100CF000823081F4643031F1653028F46230E1F003
:100D00006330F0F40FC0663009F16630E8F0673008
:100D100009F51EC06630B1F0673038F4623061F01A
:100D2000643071F06130B1F409C0683079F0683036
:100D300058F0693079F40CC092E00DC091E00BC01E
:100D400093E009C094E007C095E005C096E003C0B9
:100D500097E001C090E00284F385E02D8081887FD8
:100D6000982B90830895CF93DF93EC0168836130D3
:100D700019F1613020F0623009F06CC048C01B826C
:100D80001A8286E490E09D838C838EE690E09F83B8
:100D90008E8384E490E09987888785E490E09B8740
:100DA0008A871D861C8687E490E09F878E87198A34
:100DB000188A88E490E022C08FE690E09F838E83BB
:100DC00085E890E09B838A8384E890E09D838C8310
:100DD00080E890E09987888781E890E09B878A8700
:100DE00089E890E09D878C8788E890E09F878E87D0
:100DF0008BE890E0998B888B8AE890E09B8B8A8BBC
:100E00001D8A1C8A1F8A1E8A82E0898323C01B8256
:100E10001A8282EB90E09D838C8380E790E09F8331
:100E20008E8380EB90E09987888781EB90E09B87A9
:100E30008A871D861C8683EB90E09F878E87198AA0
:100E4000188A84EB90E09B8B8A8B1D8A1C8A1F8AF0
:100E50001E8A6983CE0160E00E947606EA81FB81EA
:100E6000309709F01082EC81FD811082198E188E66
:100E70001B8E1A8E1D8E1C8E1F8E1E8E19A218A2FE
:100E8000DF91CF910895FC01623071F0633028F456
:100E9000662381F0613071F505C0633039F064304C
:100EA00049F506C081E007C082E005C083E003C0C9
:100EB00085E001C080E00680F781E02D2081682F69
:100EC000772767FD709581E090E0062E02C0880FBD
:100ED000991F0A94E2F78095822320E030E04423B2
:100EE00011F021E030E002C0220F331F6A95E2F7D3
:100EF000822B80830895FC01623091F0633028F4E6
:100F0000662341F06130A1F408C0633061F06430C1
:100F100079F40CC0518F408F0BC0538F428F08C0A3
:100F2000558F448F05C0578F468F02C051A340A3F1
:100F3000452B29F4CF0140E00E9443070895222366
:100F400021F0CF0141E00E9443070895CF93DF9342
:100F5000EC01E885F9858081962F93708C7F982B22
:100F60009083EA85FB85808170E06C707070660FFD
:100F7000771F877E862B8083DF91CF91089582EA49
:100F800091E060E00E94B30684EC91E061E00E9491
:100F9000B30686EE91E062E00E94B3060895A1E2F6
:100FA0001A2EAA1BBB1BFD010DC0AA1FBB1FEE1FE3
:100FB000FF1FA217B307E407F50720F0A21BB30B2E
:100FC000E40BF50B661F771F881F991F1A9469F7AA
:100FD00060957095809590959B01AC01BD01CF0106
:100FE000089597FB092E05260ED057FD04D0D7DFB4
:100FF0000AD0001C38F450954095309521953F4F0C
:101000004F4F5F4F0895F6F79095809570956195D5
:101010007F4F8F4F9F4F0895EE0FFF1F0590F49164
:10102000E02D0994FC0188279927E894219120322A
:10103000E9F3293010F02E30C8F32B3241F02D3275
:1010400039F4689404C00E943008820F911D2191E8
:1010500020532A30C0F31EF4909581959F4F089538
:101060007AE0979F902D879F802D910D11240895F0
:04107000F894FFCF22
:10107400546573746F766163692070726F6772610F
:101084006D2070726F2048425354455030314100F6
:1010940000000000F30350046804AB03D203B00360
:1010A400E903000000002D043E0444040000000095
:0610B40028043204380498
:00000001FF
/Modules/H_Bridge/HBSTEP01A/SW/Wiring/speed_control/build/speed_control.pde
0,0 → 1,82
#include <SPI.h>
 
void command(char* buffer, unsigned int len)
{
for (int i = 0; i < len; i++) {
delay(10);
digitalWrite(SS, 0);
SPI.transfer(buffer[i]);
digitalWrite(SS, 1);
}
}
 
void goTo(unsigned int pos)
{
char buffer[4];
buffer[0] = 0x60;
buffer[1] = pos >> 16;
buffer[2] = (pos >> 8) & 0xff;
buffer[3] = pos & 0xff;
command(buffer, 4);
}
 
void setParam(unsigned int reg, unsigned int val, unsigned int len)
{
char buffer[4];
buffer[0] = reg;
/* BUG: reg? */
for (int i = 0; i < len; i++)
buffer[i + 1] = (reg >> (8 * ((len - 1) - i))) & 0xff;
command(buffer, 1 + len);
}
 
void setup()
{
Serial.begin(9600);
SPI.begin(SPI_MASTER, MSBFIRST, SPI_MODE3, SPI_CLOCK_DIV32);
setParam(5, 0xd0, 2); // ACC
setParam(6, 0xd0, 2); // DEC
setParam(7, 0, 2); // MAX_SPEED
Serial.println("Testovaci program pro HBSTEP01A");
}
 
int readInt()
{
char line[100];
int i = 0;
while (true) {
if (Serial.available()) {
byte c = Serial.read();
if (c == '\n' || c == '\r') {
Serial.println();
line[i] = '\0';
return atoi(line);
}
Serial.write(c);
line[i++] = c;
}
}
}
 
void loop()
{
int speed = readInt();
 
int dir = speed > 0;
if (!dir)
speed = -speed;
char buffer[4];
buffer[0] = 0x50 | dir;
buffer[1] = (speed >> 16) & 0xff;
buffer[2] = (speed >> 8) & 0xff;
buffer[3] = speed & 0xff;
command(buffer, 4);
}
/Modules/H_Bridge/HBSTEP01A/SW/Wiring/speed_control/speed_control.pde
0,0 → 1,82
#include <SPI.h>
 
void command(char* buffer, unsigned int len)
{
for (int i = 0; i < len; i++) {
delay(10);
digitalWrite(SS, 0);
SPI.transfer(buffer[i]);
digitalWrite(SS, 1);
}
}
 
void goTo(unsigned int pos)
{
char buffer[4];
buffer[0] = 0x60;
buffer[1] = pos >> 16;
buffer[2] = (pos >> 8) & 0xff;
buffer[3] = pos & 0xff;
command(buffer, 4);
}
 
void setParam(unsigned int reg, unsigned int val, unsigned int len)
{
char buffer[4];
buffer[0] = reg;
/* BUG: reg? */
for (int i = 0; i < len; i++)
buffer[i + 1] = (reg >> (8 * ((len - 1) - i))) & 0xff;
command(buffer, 1 + len);
}
 
void setup()
{
Serial.begin(9600);
SPI.begin(SPI_MASTER, MSBFIRST, SPI_MODE3, SPI_CLOCK_DIV32);
setParam(5, 0xd0, 2); // ACC
setParam(6, 0xd0, 2); // DEC
setParam(7, 0, 2); // MAX_SPEED
Serial.println("Testovaci program pro HBSTEP01A");
}
 
int readInt()
{
char line[100];
int i = 0;
while (true) {
if (Serial.available()) {
byte c = Serial.read();
if (c == '\n' || c == '\r') {
Serial.println();
line[i] = '\0';
return atoi(line);
}
Serial.write(c);
line[i++] = c;
}
}
}
 
void loop()
{
int speed = readInt();
 
int dir = speed > 0;
if (!dir)
speed = -speed;
char buffer[4];
buffer[0] = 0x50 | dir;
buffer[1] = (speed >> 16) & 0xff;
buffer[2] = (speed >> 8) & 0xff;
buffer[3] = speed & 0xff;
command(buffer, 4);
}