This commit is contained in:
gab-k committed 2025-01-04 13:36:00 +00:00
1 parent 9cc2596f5f
commit 42624d163b
42 files changed
+1019 -269

No files matched your search

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file with editors other than draw.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="701px" height="845px" viewBox="-0.5 -0.5 701 845" content="&lt;mxfile host=&quot;app.diagrams.net&quot; agent=&quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0&quot; version=&quot;25.0.3&quot; scale=&quot;1&quot; border=&quot;0&quot;&gt;&#xA; &lt;diagram name=&quot;Page-1&quot; id=&quot;EzXMAEqKDDRs-_LGy8zr&quot;&gt;&#xA; &lt;mxGraphModel dx=&quot;1687&quot; dy=&quot;920&quot; grid=&quot;1&quot; gridSize=&quot;10&quot; guides=&quot;1&quot; tooltips=&quot;1&quot; connect=&quot;1&quot; arrows=&quot;1&quot; fold=&quot;1&quot; page=&quot;1&quot; pageScale=&quot;1&quot; pageWidth=&quot;827&quot; pageHeight=&quot;1169&quot; math=&quot;0&quot; shadow=&quot;0&quot;&gt;&#xA; &lt;root&gt;&#xA; &lt;mxCell id=&quot;0&quot; /&gt;&#xA; &lt;mxCell id=&quot;1&quot; parent=&quot;0&quot; /&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-36&quot; value=&quot;&quot; style=&quot;endArrow=classic;html=1;rounded=0;strokeColor=#647687;shape=flexArrow;strokeWidth=2;fillColor=default;gradientColor=none;width=32;endSize=11.67;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;&quot; edge=&quot;1&quot; parent=&quot;1&quot; target=&quot;4ED7IVWrFvjwATd2QOsb-89&quot; source=&quot;4ED7IVWrFvjwATd2QOsb-77&quot;&gt;&#xA; &lt;mxGeometry width=&quot;50&quot; height=&quot;50&quot; relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&#xA; &lt;mxPoint x=&quot;20&quot; y=&quot;70&quot; as=&quot;sourcePoint&quot; /&gt;&#xA; &lt;mxPoint x=&quot;480&quot; y=&quot;160&quot; as=&quot;targetPoint&quot; /&gt;&#xA; &lt;Array as=&quot;points&quot;&gt;&#xA; &lt;mxPoint x=&quot;385&quot; y=&quot;135&quot; /&gt;&#xA; &lt;/Array&gt;&#xA; &lt;/mxGeometry&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-37&quot; value=&quot;STARTUP_MODE&quot; style=&quot;edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=20;fontColor=default;rotation=270;&quot; vertex=&quot;1&quot; connectable=&quot;0&quot; parent=&quot;4ED7IVWrFvjwATd2QOsb-36&quot;&gt;&#xA; &lt;mxGeometry x=&quot;-0.3535&quot; y=&quot;-3&quot; relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&#xA; &lt;mxPoint x=&quot;-3&quot; y=&quot;7&quot; as=&quot;offset&quot; /&gt;&#xA; &lt;/mxGeometry&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-64&quot; value=&quot;&quot; style=&quot;endArrow=classic;html=1;rounded=0;strokeColor=#647687;shape=flexArrow;strokeWidth=2;fillColor=default;gradientColor=none;width=32;endSize=11.67;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;&quot; edge=&quot;1&quot; parent=&quot;1&quot; source=&quot;4ED7IVWrFvjwATd2QOsb-89&quot; target=&quot;4ED7IVWrFvjwATd2QOsb-102&quot;&gt;&#xA; &lt;mxGeometry width=&quot;50&quot; height=&quot;50&quot; relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&#xA; &lt;mxPoint x=&quot;1200&quot; y=&quot;490&quot; as=&quot;sourcePoint&quot; /&gt;&#xA; &lt;mxPoint x=&quot;1315&quot; y=&quot;490&quot; as=&quot;targetPoint&quot; /&gt;&#xA; &lt;Array as=&quot;points&quot; /&gt;&#xA; &lt;/mxGeometry&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-65&quot; value=&quot;K_FF*startup.level&quot; style=&quot;edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=20;fontColor=default;rotation=270;&quot; vertex=&quot;1&quot; connectable=&quot;0&quot; parent=&quot;4ED7IVWrFvjwATd2QOsb-64&quot;&gt;&#xA; &lt;mxGeometry x=&quot;-0.4316&quot; y=&quot;7&quot; relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&#xA; &lt;mxPoint x=&quot;-7&quot; y=&quot;27&quot; as=&quot;offset&quot; /&gt;&#xA; &lt;/mxGeometry&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-71&quot; value=&quot;&quot; style=&quot;endArrow=classic;html=1;rounded=0;strokeColor=#647687;shape=flexArrow;strokeWidth=2;fillColor=default;gradientColor=none;width=32;endSize=11.67;entryX=0.5;entryY=0;entryDx=0;entryDy=0;&quot; edge=&quot;1&quot; parent=&quot;1&quot; target=&quot;4ED7IVWrFvjwATd2QOsb-89&quot;&gt;&#xA; &lt;mxGeometry width=&quot;50&quot; height=&quot;50&quot; relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&#xA; &lt;mxPoint x=&quot;340&quot; y=&quot;20&quot; as=&quot;sourcePoint&quot; /&gt;&#xA; &lt;mxPoint x=&quot;320&quot; y=&quot;505&quot; as=&quot;targetPoint&quot; /&gt;&#xA; &lt;Array as=&quot;points&quot;&gt;&#xA; &lt;mxPoint x=&quot;615&quot; y=&quot;20&quot; /&gt;&#xA; &lt;/Array&gt;&#xA; &lt;/mxGeometry&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-72&quot; value=&quot;MEASUREMENT &Line truncated

After

Width:  |  Height:  |  Size: 171 KiB

+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file with editors other than diagrams.net -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="852px" height="282px" viewBox="-0.5 -0.5 852 282" content="&lt;mxfile host=&quot;app.diagrams.net&quot; modified=&quot;2022-08-02T18:49:21.628Z&quot; agent=&quot;5.0 (X11)&quot; etag=&quot;ojSgmSREDXUKLBx7xkGn&quot; version=&quot;20.2.2&quot; type=&quot;device&quot;&gt;&lt;diagram id=&quot;fYnpBcbPwy3h1yrhEr7x&quot; name=&quot;Page-1&quot;&gt;7V1tc9o4EP41zNx9SMaWX4CPgaRpb5pLp0na9NONwAr4aizGiBD6608GC2ytCPYlJGm0GSZjrWwZ7z5ardaPUMvrTx7OMzodX/CIJS3iRA8t77RFSLfjyv+5YLkW+F1nLRhlcbQWuVvBVfyLFUJ12jyO2KxyouA8EfG0KhzyNGVDUZHRLOOL6ml3PKnedUpHDAiuhjSB0u9xJMZraSdwtvKPLB6N1Z1dp6gZ0OHPUcbnaXG/lKdsXTOhqpni1NmYRnxREnlnLa+fcS7WR5OHPktyrSqNra/7sKN285Uzloo6F0zo/d8nZ+TmhPz69/av0fm4N2BH7XUr9zSZF6oovqxYKt2sno7ljTgtr7cYx4JdTekwr11IMEjZWEwSWXLlYUIHLOltlNLnCc9k1UotXu8uThIlahEv9Nthp53LeSpK8rvVn5TPRMZ/slKN5/pe4Msa+PCFPu5ZJthDSVQo45zxCRPZUp6yrGJvYTD4uGRsosBNC5CNNk1ttS0PCoU3UL4PlH9xeX35tUXCRORPPx/Iw1F+eHlzraTyTqUKYC358KJqkqoSDZYoRDSJR6ksDqVKmZT3clXGso+cFBWTOIry2xgxUEXJHhhIcxc+wA2eaMyi1nPJcbC+qDAvCaB9XZN9PedA5g2Aec+/fLp8oxY7gE1cT7PIaxsk3O/spJOe5ofDeZYse5lEMBP7vd5WlXnpLomnHzc1goqY58boOs+j1kCNPcqPBQHQq9J8Wa1u2DmQXjv19SroYAXIkvJMup0Jmik45mqT476gcZqDfHXNkCcJnc7iVWPrM8ZxEn2mSz4X6jaq1GBQOpyD6lSN1oU2azuGvuCSQ3WGtve4kb7msUpvzLP4V678pNCzbpnZIp4kNJXhEY00UY+vwsFcJPhUjQzsThSHAy4EnxSFrHhmx2jdKOPTa5qNmDrFYLQpj1Ox0lLQkx+pt74jx4RAPllflt1tWX7y0zMZc6TS10pg5c0yOhMLNtsPGIiGR3vFfojsA4F/MAzACMTZiQr5wCKmyVcZf9N0VKcXF9E63drRYLZm0OBSnXfJKowey8GNpc9lLdUdmpnL95tZq2hsq8PGrdFEDvUpFbJ3yWedAQhsvucTUAEDFxdRUdPPKxu+e5DAYGr3qI8g0YKBjiUggemF3VEHgkSfPhFLUALnDz6ipC5KlCN+9yjpApQEiJKaKDHlXt4lStQ0u4SSEFFSFyWhJcGryuiXUNJGlNRNtTuG6JU8K0pqtPYSKCEAJR1ESV2UGF6/vE+UeAAlXURJXZR0LZnjdGCm1cVUa+2kmmfJJKdjSL1i7rU2TDq2zHJg8tXF7GvtF+jElmkOTL+6mH+tDZPQkix9B+ZfXUzA1oVJqDzvu4cJTMC6mIGtDZPAkhDW240J5BW9LK9oWQXBq9GMPBiuOieWeg7VPZBndOTB8NSBhHaEhd1EI88QnaLzQKaRphlDcIq+BKlG+oorSA8g6EyQa6TDBPIDCHoTJBvpMCEAJh56E2Qb6TCBDAHDwl2EieV0Ix9SBHz0Jsg30mECKQI+ehMkHOkwgTnXAL0JEo50mMAcbIDeBAlHOkxgEjZEb4KEIx0mMAsbojdBwpH+w0gwC9tGb4KEIx0mhlVa6E2QcKSpBo45OzGCBKRXISAZouSXJSARAxHa1mXB3drWe++OgxgW29i6DLg+KiyjHxGYlXdtXQXcGCS2sI8IfMPn2roIuDFIrCEfqcC0zCqxdQ1wc5TYwj0iBu6RrUuAG6PEGuqRC1Noj8x7ESV2Mo9cgy+xdQFwY5RYQzxS+eQySmxd/9scJbbwjgh8BWztDzA2R4kttCP121dllGCmFVlH2tssQ/SKmVckHWkoMUSvmHpFzpGGEkP0irlXpBxpKIEZesQI8o2qGIGv+hAjSDaqctIgRr58v5CCq+RYNtgfHwPIvI39HZviovl2qj7c0k5FqpXtVA9F8unCScUb3m/zcPZQtYU6lHk60Dzhi5oHRvNontJmxK9tnhqbo7I0Osk325YlPl2NNivSpCYz7ou6Gu+0XTWl8rLlbV55vCn+KM5dFU4fKiXFuWQPsShdJks/ivvlx9uL8sLmmjT6ECcVrmepvNOeMz7PhqzGeCAUh3Ofd2JRZSfyR1l3ps1xlSxjCRXxPat83UeG1S85iXQLvw0HX+3NqwNr/eTFVVtsbRtSwG1rF641AS58NrZvjR3Lf2Oc6sis4vb/41R53704VYB+IzjVYOqqvSlrw3RHO12tnedD7T+37fHpt++T6LN/OyRncXA+JUdw7AOgPeDO00elrafBCGXA0+5Bq6vvsn4UbiR7tp8mQbDb+HWHLqNyYQLo5Oa2RcIk199sPpCHo/zw8uZaSeV9ShW/ZQxi3qP6Seb11S+VqEHB8G7zYDu2G03bIGtz2B3bn6TX0NO9T7dWl+kcSq1wEntyKlty/vh2dvHhT+wOxZjR1r3d63cIuGThd+wQXvuNdQg4+Tnt9w1DyKe/cQR5PEAIqx3Gh4Z92Q4DWSvAVnmoe1UUWTLgi7OtoLcSyAplhXVMrqYSw4TOZvHwsdmEeRawCfyNs4CWKQTfG/jvRvZrRe9E6+cgY1s3fPeI1pD7XPG7LGaci/LpsieNL3jE8jP+Aw==&lt;/diagram&gt;&lt;/mxfile&gt;"><defs/><g><rect x="0" y="0" width="850" height="281" fill="#647687" stroke="#314354" pointer-events="all"/><rect x="312.5" y="240" width="150" height="30" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 148px; height: 1px; padding-top: 255px; margin-left: 314px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;" data-drawio-colors="color: rgb(0, 0, 0); "><div style="display: inline-block; font-size: 15px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">MOTOR<sub>OUT</sub></div></div></div></foreignObject><text x="388" y="260" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="15px" text-anchor="middle">MOTOROUT</text></switch></g><rect x="135" y="10" width="150" height="30" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 148px; height: 1px; padding-top: 25px; margin-left: 136px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;" data-drawio-colors="color: rgb(0, 0, 0); "><div style="display: inline-block; font-size: 15px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrapLine truncated

After

Width:  |  Height:  |  Size: 64 KiB

