Open FelixMau opened 9 months ago
Die gemessenen Daten werden in ein zu definierendes Übergabeformat überführt und als comma separated values (csv) an den RaspberryPi mit Serial übergeben.
Todos für Arduino:
Für folgende Umrechnungen wurden die Messungen kalibriert:
Die gemessenen Werte während unserer Tests sowie die bestätigte Pinbelegung
Tabelle 2.7 habe ich im Detail mit dem Code (emonKT.ino) verglichen und daraus ergeben sich die Fragen bzw. Issues:
Pinbelegung
umgekehrt bezeichnet. Wie überprüfen wir das?Das ist eine wirklich gute frage wie wir das überprüfen sollten.
Ich habe in der letzten Sitzung angesprochen, dass eine (erneute) Kallibrierung der Messwerte unsere Kapazitäten übersteigt. Das war ja eine Bachelorarbeit von Canzin? Vielleicht sollten wir (nochmal) per email nachfragen?
die BA ist von ihm, ja. Wir können danach fragen, ob die Pinbelegung
noch gilt.
About Tabelle 2.7 : It comes fro the report "Instandsetzung und Kalibrierung der Messtechnik einer Inselanlage" von Cassin (4 April 2023). According to this report the first value Systemspannung Us is probably the battery voltage. The problem is that it is not read by the arduino because the value interval is too big for the arduino to read it. It could be an interesting possibility for next year's seminar to find a way for the arduino to read the battery voltage (because it's an important value to know)
Pinbelegung und Datensicherung
Um Herauszufinden ob der Arduino überhaupt noch etwas misst, möchten wir die Messwerte über die Serielle schnittstelle vor ort Ausgeben. So versuchen wir die Pinbelegung zu bestätigen oder ggf. korrigieren.
Chatgpt findet im Arduino Code dioe folgenden Pins:
Die analogen Eingangssignale mit den entsprechenden Pins sind wie folgt:
"Cpv" (Pin A2):
float cal0(float a)
"Cwt" (Pin A3):
float cal1(float a)
"Cc" (Pin A4):
float cal2(float a)
"Cg" (Pin A5):
float cal3(float a)
"Trash" (Pin A6):
float cal4(float a)
"Cbp" (Pin A7):
float cal5(float a)
"Cbn" (Pin A8):
float cal6(float a)
"Sw" (Pin A9):
float cal7(float a)
"Dw" (Pin A10):
float cal8(float a)
"Vb" (Pin A11):
float cal9(float a)
"Is" (Pin A7):
float cal10(float a)
"Ta" (Pin A8):
float cal11(float a)
"Tb" (Pin A9):
float cal12(float a)
Unbenannt (Pin A10):
float cal13(float a)
Unbenannt (Pin A11):
float cal14(float a)
Unbenannt (Pin A12):
float cal15(float a)
Die Zuordnung erfolgt durch die Definition der Arrays
channels5V
undchannels1V1
. Bitte beachten Sie, dass die Verwendung dieser Pins auch von der spezifischen Konfiguration der Hardware und des Schaltplans abhängt. Es wäre hilfreich, den vollständigen Schaltplan oder die Dokumentation des Arduino-Boards zu überprüfen, um sicherzustellen, dass die Pins korrekt zugeordnet sind.