Energieseminar / Inselfitness

1 stars 3 forks source link

Pinbelegung #1

Open FelixMau opened 9 months ago

FelixMau commented 9 months ago

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:

  1. "Cpv" (Pin A2): float cal0(float a)

  2. "Cwt" (Pin A3): float cal1(float a)

  3. "Cc" (Pin A4): float cal2(float a)

  4. "Cg" (Pin A5): float cal3(float a)

  5. "Trash" (Pin A6): float cal4(float a)

  6. "Cbp" (Pin A7): float cal5(float a)

  7. "Cbn" (Pin A8): float cal6(float a)

  8. "Sw" (Pin A9): float cal7(float a)

  9. "Dw" (Pin A10): float cal8(float a)

  10. "Vb" (Pin A11): float cal9(float a)

  11. "Is" (Pin A7): float cal10(float a)

  12. "Ta" (Pin A8): float cal11(float a)

  13. "Tb" (Pin A9): float cal12(float a)

  14. Unbenannt (Pin A10): float cal13(float a)

  15. Unbenannt (Pin A11): float cal14(float a)

  16. Unbenannt (Pin A12): float cal15(float a)

Die Zuordnung erfolgt durch die Definition der Arrays channels5V und channels1V1. 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.

FelixMau commented 8 months ago

Die Pinbelegung stimmt mit der Übergabe und unseren Tests überein.

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:

FelixMau commented 8 months ago

Für folgende Umrechnungen wurden die Messungen kalibriert:

image

Die gemessenen Werte während unserer Tests sowie die bestätigte Pinbelegung

jdario26 commented 7 months ago

Tabelle 2.7 habe ich im Detail mit dem Code (emonKT.ino) verglichen und daraus ergeben sich die Fragen bzw. Issues:

FelixMau commented 7 months ago

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?

jdario26 commented 7 months ago

die BA ist von ihm, ja. Wir können danach fragen, ob die Pinbelegung noch gilt.

julienthevenoz commented 7 months ago

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)