Updated Hardware description (markdown)

Gabriel Koppenstein committed 2022-01-28 00:24:06 +01:00
1 parent 05c2da34f2
commit 96de1f1f3f
1 file changed
+26 -2
+26 -2
@@ -1,10 +1,10 @@
Overview Overview
-------------------------- --------------------------
![Block Diagram](https://github.com/1nct/RP2040-Decoder/blob/main/Block_Diagram.svg) ![Block Diagram](https://github.com/1nct/RP2040-Decoder/blob/main/svg/Block_Diagram.svg)
The above block diagram gives a general overview regarding the operation of components. For better illustration it has been divided into four functional blocks. Furthermore these functional blocks can be subdivided and will be explained in detail. The above block diagram gives a general overview regarding the operation of components. For better illustration it has been divided into four functional blocks. Furthermore these functional blocks can be subdivided and will be explained in detail.
* Input * Input Stage
- DCC Signal Level Shift - DCC Signal Level Shift
- Bridge Rectifier & Voltage Regulator - Bridge Rectifier & Voltage Regulator
* Motor Driver * Motor Driver
@@ -35,3 +35,27 @@ Characteristics
(1): According to: [BDR6133 Datasheet](https://datasheet.lcsc.com/lcsc/2101211904_Bardeen-Micro--BDR6133_C2687793.pdf) (1): According to: [BDR6133 Datasheet](https://datasheet.lcsc.com/lcsc/2101211904_Bardeen-Micro--BDR6133_C2687793.pdf)
(2): According to: [WNM2030 Datasheet](https://datasheet.lcsc.com/lcsc/1809191616_WILLSEMI-Will-Semicon-WNM2030-3-TR_C239769.pdf) (@25°C) (2): According to: [WNM2030 Datasheet](https://datasheet.lcsc.com/lcsc/1809191616_WILLSEMI-Will-Semicon-WNM2030-3-TR_C239769.pdf) (@25°C)
Input Stage
--------------------------
![Block Diagram](https://github.com/1nct/RP2040-Decoder/blob/main/svg/Input.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).
The circuit on the left ensures that the DCC signal is in a suitable voltage range to be processed by the microcontroller. Diode D2 protects the GPIO from negative Voltages. The zener diode D3 increases the maximum input voltage and thus an increase in the total input voltage range, which would not be achievable with a regular voltage divider.
Motor Driver
--------------------------
![Block Diagram](https://github.com/1nct/RP2040-Decoder/blob/main/svg/Motor_Driver.svg)
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:
V<sub>EMF</sub> = 11⋅V<sub>Measure</sub><sup>2</sup> - 43⋅V<sub>Measure</sub> + 45
Auxillary Output
--------------------------
![Block Diagram](https://github.com/1nct/RP2040-Decoder/blob/main/svg/Auxillary.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).