+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file with editors other than diagrams.net -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="851px" height="171px" viewBox="-0.5 -0.5 851 171" content="&lt;mxfile host=&quot;app.diagrams.net&quot; modified=&quot;2022-08-02T12:41:19.359Z&quot; agent=&quot;5.0 (X11)&quot; etag=&quot;yJ7B3gXcD6nU2RcdzMgt&quot; version=&quot;20.2.2&quot; type=&quot;device&quot;&gt;&lt;diagram id=&quot;fYnpBcbPwy3h1yrhEr7x&quot; name=&quot;Page-1&quot;&gt;7Z1dc6M2FIZ/jS/TQYgP+zI46e502l5s2t3edWQjG7oyoiDHdn59JZBsCHhNnIhmIu1kNnAkBLzn0fcZMoHzzf5TgfLkNxpjMnGdeD+BdxPXnQLI/xeGQ23wnKA2rIs0rk3gZHhIn7A0OtK6TWNctjIySglL87ZxSbMML1nLhoqC7trZVpS075qjNe4YHpaIdK3f0pgl8rV852T/jNN1ou4MHJmyQMvv64JuM3m/jGa4TtkgVYzMWiYopruGCd5P4LyglNVHm/0cE6GqUqy+7uczqcdHLnDGhlywQY+/3967f966T//89cv6UxIt8E1Yl/KIyFZKIR+WHZQ21dthUYgzgdEuSRl+yNFSpO44DNyWsA3hZ4AfErTAJDqKMqeEFjypkgVGq5QQZZq4MPDCYBoKO81Yw76q/nF7yQr6HTdSIPCg7/EU+di4YHh/Vg9wVJlzi+kGs+LAs+x6PJw0vRtKI5JUrY/XnuTlB1LhF6jtXlabU5KLw+W2IIeo4Epidln2k4/E2Yqk+edjCkMspRk/nTmvFE5e4EK/vkRW9hslYkNYlaWpK/R16ep1dJ1//Rtwtp3qzJmEEZjxHLx0x4VgEt51dOdysLambfh6CJYmRNK1kHfJ5cPcHglxU9623MqETRrH4ja9TmzXrgvVh1cT2XYC/218CcLwp7Y3gdf1JuirJlCXN/2eWhIQ4Z04fWx5Lfh3K1rPSpibslLmlmcAfr6v5FHp/Ggtfgsqpk0qHMmE71dM1HdZFK+6iSqGv3v1vMr6LoHTgJQP3XeHVPAhGl5/5ryzhnc6XFeGFhWTDfH6tC0ZKhSRQjY+4mMozQTn1TVLSgjKy7QqrM6RpCT+FR3olqnbqLMXDEek6Q28NG07ye36KHR62J/q8pEi4pxPvohBaZTQIn0SWhMp63NHlLt0Q1DGx8EofmaKaDXuFyZGc9WV4RWThwvKGN3Ik0K+stPrzLig+R+oWGOVpcdHOU0zVqnkR/xHtOEOb3H8O9GY+xE4nfMfkb3gg8uMt66cI1EsRiXb4fIyH4NgOF8vfjjy7GXA08ZAXwNYd1OiBxjU3wVn+rtjSeU2Vzbel5x6wYa9Ya3ve6ZzVIByoVmKyBc+50PZekj7IWeI6IRUD0Evo5RyAlakmrolvGfFmUZw6sr6Q3I872XgyMJOGr64NET4OCNDjFd0/q5lh8bjc74C0L6JqE5APQvomwK6b+P04XntG/no5BVaXnXwOp0awutsZF5dy6sOXgF0zQBW3XI0YIEFVguwYWAIsGBkYB0LrA5g+xZsPiaw7rjAziyvWngNDJlyeXBcXqeWVx28QqdnyuW+Ka8DShuD1+6utFZeQ8urFl57Ntk+Jq/n99218BpYXrXwOjNlhWDkPS27paVnxwCaskAw8haX3eHSw+vUlPWBkbe47A6XFl5915T1gZG3uOwOlx5eA0O2ZNW8crQNA8urDl4DYMh8yx95g8vub+nh1TdkvtU3HDjDiI2DHjcO+tCG4n8Li3a7U3JgG5JWBTIvFNntroNbKC5BYVj4r5pTNxi5tYwMY8SUkFu3G69gGRnIiDFhrmpQaiG5AhJTQkvd7szbQjIQEmPCOUF3OdFCMhQSU2IogW1JrobEmMBFtaBtIbkCElOiBd1udICFZCgkpoToud01eAvJ0KU0U+LioB24Xg+JKcFo0A5cr4bEmAgwtWhoIbkCElPCrqBdlr8aEmNinaDd37seElMCjPwuJFEq4uC+1c/1nJf38cXXN4DiwieF5aRPff/S79AQjPo14W44R+2lr5XBOqmus7qcxE9Pn7iva97pLwjA+/8A&lt;/diagram&gt;&lt;/mxfile&gt;"><defs/><g><rect x="0" y="0" width="850" height="170" fill="#647687" stroke="#314354" pointer-events="all"/><path d="M 270 -50 L 261.25 -50 Q 252.5 -50 252.5 -40 L 252.5 115 Q 252.5 125 243.75 125 L 239.38 125 Q 235 125 243.75 125 L 248.13 125 Q 252.5 125 252.5 135 L 252.5 290 Q 252.5 300 261.25 300 L 270 300" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" transform="translate(252.5,0)scale(-1,1)translate(-252.5,0)rotate(-90,252.5,125)" pointer-events="all"/><rect x="177.5" y="140" width="150" height="30" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 148px; height: 1px; padding-top: 155px; margin-left: 179px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;" data-drawio-colors="color: rgb(0, 0, 0); "><div style="display: inline-block; font-size: 15px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">CV_17 = {192, 231}</div></div></div></foreignObject><text x="253" y="160" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="15px" text-anchor="middle">CV_17 = {192, 231}</text></switch></g><rect x="532.5" y="140" width="150" height="30" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 148px; height: 1px; padding-top: 155px; margin-left: 534px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;" data-drawio-colors="color: rgb(0, 0, 0); "><div style="display: inline-block; font-size: 15px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"><div style="font-size: 15px;">CV_18 = {0, 255}<br style="font-size: 15px;" /></div></div></div></div></foreignObject><text x="608" y="160" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="15px" text-anchor="middle">CV_18 = {0, 255}&#xa;</text></switch></g><path d="M 625 -50 L 616.25 -50 Q 607.5 -50 607.5 -40 L 607.5 115 Q 607.5 125 598.75 125 L 594.38 125 Q 590 125 598.75 125 L 603.13 125 Q 607.5 125 607.5 135Line truncated

After

Width:  |  Height:  |  Size: 43 KiB

+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file with editors other than draw.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; color-scheme: light;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1930px" height="2823px" viewBox="-0.5 -0.5 1930 2823" content="&lt;mxfile host=&quot;app.diagrams.net&quot; agent=&quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0&quot; version=&quot;26.0.3&quot; scale=&quot;1&quot; border=&quot;0&quot;&gt;&#xA; &lt;diagram id=&quot;fYnpBcbPwy3h1yrhEr7x&quot; name=&quot;Page-1&quot;&gt;&#xA; &lt;mxGraphModel dx=&quot;6320&quot; dy=&quot;5010&quot; grid=&quot;1&quot; gridSize=&quot;10&quot; guides=&quot;1&quot; tooltips=&quot;1&quot; connect=&quot;1&quot; arrows=&quot;1&quot; fold=&quot;1&quot; page=&quot;1&quot; pageScale=&quot;1&quot; pageWidth=&quot;850&quot; pageHeight=&quot;1100&quot; background=&quot;none&quot; math=&quot;0&quot; shadow=&quot;0&quot;&gt;&#xA; &lt;root&gt;&#xA; &lt;mxCell id=&quot;0&quot; /&gt;&#xA; &lt;mxCell id=&quot;1&quot; parent=&quot;0&quot; /&gt;&#xA; &lt;mxCell id=&quot;K4uLP4tBgHA3zsCXKBI8-35&quot; value=&quot;&quot; style=&quot;line;strokeWidth=15;html=1;rounded=0;fontFamily=Helvetica;fontSize=100;fontColor=default;fillColor=none;gradientColor=none;direction=west;strokeColor=#0000FF;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;1180&quot; y=&quot;1337.75&quot; width=&quot;100&quot; height=&quot;15&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;No6-LZMIRZosWDj3bi_c-3&quot; value=&quot;&quot; style=&quot;line;strokeWidth=15;html=1;rounded=0;fontFamily=Helvetica;fontSize=100;fontColor=default;fillColor=none;gradientColor=none;direction=west;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;1565&quot; y=&quot;1335&quot; width=&quot;435&quot; height=&quot;15&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;No6-LZMIRZosWDj3bi_c-1&quot; value=&quot;&quot; style=&quot;shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/png,iVBORw0KGgoAAAANSUhEUgAABiAAAANoCAYAAABJLCIrAAAABHNCSVQICAgIfAhkiAAAIABJREFUeJzs3Xt8HHW9P/7XJGmTFNIbm6Q0KZBSFOktbaGAFNFzTil45CIgogIe/Qm0pRRF5RwVFTyg54Ci0Ja2+P3JEQRBSwU9Uijn9z0gt0JL26QXQEovNGmSZuktzbVJ5vfH7uzO7Hxm5jOzM7szm9fzwZLduXw+n5mdbrKf93zeH+Wtt5pUEBERERERERERERER+ago3w0gIiIiIiIiIiIiIqLCwwAEERERERERERERERH5jgEIIiIiIiIiIiIiIiLyXQnAKSCIiIiIiIiIiIiIiMhfHAFBRERERERERERERES+YwCCiIiIiIiIiIiIiIh8xwAEERERERERERERERH5jgEIIiIiIiIiIiIiIiLyHQMQRERERERERERERETkOwYgiIiIiIiIiIiIiIjIdyWqmu8mEBERERERERERERFRoeEICCIiIiIiIiIiIiIi8h0DEERERERERERERERE5DsGIIiIiIiIiIiIiIiIyHcMQBARERERERERERERke9KAM5CTURERERERERERERE/uIICCIiIiIiIiIiIiIi8h0DEERERERERERERERE5DsGIIiIiIiIiIiIiIiIyHcMQBARERERERERERERke8YgCAiIiIiIiIiIiIiIt8xAEFERERERERERERERL4rUdV8N4GIiIiIiIiIiIiIiAoNR0AQEREREREREREREZHvGIAgIiIiIiIiIiIiIiLfMQBBRERERERERERERES+YwCCiIiIiIiIiIiIiIh8VwJwFmoiIiIiIiIiIiIiIvIXR0AQEREREREREREREZHvGIAgIiIiIiIiIiIiIiLfMQBBRERERERERERERES+YwCCiIiIiIiIiIiIiIh8xwAEERERERERERERERH5jgEIIiIiIiIiIiIiIiLyHQMQRERERERERERERETkuxJVzXcTiIiIiIiIiIiIiIio0HAEBBERERERERERERER+Y4BCCIiIiIiIiIiIiIi8h0DEERERERERERERERE5LsSgJNAEBERERERERERERGRvzgCgoiIiIiIiIiIiIiIfMcABBEREUXajh2NwuW9vUdx8OCe1OujR5vR1dliW5aq9kIdPGBYVqQclmpHWekR3fNOlJV2Su13/AjxdiPKu4WvM39qSor7U8syyxxR3m3aPpN+f+2nfpm+HKeynI5FtE60jeyyzPXa8Vtt67b9ovcodY5K+i3fQ6t99NuL3mc37ZPZVquvpKRfeH7cng9R/ceP6HQ87/p93Lw3+nOsP3fa8QRp2LCjvpZ39Gizr+UREREREYWd8sYbu5mDiYiIiCLrqaf+E6XDS1FeXobjjjsOpaWlKC0djuHDh2PYsBKUlAxDSUkxiouNj6KiIhQVFaG4qAhKURGKipTEMqUISpGS+qkoCooUJfVcURQoUADtuQIoSDxH4r/EOq2ByfWpl8l9hqIhetiUZyoAVU08U1Xjcm1BYhsVUAEVKlQ1ua2q6l6rUAdVDKrp14ODg6mfg4MqVHUw+XwwtWxgYMDw6O8fwMBAP/r6juHYsWPo7e1DX18vOjqOore3F729vbjyqu/k+jQREREREQWCIyCIiIgo+pRkZ2IiLmBc4TDflfVa+/1M1ZCJkvEgyotsb7eS3N98jYuvev1nlArVFJDk3WFEREREVEgYgCAiIqLIs+/gVgx3PQeH3YYAAw5UgGQvZsntVDU18AIKlNRoC0VJ/Muprp7opZVERERERKHEAAQREREVDn16lUT+FEBwh7HPVSUN3S53Bh0o1HJ1YRo+FGxCorqRWmoyEjFU07IRERERUeEryXcDiIiIiLKVyt+u68TT7ib23PvIHkFbPDtREYV3qkBGDxkyvqmwTfCmrUrOJWMYpVUgp4OIiIiICABKcpOSgIiIiCg4CrSAg16Wf+SoiEbfbQ7xdORbob4DXo8rD19knKeVcbmxmtpC1X0x43c0IiIiIioUHAFBREREhcPPTrtC7et1iachaDzD3smeu3z05huDD8aJp3WvVW1LRhyIiIiIqDAxAEFERESRJ85eogjW+qeQu40L+dhyj2ezoEh/nBg31I9o0F8R2sitIl2Eom3/Tm9tIyIiIiIKoRImGSUiIqJCku7GE/+N49fUDqIMTVHuao5y2/OPZ48yyeVqUlXVkHopsaerPE9ERERERKHGERBEREQUcVadv4pwfWZudSXzmWRfciF0ORfCMeQWz1gh8dTN72Enu6CnkpyEWnvuNHk1EREREVHUFOW7AURERETZUKDrFjZ19Dl35qmCZ6KX1vtFj+GckQVF8KDIy8Pb6DShtKpmfp7wWiMiIiKiwsEREERERBRpKtR0B5+po8+549hrV1/Uugij1t7c4ZkZUrKNHHrcP3MUhCEooRhHYlVV13mrhIiIiIgohBiAICIiouhTUv8T8Npj6LEtwRQTubrDi2dlKFMU6xEJUtmVvKRgclOkArS1cRJqIiIiIiocTMFEREREEad176mCXOsSk8BmlpMaTSGbusmqPfnDhEEaplEieVJxBamNBNdZ5twz2seNmhjBpSSfQ9UmoSYiIiIiKgwcAUFEREQRp6ZDEB5SMOnLMeRCsZ051k1Xdu46E9ltyTNA3nmalFrIXIpVuYlJqKM9pwwRERERkR2OgCAiIqLIUwEg2ZGXsdQFuyTtogrDYWjf28/RDeSG4Bpxe9lIbS9fqJr8MFF0S6qqOALine truncated

After

Width:  |  Height:  |  Size: 1.3 MiB

