Gast
#3037418
Im Netz habe ich ein Beispiel Code vom arduino gefunden: http://www.phanderson.com/arduino/hih6130.html Datenblatt: http://www.farnell.com/datasheets/1676947.pdf Ich habe einen RP6 an dem ich über I2C einen Feuchtesesnor angeschlossen habe, den HIH-6130. Die kommunikation zwischen RP6 und HIH-6130 läuft, jedoch erhalte ich keine Werte. Der Status Bit sagt "01", laut Datenblatt heißt das: >When the two status bits read “01”, “stale” data is indicated. >This means that the data that already exists in the sensor’s >output buffer has already been fetched by the Master, and has >not yet been updated with the next data from the current >measurement cycle. This can happen when the Master polls >the data quicker than the sensor can update the output buffer. Die Erklärung zum Feuchtesensor: http://www.phanderson.com/arduino/I2CCommunications.pdf Ich verstehe das nicht warum dort alte Werte sein sollen :-S kann mir da jemand vielleicht weiterhelfen. Meine vrmutung ist das "Measurement Request", aber das habe ich in meiner Programmierung bedacht. Hier mein Code vom RP6:
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
Als ergebniss erhalte ich immer:
01 für das Status
000000 für feuchte high
00000000 für feuchte low
00000000 für temp high
000000 für temp low
10 "Do not care" lauf Datenblatt
