Projekt

Allgemein

Profil

Eval » Historie » Version 16

Maximilian Seesslen, 19.06.2023 17:24

1 1 Maximilian Seesslen
h1. Eval
2
3
h1. Overall design
4
5
* 4 x red+green LEDs for condition
6
* Restart button
7 10 Maximilian Seesslen
* Iterate over the ADC channels and get Voltage level
8 13 Maximilian Seesslen
* Self-Calibrating via MOSFET (shortcuit cable interface)
9 15 Maximilian Seesslen
* draw 100mA. Why?
10 4 Maximilian Seesslen
* Die Kabel haben AWG28, 212.9 Ohm/km, 1.4 A nach erde,	0.23 A versorgung
11 7 Maximilian Seesslen
* 0,2129 Ohm/m; 1,0645 Ohm/5m; 2,129 Ohm/10m;
12 4 Maximilian Seesslen
* https://de.wikipedia.org/wiki/E-Reihe#/media/Datei:E12_values_graph.svg
13 9 Maximilian Seesslen
* Buzzer would be nice for indication; durchklingeln
14
* PWM Output
15 11 Maximilian Seesslen
* Pinsocket connected to wires to measure resistance/Voltage directly
16 14 Maximilian Seesslen
* https://www.aeq-web.com/spannungsteiler-microcontroller-berechnen-und-dimensionieren/
17 4 Maximilian Seesslen
18 13 Maximilian Seesslen
h1. Theoretische Spannungen bei AWG28
19
20
theoretically an device that draws 0,1A and 5m AWG28 cable:
21
U2=((5*50)/ (50+1,0645) ) = 4,8957691; that should work
22
23
theoretically an device that draws 0,5A and 10m AWG28 cable:
24
U2 = ( (5*10) / (10+2,129) ) = 4,1223514 V
25
26 12 Maximilian Seesslen
h1. Calculations I
27
28 4 Maximilian Seesslen
U2=((U*R2)/R_GES)
29
30 5 Maximilian Seesslen
U
31 4 Maximilian Seesslen
R*I
32
33
5V/0,1A= 50 Ohm
34
5V*0,1A= 0,5 W
35
36 7 Maximilian Seesslen
5V/0,5A= 10 Ohm
37
38 5 Maximilian Seesslen
RGes = R1+R2 = 50
39
40 7 Maximilian Seesslen
3V=(5*R2)/50
41
*R2 = (3*50)/5 = 30 -> 27
42
R1 = 22*
43
RGES = 49
44 1 Maximilian Seesslen
45
U2 = 5*27/49 = 2,755102
46
47
h1. Calculations II
48 12 Maximilian Seesslen
49 1 Maximilian Seesslen
* Ein Kabel >= 10m soll durchfallen. Koennen trotzdem groessere Wiederstaende verwendet werden?
50
51 13 Maximilian Seesslen
Ohne Widerstand:
52 1 Maximilian Seesslen
53 13 Maximilian Seesslen
U2 = 2,755102
54 1 Maximilian Seesslen
55 13 Maximilian Seesslen
Obige werte 1fach, 10m Kabel:
56
57
R2 = 27
58
R1 = 22
59
mit 10m 
60
U2 = (5*27)/(49+2,129) = 2,6403802
61
2,755102-2,6403802=0,1147218
62
0,1147218/0,00073242188 = 156,6335
63
64
Obige werte 10fach, 10m Kabel:
65
66
R2 = 270
67
R1 = 220
68
mit 10m 
69
U2 = (5*270)/(490+2,129) = 2,7431832
70
71
Bei 12Bit ADC: 3 / 4096 = approx. 0,00073242188 V pro ADC-Wert.
72
2,755102-2,7431832=0,0119188
73
0,0119188 / 0,00073242188 = approx. 16,273135. Thats not super much
74
75 16 Maximilian Seesslen
h1. Calculations III
76
77 10 Maximilian Seesslen
h1. Keyfeatures
78
79
* Cable checker
80
* Buzzer Durchgangspruefer
81
* PWM Output
82 7 Maximilian Seesslen
83 1 Maximilian Seesslen
h1. MCU
84 2 Maximilian Seesslen
85 1 Maximilian Seesslen
* "stm32f051c4":https://www.mouser.de/datasheet/2/389/stm32f051c4-1851079.pdf
86
** I have 17; 
87 2 Maximilian Seesslen
** 16 ADC channels
88
* STM32G030C8T6
89 3 Maximilian Seesslen
** nearly same specs but smaller footprint; LQFP 48
90 1 Maximilian Seesslen
** 2,68€ inc. Mwst.
91 13 Maximilian Seesslen
** ADC faster
92
** Mentions an 16Bit ADC value via oversampling, but thats complicated: adding white noise in order to calculate further 2 bits by software. Every MCU can do that.