PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ADC aus Widerstand und Spannung berechnen?



Ripper121
20.02.2011, 12:16
Hi,
Ich will ein Thermometer bauen mit einem 103AT-2.
Der sensor ist wie folgt angeschlossen:
5V--103AT-2--|--1Kohm--GND
|
ADC
Hier die Werte vom 103AT-2

-50
-45
-40
-35
-30
-25
-20
-15
-10
-5
0
5
10
15
20
25
30
35
40
45
50
55
60
65
70
75
80
85
90
95
100
105
110

Kohm
329,5
247,7
188,5
144,1
111,3
86,43
67,77
53,41
42,47
33,9
27,28
22,05
17,96
14,69
12,09
10
8,313
6,94
5,827
4,911
4,16
3,536
3,02
2,588
2,228
1,924
1,668
1,451
1,266
1,108
0,9731
0,8572
0,7576


Wie kann ich jetzt den ADC wert bei gewisser temperatur berechnen?
Hab ihr ne Formel?

TobiKa
20.02.2011, 12:26
Ich gehe mal davon aus das deine Frage nicht ist, wie du den ADC benutzt. Und ich gehe davon aus das du weist was ein Spannungsteiler ist.

Nun könntest du dir ne Formel zur Berechnung ausdenken, oder ne Spannungs/Temperatur Tabelle programmieren, aus der dann der am besten passende Wert rausgesucht wird.

Ach, und Widerstand schreibt man ohne ie.

Ripper121
20.02.2011, 12:58
ich kann mir doch aus ner spannung ein adc berechnen das weis ich.
aber wie bekomme ich eine spannung aus dem wiederstandswert heraus?

TobiKa
20.02.2011, 13:02
Nimm nen Taschenrechner und rechne dir aus bei welchen Widerstand du welche Spannung hast.

Ripper121
20.02.2011, 13:07
gibts da keine formel für?

TobiKa
20.02.2011, 13:10
Hier steht wie man einen Spannugsteiler berechnet http://de.wikipedia.org/wiki/Spannungsteiler

Ne Formel für die Tabelle musst du schon selbst herleiten.

Ripper121
20.02.2011, 15:37
Danke
http://upload.wikimedia.org/math/f/d/f/fdfe81746ee9fac91a3931176fe77fd9.png
http://www.mikrocontroller.net/wikifiles/math/d/d/1/dd138e0d5fa6d3a4d6d13db34f252dd3.png

Dirk
20.02.2011, 19:39
Formelvorschlag (ADC 10-bit, Ref: 5V):

ADC-Wert = (5/((kOhm + 1)*1000)*1000)/(5/1024)

Die Formel errechnet aus dem 103AT-2 Widerstandswert den ADC-Wert bei deiner Beschaltung mit dem 1 kOhm Widerstand in Reihe.

Eine Formelbeziehung zwischen Temp. und dem Widerstandswert des 103AT-2 kannst du z.B. Excel berechnen lassen.

Gruß Dirk

Ripper121
20.02.2011, 20:42
vielen dank!!! danke für die klare antwort :-)

radbruch
20.02.2011, 20:51
Danke ;)

