Projekt

Allgemein

Profil

Eval » Historie » Version 13

Maximilian Seesslen, 21.04.2023 12:25

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 4 Maximilian Seesslen
* draw 100mA
10
* 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 4 Maximilian Seesslen
17 13 Maximilian Seesslen
h1. Theoretische Spannungen bei AWG28
18
19
theoretically an device that draws 0,1A and 5m AWG28 cable:
20
U2=((5*50)/ (50+1,0645) ) = 4,8957691; that should work
21
22
theoretically an device that draws 0,5A and 10m AWG28 cable:
23
U2 = ( (5*10) / (10+2,129) ) = 4,1223514 V
24
25 12 Maximilian Seesslen
h1. Calculations I
26
27 4 Maximilian Seesslen
U2=((U*R2)/R_GES)
28
29 5 Maximilian Seesslen
U
30 4 Maximilian Seesslen
R*I
31
32
5V/0,1A= 50 Ohm
33
5V*0,1A= 0,5 W
34
35 7 Maximilian Seesslen
5V/0,5A= 10 Ohm
36
37 5 Maximilian Seesslen
RGes = R1+R2 = 50
38
39 7 Maximilian Seesslen
3V=(5*R2)/50
40
*R2 = (3*50)/5 = 30 -> 27
41
R1 = 22*
42
RGES = 49
43 1 Maximilian Seesslen
44
U2 = 5*27/49 = 2,755102
45
46
h1. Calculations II
47 12 Maximilian Seesslen
48 1 Maximilian Seesslen
* Ein Kabel >= 10m soll durchfallen. Koennen trotzdem groessere Wiederstaende verwendet werden?
49
50 13 Maximilian Seesslen
Ohne Widerstand:
51 1 Maximilian Seesslen
52 13 Maximilian Seesslen
U2 = 2,755102
53 1 Maximilian Seesslen
54 13 Maximilian Seesslen
Obige werte 1fach, 10m Kabel:
55
56
R2 = 27
57
R1 = 22
58
mit 10m 
59
U2 = (5*27)/(49+2,129) = 2,6403802
60
2,755102-2,6403802=0,1147218
61
0,1147218/0,00073242188 = 156,6335
62
63
Obige werte 10fach, 10m Kabel:
64
65
R2 = 270
66
R1 = 220
67
mit 10m 
68
U2 = (5*270)/(490+2,129) = 2,7431832
69
70
Bei 12Bit ADC: 3 / 4096 = approx. 0,00073242188 V pro ADC-Wert.
71
2,755102-2,7431832=0,0119188
72
0,0119188 / 0,00073242188 = approx. 16,273135. Thats not super much
73
74 10 Maximilian Seesslen
h1. Keyfeatures
75
76
* Cable checker
77
* Buzzer Durchgangspruefer
78
* PWM Output
79 7 Maximilian Seesslen
80 1 Maximilian Seesslen
h1. MCU
81 2 Maximilian Seesslen
82 1 Maximilian Seesslen
* "stm32f051c4":https://www.mouser.de/datasheet/2/389/stm32f051c4-1851079.pdf
83
** I have 17; 
84 2 Maximilian Seesslen
** 16 ADC channels
85
* STM32G030C8T6
86 3 Maximilian Seesslen
** nearly same specs but smaller footprint; LQFP 48
87 1 Maximilian Seesslen
** 2,68€ inc. Mwst.
88 13 Maximilian Seesslen
** ADC faster
89
** 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.