svg update

Gabriel Koppenstein committed 2022-01-31 01:50:45 +01:00
1 parent dbd54b803a
commit 2b5e07b62c
1 file changed
+10 -6
+10 -6
@@ -38,7 +38,7 @@ Characteristics
Input Stage
--------------------------
![Input Stage](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/Input.svg)
![Input Stage](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/Input_Stage.svg)
D1 Rectifies the DCC square-wave into DC, the amplitude is not critical as long as its within the 25V limit. The rectified Voltage is then provided to the 3.3V voltage regulator (U1) and to the motor driver (U2).
@@ -50,20 +50,24 @@ Motor Driver
The Motor Driver is a complete H-Bridge IC specifically made for DC-Motors.
In order to control the motor, it is necessary to measure the back-EMF. This is done by the ADC which measures at Points V_EMF_A and V_EMF_B respectively. The two resistors and the zener diode function similar to the circuit in the input stage. Only this time the actual voltage V<sub>EMF</sub> has to be measured. This means for voltages higher than ~1.8V the non-linearity of the Zener Diode needs to be taken into account. The correction is done in Software, approximated by the following formula:
In order to control the motor, it is necessary to measure the back-EMF. This is done by the ADC which measures at Points ADC_EMF_A and ADC_EMF_B respectively. The two resistors and the zener diode function similar to the circuit in the input stage. Only this time the actual voltage V<sub>EMF</sub> has to be measured. This means for voltages higher than ~1.8V the non-linearity of the Zener Diode needs to be taken into account. The correction is done in Software, approximated by the following formula:
V<sub>EMF</sub> > 1.8V:
V<sub>EMF</sub> ≈ 11⋅V<sub>Measure</sub><sup>2</sup> - 43⋅V<sub>Measure</sub> + 45
V<sub>EMF</sub> ≈ 11⋅(V<sub>ADC_EMF_X</sub>)<sup>2</sup> - 43⋅(V<sub>ADC_EMF_X</sub>) + 45
V<sub>EMF</sub> < 1.8V:
V<sub>EMF</sub> ≈ V<sub>Measure</sub>⋅(<sup>10kΩ+10kΩ</sup>/<sub>10kΩ</sub>)
V<sub>EMF</sub> ≈ (V<sub>ADC_EMF_X</sub>)⋅(<sup>10kΩ+10kΩ</sup>/<sub>10kΩ</sub>)
Note: ADC converts 3.3V to 4096 and 0V to 0
Auxillary Output
--------------------------
![Auxillary Output](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/Auxillary.svg)
![Auxillary Output](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/Aux_Outputs.svg)
Switching of loads up to a maximum of about ~750mA can be done using these four N-Channel MOSFETS. They are switching on the low-side which means the load is either switched on and connected to GND or switched off and not connected to GND. So in order to connect any load, the load needs to be supplied by the +12V and the negative "-" side has to be connected to AUX(X).
Switching of loads up to a maximum of about ~750mA can be done using these four N-Channel MOSFETS. They are switching on the low-side which means the load is either switched on and connected to GND or switched off and not connected to GND. So in order to connect any load, the load needs to be supplied by the +12V and the negative "-" side has to be connected to AUX(X).
Complete Schematic
--------------------------
![Auxillary Output](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/RP2040-Decoder-Rev_0_2.svg)