From 96de1f1f3fd3f4c880c3a87a2e6cff667527cce0 Mon Sep 17 00:00:00 2001
From: Gabriel Koppenstein <82903393+1nct@users.noreply.github.com>
Date: Fri, 28 Jan 2022 00:24:06 +0100
Subject: [PATCH] Updated Hardware description (markdown)
---
Hardware-description.md | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/Hardware-description.md b/Hardware-description.md
index df02d0f..acf29d4 100644
--- a/Hardware-description.md
+++ b/Hardware-description.md
@@ -1,10 +1,10 @@
Overview
--------------------------
-
+
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
- Bridge Rectifier & Voltage Regulator
* Motor Driver
@@ -35,3 +35,27 @@ Characteristics
(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)
+
+Input Stage
+--------------------------
+
+
+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
+--------------------------
+
+
+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:
+
+VEMF = 11⋅VMeasure2 - 43⋅VMeasure + 45
+
+Auxillary Output
+--------------------------
+
+
+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