From 2b5e07b62c96f37e4c4d8abaebafcbacd2919d59 Mon Sep 17 00:00:00 2001 From: Gabriel Koppenstein <82903393+1nct@users.noreply.github.com> Date: Mon, 31 Jan 2022 01:50:45 +0100 Subject: [PATCH] svg update --- Hardware-description.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Hardware-description.md b/Hardware-description.md index 561c06c..fcb688b 100644 --- a/Hardware-description.md +++ b/Hardware-description.md @@ -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 VEMF 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 VEMF 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: VEMF > 1.8V: -VEMF ≈ 11⋅VMeasure2 - 43⋅VMeasure + 45 +VEMF ≈ 11⋅(VADC_EMF_X)2 - 43⋅(VADC_EMF_X) + 45 VEMF < 1.8V: -VEMF ≈ VMeasure⋅(10kΩ+10kΩ/10kΩ) +VEMF ≈ (VADC_EMF_X)⋅(10kΩ+10kΩ/10kΩ) 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). \ No newline at end of file +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) \ No newline at end of file