-159
View File
@@ -1,159 +0,0 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<svg width="1369pt" height="657pt" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1369 657" xmlns="http://www.w3.org/2000/svg">
<title>gl2ps_renderer figure</title>
<desc>
Creator: GL2PS 1.4.2, (C) 1999-2020 C. Geuzaine
For: Octave
CreationDate: Mon Aug 1 18:41:06 2022
</desc>
<defs/>
<polygon points="0,0 1369,0 1369,657 0,657" fill="#ffffff"/>
<g>
<polygon points="0,657 1369,657 1369,0 0,0" shape-rendering="crispEdges" fill="#ffffff"/>
<clipPath id="cp001369657">
<polygon points="0,657 1369,657 1369,0 0,0"/>
</clipPath>
<g clip-path="url(#cp001369657)">
<polygon points="178.09,584.849 1239.78,584.849 1239.78,49.2852 178.09,49.2852" shape-rendering="crispEdges" fill="#ffffff"/>
<polyline stroke="#262626" stroke-linecap="butt" points="178.09,584.849 178.09,574.241" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="178.09,49.2852 178.09,59.8931" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="390.427,584.849 390.427,574.241" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="390.427,49.2852 390.427,59.8931" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="602.765,584.849 602.765,574.241" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="602.765,49.2852 602.765,59.8931" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="815.103,584.849 815.103,574.241" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="815.103,49.2852 815.103,59.8931" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1027.44,584.849 1027.44,574.241" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1027.44,49.2852 1027.44,59.8931" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1239.78,584.849 1239.78,574.241" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1239.78,49.2852 1239.78,59.8931" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(175.09,600.343) rotate(-0,3,-8)">
<tspan y="-0" x="0 " fill="rgb(38,38,38)">0</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(381.427,600.343) rotate(-0,9,-8)">
<tspan y="-0" x="0 6 12 " fill="rgb(38,38,38)">500</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(590.765,600.343) rotate(-0,12,-8)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">1000</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(803.103,600.343) rotate(-0,12,-8)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">1500</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1015.44,600.343) rotate(-0,12,-8)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">2000</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1227.78,600.343) rotate(-0,12,-8)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">2500</tspan>
</text>
<polyline stroke="#262626" stroke-linecap="butt" points="178.09,584.849 188.704,584.849" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1239.78,584.849 1229.16,584.849" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="178.09,477.736 188.704,477.736" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1239.78,477.736 1229.16,477.736" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="178.09,370.624 188.704,370.624" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1239.78,370.624 1229.16,370.624" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="178.09,263.511 188.704,263.511" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1239.78,263.511 1229.16,263.511" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="178.09,156.398 188.704,156.398" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1239.78,156.398 1229.16,156.398" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="178.09,49.2852 188.704,49.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#262626" stroke-linecap="butt" points="1239.78,49.2852 1229.16,49.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(167.091,588.849) rotate(-0,6,-4)">
<tspan y="-0" x="0 " fill="rgb(38,38,38)">0</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(149.091,481.736) rotate(-0,24,-4)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">1000</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(149.091,374.624) rotate(-0,24,-4)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">2000</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(149.091,267.511) rotate(-0,24,-4)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">3000</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(149.091,160.398) rotate(-0,24,-4)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">4000</tspan>
</text>
<text font-size="10" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(149.091,53.285) rotate(-0,24,-4)">
<tspan y="-0" x="0 6 12 18 " fill="rgb(38,38,38)">5000</tspan>
</text>
<polyline stroke-dasharray="16,0" stroke="#262626" stroke-linecap="square" points="178.09,584.849 1239.78,584.849" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke-dasharray="16,0" stroke="#262626" stroke-linecap="square" points="178.09,49.2852 1239.78,49.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke-dasharray="16,0" stroke="#262626" stroke-linecap="square" points="178.09,584.849 178.09,49.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke-dasharray="16,0" stroke="#262626" stroke-linecap="square" points="1239.78,584.849 1239.78,49.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<text font-size="11" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(703.434,615.343) rotate(-0,5.5,-10)">
<tspan y="-3" x="0 5 " fill="rgb(38,38,38)">sp</tspan>
</text>
<text font-size="11" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(105.591,317.067) rotate(-90,38.5,0)">
<tspan y="-3" x="0 7 17 26 30 36 42 47 53 55 58 62 67 73 " fill="rgb(38,38,38)">PWM-Level (sp)</tspan>
</text>
<polyline stroke="#0071bc" stroke-linecap="butt" points="178.09,370.624 1041.03,49.2852" stroke-linejoin="round" fill="none" stroke-width="0.5"/>
<polyline stroke="#d85218" stroke-linecap="butt" points="178.09,381.335 1041.03,49.2852" stroke-linejoin="round" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="175.09,370.624 181.09,370.624" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="178.09,367.624 178.09,373.624" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="175.968,368.502 180.211,372.745" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="175.968,372.745 180.211,368.502" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1038.03,49.2852 1044.03,49.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1041.03,46.2852 1041.03,52.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1038.91,47.1636 1043.15,51.4062" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1038.91,51.4062 1043.15,47.1636" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="175.09,381.335 181.09,381.335" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="178.09,378.335 178.09,384.335" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="175.968,379.213 180.211,383.456" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="175.968,383.456 180.211,379.213" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1038.03,49.2852 1044.03,49.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1041.03,46.2852 1041.03,52.2852" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1038.91,47.1636 1043.15,51.4062" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1038.91,51.4062 1043.15,47.1636" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke-dasharray="9,7" stroke="#00ff00" stroke-linecap="butt" points="609.56,584.849 609.56,49.2852" stroke-linejoin="round" fill="none" stroke-width="0.5"/>
</g>
<clipPath id="cp001369657">
<polygon points="0,657 1369,657 1369,0 0,0"/>
</clipPath>
<g clip-path="url(#cp001369657)">
<polygon points="1103.73,159.161 1231.37,159.161 1231.37,57.6943 1103.73,57.6943" shape-rendering="crispEdges" fill="#ffffff"/>
<polyline stroke-dasharray="16,0" stroke="#262626" stroke-linecap="square" points="1103.73,159.161 1231.37,159.161" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke-dasharray="16,0" stroke="#262626" stroke-linecap="square" points="1103.73,57.6943 1231.37,57.6943" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke-dasharray="16,0" stroke="#262626" stroke-linecap="square" points="1103.73,159.161 1103.73,57.6943" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke-dasharray="16,0" stroke="#262626" stroke-linecap="square" points="1231.37,159.161 1231.37,57.6943" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#0071bc" stroke-linecap="butt" points="1107.94,66.3989 1128.96,66.3989" stroke-linejoin="round" fill="none" stroke-width="0.5"/>
<text font-size="9" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1133.16,70.8989) rotate(-0,-0,-4.5)">
<tspan y="-1" x="0 3 8 11 18 23 26 " fill="rgb(0,0,0)">forward</tspan>
</text>
<polyline stroke="#d85218" stroke-linecap="butt" points="1107.94,79.5186 1128.96,79.5186" stroke-linejoin="round" fill="none" stroke-width="0.5"/>
<text font-size="9" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1133.16,82.5184) rotate(-0,-0,-3)">
<tspan y="-0" x="0 3 8 12 17 20 24 " fill="rgb(0,0,0)">reverse</tspan>
</text>
<polyline stroke="#ff0000" stroke-linecap="square" points="1115.45,93.1377 1121.45,93.1377" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="1118.45,90.1377 1118.45,96.1377" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="1116.33,91.0166 1120.57,95.2593" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="1116.33,95.2593 1120.57,91.0166" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<text font-size="9" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1133.16,98.1379) rotate(-0,-0,-5)">
<tspan y="-2" x="0 4 9 11 13 15 17 21 26 28 31 34 41 46 " fill="rgb(0,0,0)">x1 | y1 (fwd)</tspan>
</text>
<polyline stroke="#00ff00" stroke-linecap="square" points="1115.45,107.342 1121.45,107.342" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1118.45,104.342 1118.45,110.342" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1116.33,105.221 1120.57,109.464" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1116.33,109.464 1120.57,105.221" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<text font-size="9" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1133.16,112.342) rotate(-0,-0,-5)">
<tspan y="-2" x="0 4 9 11 13 15 17 21 26 28 31 34 41 46 " fill="rgb(0,0,0)">x2 | y2 (fwd)</tspan>
</text>
<polyline stroke="#ff0000" stroke-linecap="square" points="1115.45,121.547 1121.45,121.547" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="1118.45,118.547 1118.45,124.547" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="1116.33,119.426 1120.57,123.668" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#ff0000" stroke-linecap="square" points="1116.33,123.668 1120.57,119.426" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<text font-size="9" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1133.16,126.547) rotate(-0,-0,-5)">
<tspan y="-2" x="0 4 9 11 13 15 17 21 26 28 31 34 39 43 " fill="rgb(0,0,0)">x1 | y1 (rev)</tspan>
</text>
<polyline stroke="#00ff00" stroke-linecap="square" points="1115.45,135.752 1121.45,135.752" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1118.45,132.752 1118.45,138.752" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1116.33,133.63 1120.57,137.873" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<polyline stroke="#00ff00" stroke-linecap="square" points="1116.33,137.873 1120.57,133.63" stroke-linejoin="miter" fill="none" stroke-width="0.5"/>
<text font-size="9" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1133.16,140.752) rotate(-0,-0,-5)">
<tspan y="-2" x="0 4 9 11 13 15 17 21 26 28 31 34 39 43 " fill="rgb(0,0,0)">x2 | y2 (rev)</tspan>
</text>
<polyline stroke-dasharray="9,7" stroke="#00ff00" stroke-linecap="butt" points="1107.94,149.957 1128.96,149.957" stroke-linejoin="round" fill="none" stroke-width="0.5"/>
<text font-size="9" font-style="normal" xml:space="preserve" font-family="FreeSans" font-weight="normal" transform="translate(1133.16,154.956) rotate(-0,-0,-5)">
<tspan y="-2" x="0 5 10 12 17 21 24 31 36 41 44 46 49 54 57 62 66 71 76 78 83 85 89 " fill="rgb(0,0,0)">adjustment threshold y2</tspan>
</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 17 KiB

+143
View File
@@ -0,0 +1,143 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<svg width="1369pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="657pt" viewBox="0 0 1369 657">
<title>gl2ps_renderer figure</title>
<desc>
Creator: GL2PS 1.4.2, (C) 1999-2020 C. Geuzaine
For: Octave
CreationDate: Mon Aug 1 20:12:59 2022
</desc>
<defs/>
<polygon points="0,0 1369,0 1369,657 0,657" fill="#ffffff"/>
<g>
<polygon shape-rendering="crispEdges" points="0,657 1369,657 1369,0 0,0" fill="#ffffff"/>
<clipPath id="cp001369657">
<polygon points="0,657 1369,657 1369,0 0,0"/>
</clipPath>
<g clip-path="url(#cp001369657)">
<polygon shape-rendering="crispEdges" points="178.09,584.849 1239.78,584.849 1239.78,49.2852 178.09,49.2852" fill="#ffffff"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="178.09,584.849 178.09,574.241" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="178.09,49.2852 178.09,59.8931" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="329.76,584.849 329.76,574.241" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="329.76,49.2852 329.76,59.8931" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="481.429,584.849 481.429,574.241" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="481.429,49.2852 481.429,59.8931" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="633.099,584.849 633.099,574.241" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="633.099,49.2852 633.099,59.8931" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="784.769,584.849 784.769,574.241" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="784.769,49.2852 784.769,59.8931" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="936.438,584.849 936.438,574.241" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="936.438,49.2852 936.438,59.8931" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1088.11,584.849 1088.11,574.241" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1088.11,49.2852 1088.11,59.8931" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1239.78,584.849 1239.78,574.241" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1239.78,49.2852 1239.78,59.8931" fill="none" stroke-linecap="butt"/>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(175.09,600.343) rotate(-0,3,-8)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 ">0</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(323.76,600.343) rotate(-0,6,-8)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 ">20</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(475.429,600.343) rotate(-0,6,-8)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 ">40</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(627.099,600.343) rotate(-0,6,-8)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 ">60</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(778.769,600.343) rotate(-0,6,-8)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 ">80</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(927.439,600.343) rotate(-0,9,-8)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 12 ">100</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(1079.11,600.343) rotate(-0,9,-8)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 12 ">120</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(1230.78,600.343) rotate(-0,9,-8)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 12 ">140</tspan>
</text>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="178.09,584.849 188.704,584.849" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1239.78,584.849 1229.16,584.849" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="178.09,450.958 188.704,450.958" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1239.78,450.958 1229.16,450.958" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="178.09,317.067 188.704,317.067" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1239.78,317.067 1229.16,317.067" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="178.09,183.176 188.704,183.176" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1239.78,183.176 1229.16,183.176" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="178.09,49.2852 188.704,49.2852" fill="none" stroke-linecap="butt"/>
<polyline stroke="#262626" stroke-linejoin="miter" stroke-width="0.5" points="1239.78,49.2852 1229.16,49.2852" fill="none" stroke-linecap="butt"/>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(167.091,588.849) rotate(-0,6,-4)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 ">0</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(155.091,454.958) rotate(-0,18,-4)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 12 ">500</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(149.091,321.067) rotate(-0,24,-4)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 12 18 ">1000</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(149.091,187.176) rotate(-0,24,-4)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 12 18 ">1500</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="10" transform="translate(149.091,53.285) rotate(-0,24,-4)" font-weight="normal" font-family="FreeSans">
<tspan y="-0" fill="rgb(38,38,38)" x="0 6 12 18 ">2000</tspan>
</text>
<polyline stroke="#262626" stroke-dasharray="16,0" stroke-linejoin="miter" stroke-width="0.5" points="178.09,584.849 1239.78,584.849" fill="none" stroke-linecap="square"/>
<polyline stroke="#262626" stroke-dasharray="16,0" stroke-linejoin="miter" stroke-width="0.5" points="178.09,49.2852 1239.78,49.2852" fill="none" stroke-linecap="square"/>
<polyline stroke="#262626" stroke-dasharray="16,0" stroke-linejoin="miter" stroke-width="0.5" points="178.09,584.849 178.09,49.2852" fill="none" stroke-linecap="square"/>
<polyline stroke="#262626" stroke-dasharray="16,0" stroke-linejoin="miter" stroke-width="0.5" points="1239.78,584.849 1239.78,49.2852" fill="none" stroke-linecap="square"/>
<text xml:space="preserve" font-style="normal" font-size="11" transform="translate(681.434,617.343) rotate(-0,27.5,-12)" font-weight="normal" font-family="FreeSans">
<tspan y="-3" fill="rgb(38,38,38)" x="0 7 13 19 25 31 35 40 43 49 ">Speed-step</tspan>
</text>
<text xml:space="preserve" font-style="normal" font-size="11" transform="translate(124.591,317.067) rotate(-90,19.5,0)" font-weight="normal" font-family="FreeSans">
<tspan y="-3" fill="rgb(38,38,38)" x="0 7 13 16 22 28 30 36 ">Setpoint</tspan>
</text>
<polyline stroke="#0071bc" stroke-linejoin="round" stroke-width="0.5" points="185.673,582.707 655.85,314.925 1133.61,156.398" fill="none" stroke-linecap="butt"/>
<polyline stroke="#ff0000" stroke-linejoin="miter" stroke-width="0.5" points="182.673,582.707 188.673,582.707" fill="none" stroke-linecap="square"/>
<polyline stroke="#ff0000" stroke-linejoin="miter" stroke-width="0.5" points="185.673,579.707 185.673,585.707" fill="none" stroke-linecap="square"/>
<polyline stroke="#ff0000" stroke-linejoin="miter" stroke-width="0.5" points="183.552,580.585 187.794,584.828" fill="none" stroke-linecap="square"/>
<polyline stroke="#ff0000" stroke-linejoin="miter" stroke-width="0.5" points="183.552,584.828 187.794,580.585" fill="none" stroke-linecap="square"/>
<polyline stroke="#00ff00" stroke-linejoin="miter" stroke-width="0.5" points="652.85,314.925 658.85,314.925" fill="none" stroke-linecap="square"/>
<polyline stroke="#00ff00" stroke-linejoin="miter" stroke-width="0.5" points="655.85,311.925 655.85,317.925" fill="none" stroke-linecap="square"/>
<polyline stroke="#00ff00" stroke-linejoin="miter" stroke-width="0.5" points="653.729,312.804 657.971,317.046" fill="none" stroke-linecap="square"/>
<polyline stroke="#00ff00" stroke-linejoin="miter" stroke-width="0.5" points="653.729,317.046 657.971,312.804" fill="none" stroke-linecap="square"/>
<polyline stroke="#0000ff" stroke-linejoin="miter" stroke-width="0.5" points="1130.61,156.398 1136.61,156.398" fill="none" stroke-linecap="square"/>
<polyline stroke="#0000ff" stroke-linejoin="miter" stroke-width="0.5" points="1133.61,153.398 1133.61,159.398" fill="none" stroke-linecap="square"/>
<polyline stroke="#0000ff" stroke-linejoin="miter" stroke-width="0.5" points="1131.49,154.276 1135.73,158.519" fill="none" stroke-linecap="square"/>
<polyline stroke="#0000ff" stroke-linejoin="miter" stroke-width="0.5" points="1131.49,158.519 1135.73,154.276" fill="none" stroke-linecap="square"/>
</g>
<clipPath id="cp001369657">
<polygon points="0,657 1369,657 1369,0 0,0"/>
</clipPath>
<g clip-path="url(#cp001369657)">
<polygon shape-rendering="crispEdges" points="1138.73,118.717 1231.37,118.717 1231.37,57.6943 1138.73,57.6943" fill="#ffffff"/>
<polyline stroke="#262626" stroke-dasharray="16,0" stroke-linejoin="miter" stroke-width="0.5" points="1138.73,118.717 1231.37,118.717" fill="none" stroke-linecap="square"/>
<polyline stroke="#262626" stroke-dasharray="16,0" stroke-linejoin="miter" stroke-width="0.5" points="1138.73,57.6943 1231.37,57.6943" fill="none" stroke-linecap="square"/>
<polyline stroke="#262626" stroke-dasharray="16,0" stroke-linejoin="miter" stroke-width="0.5" points="1138.73,118.717 1138.73,57.6943" fill="none" stroke-linecap="square"/>
<polyline stroke="#262626" stroke-dasharray="16,0" stroke-linejoin="miter" stroke-width="0.5" points="1231.37,118.717 1231.37,57.6943" fill="none" stroke-linecap="square"/>
<polyline stroke="#0071bc" stroke-linejoin="round" stroke-width="0.5" points="1142.94,66.8989 1163.96,66.8989" fill="none" stroke-linecap="butt"/>
<text xml:space="preserve" font-style="normal" font-size="9" transform="translate(1168.16,71.8989) rotate(-0,-0,-5)" font-weight="normal" font-family="FreeSans">
<tspan y="-2" fill="rgb(0,0,0)" x="0 6 11 14 19 21 24 30 35 40 45 50 54 56 ">Setp.(Speeds.)</tspan>
</text>
<polyline stroke="#ff0000" stroke-linejoin="miter" stroke-width="0.5" points="1150.45,81.1035 1156.45,81.1035" fill="none" stroke-linecap="square"/>
<polyline stroke="#ff0000" stroke-linejoin="miter" stroke-width="0.5" points="1153.45,78.1035 1153.45,84.1035" fill="none" stroke-linecap="square"/>
<polyline stroke="#ff0000" stroke-linejoin="miter" stroke-width="0.5" points="1151.33,78.9824 1155.57,83.2246" fill="none" stroke-linecap="square"/>
<polyline stroke="#ff0000" stroke-linejoin="miter" stroke-width="0.5" points="1151.33,83.2246 1155.57,78.9824" fill="none" stroke-linecap="square"/>
<text xml:space="preserve" font-style="normal" font-size="9" transform="translate(1168.16,86.1035) rotate(-0,-0,-5)" font-weight="normal" font-family="FreeSans">
<tspan y="-2" fill="rgb(0,0,0)" x="0 5 7 9 11 13 19 25 ">1 | CV2</tspan>
</text>
<polyline stroke="#00ff00" stroke-linejoin="miter" stroke-width="0.5" points="1150.45,95.3081 1156.45,95.3081" fill="none" stroke-linecap="square"/>
<polyline stroke="#00ff00" stroke-linejoin="miter" stroke-width="0.5" points="1153.45,92.3081 1153.45,98.3081" fill="none" stroke-linecap="square"/>
<polyline stroke="#00ff00" stroke-linejoin="miter" stroke-width="0.5" points="1151.33,93.187 1155.57,97.4297" fill="none" stroke-linecap="square"/>
<polyline stroke="#00ff00" stroke-linejoin="miter" stroke-width="0.5" points="1151.33,97.4297 1155.57,93.187" fill="none" stroke-linecap="square"/>
<text xml:space="preserve" font-style="normal" font-size="9" transform="translate(1168.16,100.308) rotate(-0,-0,-5)" font-weight="normal" font-family="FreeSans">
<tspan y="-2" fill="rgb(0,0,0)" x="0 5 10 12 14 16 18 24 30 35 39 44 ">63 | CV6*16</tspan>
</text>
<polyline stroke="#0000ff" stroke-linejoin="miter" stroke-width="0.5" points="1150.45,109.513 1156.45,109.513" fill="none" stroke-linecap="square"/>
<polyline stroke="#0000ff" stroke-linejoin="miter" stroke-width="0.5" points="1153.45,106.513 1153.45,112.513" fill="none" stroke-linecap="square"/>
<polyline stroke="#0000ff" stroke-linejoin="miter" stroke-width="0.5" points="1151.33,107.392 1155.57,111.634" fill="none" stroke-linecap="square"/>
<polyline stroke="#0000ff" stroke-linejoin="miter" stroke-width="0.5" points="1151.33,111.634 1155.57,107.392" fill="none" stroke-linecap="square"/>
<text xml:space="preserve" font-style="normal" font-size="9" transform="translate(1168.16,114.513) rotate(-0,-0,-5)" font-weight="normal" font-family="FreeSans">
<tspan y="-2" fill="rgb(0,0,0)" x="0 5 10 15 17 19 21 23 29 35 40 44 49 ">126 | CV5*16</tspan>
</text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 15 KiB