Ripper121
20.02.2011, 22:29
Hier die werte für den 103-AT und 1Kohm
ADC °C
9 -50°C
9 -50°C
9 -49°C
9 -49°C
9 -49°C
9 -48°C
9 -48°C
10 -48°C
10 -48°C
10 -47°C
10 -46°C
10 -46°C
10 -45°C
10 -45°C
10 -44°C
10 -44°C
10 -44°C
11 -43°C
11 -43°C
11 -43°C
11 -43°C
11 -42°C
11 -41°C
11 -41°C
11 -40°C
12 -40°C
12 -39°C
12 -39°C
12 -39°C
12 -38°C
12 -38°C
12 -38°C
12 -38°C
12 -37°C
13 -36°C
13 -36°C
13 -35°C
13 -35°C
13 -34°C
13 -34°C
14 -34°C
14 -33°C
14 -33°C
14 -33°C
14 -33°C
14 -32°C
15 -31°C
15 -31°C
15 -30°C
15 -30°C
15 -29°C
16 -29°C
16 -29°C
16 -28°C
16 -28°C
16 -28°C
16 -28°C
17 -27°C
17 -26°C
17 -26°C
18 -25°C
18 -25°C
18 -24°C
18 -24°C
19 -24°C
19 -23°C
19 -23°C
19 -23°C
19 -23°C
20 -22°C
20 -21°C
20 -21°C
21 -20°C
21 -20°C
21 -19°C
22 -19°C
22 -19°C
22 -18°C
22 -18°C
23 -18°C
23 -18°C
23 -17°C
24 -16°C
24 -16°C
25 -15°C
25 -15°C
25 -14°C
26 -14°C
26 -14°C
26 -13°C
27 -13°C
27 -13°C
27 -13°C
28 -12°C
28 -11°C
29 -11°C
30 -10°C
30 -10°C
30 -9°C
31 -9°C
31 -9°C
31 -8°C
32 -8°C
32 -8°C
32 -8°C
33 -7°C
34 -6°C
35 -6°C
35 -5°C
36 -5°C
36 -4°C
37 -4°C
37 -4°C
37 -3°C
38 -3°C
38 -3°C
39 -3°C
40 -2°C
40 -1°C
41 -1°C
42 °C
43 °C
43 1°C
44 1°C
44 1°C
45 2°C
45 2°C
46 2°C
46 3°C
47 3°C
48 4°C
49 4°C
50 5°C
51 5°C
52 6°C
52 6°C
53 6°C
53 7°C
54 7°C
55 7°C
55 8°C
56 8°C
58 9°C
59 9°C
60 10°C
61 10°C
61 11°C
62 11°C
63 11°C
64 12°C
64 12°C
65 12°C
66 13°C
67 13°C
68 14°C
70 14°C
71 15°C
72 15°C
73 16°C
74 16°C
75 16°C
75 17°C
76 17°C
77 17°C
78 18°C
79 18°C
81 19°C
83 19°C
84 20°C
85 20°C
86 21°C
87 21°C
88 21°C
89 22°C
90 22°C
91 22°C
92 23°C
94 23°C
95 24°C
97 24°C
99 25°C
100 25°C
101 26°C
102 26°C
103 26°C
104 27°C
105 27°C
106 27°C
108 28°C
110 28°C
112 29°C
114 29°C
116 30°C
117 30°C
118 31°C
120 31°C
121 31°C
122 32°C
123 32°C
124 32°C
125 33°C
128 33°C
130 34°C
133 34°C
135 35°C
136 35°C
138 36°C
139 36°C
140 36°C
142 37°C
143 37°C
144 37°C
145 38°C
148 38°C
151 39°C
153 39°C
156 40°C
157 40°C
159 41°C
160 41°C
162 41°C
163 42°C
165 42°C
166 42°C
168 43°C
171 43°C
173 44°C
176 44°C
179 45°C
181 45°C
182 46°C
184 46°C
186 46°C
187 47°C
189 47°C
190 47°C
192 48°C
195 48°C
198 49°C
201 49°C
204 50°C
206 50°C
208 51°C
210 51°C
211 51°C
213 52°C
215 52°C
216 52°C
218 53°C
222 53°C
225 54°C
228 54°C
232 55°C
234 55°C
235 56°C
237 56°C
239 56°C
241 57°C
243 57°C
244 57°C
246 58°C
250 58°C
253 59°C
257 59°C
261 60°C
263 60°C
265 61°C
266 61°C
268 61°C
270 62°C
272 62°C
274 62°C
276 63°C
280 63°C
284 64°C
288 64°C
291 65°C
293 65°C
295 66°C
297 66°C
299 66°C
301 67°C
303 67°C
305 67°C
307 68°C
311 68°C
315 69°C
319 69°C
323 70°C
325 70°C
327 71°C
329 71°C
331 71°C
334 72°C
336 72°C
338 72°C
340 73°C
344 73°C
348 74°C
352 74°C
356 75°C
358 75°C
360 76°C
363 76°C
365 76°C
367 77°C
369 77°C
371 77°C
373 78°C
377 78°C
381 79°C
386 79°C
390 80°C
392 80°C
394 81°C
396 81°C
398 81°C
400 82°C
403 82°C
405 82°C
407 83°C
411 83°C
415 84°C
420 84°C
424 85°C
426 85°C
428 86°C
430 86°C
432 86°C
434 87°C
437 87°C
439 87°C
441 88°C
445 88°C
449 89°C
454 89°C
458 90°C
460 90°C
462 91°C
464 91°C
466 91°C
468 92°C
471 92°C
473 92°C
475 93°C
479 93°C
483 94°C
488 94°C
492 95°C
494 95°C
496 96°C
498 96°C
500 96°C
502 97°C
504 97°C
506 97°C
508 98°C
513 98°C
517 99°C
521 99°C
525 100°C
527 100°C
529 101°C
531 101°C
533 101°C
535 102°C
537 102°C
539 102°C
541 103°C
545 103°C
549 104°C
553 104°C
557 105°C
559 105°C
561 106°C
563 106°C
565 106°C
567 107°C
569 107°C
571 107°C
573 108°C
577 108°C
581 109°C
585 109°C
589 110°C

TobiKa
21.02.2011, 07:55
Oh man :D
Wenn du hier schon, warum auch immer, so eine Liste postest, dann pack sie wenigstens in eine Code-Box.