Update docs

This commit is contained in:
gab-k committed 2025-01-01 22:25:25 +01:00
1 parent e648e5dfa2
commit d17660f018
13 files changed
+2947 -129

No files matched your search

+13 -12
View File
@@ -53,13 +53,15 @@ const uint32_t clr_bit_arr[6] = {
*
* This structure is used to store the data and length of a DCC packet.
*
* @typedef dcc_packet_t
* @struct dcc_packet_t
*
* @field data An array of bytes representing the DCC packet data.
* @field length The length of the DCC packet data.
* @param data An array of bytes representing the DCC packet data.
* @param length The length of the DCC packet data.
*/
typedef struct dcc_packet_t {
/*! An array of bytes representing the DCC packet data. */
uint8_t data[RING_BUFFER_BYTES];
/*! The length of the DCC packet data. */
size_t length;
}dcc_packet_t;
@@ -69,16 +71,15 @@ typedef struct dcc_packet_t {
* This structure is used to manage a ring buffer that stores DCC packets.
* It contains an array of packets and indices for writing and reading.
*
* @typedef dcc_ring_buffer_t
*
* @field packets Array of DCC packets stored in the ring buffer.
* @field wr_idx Index for the next write operation in the ring buffer.
* @field rd_idx Index for the next read operation in the ring buffer.
* @struct dcc_ring_buffer_t
*/
typedef struct dcc_ring_buffer_t {
dcc_packet_t packets[RING_BUFFER_PACKETS];
size_t wr_idx;
size_t rd_idx;
/*! Array of DCC packets stored in the ring buffer. */
dcc_packet_t packets[RING_BUFFER_PACKETS];
/*! Index for the next write operation in the ring buffer. */
size_t wr_idx;
/*! Index for the next read operation in the ring buffer. */
size_t rd_idx;
} dcc_ring_buffer_t;
@@ -208,7 +209,7 @@ static void reset_cv_array_to_default();
*
* Procedure:
* 1. Checks for a valid programming command.
* 2. Evaluates the type of programming instruction (Write byte / Verify byte / Verify bit) and runs the corresponding function.
* 2. Evaluates the type of programming instruction (Write byte / Verify byte / Verify bit) and runs the corresponding function. See verify_cv_byte(), verify_cv_bit() and write_cv_byte().
*
* @param number_of_bytes The number of bytes in the array.
* @param byte_array A pointer to the byte array.
+3 -5
View File
@@ -151,7 +151,7 @@ uint16_t get_initial_level(controller_parameter_t * ctrl_par);
/**
* @brief Controller function for startup mode.
*
* This is called inside the controller_general function when the controller mode is set to STARTUP_MODE.
* This is called inside the controller_general() function when the controller mode is set to STARTUP_MODE.
*
* @param ctrl_par Pointer to the controller parameter structure.
*/
@@ -160,7 +160,7 @@ void controller_startup_mode(controller_parameter_t * ctrl_par);
/**
* @brief Controller function for PID mode.
*
* This is called inside the controller_general function when the controller mode is set to PID_MODE.
* This is called inside the controller_general() function when the controller mode is set to PID_MODE.
*
* @param ctrl_par Pointer to the controller parameter structure.
*/
@@ -174,9 +174,7 @@ void controller_pid_mode(controller_parameter_t *const ctrl_par);
void controller_general(controller_parameter_t * ctrl_par);
/**
* @brief Initialize the all controller variables, measurement parameters, and speed table.
*
* ctrl_par contains all controller variables and is passed to the other controller functions.
* @brief Initialize controller variables, measurement parameters, and speed table.
*
* @param ctrl_par Pointer to the controller parameter structure.
*/
+2871 -12
View File
File diff suppressed because it is too large. Load diff
+1 -3
View File
@@ -1,4 +1,2 @@
sphinx-rtd-theme>=3.0.2
breathe>=4.35.0
myst-parser>=4.0.0
sphinx-rtd-dark-mode>=1.3.0
breathe>=4.35.0
+1 -1
View File
@@ -14,7 +14,7 @@ release = '0.3, 1.0'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = ['myst_parser', 'breathe', "sphinx_rtd_dark_mode"]
extensions = ['breathe']
templates_path = ['_templates']
exclude_patterns = []
@@ -30,7 +30,7 @@ Electrical Characteristics
===================================================== ============================= ========= ========= =====
Parameter Symbol Minimum Maximum Unit
===================================================== ============================= ========= ========= =====
Absolute max. DCC Input Voltage difference V\ :sub:`DCC`\ +24 V
Absolute max. DCC Input Voltage difference V\ :sub:`DCC`\ 0 +24 V
Absolute max. GPIO Voltage\ :sup:`(0)`\ V\ :sub:`PIN`\ -0.5 3.3+0.5 V
Input Voltage High\ :sup:`(0)`\ V\ :sub:`IH`\ 2.145 3.6 V
Input Voltage Low\ :sup:`(0)`\ V\ :sub:`IL`\ 0 1.155 V
@@ -46,6 +46,8 @@ Electrical Characteristics
(2): According to: `T2N7002BK Datasheet <https://toshiba.semicon-storage.com/info/T2N7002BK_datasheet_en_20191025.pdf?did=30376&prodName=T2N7002BK>`_
.. note:: Keep in mind that realistically these maximum ratings can't be reached in practice due to thermal limitations. For example the motor current can probably not exceed 1.5A for continuous operation.
Input Stage
==============================
@@ -110,41 +112,7 @@ Complete Schematic
BOM & Alternative Parts
==============================
.. table:: BOM
:widths: auto
===================================================== ============================= ==================================== ============================= ===================== =========================
Ref Quantity Value Component Type Component Name Footprint
===================================================== ============================= ==================================== ============================= ===================== =========================
C1, C2, C5, C6, C14 5 10u Ceramic Capacitor / 0603_1608Metric
C3, C4, C7, C8, C9, C10, C11, C12, C13, C15 10 100n Ceramic Capacitor / 0603_1608Metric
C16, C17 2 33p Ceramic Capacitor / 0603_1608Metric
D1 1 V\ :sub:`RMS`\=40V, I\ :sub:`F`\=2A Bridge Rectifier KMB24F MBS (TO-269AA)
Q1, Q2, Q3, Q4, Q5 5 V\ :sub:`DS`\=60V, I\ :sub:`D`\=0.4A N-Channel MOSFET T2N7002BK SOT-23
R1, R2, R5, R6 4 6k8 Resistor / 0603_1608Metric
R3 1 200 Resistor / 0603_1608Metric
R7, R8, R9 3 1k Resistor / 0603_1608Metric
U1 1 V\ :sub:`OUT`\=3.3V Low Dropout Voltage Regulator HT7533S SOT-23
U2 1 I=2.8A H-Bridge Driver BDR6133 SOIC-8
U3 1 64Mb Flash Memory W25Q64JVSSIQ SOIC-8
U4 1 / Microcontroller RP2040 QFN-56-1EP_7x7mm_P0.4mm
Y1 1 f=12MHz Crystal Oscillator X322512MSB4SI Crystal_SMD_3225-4Pin_3.2x2.5mm
===================================================== ============================= ==================================== ============================= ===================== =========================
NOTE: Keep capacitor V\ :sub:`max`\ in mind!
Alternatives for BDR6133:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* `PT5126A-S-TP <https://lcsc.com/product-detail/Motor-Driver-ICs_PTC-Princeton-Tech-PT5126A-S-TP_C162093.html>`_
* `PT2476 <https://lcsc.com/product-detail/Motor-Driver-ICs_PTC-Princeton-Tech-PT2476_C481903.html>`_
Alternative for HT7533S:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* `GS7533-33TR3 <https://www.lcsc.com/product-detail/Linear-Voltage-Regulators-LDO_Gainsil-GS7533-33TR3_C7427372.html>`_
please see **PLACEHOLDER-AUTOGENERATED-BOM** for the complete BOM.
.. _wiring_rev_0_3:
@@ -49,6 +49,9 @@ Electrical Characteristics
(3): T\ :sub:`Case`\ = 25°C, keep power dissipation, thermal resistance the corresponding temperature rise ΔT and switching losses in PWM mode in mind!
.. note:: Keep in mind that realistically these maximum ratings can't be reached in practice due to thermal limitations. For example the motor current can probably not exceed 1.5A for continuous operation.
Input Stage
==============================
@@ -58,9 +61,10 @@ Input Stage
Input stage
D2 Rectifies the DCC square-wave into VDC, the amplitude is not critical as long as it's within the 25V limit. The rectified voltage VDC is then provided to the 3.3V voltage regulator and to the motor driver. The shottky diode D1 and the bridge rectifier D2 ensure a logical "or" linkage of the VBUS supply voltages and the DCC input voltage
D2 Rectifies the DCC square-wave into VDC, the amplitude is not critical as long as it's within the 25V limit. The rectified voltage VDC is then provided to the 3.3V voltage regulator and to the motor driver. The shottky diode D1 and the bridge rectifier D2 ensure a logical "or" linkage of the VBUS supply voltages and the DCC input voltage, meaning that the decoder can be powered either by the DCC track signal or by the VBUS supply voltage which is supplied via USB connector.
The MOSFET on the right effectively translates the rather high DCC voltage to a suitable level for the microcontroller to process. When Q1 is turned off GPIO21 is pulled high by the RP2040 internal pull-up resistor, as soon as Q1 gets turned on (V\ :sub:`GS`\ > V\ :sub:`GS,th`\), GPIO21 gets pulled to GND potential. R1 and R2 ensure that V\ :sub:`GS`\ doesn't exceed ±12V.
Motor Driver
==============================
@@ -110,41 +114,7 @@ Complete Schematic
BOM & Alternative Parts
==============================
.. table:: BOM
:widths: auto
===================================================== ============================= ==================================== ============================= ===================== =========================
Ref Quantity Value Component Type Component Name Footprint
===================================================== ============================= ==================================== ============================= ===================== =========================
C1, C2, C5, C6, C14 5 10u Ceramic Capacitor / 0603_1608Metric
C3, C4, C7, C8, C9, C10, C11, C12, C13, C15 10 100n Ceramic Capacitor / 0603_1608Metric
C16, C17 2 33p Ceramic Capacitor / 0603_1608Metric
D1 1 V\ :sub:`RMS`\=40V, I\ :sub:`F`\=2A Bridge Rectifier KMB24F MBS (TO-269AA)
Q1, Q2, Q3, Q4, Q5 5 V\ :sub:`DS`\=60V, I\ :sub:`D`\=0.4A N-Channel MOSFET T2N7002BK SOT-23
R1, R2, R5, R6 4 6k8 Resistor / 0603_1608Metric
R3 1 200 Resistor / 0603_1608Metric
R7, R8, R9 3 1k Resistor / 0603_1608Metric
U1 1 V\ :sub:`OUT`\=3.3V Low Dropout Voltage Regulator HT7533S SOT-23
U2 1 I=2.8A H-Bridge Driver BDR6133 SOIC-8
U3 1 64Mb Flash Memory W25Q64JVSSIQ SOIC-8
U4 1 / Microcontroller RP2040 QFN-56-1EP_7x7mm_P0.4mm
Y1 1 f=12MHz Crystal Oscillator X322512MSB4SI Crystal_SMD_3225-4Pin_3.2x2.5mm
===================================================== ============================= ==================================== ============================= ===================== =========================
NOTE: Keep capacitor V\ :sub:`max`\ in mind!
Alternatives for BDR6133:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* `PT5126A-S-TP <https://lcsc.com/product-detail/Motor-Driver-ICs_PTC-Princeton-Tech-PT5126A-S-TP_C162093.html>`_
* `PT2476 <https://lcsc.com/product-detail/Motor-Driver-ICs_PTC-Princeton-Tech-PT2476_C481903.html>`_
Alternative for HT7533S:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* `GS7533-33TR3 <https://www.lcsc.com/product-detail/Linear-Voltage-Regulators-LDO_Gainsil-GS7533-33TR3_C7427372.html>`_
please see **PLACEHOLDER-AUTOGENERATED-BOM** for the complete BOM.
.. _wiring_rev_1_0:
+1 -1
View File
@@ -7,7 +7,7 @@ RP2040-Decoder Documentation
============================
.. toctree::
:maxdepth: 2
:maxdepth: 3
:caption: Contents:
other/getting_started
+1 -8
View File
@@ -1,29 +1,22 @@
Header files
=================
core0.h
--------------
.. doxygenfile:: core0.h
:project: RP2040-Decoder
core1.h
--------------
.. doxygenfile:: core1.h
:project: RP2040-Decoder
shared.h
--------------
.. doxygenfile:: shared.h
:project: RP2040-Decoder
CV.h
--------------
.. doxygenfile:: CV.h
:project: RP2040-Decoder
+1 -1
View File
@@ -2,7 +2,7 @@ Software
=================
.. toctree::
:maxdepth: 2
:maxdepth: 3
:caption: Contents:
sw_description
+41 -10
View File
@@ -38,29 +38,55 @@ Software files high level overview:
- **RP2040-Decoder-board.h or RP2040-Decoder-board-legacy.h**
- Flash Size
- Pin specification
- Pin definitions
- LED pin when available
- UART_TX/UART_RX when used
- UART_TX/UART_RX pins when used for logging
- DCC input pin
- Motor Control PWM pins
- ADC pins
- **post_build.cmake**
- Post build script for checking whether the size of the binary is within the limits of the flash size minus one sector (used for storing CVs).
- **pico_sdk_import.cmake**
- Helps to locate and import the Pico SDK
Conveniently, The Raspberry Pi Foundation provides a well-documented `SDK <https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-c-sdk.pdf>`_ for the RP2040. The SDK provides abstraction to a higher level, and therefore there is no need to access any registers directly. Everything is written using the SDK, so hopefully, the code is easier to understand.
The `Raspberry Pi Pico SDK <https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-c-sdk.pdf>`_ is a dependency of the decoder software. The SDK provides abstraction to a higher level, so hopefully, in combination with the comments included in header and source files, the code is easy enough to understand.
Motor control
------------------------------
Control Loop & Digital Controller
------------------------------------
.. figure:: ../../../svg/sw/Block_Diagram_Control.svg
:alt: Block Diagram
.. figure:: ../../../svg/sw/Block_Diagram_Control_Loop.svg
:alt: Block Diagram - Control Loop
:align: center
Motor control - Block diagram
Control Loop - Block diagram
The block diagram above shows the complete 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.
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.
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.
.. figure:: ../../../svg/sw/Block_Diagram_Digital_Controller.svg
:alt: Block Diagram - Digital Controller
:align: center
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.
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.
The above block diagram in essence describes the functionality of the control loop. 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.
PID Controller
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -99,7 +125,9 @@ This results in the following difference equations which are then implemented in
\end{align}
Also note that instead of using the derivative of error, the derivative on measurement is used. This is done to prevent a high derivative part in the event of a large change in setpoint.
.. note::
- Instead of using the derivative of error, the derivative on measurement is used. This is done to prevent a high derivative part in the event of a large change in setpoint.
- 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.
Gain Scheduling
@@ -113,6 +141,9 @@ Gain Scheduling
Another aspect to consider is the implementation of `gain scheduling <https://en.wikipedia.org/wiki/Gain_scheduling>`_. K\ :sub:`P` is a function of the current setpoint. Often it is favorable to have a higher proportional gain K\ :sub:`P` for slow speeds, achieving better control results. The illustration above shows the default setting for K\ :sub:`P`. CV_54 & CV_55 are used to set K\ :sub:`P` @ x\ :sub:`0`, CV_56 & CV_57 for K\ :sub:`P` @ x\ :sub:`1`, and CV_58 & CV_59 for K\ :sub:`P` @ x\ :sub:`2`. Additionally, CV_60 is used to shift x\ :sub:`1` from the leftmost point (0% = 0/255) to the rightmost point (100% = 255/255).
.. _feed_forward:
Feed-forward
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-4
View File
@@ -1,4 +0,0 @@
<?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="1571px" height="734px" viewBox="-0.5 -0.5 1571 734" 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 id=&quot;4yrCjKYynwCaxiwjl_Zd&quot; name=&quot;Page-1&quot;&gt;&#xA; &lt;mxGraphModel dx=&quot;2049&quot; dy=&quot;1117&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;1654&quot; pageHeight=&quot;1169&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;-WzbCRYT-x1LrtJJFd-d-2&quot; value=&quot;Speed Helper&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;265&quot; y=&quot;150&quot; width=&quot;150&quot; height=&quot;70&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;-WzbCRYT-x1LrtJJFd-d-10&quot; value=&quot;&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=none;&quot; parent=&quot;1&quot; target=&quot;-WzbCRYT-x1LrtJJFd-d-6&quot; edge=&quot;1&quot;&gt;&#xA; &lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&#xA; &lt;mxPoint x=&quot;920&quot; y=&quot;420&quot; as=&quot;sourcePoint&quot; /&gt;&#xA; &lt;/mxGeometry&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;-WzbCRYT-x1LrtJJFd-d-4&quot; value=&quot;&amp;lt;div&amp;gt;&amp;lt;b&amp;gt;Motor Controller&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;PID MODE&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;or&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;STARTUP MODE&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;610&quot; y=&quot;340&quot; width=&quot;340&quot; height=&quot;160&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;-WzbCRYT-x1LrtJJFd-d-6&quot; value=&quot;Motor Driver&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;1070&quot; y=&quot;385&quot; width=&quot;150&quot; height=&quot;70&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;-WzbCRYT-x1LrtJJFd-d-7&quot; value=&quot;ADC&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;610&quot; y=&quot;715&quot; width=&quot;150&quot; height=&quot;70&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;-WzbCRYT-x1LrtJJFd-d-12&quot; value=&quot;Motor&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;1325&quot; y=&quot;385&quot; width=&quot;150&quot; height=&quot;70&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;-WzbCRYT-x1LrtJJFd-d-29&quot; value=&quot;&quot; style=&quot;endArrow=classic;html=1;rounded=0;strokeColor=#647687;exitX=0.5;exitY=1;exitDx=0;exitDy=0;shape=flexArrow;strokeWidth=2;fillColor=default;gradientColor=none;width=32;endSize=11.67;entryX=0.5;entryY=0;entryDx=0;entryDy=0;horizontal=0;&quot; parent=&quot;1&quot; source=&quot;-WzbCRYT-x1LrtJJFd-d-2&quot; target=&quot;-WzbCRYT-x1LrtJJFd-d-81&quot; edge=&quot;1&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;330&quot; y=&quot;280&quot; as=&quot;sourcePoint&quot; /&gt;&#xA; &lt;mxPoint x=&quot;210&quot; y=&quot;320&quot; as=&quot;targetPoint&quot; /&gt;&#xA; &lt;Array as=&quot;points&quot; /&gt;&#xA; &lt;/mxGeometry&gLine truncated

Before

Width:  |  Height:  |  Size: 191 KiB

@@ -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="1571px" height="733px" viewBox="-0.5 -0.5 1571 733" 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-28&quot; value=&quot;Speed Helper&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;265&quot; y=&quot;150&quot; width=&quot;150&quot; height=&quot;70&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-29&quot; value=&quot;&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=none;&quot; edge=&quot;1&quot; parent=&quot;1&quot; target=&quot;4ED7IVWrFvjwATd2QOsb-31&quot;&gt;&#xA; &lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&#xA; &lt;mxPoint x=&quot;920&quot; y=&quot;420&quot; as=&quot;sourcePoint&quot; /&gt;&#xA; &lt;/mxGeometry&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-30&quot; value=&quot;&amp;lt;div&amp;gt;&amp;lt;b&amp;gt;Motor Controller&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;PID MODE&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;or&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;STARTUP MODE&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;610&quot; y=&quot;340&quot; width=&quot;340&quot; height=&quot;160&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-31&quot; value=&quot;Motor Driver&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;1070&quot; y=&quot;385&quot; width=&quot;150&quot; height=&quot;70&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-32&quot; value=&quot;ADC&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;610&quot; y=&quot;715&quot; width=&quot;150&quot; height=&quot;70&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-33&quot; value=&quot;Motor&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fontFamily=Verdana;fontSize=18;fontColor=#ffffff;fillColor=#647687;strokeColor=#314354;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;&gt;&#xA; &lt;mxGeometry x=&quot;1325&quot; y=&quot;385&quot; width=&quot;150&quot; height=&quot;70&quot; as=&quot;geometry&quot; /&gt;&#xA; &lt;/mxCell&gt;&#xA; &lt;mxCell id=&quot;4ED7IVWrFvjwATd2QOsb-34&quot; value=&quot;&quot; style=&quot;endArrow=classic;html=1;rounded=0;strokeColor=#647687;exitX=0.5;exitY=1;exitDx=0;exitDy=0;shape=flexArrow;strokeWidth=2;fillColor=default;gradientColor=none;width=32;endSize=11.67;entryX=0.5;entryY=0;entryDx=0;entryDy=0;horizontal=0;&quot; edge=&quot;1&quot; parent=&quot;1&quot; source=&quot;4ED7IVWrFvjwATd2QOsb-28&quot; target=&quot;4ED7IVWrFvjwATd2QOsb-43&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;330&quot; y=&quot;280&quot; as=&quot;sourcePoint&quot; /&gt;&#xA; &lt;mxPoint x=&quot;210&quot; y=&quot;320&quot; as=&quot;targetPoint&quot; /&gt;&#xA; &lt;Array as=&quot;points&quot; /&gt;&#xA; &lt;/mxGeometry&gt;&#xA; &lt;/mxCeLine truncated

After

Width:  |  Height:  |  Size: 203 KiB