@@ -8,8 +8,9 @@ You can choose any PCB manufacturer you like. The PCB is designed to fit with JL
2. Production files?
----------------------------------
The latest release includes the production files for JLCPCB, which includes the Gerber files, BOM, and Pick and Place files. You can find the latest release `here <https://github.com/gab-k/RP2040-Decoder/releases>`_.
In order to export the production files (Gerber/BOM/Pick and Place), you need `KiCad <https://www.kicad.org/download/>`_ which is open source.
In order to manually export the production files (Gerber/BOM/Pick and Place), you need `KiCad <https://www.kicad.org/download/>`_ which is open source.
In case you are ordering from JLCPCB it is recommended to use the `Fabrication-Toolkit KiCad plugin by bennymeg <https://github.com/bennymeg/Fabrication-Toolkit>`_
.. _building_the_software:
@@ -17,7 +18,7 @@ In case you are ordering from JLCPCB it is recommended to use the `Fabrication-T
3. Building the software
----------------------------------
If you got a RP2040-Decoder with USB the easiest way to get the RP2040-Decoder up and running is to just use the precompiled .uf2 file and ignore the rest of this section.
If you got a RP2040-Decoder with USB the easiest way to get the RP2040-Decoder up and running is to just use the precompiled .uf2 file in the latest `release <https://github.com/gab-k/RP2040-Decoder/releases>`_ and skip to :ref:`flashing_the_software`.
However sometimes you might want to build by yourself, be it for debugging or to make your own modifications to the source code.
The easiest way to do this is to just use `Visual Studio Code <https://code.visualstudio.com/>`_ and the Raspberry Pi Pico extension.
@@ -25,6 +26,8 @@ The `official documentation <https://datasheets.raspberrypi.com/pico/getting-sta
Note: If you are building for Hardware Rev 0.3 or below change the board defintion in your CMakeLists.txt file to: "RP2040-Decoder-board-legacy.h"
.. _flashing_the_software:
4. Flashing the software
----------------------------------
@@ -43,15 +46,18 @@ For RP2040-Decoders without USB the only way of flashing the software is via SWD
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
When first plugged in the RP2040 boots into Mass Storage Device mode. To flash the software, you need to drag the '.uf2' file onto the disk using any file explorer.
This will write the file to the Flash and restart the RP2040.
In case you want to repeat the flasing process, temporarily connect the solder bridge called JP1 on the back side of the board and power cycle the device.
In case you want to repeat the flashing process, hold the button SW1 while re-plugging the decoder into your computer. The decoder should now show as a Mass Storage Device again.
This procedure is also described in the `Raspberry Pi Pico Datasheet Chapter 4.1 <https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf#_programming_the_flash>`_
.. _flashing_the_software_swd:
4.2. Flashing the software via SWD
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Flashing via SWD is a little more complicated but also comes with great advantages in terms of debugging.
The book on `Getting started with Raspberry Pi Pico-series <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf>`_ does a great job of explaining how debugging works.
As already suggested in :ref:`3. <building_the_software>` it is recommended to use the `Visual Studio Code Extension <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#vscode-extension>`_.
Most relevant in the book are `Chapter 4.3. Debug <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#_debug>`_ and `Appendix A: Debugprobe <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#debugprobe_section>`_
As already suggested in :ref:`building_the_software` it is recommended to use the `Visual Studio Code Extension <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#vscode-extension>`_.
The most relevant sections in the book are `Chapter 4.3. Debug <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#_debug>`_ and `Appendix A: Debugprobe <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#debugprobe_section>`_
5. Wiring
----------------------------------
@@ -110,10 +110,6 @@ Complete Schematic
Complete Schematic
BOM & Alternative Parts
==============================
please see **PLACEHOLDER-AUTOGENERATED-BOM** for the complete BOM.
.. _wiring_rev_0_3:
@@ -112,10 +112,6 @@ Complete Schematic
Complete Schematic
BOM & Alternative Parts
==============================
please see **PLACEHOLDER-AUTOGENERATED-BOM** for the complete BOM.
.. _wiring_rev_1_0:
+2 -3
View File
@@ -10,8 +10,7 @@ RP2040-Decoder Documentation
:maxdepth: 3
:caption: Contents:
other/getting_started
gs/getting_started
hardware/index
software/index
other/index
other/troubleshooting
other/index
+126
View File
@@ -0,0 +1,126 @@
Configuration Variables (CV)
============================
.. note::
- ``CV.h`` contains default values for every CV. When your board is still "factory new" these values are automatically written into flash. ``CV_65 == 255`` indicates a factory condition and resets all CVs to default.
- Index 0 in the CV array corresponds with ``CV_1``, index 1 corresponds with ``CV_2`` and so forth.
Reset all CVs
------------------------
To reset all CVs to default, a value of ``8`` can be written to ``CV8``. Alternatively write a value of ``255`` to ``CV_65`` this will also reset all CVs to default, but only after power cycling the decoder.
Speed step configuration
------------------------
.. figure:: ../../../svg/sw/speed_table.svg
:alt: Speed Table
:align: center
Speed Table
* :math:`v_{min} = CV_{2}`
* :math:`v_{mid} = 16 \cdot CV_{6}`
* :math:`v_{max} = 16 \cdot CV_{5}`
The figure above shows how the speed steps can be configured using the corresponding CVs. The red * represents :math:`v_{min}` which is always at speed step 1, the green * shows :math:`v_{mid}` at speed step 63, and the blue * shows :math:`v_{max}` at speed step 126.
CV List
-------
:math:`CV_{1}` - Basic address
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Short DCC address
:math:`CV_{2}` - :math:`v_{min}`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Min motor voltage/speed is: :math:`v_{min} = CV_{2}`
:math:`CV_{3}` - Acceleration rate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The time for one discrete acceleration time step can be calculated as :math:`CV_{3} \cdot CV_{175}`.
.. note:: Base speed steps are always 128/126 steps.
:math:`CV_{4}` - Deceleration rate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The time for one discrete deceleration time step can be calculated as :math:`CV_{4} \cdot CV_{175}`.
.. note:: Base speed steps are always 128/126 steps.
:math:`CV_{5}` - :math:`v_{max}`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Max motor voltage/speed is calculated as: :math:`v_{max} = 16 \cdot CV_{5}`
:math:`CV_{6}` - :math:`v_{mid}`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mid motor voltage/speed is calculated as: :math:`v_{mid} = 16 \cdot CV_{6}`
:math:`CV_{7}` - Version No. (Read-Only)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Writing a value of ``7`` triggers an ADC offset adjustment.
:math:`CV_{8}` - Manufacturer (Read-Only)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default = ``13`` = Public Domain & Do-It-Yourself Decoders
Even though :math:`CV_{8}` is defined as a Read-only CV, writing a value of ``8`` resets all CV values to the default values in ``CV.h``.
:math:`CV_{9}` - Motor PWM Frequency
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:math:`f_{PWM_{MOTOR}} = (CV_9 \cdot 100 + 10000) \, Hz`
:math:`CV_{11}` - Packet timeout
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If no package is received for :math:`x = CV_{11}` seconds the decoder will automatically stop the motor (Emergency Stop).
:math:`CV_{12}` - Permitted operating modes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Currently, DCC Digital mode is the only supported mode.
:math:`CV_{17}` & :math:`CV_{18}` - 14-Bit extended/long address
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Address is only used if bit5 of :math:`CV_{29}` has a value of ``1``.
.. image:: ../../../svg/sw/Long_address.svg
:alt: Long Address
:align: center
Bit15 and bit14 which correspond to bit7 and bit6 of :math:`CV_{17}` are always ``1``. :math:`CV_{17} = 192` & :math:`CV_{18} = 0` is also not a valid address.
Otherwise, the valid value range of :math:`CV_{17}` ranges from ``192`` to ``231`` and ``0`` to ``255`` for :math:`CV_{18}` respectively.
:math:`CV_{29}` - Decoder Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bit0 is can be used to reverse motor direction, i.e., ``0`` = normal, ``1`` = reverse.
Bit5 switches between basic and extended addressing modes, i.e., ``0`` = basic address, ``1`` = extended address.
The other 6 bits are currently not in use and therefore irrelevant.
:math:`CV_{31}` & :math:`CV_{32}` - Extended CV pointer (Read-Only)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Not in use.
:math:`CV_{116}` to :math:`CV_{171}` - PWM Slice configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. image:: ../../../svg/sw/GPIO_slices.svg
:alt: GPIO Slices
:align: center
Every slice controls two independent output channels, duty cycle from 0% to 100% inclusive, and can be configured with several parameters:
* Wrap (16Bit): Sets the slice time period of x cycles - effectively determining the frequency
* Clock Divider: Additional clock divider
* Level Channel A / Level Channel B (16Bit each): Determining how many of the x cycles the signal is at a high level - effectively determining the duty cycle
To see which CVs correspond to which slice and channel, it is advisable to use ``CV.h`` as a reference.
The PWM frequency is calculated as follows: :math:`f_{PWM} = \frac{125 \, \text{MHz}}{(CV_{\text{clk_div}} + 1) \cdot (CV_{\text{wrap}} + 1)}`
The duty-cycle can be calculated as follows: :math:`D = \frac{CV_{\text{Level}}}{CV_{\text{wrap}} + 1}`
A more detailed explanation regarding PWM can be found in the `RP2040-Datasheet - Chapter 4.5 <https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf>`_.
@@ -0,0 +1,23 @@
Debugging and Logging
==================================
For logging and debugging you have to build the software yourself. This is explained here: :ref:`building_the_software`
.. _debugging_via_swd:
Debugging via SWD
----------------------------------
Please refer to :ref:`flashing_the_software_swd`.
.. _logging:
Logging
----------------------------------
Logging can be enabled in ``CMakeLists.txt``, and is available with two interfaces:
- Logging via UART RX/TX pins (GPIO0/GPIO1 by default)
- Logging via USB CDC/ACM
Additionally you can make the decoder wait for input via serial port by setting LOG_WAIT to 1. For more details please see comments inside ``CMakeLists.txt``.
+3 -2
View File
@@ -5,5 +5,6 @@ Other
:maxdepth: 2
:caption: Contents:
CV_list
troubleshooting
troubleshooting
debug_logging
CV_list
@@ -0,0 +1,27 @@
Troubleshooting
================
To narrow down the issue when your decoder is not working as expected, you can do the following (in no particular order):
Enable logging and or debug via SWD
------------------------------------
Log messages can be enabled and output via either UART or USB please see :ref:`logging` for details.
For more advanced users it might also be beneficial to :ref:`debug with SWD <debugging_via_swd>`
Checking the power supply:
--------------------------------------
* **+3V3 to GND** should be 3.3V ± 1%
* **VDC/+V to GND** should be somewhere in the range of at least 6V to 23V depending on your track voltage.
If you don't measure the correct voltages, try to `measure your track voltage <https://dccwiki.com/Measuring_Track_Voltage>`_
Check your motor:
-----------------
Desolder your motor and try the motor with an appropriate power supply and DC voltage, to check if the motor is working or not.
CV Reset:
------------
Try to reset the decoder by writing a value of ``8`` to ``CV8`` (beware, this will reset the complete CV memory!)
@@ -65,14 +65,14 @@ Control Loop & Digital Controller
Control Loop - Block diagram
The block diagram above shows the complete control loop. The actual digital controller block is explained below.
The block diagram above shows the (simplified) control loop. The actual digital controller block is explained below.
The Speed Helper block effectively sets the setpoint of the controller according to the CV configured acceleration and deceleration rates and actual target speedstep.
The *Speed Helper* block effectively sets the setpoint of the controller according to the CV configured acceleration and deceleration rates and actual target speedstep.
For feedback the back EMF voltage V_EMF is measured via voltage divider and ADC. V_EMF is proportional to the motor speed in RPM.
For feedback the back EMF voltage *V_EMF* is measured via voltage divider and ADC. *V_EMF* is proportional to the motor speed.
TODO: rewrite this: While the central component is the PID controller, there is an additional block called `Feed-forward <https://en.wikipedia.org/wiki/Feed_forward_(control)>`_ that has an impact on the control output variable. The Feed-forward block adds an additional offset to the output depending on the setpoint; this is done to achieve better control. A more detailed explanation regarding Feed-forward can be found below. The speed helper block corresponds to the ``speed_helper()`` function, which delays changing the setpoint according to the configured deceleration/acceleration rates.
While the central component is the PID controller, there is an additional block called `Feed-forward <https://en.wikipedia.org/wiki/Feed_forward_(control)>`_ that has an impact on the control output variable. The Feed-forward block adds an additional offset to the output depending on the setpoint; this is done to achieve better control. A more detailed explanation regarding Feed-forward can be found below. The speed helper block corresponds to the ``speed_helper()`` function, which delays changing the setpoint according to the configured deceleration/acceleration rates.
.. figure:: ../../../svg/sw/Block_Diagram_Digital_Controller.svg
:alt: Block Diagram - Digital Controller
@@ -80,12 +80,27 @@ TODO: rewrite this: While the central component is the PID controller, there is
Digital Controller - Block diagram
The controller is divided into two parts, depending on whether the motor is stationary or in motion. The startup controller handles overcoming friction of the motor, and finding base PWM level for overcoming friction. The base PWM level is saved and added to the output of the PID controller which handles motor control when the motor is in motion.
The controller is divided into two parts, depending on whether the motor is stationary or in motion.
At all times either the startup controller or the PID controller is active.
The startup controller handles overcoming friction of the motor, and finding a base PWM level for overcoming friction.
The base PWM level is equivalent to a certain PWM duty cycle.
The base level gets saved and added to the output of the PID controller which handles motor control when the motor is in motion.
This means the actual output of the PID controller is the sum of the PID output and the base PWM level. This is referred to as the :ref:`feed forward <feed_forward>` block.
The benefit of doing this is that the PID controller does not have to work in the non linear friction region of the motor, improving control performance.
Startup Controller
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Used on startup, meaning when the motor is not moving. The startup controller sets a PWM duty cycle level of :math:`\frac{2}{3} \cdot \text{base_pwm}` and then ramps up the duty cycle/PWM level until the motor starts moving. This is done in order to overcome the friction of the drive train and motor. :math:`\text{base_pwm}` is the average value of the 16 previous startup PWM levels. When no previous startup PWM levels are saved the startup controller begins ramping up from 0. The actual value at which the motor started moving is used as a reference for the :ref:`feed forward <feed_forward>` block.
Used on startup, meaning when the motor is not moving. First the startup controller retrieves the last `BASE_PWM_ARR_LEN` base PWM levels.
The base pwm levels are not retained on a power cycle. That means when there is no previous base PWM level saved, the startup controller will start ramping up from 0.
When there is less than `BASE_PWM_ARR_LEN` base PWM levels saved, the startup controller will ramp up from the average of the saved base PWM levels.
After the startup controller retrieved the average of the last base pwm levels :math:`\bar{b}` it sets a PWM duty cycle level of :math:`\frac{2}{3} \cdot \bar{b}` and then ramps up the duty cycle/PWM level until the motor starts moving.
When no previous startup PWM levels are saved the startup controller begins ramping up from 0.
The actual value at which the motor started moving is multiplied by `K_FF` and used as a reference for the :ref:`feed forward <feed_forward>` block.
PID Controller
@@ -131,7 +146,7 @@ This results in the following difference equations which are then implemented in
Gain Scheduling
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^^^^^^^^^^^^^^^^^^^^
.. figure:: ../../../svg/sw/adaptive_kp.svg
:alt: Gain Scheduling figure
@@ -145,19 +160,12 @@ Another aspect to consider is the implementation of `gain scheduling <https://en
.. _feed_forward:
Feed-forward
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^^^^^^^^^^^^^^^^^^
As previously mentioned, to achieve better control, `Feed-forward <https://en.wikipedia.org/wiki/Feed_forward_(control)>`_ is used.
In essence this means that the output of the PID controller is not only the sum of the proportional, integral, and derivative parts, but also the base PWM level.
The base PWM level is set by the startup controller and is the PWM level at which the motor starts moving.
.. figure:: ../../../svg/sw/feed_forward.svg
:alt: Feed forward figure
:align: center
Feed-forward
TODO: Update this part:
To achieve better control, `Feed-forward <https://en.wikipedia.org/wiki/Feed_forward_(control)>`_ is used. On startup, the decoder will check for a configuration regarding Feed-forward control. When no configuration is found, the decoder automatically runs a calibration to establish a base PWM level (y\ :sub:`1`) for both directions. The base PWM level (y\ :sub:`1`) will vary depending on load, motor, and voltage on the tracks and can be configured with CV_176 - CV_179. If the setpoint is greater than the threshold, y\ :sub:`2` is corrected automatically when i\ :sub:`n` reaches 0.5i\ :sub:`min` or 0.5i\ :sub:`max`. CV_47 can be used to set how sensitive this correction is.
Back-EMF voltage measurement
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+1 -1
View File
@@ -41,7 +41,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="hardware/index.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="software/index.html">Software</a></li>
<li class="toctree-l1"><a class="reference internal" href="other/index.html">Other</a></li>
@@ -59,7 +59,7 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/index.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../software/index.html">Software</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html">Other</a></li>
<li class="toctree-l1"><a class="reference internal" href="../other/index.html">Other</a></li>
</ul>
</div>
@@ -78,7 +78,7 @@
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">Getting started</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/other/getting_started.rst.txt" rel="nofollow"> View page source</a>
<a href="../_sources/gs/getting_started.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
@@ -94,19 +94,20 @@
</section>
<section id="production-files">
<h2>2. Production files?<a class="headerlink" href="#production-files" title="Link to this heading"></a></h2>
<p>In order to export the production files (Gerber/BOM/Pick and Place), you need <a class="reference external" href="https://www.kicad.org/download/">KiCad</a> which is open source.
<p>The latest release includes the production files for JLCPCB, which includes the Gerber files, BOM, and Pick and Place files. You can find the latest release <a class="reference external" href="https://github.com/gab-k/RP2040-Decoder/releases">here</a>.</p>
<p>In order to manually export the production files (Gerber/BOM/Pick and Place), you need <a class="reference external" href="https://www.kicad.org/download/">KiCad</a> which is open source.
In case you are ordering from JLCPCB it is recommended to use the <a class="reference external" href="https://github.com/bennymeg/Fabrication-Toolkit">Fabrication-Toolkit KiCad plugin by bennymeg</a></p>
</section>
<section id="building-the-software">
<span id="id1"></span><h2>3. Building the software<a class="headerlink" href="#building-the-software" title="Link to this heading"></a></h2>
<p>If you got a RP2040-Decoder with USB the easiest way to get the RP2040-Decoder up and running is to just use the precompiled .uf2 file and ignore the rest of this section.</p>
<p>If you got a RP2040-Decoder with USB the easiest way to get the RP2040-Decoder up and running is to just use the precompiled .uf2 file in the latest <a class="reference external" href="https://github.com/gab-k/RP2040-Decoder/releases">release</a> and skip to <a class="reference internal" href="#flashing-the-software"><span class="std std-ref">4. Flashing the software</span></a>.</p>
<p>However sometimes you might want to build by yourself, be it for debugging or to make your own modifications to the source code.
The easiest way to do this is to just use <a class="reference external" href="https://code.visualstudio.com/">Visual Studio Code</a> and the Raspberry Pi Pico extension.
The <a class="reference external" href="https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#vscode-extension">official documentation</a> of the Pi Pico does a great job of explaining this in detail.</p>
<p>Note: If you are building for Hardware Rev 0.3 or below change the board defintion in your CMakeLists.txt file to: “RP2040-Decoder-board-legacy.h”</p>
</section>
<section id="flashing-the-software">
<h2>4. Flashing the software<a class="headerlink" href="#flashing-the-software" title="Link to this heading"></a></h2>
<span id="id2"></span><h2>4. Flashing the software<a class="headerlink" href="#flashing-the-software" title="Link to this heading"></a></h2>
<p>For RP2040-Decoders with USB there is two ways of flashing the software:</p>
<ol class="arabic">
<li><p>Flashing via USB using the .uf2 file by copying it with your preferred file explorer.</p></li>
@@ -120,15 +121,15 @@ The <a class="reference external" href="https://datasheets.raspberrypi.com/pico/
<h3>4.1. Flashing the software via .uf2 file<a class="headerlink" href="#flashing-the-software-via-uf2-file" title="Link to this heading"></a></h3>
<p>When first plugged in the RP2040 boots into Mass Storage Device mode. To flash the software, you need to drag the ‘.uf2’ file onto the disk using any file explorer.
This will write the file to the Flash and restart the RP2040.
In case you want to repeat the flasing process, temporarily connect the solder bridge called JP1 on the back side of the board and power cycle the device.
In case you want to repeat the flashing process, hold the button SW1 while re-plugging the decoder into your computer. The decoder should now show as a Mass Storage Device again.
This procedure is also described in the <a class="reference external" href="https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf#_programming_the_flash">Raspberry Pi Pico Datasheet Chapter 4.1</a></p>
</section>
<section id="flashing-the-software-via-swd">
<h3>4.2. Flashing the software via SWD<a class="headerlink" href="#flashing-the-software-via-swd" title="Link to this heading"></a></h3>
<span id="flashing-the-software-swd"></span><h3>4.2. Flashing the software via SWD<a class="headerlink" href="#flashing-the-software-via-swd" title="Link to this heading"></a></h3>
<p>Flashing via SWD is a little more complicated but also comes with great advantages in terms of debugging.
The book on <a class="reference external" href="https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf">Getting started with Raspberry Pi Pico-series</a> does a great job of explaining how debugging works.
As already suggested in <a class="reference internal" href="#building-the-software"><span class="std std-ref">3.</span></a> it is recommended to use the <a class="reference external" href="https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#vscode-extension">Visual Studio Code Extension</a>.
Most relevant in the book are <a class="reference external" href="https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#_debug">Chapter 4.3. Debug</a> and <a class="reference external" href="https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#debugprobe_section">Appendix A: Debugprobe</a></p>
As already suggested in <a class="reference internal" href="#building-the-software"><span class="std std-ref">3. Building the software</span></a> it is recommended to use the <a class="reference external" href="https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#vscode-extension">Visual Studio Code Extension</a>.
The most relevant sections in the book are <a class="reference external" href="https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#_debug">Chapter 4.3. Debug</a> and <a class="reference external" href="https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#debugprobe_section">Appendix A: Debugprobe</a></p>
</section>
</section>
<section id="wiring">
+3 -7
View File
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Overview" href="rev_1_0/hw_description.html" />
<link rel="prev" title="Getting started" href="../other/getting_started.html" />
<link rel="prev" title="Getting started" href="../gs/getting_started.html" />
</head>
<body class="wy-body-for-nav">
@@ -44,7 +44,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Hardware</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#revision-1-0">Revision 1.0</a><ul>
<li class="toctree-l3"><a class="reference internal" href="rev_1_0/hw_description.html">Overview</a></li>
@@ -55,7 +55,6 @@
<li class="toctree-l3"><a class="reference internal" href="rev_1_0/hw_description.html#gpio">GPIO</a></li>
<li class="toctree-l3"><a class="reference internal" href="rev_1_0/hw_description.html#microcontroller">Microcontroller</a></li>
<li class="toctree-l3"><a class="reference internal" href="rev_1_0/hw_description.html#complete-schematic">Complete Schematic</a></li>
<li class="toctree-l3"><a class="reference internal" href="rev_1_0/hw_description.html#bom-alternative-parts">BOM &amp; Alternative Parts</a></li>
<li class="toctree-l3"><a class="reference internal" href="rev_1_0/hw_description.html#wiring-the-decoder">Wiring the Decoder</a></li>
</ul>
</li>
@@ -68,7 +67,6 @@
<li class="toctree-l3"><a class="reference internal" href="rev_0_3/hw_description.html#gpio">GPIO</a></li>
<li class="toctree-l3"><a class="reference internal" href="rev_0_3/hw_description.html#microcontroller">Microcontroller</a></li>
<li class="toctree-l3"><a class="reference internal" href="rev_0_3/hw_description.html#complete-schematic">Complete Schematic</a></li>
<li class="toctree-l3"><a class="reference internal" href="rev_0_3/hw_description.html#bom-alternative-parts">BOM &amp; Alternative Parts</a></li>
<li class="toctree-l3"><a class="reference internal" href="rev_0_3/hw_description.html#wiring-the-decoder">Wiring the Decoder</a></li>
</ul>
</li>
@@ -116,7 +114,6 @@
<li class="toctree-l1"><a class="reference internal" href="rev_1_0/hw_description.html#gpio">GPIO</a></li>
<li class="toctree-l1"><a class="reference internal" href="rev_1_0/hw_description.html#microcontroller">Microcontroller</a></li>
<li class="toctree-l1"><a class="reference internal" href="rev_1_0/hw_description.html#complete-schematic">Complete Schematic</a></li>
<li class="toctree-l1"><a class="reference internal" href="rev_1_0/hw_description.html#bom-alternative-parts">BOM &amp; Alternative Parts</a></li>
<li class="toctree-l1"><a class="reference internal" href="rev_1_0/hw_description.html#wiring-the-decoder">Wiring the Decoder</a></li>
</ul>
</div>
@@ -133,7 +130,6 @@
<li class="toctree-l1"><a class="reference internal" href="rev_0_3/hw_description.html#gpio">GPIO</a></li>
<li class="toctree-l1"><a class="reference internal" href="rev_0_3/hw_description.html#microcontroller">Microcontroller</a></li>
<li class="toctree-l1"><a class="reference internal" href="rev_0_3/hw_description.html#complete-schematic">Complete Schematic</a></li>
<li class="toctree-l1"><a class="reference internal" href="rev_0_3/hw_description.html#bom-alternative-parts">BOM &amp; Alternative Parts</a></li>
<li class="toctree-l1"><a class="reference internal" href="rev_0_3/hw_description.html#wiring-the-decoder">Wiring the Decoder</a></li>
</ul>
</div>
@@ -144,7 +140,7 @@
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="../other/getting_started.html" class="btn btn-neutral float-left" title="Getting started" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="../gs/getting_started.html" class="btn btn-neutral float-left" title="Getting started" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="rev_1_0/hw_description.html" class="btn btn-neutral float-right" title="Overview" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
@@ -44,7 +44,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">Hardware</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../index.html#revision-1-0">Revision 1.0</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../index.html#revision-0-3">Revision 0.3</a><ul class="current">
@@ -56,7 +56,6 @@
<li class="toctree-l3"><a class="reference internal" href="#gpio">GPIO</a></li>
<li class="toctree-l3"><a class="reference internal" href="#microcontroller">Microcontroller</a></li>
<li class="toctree-l3"><a class="reference internal" href="#complete-schematic">Complete Schematic</a></li>
<li class="toctree-l3"><a class="reference internal" href="#bom-alternative-parts">BOM &amp; Alternative Parts</a></li>
<li class="toctree-l3"><a class="reference internal" href="#wiring-the-decoder">Wiring the Decoder</a></li>
</ul>
</li>
@@ -254,10 +253,6 @@
</figcaption>
</figure>
</section>
<section id="bom-alternative-parts">
<h1>BOM &amp; Alternative Parts<a class="headerlink" href="#bom-alternative-parts" title="Link to this heading"></a></h1>
<p>please see <strong>PLACEHOLDER-AUTOGENERATED-BOM</strong> for the complete BOM.</p>
</section>
<section id="wiring-the-decoder">
<span id="wiring-rev-0-3"></span><h1>Wiring the Decoder<a class="headerlink" href="#wiring-the-decoder" title="Link to this heading"></a></h1>
<figure class="align-center" id="id8">
@@ -44,7 +44,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">Hardware</a><ul class="current">
<li class="toctree-l2 current"><a class="reference internal" href="../index.html#revision-1-0">Revision 1.0</a><ul class="current">
<li class="toctree-l3 current"><a class="current reference internal" href="#">Overview</a></li>
@@ -55,7 +55,6 @@
<li class="toctree-l3"><a class="reference internal" href="#gpio">GPIO</a></li>
<li class="toctree-l3"><a class="reference internal" href="#microcontroller">Microcontroller</a></li>
<li class="toctree-l3"><a class="reference internal" href="#complete-schematic">Complete Schematic</a></li>
<li class="toctree-l3"><a class="reference internal" href="#bom-alternative-parts">BOM &amp; Alternative Parts</a></li>
<li class="toctree-l3"><a class="reference internal" href="#wiring-the-decoder">Wiring the Decoder</a></li>
</ul>
</li>
@@ -256,14 +255,10 @@
</figcaption>
</figure>
</section>
<section id="bom-alternative-parts">
<h1>BOM &amp; Alternative Parts<a class="headerlink" href="#bom-alternative-parts" title="Link to this heading"></a></h1>
<p>please see <strong>PLACEHOLDER-AUTOGENERATED-BOM</strong> for the complete BOM.</p>
</section>
<section id="wiring-the-decoder">
<span id="wiring-rev-1-0"></span><h1>Wiring the Decoder<a class="headerlink" href="#wiring-the-decoder" title="Link to this heading"></a></h1>
<figure class="align-center" id="id8">
<a class="reference internal image-reference" href="../../svg/hw/rev_1_0/Wiring_diagram.svg"><img alt="Wiring Diagram" src="../../svg/hw/rev_1_0/Wiring_diagram.svg" style="width: 700px;" />
<a class="reference internal image-reference" href="../../_images/Wiring_diagram1.svg"><img alt="Wiring Diagram" src="../../_images/Wiring_diagram1.svg" style="width: 700px;" />
</a>
<figcaption>
<p><span class="caption-text">Wiring Diagram</span><a class="headerlink" href="#id8" title="Link to this image"></a></p>
+31 -15
View File
@@ -20,7 +20,7 @@
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Getting started" href="other/getting_started.html" />
<link rel="next" title="Getting started" href="gs/getting_started.html" />
</head>
<body class="wy-body-for-nav">
@@ -44,7 +44,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="hardware/index.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="software/index.html">Software</a></li>
<li class="toctree-l1"><a class="reference internal" href="other/index.html">Other</a></li>
@@ -79,17 +79,17 @@
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="other/getting_started.html">Getting started</a><ul>
<li class="toctree-l2"><a class="reference internal" href="other/getting_started.html#where-to-get-the-board">1. Where to get the board?</a></li>
<li class="toctree-l2"><a class="reference internal" href="other/getting_started.html#production-files">2. Production files?</a></li>
<li class="toctree-l2"><a class="reference internal" href="other/getting_started.html#building-the-software">3. Building the software</a></li>
<li class="toctree-l2"><a class="reference internal" href="other/getting_started.html#flashing-the-software">4. Flashing the software</a><ul>
<li class="toctree-l3"><a class="reference internal" href="other/getting_started.html#flashing-the-software-via-uf2-file">4.1. Flashing the software via .uf2 file</a></li>
<li class="toctree-l3"><a class="reference internal" href="other/getting_started.html#flashing-the-software-via-swd">4.2. Flashing the software via SWD</a></li>
<li class="toctree-l1"><a class="reference internal" href="gs/getting_started.html">Getting started</a><ul>
<li class="toctree-l2"><a class="reference internal" href="gs/getting_started.html#where-to-get-the-board">1. Where to get the board?</a></li>
<li class="toctree-l2"><a class="reference internal" href="gs/getting_started.html#production-files">2. Production files?</a></li>
<li class="toctree-l2"><a class="reference internal" href="gs/getting_started.html#building-the-software">3. Building the software</a></li>
<li class="toctree-l2"><a class="reference internal" href="gs/getting_started.html#flashing-the-software">4. Flashing the software</a><ul>
<li class="toctree-l3"><a class="reference internal" href="gs/getting_started.html#flashing-the-software-via-uf2-file">4.1. Flashing the software via .uf2 file</a></li>
<li class="toctree-l3"><a class="reference internal" href="gs/getting_started.html#flashing-the-software-via-swd">4.2. Flashing the software via SWD</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="other/getting_started.html#wiring">5. Wiring</a></li>
<li class="toctree-l2"><a class="reference internal" href="other/getting_started.html#resolving-issues">6. Resolving issues</a></li>
<li class="toctree-l2"><a class="reference internal" href="gs/getting_started.html#wiring">5. Wiring</a></li>
<li class="toctree-l2"><a class="reference internal" href="gs/getting_started.html#resolving-issues">6. Resolving issues</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="hardware/index.html">Hardware</a><ul>
@@ -102,7 +102,6 @@
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_1_0/hw_description.html#gpio">GPIO</a></li>
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_1_0/hw_description.html#microcontroller">Microcontroller</a></li>
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_1_0/hw_description.html#complete-schematic">Complete Schematic</a></li>
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_1_0/hw_description.html#bom-alternative-parts">BOM &amp; Alternative Parts</a></li>
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_1_0/hw_description.html#wiring-the-decoder">Wiring the Decoder</a></li>
</ul>
</li>
@@ -115,7 +114,6 @@
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_0_3/hw_description.html#gpio">GPIO</a></li>
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_0_3/hw_description.html#microcontroller">Microcontroller</a></li>
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_0_3/hw_description.html#complete-schematic">Complete Schematic</a></li>
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_0_3/hw_description.html#bom-alternative-parts">BOM &amp; Alternative Parts</a></li>
<li class="toctree-l3"><a class="reference internal" href="hardware/rev_0_3/hw_description.html#wiring-the-decoder">Wiring the Decoder</a></li>
</ul>
</li>
@@ -230,7 +228,25 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="other/index.html">Other</a><ul class="simple">
<li class="toctree-l1"><a class="reference internal" href="other/index.html">Other</a><ul>
<li class="toctree-l2"><a class="reference internal" href="other/troubleshooting.html">Troubleshooting</a><ul>
<li class="toctree-l3"><a class="reference internal" href="other/troubleshooting.html#enable-logging-and-or-debug-via-swd">Enable logging and or debug via SWD</a></li>
<li class="toctree-l3"><a class="reference internal" href="other/troubleshooting.html#checking-the-power-supply">Checking the power supply:</a></li>
<li class="toctree-l3"><a class="reference internal" href="other/troubleshooting.html#check-your-motor">Check your motor:</a></li>
<li class="toctree-l3"><a class="reference internal" href="other/troubleshooting.html#cv-reset">CV Reset:</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="other/debug_logging.html">Debugging and Logging</a><ul>
<li class="toctree-l3"><a class="reference internal" href="other/debug_logging.html#debugging-via-swd">Debugging via SWD</a></li>
<li class="toctree-l3"><a class="reference internal" href="other/debug_logging.html#logging">Logging</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="other/CV_list.html">Configuration Variables (CV)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="other/CV_list.html#reset-all-cvs">Reset all CVs</a></li>
<li class="toctree-l3"><a class="reference internal" href="other/CV_list.html#speed-step-configuration">Speed step configuration</a></li>
<li class="toctree-l3"><a class="reference internal" href="other/CV_list.html#cv-list">CV List</a></li>
</ul>
</li>
</ul>
</li>
</ul>
@@ -241,7 +257,7 @@
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="other/getting_started.html" class="btn btn-neutral float-right" title="Getting started" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
<a href="gs/getting_started.html" class="btn btn-neutral float-right" title="Getting started" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
Binary file not shown.
+252
View File
@@ -0,0 +1,252 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Configuration Variables (CV) &mdash; RP2040-Decoder 0.3, 1.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=e59714d7" />
<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=6bd3bce2"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="prev" title="Debugging and Logging" href="debug_logging.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home">
RP2040-Decoder
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/index.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../software/index.html">Software</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Other</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="troubleshooting.html">Troubleshooting</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug_logging.html">Debugging and Logging</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Configuration Variables (CV)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#reset-all-cvs">Reset all CVs</a></li>
<li class="toctree-l3"><a class="reference internal" href="#speed-step-configuration">Speed step configuration</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-list">CV List</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#cv-1-basic-address"><span class="math notranslate nohighlight">\(CV_{1}\)</span> - Basic address</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-2-v-min"><span class="math notranslate nohighlight">\(CV_{2}\)</span> - <span class="math notranslate nohighlight">\(v_{min}\)</span></a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-3-acceleration-rate"><span class="math notranslate nohighlight">\(CV_{3}\)</span> - Acceleration rate</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-4-deceleration-rate"><span class="math notranslate nohighlight">\(CV_{4}\)</span> - Deceleration rate</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-5-v-max"><span class="math notranslate nohighlight">\(CV_{5}\)</span> - <span class="math notranslate nohighlight">\(v_{max}\)</span></a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-6-v-mid"><span class="math notranslate nohighlight">\(CV_{6}\)</span> - <span class="math notranslate nohighlight">\(v_{mid}\)</span></a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-7-version-no-read-only"><span class="math notranslate nohighlight">\(CV_{7}\)</span> - Version No. (Read-Only)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-8-manufacturer-read-only"><span class="math notranslate nohighlight">\(CV_{8}\)</span> - Manufacturer (Read-Only)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-9-motor-pwm-frequency"><span class="math notranslate nohighlight">\(CV_{9}\)</span> - Motor PWM Frequency</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-11-packet-timeout"><span class="math notranslate nohighlight">\(CV_{11}\)</span> - Packet timeout</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-12-permitted-operating-modes"><span class="math notranslate nohighlight">\(CV_{12}\)</span> - Permitted operating modes</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-17-cv-18-14-bit-extended-long-address"><span class="math notranslate nohighlight">\(CV_{17}\)</span> &amp; <span class="math notranslate nohighlight">\(CV_{18}\)</span> - 14-Bit extended/long address</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-29-decoder-configuration"><span class="math notranslate nohighlight">\(CV_{29}\)</span> - Decoder Configuration</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-31-cv-32-extended-cv-pointer-read-only"><span class="math notranslate nohighlight">\(CV_{31}\)</span> &amp; <span class="math notranslate nohighlight">\(CV_{32}\)</span> - Extended CV pointer (Read-Only)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#cv-116-to-cv-171-pwm-slice-configuration"><span class="math notranslate nohighlight">\(CV_{116}\)</span> to <span class="math notranslate nohighlight">\(CV_{171}\)</span> - PWM Slice configuration</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">RP2040-Decoder</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="index.html">Other</a></li>
<li class="breadcrumb-item active">Configuration Variables (CV)</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/other/CV_list.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="configuration-variables-cv">
<h1>Configuration Variables (CV)<a class="headerlink" href="#configuration-variables-cv" title="Link to this heading"></a></h1>
<div class="admonition note">
<p class="admonition-title">Note</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">CV.h</span></code> contains default values for every CV. When your board is still “factory new” these values are automatically written into flash. <code class="docutils literal notranslate"><span class="pre">CV_65</span> <span class="pre">==</span> <span class="pre">255</span></code> indicates a factory condition and resets all CVs to default.</p></li>
<li><p>Index 0 in the CV array corresponds with <code class="docutils literal notranslate"><span class="pre">CV_1</span></code>, index 1 corresponds with <code class="docutils literal notranslate"><span class="pre">CV_2</span></code> and so forth.</p></li>
</ul>
</div>
<section id="reset-all-cvs">
<h2>Reset all CVs<a class="headerlink" href="#reset-all-cvs" title="Link to this heading"></a></h2>
<p>To reset all CVs to default, a value of <code class="docutils literal notranslate"><span class="pre">8</span></code> can be written to <code class="docutils literal notranslate"><span class="pre">CV8</span></code>. Alternatively write a value of <code class="docutils literal notranslate"><span class="pre">255</span></code> to <code class="docutils literal notranslate"><span class="pre">CV_65</span></code> this will also reset all CVs to default, but only after power cycling the decoder.</p>
</section>
<section id="speed-step-configuration">
<h2>Speed step configuration<a class="headerlink" href="#speed-step-configuration" title="Link to this heading"></a></h2>
<figure class="align-center" id="id1">
<img alt="Speed Table" src="../_images/speed_table.svg" />
<figcaption>
<p><span class="caption-text">Speed Table</span><a class="headerlink" href="#id1" title="Link to this image"></a></p>
</figcaption>
</figure>
<ul class="simple">
<li><p><span class="math notranslate nohighlight">\(v_{min} = CV_{2}\)</span></p></li>
<li><p><span class="math notranslate nohighlight">\(v_{mid} = 16 \cdot CV_{6}\)</span></p></li>
<li><p><span class="math notranslate nohighlight">\(v_{max} = 16 \cdot CV_{5}\)</span></p></li>
</ul>
<p>The figure above shows how the speed steps can be configured using the corresponding CVs. The red * represents <span class="math notranslate nohighlight">\(v_{min}\)</span> which is always at speed step 1, the green * shows <span class="math notranslate nohighlight">\(v_{mid}\)</span> at speed step 63, and the blue * shows <span class="math notranslate nohighlight">\(v_{max}\)</span> at speed step 126.</p>
</section>
<section id="cv-list">
<h2>CV List<a class="headerlink" href="#cv-list" title="Link to this heading"></a></h2>
<section id="cv-1-basic-address">
<h3><span class="math notranslate nohighlight">\(CV_{1}\)</span> - Basic address<a class="headerlink" href="#cv-1-basic-address" title="Link to this heading"></a></h3>
<p>Short DCC address</p>
</section>
<section id="cv-2-v-min">
<h3><span class="math notranslate nohighlight">\(CV_{2}\)</span> - <span class="math notranslate nohighlight">\(v_{min}\)</span><a class="headerlink" href="#cv-2-v-min" title="Link to this heading"></a></h3>
<p>Min motor voltage/speed is: <span class="math notranslate nohighlight">\(v_{min} = CV_{2}\)</span></p>
</section>
<section id="cv-3-acceleration-rate">
<h3><span class="math notranslate nohighlight">\(CV_{3}\)</span> - Acceleration rate<a class="headerlink" href="#cv-3-acceleration-rate" title="Link to this heading"></a></h3>
<p>The time for one discrete acceleration time step can be calculated as <span class="math notranslate nohighlight">\(CV_{3} \cdot CV_{175}\)</span>.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Base speed steps are always 128/126 steps.</p>
</div>
</section>
<section id="cv-4-deceleration-rate">
<h3><span class="math notranslate nohighlight">\(CV_{4}\)</span> - Deceleration rate<a class="headerlink" href="#cv-4-deceleration-rate" title="Link to this heading"></a></h3>
<p>The time for one discrete deceleration time step can be calculated as <span class="math notranslate nohighlight">\(CV_{4} \cdot CV_{175}\)</span>.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Base speed steps are always 128/126 steps.</p>
</div>
</section>
<section id="cv-5-v-max">
<h3><span class="math notranslate nohighlight">\(CV_{5}\)</span> - <span class="math notranslate nohighlight">\(v_{max}\)</span><a class="headerlink" href="#cv-5-v-max" title="Link to this heading"></a></h3>
<p>Max motor voltage/speed is calculated as: <span class="math notranslate nohighlight">\(v_{max} = 16 \cdot CV_{5}\)</span></p>
</section>
<section id="cv-6-v-mid">
<h3><span class="math notranslate nohighlight">\(CV_{6}\)</span> - <span class="math notranslate nohighlight">\(v_{mid}\)</span><a class="headerlink" href="#cv-6-v-mid" title="Link to this heading"></a></h3>
<p>Mid motor voltage/speed is calculated as: <span class="math notranslate nohighlight">\(v_{mid} = 16 \cdot CV_{6}\)</span></p>
</section>
<section id="cv-7-version-no-read-only">
<h3><span class="math notranslate nohighlight">\(CV_{7}\)</span> - Version No. (Read-Only)<a class="headerlink" href="#cv-7-version-no-read-only" title="Link to this heading"></a></h3>
<p>Writing a value of <code class="docutils literal notranslate"><span class="pre">7</span></code> triggers an ADC offset adjustment.</p>
</section>
<section id="cv-8-manufacturer-read-only">
<h3><span class="math notranslate nohighlight">\(CV_{8}\)</span> - Manufacturer (Read-Only)<a class="headerlink" href="#cv-8-manufacturer-read-only" title="Link to this heading"></a></h3>
<p>Default = <code class="docutils literal notranslate"><span class="pre">13</span></code> = Public Domain &amp; Do-It-Yourself Decoders</p>
<p>Even though <span class="math notranslate nohighlight">\(CV_{8}\)</span> is defined as a Read-only CV, writing a value of <code class="docutils literal notranslate"><span class="pre">8</span></code> resets all CV values to the default values in <code class="docutils literal notranslate"><span class="pre">CV.h</span></code>.</p>
</section>
<section id="cv-9-motor-pwm-frequency">
<h3><span class="math notranslate nohighlight">\(CV_{9}\)</span> - Motor PWM Frequency<a class="headerlink" href="#cv-9-motor-pwm-frequency" title="Link to this heading"></a></h3>
<p><span class="math notranslate nohighlight">\(f_{PWM_{MOTOR}} = (CV_9 \cdot 100 + 10000) \, Hz\)</span></p>
</section>
<section id="cv-11-packet-timeout">
<h3><span class="math notranslate nohighlight">\(CV_{11}\)</span> - Packet timeout<a class="headerlink" href="#cv-11-packet-timeout" title="Link to this heading"></a></h3>
<p>If no package is received for <span class="math notranslate nohighlight">\(x = CV_{11}\)</span> seconds the decoder will automatically stop the motor (Emergency Stop).</p>
</section>
<section id="cv-12-permitted-operating-modes">
<h3><span class="math notranslate nohighlight">\(CV_{12}\)</span> - Permitted operating modes<a class="headerlink" href="#cv-12-permitted-operating-modes" title="Link to this heading"></a></h3>
<p>Currently, DCC Digital mode is the only supported mode.</p>
</section>
<section id="cv-17-cv-18-14-bit-extended-long-address">
<h3><span class="math notranslate nohighlight">\(CV_{17}\)</span> &amp; <span class="math notranslate nohighlight">\(CV_{18}\)</span> - 14-Bit extended/long address<a class="headerlink" href="#cv-17-cv-18-14-bit-extended-long-address" title="Link to this heading"></a></h3>
<p>Address is only used if bit5 of <span class="math notranslate nohighlight">\(CV_{29}\)</span> has a value of <code class="docutils literal notranslate"><span class="pre">1</span></code>.</p>
<img alt="Long Address" class="align-center" src="../_images/Long_address.svg" />
<p>Bit15 and bit14 which correspond to bit7 and bit6 of <span class="math notranslate nohighlight">\(CV_{17}\)</span> are always <code class="docutils literal notranslate"><span class="pre">1</span></code>. <span class="math notranslate nohighlight">\(CV_{17} = 192\)</span> &amp; <span class="math notranslate nohighlight">\(CV_{18} = 0\)</span> is also not a valid address.
Otherwise, the valid value range of <span class="math notranslate nohighlight">\(CV_{17}\)</span> ranges from <code class="docutils literal notranslate"><span class="pre">192</span></code> to <code class="docutils literal notranslate"><span class="pre">231</span></code> and <code class="docutils literal notranslate"><span class="pre">0</span></code> to <code class="docutils literal notranslate"><span class="pre">255</span></code> for <span class="math notranslate nohighlight">\(CV_{18}\)</span> respectively.</p>
</section>
<section id="cv-29-decoder-configuration">
<h3><span class="math notranslate nohighlight">\(CV_{29}\)</span> - Decoder Configuration<a class="headerlink" href="#cv-29-decoder-configuration" title="Link to this heading"></a></h3>
<p>Bit0 is can be used to reverse motor direction, i.e., <code class="docutils literal notranslate"><span class="pre">0</span></code> = normal, <code class="docutils literal notranslate"><span class="pre">1</span></code> = reverse.
Bit5 switches between basic and extended addressing modes, i.e., <code class="docutils literal notranslate"><span class="pre">0</span></code> = basic address, <code class="docutils literal notranslate"><span class="pre">1</span></code> = extended address.
The other 6 bits are currently not in use and therefore irrelevant.</p>
</section>
<section id="cv-31-cv-32-extended-cv-pointer-read-only">
<h3><span class="math notranslate nohighlight">\(CV_{31}\)</span> &amp; <span class="math notranslate nohighlight">\(CV_{32}\)</span> - Extended CV pointer (Read-Only)<a class="headerlink" href="#cv-31-cv-32-extended-cv-pointer-read-only" title="Link to this heading"></a></h3>
<p>Not in use.</p>
</section>
<section id="cv-116-to-cv-171-pwm-slice-configuration">
<h3><span class="math notranslate nohighlight">\(CV_{116}\)</span> to <span class="math notranslate nohighlight">\(CV_{171}\)</span> - PWM Slice configuration<a class="headerlink" href="#cv-116-to-cv-171-pwm-slice-configuration" title="Link to this heading"></a></h3>
<img alt="GPIO Slices" class="align-center" src="../_images/GPIO_slices.svg" />
<p>Every slice controls two independent output channels, duty cycle from 0% to 100% inclusive, and can be configured with several parameters:</p>
<ul class="simple">
<li><p>Wrap (16Bit): Sets the slice time period of x cycles - effectively determining the frequency</p></li>
<li><p>Clock Divider: Additional clock divider</p></li>
<li><p>Level Channel A / Level Channel B (16Bit each): Determining how many of the x cycles the signal is at a high level - effectively determining the duty cycle</p></li>
</ul>
<p>To see which CVs correspond to which slice and channel, it is advisable to use <code class="docutils literal notranslate"><span class="pre">CV.h</span></code> as a reference.</p>
<p>The PWM frequency is calculated as follows: <span class="math notranslate nohighlight">\(f_{PWM} = \frac{125 \, \text{MHz}}{(CV_{\text{clk_div}} + 1) \cdot (CV_{\text{wrap}} + 1)}\)</span></p>
<p>The duty-cycle can be calculated as follows: <span class="math notranslate nohighlight">\(D = \frac{CV_{\text{Level}}}{CV_{\text{wrap}} + 1}\)</span></p>
<p>A more detailed explanation regarding PWM can be found in the <a class="reference external" href="https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf">RP2040-Datasheet - Chapter 4.5</a>.</p>
</section>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="debug_logging.html" class="btn btn-neutral float-left" title="Debugging and Logging" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>&#169; Copyright 2024, Gabriel Koppenstein.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>
+138
View File
@@ -0,0 +1,138 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Debugging and Logging &mdash; RP2040-Decoder 0.3, 1.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=e59714d7" />
<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=6bd3bce2"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Configuration Variables (CV)" href="CV_list.html" />
<link rel="prev" title="Troubleshooting" href="troubleshooting.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home">
RP2040-Decoder
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/index.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../software/index.html">Software</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Other</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="troubleshooting.html">Troubleshooting</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Debugging and Logging</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#debugging-via-swd">Debugging via SWD</a></li>
<li class="toctree-l3"><a class="reference internal" href="#logging">Logging</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="CV_list.html">Configuration Variables (CV)</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">RP2040-Decoder</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="index.html">Other</a></li>
<li class="breadcrumb-item active">Debugging and Logging</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/other/debug_logging.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="debugging-and-logging">
<h1>Debugging and Logging<a class="headerlink" href="#debugging-and-logging" title="Link to this heading"></a></h1>
<p>For logging and debugging you have to build the software yourself. This is explained here: <a class="reference internal" href="../gs/getting_started.html#building-the-software"><span class="std std-ref">3. Building the software</span></a></p>
<section id="debugging-via-swd">
<span id="id1"></span><h2>Debugging via SWD<a class="headerlink" href="#debugging-via-swd" title="Link to this heading"></a></h2>
<p>Please refer to <a class="reference internal" href="../gs/getting_started.html#flashing-the-software-swd"><span class="std std-ref">4.2. Flashing the software via SWD</span></a>.</p>
</section>
<section id="logging">
<span id="id2"></span><h2>Logging<a class="headerlink" href="#logging" title="Link to this heading"></a></h2>
<p>Logging can be enabled in <code class="docutils literal notranslate"><span class="pre">CMakeLists.txt</span></code>, and is available with two interfaces:</p>
<blockquote>
<div><ul class="simple">
<li><p>Logging via UART RX/TX pins (GPIO0/GPIO1 by default)</p></li>
<li><p>Logging via USB CDC/ACM</p></li>
</ul>
</div></blockquote>
<p>Additionally you can make the decoder wait for input via serial port by setting LOG_WAIT to 1. For more details please see comments inside <code class="docutils literal notranslate"><span class="pre">CMakeLists.txt</span></code>.</p>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="troubleshooting.html" class="btn btn-neutral float-left" title="Troubleshooting" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="CV_list.html" class="btn btn-neutral float-right" title="Configuration Variables (CV)" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>&#169; Copyright 2024, Gabriel Koppenstein.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>
+29 -2
View File
@@ -16,9 +16,11 @@
<script src="../_static/documentation_options.js?v=6bd3bce2"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Troubleshooting" href="troubleshooting.html" />
<link rel="prev" title="core0.h" href="../software/header_files.html" />
</head>
@@ -43,10 +45,13 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/index.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../software/index.html">Software</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Other</a><ul class="simple">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Other</a><ul>
<li class="toctree-l2"><a class="reference internal" href="troubleshooting.html">Troubleshooting</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug_logging.html">Debugging and Logging</a></li>
<li class="toctree-l2"><a class="reference internal" href="CV_list.html">Configuration Variables (CV)</a></li>
</ul>
</li>
</ul>
@@ -78,6 +83,27 @@
<section id="other">
<h1>Other<a class="headerlink" href="#other" title="Link to this heading"></a></h1>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="troubleshooting.html">Troubleshooting</a><ul>
<li class="toctree-l2"><a class="reference internal" href="troubleshooting.html#enable-logging-and-or-debug-via-swd">Enable logging and or debug via SWD</a></li>
<li class="toctree-l2"><a class="reference internal" href="troubleshooting.html#checking-the-power-supply">Checking the power supply:</a></li>
<li class="toctree-l2"><a class="reference internal" href="troubleshooting.html#check-your-motor">Check your motor:</a></li>
<li class="toctree-l2"><a class="reference internal" href="troubleshooting.html#cv-reset">CV Reset:</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="debug_logging.html">Debugging and Logging</a><ul>
<li class="toctree-l2"><a class="reference internal" href="debug_logging.html#debugging-via-swd">Debugging via SWD</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug_logging.html#logging">Logging</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="CV_list.html">Configuration Variables (CV)</a><ul>
<li class="toctree-l2"><a class="reference internal" href="CV_list.html#reset-all-cvs">Reset all CVs</a></li>
<li class="toctree-l2"><a class="reference internal" href="CV_list.html#speed-step-configuration">Speed step configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="CV_list.html#cv-list">CV List</a></li>
</ul>
</li>
</ul>
</div>
</section>
@@ -86,6 +112,7 @@
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="../software/header_files.html" class="btn btn-neutral float-left" title="core0.h" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="troubleshooting.html" class="btn btn-neutral float-right" title="Troubleshooting" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
+146
View File
@@ -0,0 +1,146 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Troubleshooting &mdash; RP2040-Decoder 0.3, 1.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=e59714d7" />
<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=6bd3bce2"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Debugging and Logging" href="debug_logging.html" />
<link rel="prev" title="Other" href="index.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home">
RP2040-Decoder
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/index.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../software/index.html">Software</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Other</a><ul class="current">
<li class="toctree-l2 current"><a class="current reference internal" href="#">Troubleshooting</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#enable-logging-and-or-debug-via-swd">Enable logging and or debug via SWD</a></li>
<li class="toctree-l3"><a class="reference internal" href="#checking-the-power-supply">Checking the power supply:</a></li>
<li class="toctree-l3"><a class="reference internal" href="#check-your-motor">Check your motor:</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-reset">CV Reset:</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="debug_logging.html">Debugging and Logging</a></li>
<li class="toctree-l2"><a class="reference internal" href="CV_list.html">Configuration Variables (CV)</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">RP2040-Decoder</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="index.html">Other</a></li>
<li class="breadcrumb-item active">Troubleshooting</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/other/troubleshooting.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="troubleshooting">
<h1>Troubleshooting<a class="headerlink" href="#troubleshooting" title="Link to this heading"></a></h1>
<p>To narrow down the issue when your decoder is not working as expected, you can do the following (in no particular order):</p>
<section id="enable-logging-and-or-debug-via-swd">
<h2>Enable logging and or debug via SWD<a class="headerlink" href="#enable-logging-and-or-debug-via-swd" title="Link to this heading"></a></h2>
<p>Log messages can be enabled and output via either UART or USB please see <a class="reference internal" href="debug_logging.html#logging"><span class="std std-ref">Logging</span></a> for details.
For more advanced users it might also be beneficial to <a class="reference internal" href="debug_logging.html#debugging-via-swd"><span class="std std-ref">debug with SWD</span></a></p>
</section>
<section id="checking-the-power-supply">
<h2>Checking the power supply:<a class="headerlink" href="#checking-the-power-supply" title="Link to this heading"></a></h2>
<ul class="simple">
<li><p><strong>+3V3 to GND</strong> should be 3.3V ± 1%</p></li>
<li><p><strong>VDC/+V to GND</strong> should be somewhere in the range of at least 6V to 23V depending on your track voltage.</p></li>
</ul>
<p>If you don’t measure the correct voltages, try to <a class="reference external" href="https://dccwiki.com/Measuring_Track_Voltage">measure your track voltage</a></p>
</section>
<section id="check-your-motor">
<h2>Check your motor:<a class="headerlink" href="#check-your-motor" title="Link to this heading"></a></h2>
<p>Desolder your motor and try the motor with an appropriate power supply and DC voltage, to check if the motor is working or not.</p>
</section>
<section id="cv-reset">
<h2>CV Reset:<a class="headerlink" href="#cv-reset" title="Link to this heading"></a></h2>
<p>Try to reset the decoder by writing a value of <code class="docutils literal notranslate"><span class="pre">8</span></code> to <code class="docutils literal notranslate"><span class="pre">CV8</span></code> (beware, this will reset the complete CV memory!)</p>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="index.html" class="btn btn-neutral float-left" title="Other" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="debug_logging.html" class="btn btn-neutral float-right" title="Debugging and Logging" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>&#169; Copyright 2024, Gabriel Koppenstein.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>
+1 -1
View File
@@ -44,7 +44,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="hardware/index.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="software/index.html">Software</a></li>
<li class="toctree-l1"><a class="reference internal" href="other/index.html">Other</a></li>
+1 -1
View File
@@ -1 +1 @@
Search.setIndex({"alltitles": {"1. Where to get the board?": [[4, "where-to-get-the-board"]], "2. Production files?": [[4, "production-files"]], "3. Building the software": [[4, "building-the-software"]], "4. Flashing the software": [[4, "flashing-the-software"]], "4.1. Flashing the software via .uf2 file": [[4, "flashing-the-software-via-uf2-file"]], "4.2. Flashing the software via SWD": [[4, "flashing-the-software-via-swd"]], "5. Wiring": [[4, "wiring"]], "6. Resolving issues": [[4, "resolving-issues"]], "Auxiliary Outputs": [[1, "auxiliary-outputs"], [2, "auxiliary-outputs"]], "BOM & Alternative Parts": [[1, "bom-alternative-parts"], [2, "bom-alternative-parts"]], "Back-EMF voltage measurement": [[8, "back-emf-voltage-measurement"]], "CV.h": [[6, "cv-h"]], "Complete Schematic": [[1, "complete-schematic"], [2, "complete-schematic"]], "Contents:": [[3, null], [7, null]], "Control Loop & Digital Controller": [[8, "control-loop-digital-controller"]], "DCC signal decoding": [[8, "dcc-signal-decoding"]], "Electrical Characteristics": [[1, "electrical-characteristics"], [2, "electrical-characteristics"]], "Electrical Characteristics & Absolute Maximum Ratings": [[1, "id2"], [2, "id2"]], "Feed-forward": [[8, "id2"]], "GPIO": [[1, "gpio"], [2, "gpio"]], "Gain Scheduling": [[8, "gain-scheduling"]], "Getting started": [[4, null]], "Hardware": [[0, null]], "Input Stage": [[1, "input-stage"], [2, "input-stage"]], "Microcontroller": [[1, "microcontroller"], [2, "microcontroller"]], "Motor Driver": [[1, "motor-driver"], [2, "motor-driver"]], "Other": [[5, null]], "Overview": [[1, null], [2, null], [8, "overview"]], "PID Controller": [[8, "pid-controller"]], "RP2040-Decoder Documentation": [[3, null]], "Revision 0.3": [[0, "revision-0-3"]], "Revision 1.0": [[0, "revision-1-0"]], "Software": [[7, null]], "Software Description": [[8, null]], "Startup Controller": [[8, "startup-controller"]], "Wiring the Decoder": [[1, "wiring-the-decoder"], [2, "wiring-the-decoder"]], "core0.h": [[6, null]], "core1.h": [[6, "core1-h"]], "shared.h": [[6, "shared-h"]]}, "docnames": ["hardware/index", "hardware/rev_0_3/hw_description", "hardware/rev_1_0/hw_description", "index", "other/getting_started", "other/index", "software/header_files", "software/index", "software/sw_description"], "envversion": {"sphinx": 64, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2}, "filenames": ["hardware/index.rst", "hardware/rev_0_3/hw_description.rst", "hardware/rev_1_0/hw_description.rst", "index.rst", "other/getting_started.rst", "other/index.rst", "software/header_files.rst", "software/index.rst", "software/sw_description.rst"], "indexentries": {"_125m (c macro)": [[6, "c._125M", false]], "absolute_val (c++ function)": [[6, "_CPPv412absolute_vali", false]], "acknowledge (c++ function)": [[6, "_CPPv411acknowledgev", false]], "adc_calibration_iterations (c macro)": [[6, "c.ADC_CALIBRATION_ITERATIONS", false]], "adc_offset_adjustment (c++ function)": [[6, "_CPPv421adc_offset_adjustment8uint32_t", false]], "address_evaluation (c++ function)": [[6, "_CPPv418address_evaluation6size_tA_K7uint8_t", false]], "adjust_pwm_level (c++ function)": [[6, "_CPPv416adjust_pwm_level8uint16_t", false]], "base_pwm_arr_len (c macro)": [[6, "c.BASE_PWM_ARR_LEN", false]], "bits_to_dcc_packet_data (c++ function)": [[6, "_CPPv423bits_to_dcc_packet_dataP12dcc_packet_t", false]], "call_flash_do_cmd (c++ function)": [[6, "_CPPv417call_flash_do_cmdPv", false]], "call_flash_range_erase (c++ function)": [[6, "_CPPv422call_flash_range_erasePv", false]], "call_flash_range_program (c++ function)": [[6, "_CPPv424call_flash_range_programPv", false]], "clear_all_errors (c++ function)": [[6, "_CPPv416clear_all_errorsv", false]], "clear_error (c++ function)": [[6, "_CPPv411clear_error7error_t", false]], "clr_bit_arr (c++ member)": [[6, "_CPPv411clr_bit_arr", false]], "controller_general (c++ function)": [[6, "_CPPv418controller_generalP22controller_parameter_t", false]], "controller_mode_t (c++ enum)": [[6, "_CPPv417controller_mode_t", false]], "controller_mode_t::pid_mode (c++ enumerator)": [[6, "_CPPv4N17controller_mode_t8PID_MODEE", false]], "controller_mode_t::startup_mode (c++ enumerator)": [[6, "_CPPv4N17controller_mode_t12STARTUP_MODEE", false]], "controller_parameter_t (c++ struct)": [[6, "_CPPv422controller_parameter_t", false]], "controller_parameter_t (c++ type)": [[6, "_CPPv422controller_parameter_t", false]], "controller_parameter_t::adc_offset (c++ member)": [[6, "_CPPv4N22controller_parameter_t10adc_offsetE", false]], "controller_parameter_t::feed_fwd (c++ member)": [[6, "_CPPv4N22controller_parameter_t8feed_fwdE", false]], "controller_parameter_t::l_side_arr_cutoff (c++ member)": [[6, "_CPPv4N22controller_parameter_t17l_side_arr_cutoffE", false]], "controlLine truncated
Search.setIndex({"alltitles": {"1. Where to get the board?": [[0, "where-to-get-the-board"]], "2. Production files?": [[0, "production-files"]], "3. Building the software": [[0, "building-the-software"]], "4. Flashing the software": [[0, "flashing-the-software"]], "4.1. Flashing the software via .uf2 file": [[0, "flashing-the-software-via-uf2-file"]], "4.2. Flashing the software via SWD": [[0, "flashing-the-software-via-swd"]], "5. Wiring": [[0, "wiring"]], "6. Resolving issues": [[0, "resolving-issues"]], "Auxiliary Outputs": [[2, "auxiliary-outputs"], [3, "auxiliary-outputs"]], "Back-EMF voltage measurement": [[11, "back-emf-voltage-measurement"]], "CV List": [[5, "cv-list"]], "CV Reset:": [[8, "cv-reset"]], "CV.h": [[9, "cv-h"]], "CV_{116} to CV_{171} - PWM Slice configuration": [[5, "cv-116-to-cv-171-pwm-slice-configuration"]], "CV_{11} - Packet timeout": [[5, "cv-11-packet-timeout"]], "CV_{12} - Permitted operating modes": [[5, "cv-12-permitted-operating-modes"]], "CV_{17} & CV_{18} - 14-Bit extended/long address": [[5, "cv-17-cv-18-14-bit-extended-long-address"]], "CV_{1} - Basic address": [[5, "cv-1-basic-address"]], "CV_{29} - Decoder Configuration": [[5, "cv-29-decoder-configuration"]], "CV_{2} - v_{min}": [[5, "cv-2-v-min"]], "CV_{31} & CV_{32} - Extended CV pointer (Read-Only)": [[5, "cv-31-cv-32-extended-cv-pointer-read-only"]], "CV_{3} - Acceleration rate": [[5, "cv-3-acceleration-rate"]], "CV_{4} - Deceleration rate": [[5, "cv-4-deceleration-rate"]], "CV_{5} - v_{max}": [[5, "cv-5-v-max"]], "CV_{6} - v_{mid}": [[5, "cv-6-v-mid"]], "CV_{7} - Version No. (Read-Only)": [[5, "cv-7-version-no-read-only"]], "CV_{8} - Manufacturer (Read-Only)": [[5, "cv-8-manufacturer-read-only"]], "CV_{9} - Motor PWM Frequency": [[5, "cv-9-motor-pwm-frequency"]], "Check your motor:": [[8, "check-your-motor"]], "Checking the power supply:": [[8, "checking-the-power-supply"]], "Complete Schematic": [[2, "complete-schematic"], [3, "complete-schematic"]], "Configuration Variables (CV)": [[5, null]], "Contents:": [[4, null], [7, null], [10, null]], "Control Loop & Digital Controller": [[11, "control-loop-digital-controller"]], "DCC signal decoding": [[11, "dcc-signal-decoding"]], "Debugging and Logging": [[6, null]], "Debugging via SWD": [[6, "debugging-via-swd"]], "Electrical Characteristics": [[2, "electrical-characteristics"], [3, "electrical-characteristics"]], "Electrical Characteristics & Absolute Maximum Ratings": [[2, "id2"], [3, "id2"]], "Enable logging and or debug via SWD": [[8, "enable-logging-and-or-debug-via-swd"]], "Feed-forward": [[11, "id2"]], "GPIO": [[2, "gpio"], [3, "gpio"]], "Gain Scheduling": [[11, "gain-scheduling"]], "Getting started": [[0, null]], "Hardware": [[1, null]], "Input Stage": [[2, "input-stage"], [3, "input-stage"]], "Logging": [[6, "logging"]], "Microcontroller": [[2, "microcontroller"], [3, "microcontroller"]], "Motor Driver": [[2, "motor-driver"], [3, "motor-driver"]], "Other": [[7, null]], "Overview": [[2, null], [3, null], [11, "overview"]], "PID Controller": [[11, "pid-controller"]], "RP2040-Decoder Documentation": [[4, null]], "Reset all CVs": [[5, "reset-all-cvs"]], "Revision 0.3": [[1, "revision-0-3"]], "Revision 1.0": [[1, "revision-1-0"]], "Software": [[10, null]], "Software Description": [[11, null]], "Speed step configuration": [[5, "speed-step-configuration"]], "Startup Controller": [[11, "startup-controller"]], "Troubleshooting": [[8, null]], "Wiring the Decoder": [[2, "wiring-the-decoder"], [3, "wiring-the-decoder"]], "core0.h": [[9, null]], "core1.h": [[9, "core1-h"]], "shared.h": [[9, "shared-h"]]}, "docnames": ["gs/getting_started", "hardware/index", "hardware/rev_0_3/hw_description", "hardware/rev_1_0/hw_description", "index", "other/CV_list", "other/debug_logging", "other/index", "other/troubleshooting", "software/header_files", "software/index", "software/sw_description"], "envversion": {"sphinx": 64, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2}, "filenames": ["gs/getting_started.rst", "hardware/index.rst", "hardware/rev_0_3/hw_description.rst", "hardware/rev_1_0/hw_description.rst", "index.rst", "other/CV_list.rst", "other/debug_logging.rst", "other/index.rst", "other/troubleshooting.rst", "software/header_files.rst", "software/index.rst", "software/sw_description.rst"], "indexentries": {"_125m (c macro)": [[9, "c._125M", false]], "absolute_val (c++ function)": [[9, "_CPPv412absolute_vali", false]], "acknowledge (c++ function)": [[9, "_CPPv411acknowledgev", false]], "adc_calibration_iterations (c macro)": [[9, "c.ADC_CALIBRATION_ITERATIONS", false]], "adc_offset_adjustment (c++ function)": [[9, "_CPPv421adc_offset_adjustment8uint32_t", false]], "address_evaluation (c++ function)": [[9, "_CPPv418address_evaluation6size_tA_K7uint8_t", false]Line truncated
+1 -1
View File
@@ -44,7 +44,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/index.html">Hardware</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="sw_description.html">Software Description</a></li>
+1 -3
View File
@@ -45,7 +45,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/index.html">Hardware</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Software</a><ul>
<li class="toctree-l2"><a class="reference internal" href="sw_description.html">Software Description</a></li>
@@ -92,8 +92,6 @@
<li class="toctree-l2"><a class="reference internal" href="sw_description.html#control-loop-digital-controller">Control Loop &amp; Digital Controller</a><ul>
<li class="toctree-l3"><a class="reference internal" href="sw_description.html#startup-controller">Startup Controller</a></li>
<li class="toctree-l3"><a class="reference internal" href="sw_description.html#pid-controller">PID Controller</a></li>
<li class="toctree-l3"><a class="reference internal" href="sw_description.html#gain-scheduling">Gain Scheduling</a></li>
<li class="toctree-l3"><a class="reference internal" href="sw_description.html#id2">Feed-forward</a></li>
<li class="toctree-l3"><a class="reference internal" href="sw_description.html#back-emf-voltage-measurement">Back-EMF voltage measurement</a></li>
</ul>
</li>
+25 -21
View File
@@ -45,7 +45,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../other/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../gs/getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/index.html">Hardware</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software</a><ul class="current">
<li class="toctree-l2 current"><a class="current reference internal" href="#">Software Description</a><ul>
@@ -53,8 +53,6 @@
<li class="toctree-l3"><a class="reference internal" href="#control-loop-digital-controller">Control Loop &amp; Digital Controller</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#startup-controller">Startup Controller</a></li>
<li class="toctree-l4"><a class="reference internal" href="#pid-controller">PID Controller</a></li>
<li class="toctree-l4"><a class="reference internal" href="#gain-scheduling">Gain Scheduling</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id2">Feed-forward</a></li>
<li class="toctree-l4"><a class="reference internal" href="#back-emf-voltage-measurement">Back-EMF voltage measurement</a></li>
</ul>
</li>
@@ -188,20 +186,31 @@
<p><span class="caption-text">Control Loop - Block diagram</span><a class="headerlink" href="#id5" title="Link to this image"></a></p>
</figcaption>
</figure>
<p>The block diagram above shows the complete control loop. The actual digital controller block is explained below.</p>
<p>The Speed Helper block effectively sets the setpoint of the controller according to the CV configured acceleration and deceleration rates and actual target speedstep.</p>
<p>For feedback the back EMF voltage V_EMF is measured via voltage divider and ADC. V_EMF is proportional to the motor speed in RPM.</p>
<p>TODO: rewrite this: While the central component is the PID controller, there is an additional block called <a class="reference external" href="https://en.wikipedia.org/wiki/Feed_forward_(control)">Feed-forward</a> that has an impact on the control output variable. The Feed-forward block adds an additional offset to the output depending on the setpoint; this is done to achieve better control. A more detailed explanation regarding Feed-forward can be found below. The speed helper block corresponds to the <code class="docutils literal notranslate"><span class="pre">speed_helper()</span></code> function, which delays changing the setpoint according to the configured deceleration/acceleration rates.</p>
<p>The block diagram above shows the (simplified) control loop. The actual digital controller block is explained below.</p>
<p>The <em>Speed Helper</em> block effectively sets the setpoint of the controller according to the CV configured acceleration and deceleration rates and actual target speedstep.</p>
<p>For feedback the back EMF voltage <em>V_EMF</em> is measured via voltage divider and ADC. <em>V_EMF</em> is proportional to the motor speed.</p>
<p>While the central component is the PID controller, there is an additional block called <a class="reference external" href="https://en.wikipedia.org/wiki/Feed_forward_(control)">Feed-forward</a> that has an impact on the control output variable. The Feed-forward block adds an additional offset to the output depending on the setpoint; this is done to achieve better control. A more detailed explanation regarding Feed-forward can be found below. The speed helper block corresponds to the <code class="docutils literal notranslate"><span class="pre">speed_helper()</span></code> function, which delays changing the setpoint according to the configured deceleration/acceleration rates.</p>
<figure class="align-center" id="id6">
<img alt="Block Diagram - Digital Controller" src="../../svg/sw/Block_Diagram_Digital_Controller.svg" />
<img alt="Block Diagram - Digital Controller" src="../_images/Block_Diagram_Digital_Controller.svg" />
<figcaption>
<p><span class="caption-text">Digital Controller - Block diagram</span><a class="headerlink" href="#id6" title="Link to this image"></a></p>
</figcaption>
</figure>
<p>The controller is divided into two parts, depending on whether the motor is stationary or in motion. The startup controller handles overcoming friction of the motor, and finding base PWM level for overcoming friction. The base PWM level is saved and added to the output of the PID controller which handles motor control when the motor is in motion.</p>
<p>The controller is divided into two parts, depending on whether the motor is stationary or in motion.
At all times either the startup controller or the PID controller is active.</p>
<p>The startup controller handles overcoming friction of the motor, and finding a base PWM level for overcoming friction.
The base PWM level is equivalent to a certain PWM duty cycle.
The base level gets saved and added to the output of the PID controller which handles motor control when the motor is in motion.
This means the actual output of the PID controller is the sum of the PID output and the base PWM level. This is referred to as the <a class="reference internal" href="#id2"><span class="std std-ref">feed forward</span></a> block.
The benefit of doing this is that the PID controller does not have to work in the non linear friction region of the motor, improving control performance.</p>
<section id="startup-controller">
<h3>Startup Controller<a class="headerlink" href="#startup-controller" title="Link to this heading"></a></h3>
<p>Used on startup, meaning when the motor is not moving. The startup controller sets a PWM duty cycle level of <span class="math notranslate nohighlight">\(\frac{2}{3} \cdot \text{base_pwm}\)</span> and then ramps up the duty cycle/PWM level until the motor starts moving. This is done in order to overcome the friction of the drive train and motor. <span class="math notranslate nohighlight">\(\text{base_pwm}\)</span> is the average value of the 16 previous startup PWM levels. When no previous startup PWM levels are saved the startup controller begins ramping up from 0. The actual value at which the motor started moving is used as a reference for the <a class="reference internal" href="#id2"><span class="std std-ref">feed forward</span></a> block.</p>
<p>Used on startup, meaning when the motor is not moving. First the startup controller retrieves the last <cite>BASE_PWM_ARR_LEN</cite> base PWM levels.
The base pwm levels are not retained on a power cycle. That means when there is no previous base PWM level saved, the startup controller will start ramping up from 0.
When there is less than <cite>BASE_PWM_ARR_LEN</cite> base PWM levels saved, the startup controller will ramp up from the average of the saved base PWM levels.</p>
<p>After the startup controller retrieved the average of the last base pwm levels <span class="math notranslate nohighlight">\(\bar{b}\)</span> it sets a PWM duty cycle level of <span class="math notranslate nohighlight">\(\frac{2}{3} \cdot \bar{b}\)</span> and then ramps up the duty cycle/PWM level until the motor starts moving.
When no previous startup PWM levels are saved the startup controller begins ramping up from 0.
The actual value at which the motor started moving is multiplied by <cite>K_FF</cite> and used as a reference for the <a class="reference internal" href="#id2"><span class="std std-ref">feed forward</span></a> block.</p>
</section>
<section id="pid-controller">
<h3>PID Controller<a class="headerlink" href="#pid-controller" title="Link to this heading"></a></h3>
@@ -237,9 +246,8 @@ d_n &amp;= \frac{2 K_D \cdot \left(e_n - e_{n-1}\right) + \left(2 \tau - T_s\rig
<li><p>The previously explained base PWM is added to the actual output as well, meaning the formula above only shows the actual PID control part without feed forward.</p></li>
</ul>
</div>
</section>
<section id="gain-scheduling">
<h3>Gain Scheduling<a class="headerlink" href="#gain-scheduling" title="Link to this heading"></a></h3>
<h4>Gain Scheduling<a class="headerlink" href="#gain-scheduling" title="Link to this heading"></a></h4>
<figure class="align-center" id="id8">
<img alt="Gain Scheduling figure" src="../_images/adaptive_kp.svg" />
<figcaption>
@@ -249,15 +257,11 @@ d_n &amp;= \frac{2 K_D \cdot \left(e_n - e_{n-1}\right) + \left(2 \tau - T_s\rig
<p>Another aspect to consider is the implementation of <a class="reference external" href="https://en.wikipedia.org/wiki/Gain_scheduling">gain scheduling</a>. K<sub>P</sub> is a function of the current setpoint. Often it is favorable to have a higher proportional gain K<sub>P</sub> for slow speeds, achieving better control results. The illustration above shows the default setting for K<sub>P</sub>. CV_54 &amp; CV_55 are used to set K<sub>P</sub> &#64; x<sub>0</sub>, CV_56 &amp; CV_57 for K<sub>P</sub> &#64; x<sub>1</sub>, and CV_58 &amp; CV_59 for K<sub>P</sub> &#64; x<sub>2</sub>. Additionally, CV_60 is used to shift x<sub>1</sub> from the leftmost point (0% = 0/255) to the rightmost point (100% = 255/255).</p>
</section>
<section id="id2">
<span id="id3"></span><h3>Feed-forward<a class="headerlink" href="#id2" title="Link to this heading"></a></h3>
<figure class="align-center" id="id9">
<img alt="Feed forward figure" src="../_images/feed_forward.svg" />
<figcaption>
<p><span class="caption-text">Feed-forward</span><a class="headerlink" href="#id9" title="Link to this image"></a></p>
</figcaption>
</figure>
<p>TODO: Update this part:</p>
<p>To achieve better control, <a class="reference external" href="https://en.wikipedia.org/wiki/Feed_forward_(control)">Feed-forward</a> is used. On startup, the decoder will check for a configuration regarding Feed-forward control. When no configuration is found, the decoder automatically runs a calibration to establish a base PWM level (y<sub>1</sub>) for both directions. The base PWM level (y<sub>1</sub>) will vary depending on load, motor, and voltage on the tracks and can be configured with CV_176 - CV_179. If the setpoint is greater than the threshold, y<sub>2</sub> is corrected automatically when i<sub>n</sub> reaches 0.5i<sub>min</sub> or 0.5i<sub>max</sub>. CV_47 can be used to set how sensitive this correction is.</p>
<span id="id3"></span><h4>Feed-forward<a class="headerlink" href="#id2" title="Link to this heading"></a></h4>
<p>As previously mentioned, to achieve better control, <a class="reference external" href="https://en.wikipedia.org/wiki/Feed_forward_(control)">Feed-forward</a> is used.
In essence this means that the output of the PID controller is not only the sum of the proportional, integral, and derivative parts, but also the base PWM level.
The base PWM level is set by the startup controller and is the PWM level at which the motor starts moving.</p>
</section>
</section>
<section id="back-emf-voltage-measurement">
<h3>Back-EMF voltage measurement<a class="headerlink" href="#back-emf-voltage-measurement" title="Link to this heading"></a></h3>