{"id":6780,"date":"2021-05-21T20:35:52","date_gmt":"2021-05-21T19:35:52","guid":{"rendered":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/?p=6780"},"modified":"2021-05-21T10:08:36","modified_gmt":"2021-05-21T09:08:36","slug":"der-wetterfrosch-2-0-oder-umweltdatenlogger","status":"publish","type":"post","link":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/2021\/05\/21\/der-wetterfrosch-2-0-oder-umweltdatenlogger\/","title":{"rendered":"Der Wetterfrosch 2.0 oder Umweltdatenlogger"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_6780\" class=\"pvc_stats all  \" data-element-id=\"6780\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p style=\"text-align: justify\">Vor ein paar Jahren habe ich ein Projekt vorgestellt, in dem ein Raspberry Pi als Datenlogger arbeitete. An diesen Raspberry waren ein paar Sensoren angeschlossen, die Umweltdaten, wie Lufttemperatur, relative Luftfeuchte, den Luftdruck und auch die aktuelle GPS Position aufzeichneten. Die Sensoren bestanden gr\u00f6\u00dftenteils aus fertigen Breakoutboards, die \u00fcber die diversen Busse (I\u00b2C, Serial, SPI&#8230;) an den RaspberryPi angeschlossen waren. Am PI selber liefen Python Skripten, die das Auslesen der Sensoren \u00fcbernahmen, die Daten zusammenfassten und auf einen USB-Flashspeicher ablegten. Dieses Sammelsurium an Komponenten hatte ich dann in eine Kunststoffbox mit einer Gr\u00f6\u00dfe von 150x80x50mm eingebaut.<\/p>\n<p style=\"text-align: justify\">Doch es geht auch um einiges kleiner. Im Rahmen eines kleinen Projektes war es die Aufgabe, diesen Sensor\/Datenlogger zu verkleinern. Mein Ansatz, das zu realisieren, war ganz einfach: &#8222;Alles neu&#8220;. So habe ich das Konzept folgenderma\u00dfen ge\u00e4ndert:<\/p>\n<ul>\n<li>der RaspberryPi&nbsp;wird durch einen Microcontroller ersetzt<\/li>\n<li>es wird eine Platine erstellt, auf der s\u00e4mtliche Komponenten untergebracht sind<\/li>\n<li>die erfassten Daten werden auf einer MicroSD Karte gespeichert<\/li>\n<li>das Board ist auf die wesentlichsten Komponenten reduziert. Die Sensorelektronik und der SD-Card Reader wird direkt auf dem Board platziert<\/li>\n<li>ein GPS-Empf\u00e4nger (in Form eines Breakoutboards) soll optional aufgesteckt werden k\u00f6nnen<\/li>\n<li>die Programmierung des Controllers wird durch eine ISP Schnittstelle durchgef\u00fchrt<\/li>\n<li>die Spannungsversorgung betr\u00e4gt 5V DC<\/li>\n<\/ul>\n<p>Daraus habe ich folgendes Blockschaltbild erstellt:<\/p>\n<div id=\"attachment_6786\" style=\"width: 484px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/blockschematic1.jpg\"><img fetchpriority=\"high\" decoding=\"async\" aria-describedby=\"caption-attachment-6786\" class=\"wp-image-6786 size-large\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/blockschematic1-1024x576.jpg\" alt=\"\" width=\"474\" height=\"267\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/blockschematic1-1024x576.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/blockschematic1-300x169.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/blockschematic1-768x432.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/blockschematic1.jpg 1280w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/a><p id=\"caption-attachment-6786\" class=\"wp-caption-text\">Blockschaltbild<\/p><\/div>\n<p style=\"text-align: justify\">Das zentrale Element ist, wie so oft, der Microcontroller Atmega328. Er ben\u00f6tigt als externe Beschaltung lediglich einen Quarz als Taktstabilisierung. (genauer gesagt bietet er aber auch die Optionen interne Oszillatoren zu benutzen&#8230;) Der Microcontroller kommuniziert \u00fcber den I\u00b2C Bus mit den Sensoren HYT939 und BME280. \u00dcber die ausgekl\u00fcgelte bidirektionale Levelshifter Schaltung mittels BSS138 Mosfet mit integrierter Body Diode wird die Anpassung der Pegel von 5V auf der Controller Seite zu den 3,3V auf der Sensorseite realisiert. Diese Schaltung wird sowohl f\u00fcr die SCL- (Serial Clock), als auch f\u00fcr die SDA-Leitung (Serial Data) angewendet.<\/p>\n<p style=\"text-align: justify\">Die Datenspeicherung findet auf einer MicroSD-Karte statt. Daf\u00fcr wird ein Card Slot verbaut, der per SPI&nbsp;(Serial Peripheral Interface) mit dem Controller kommuniziert. Auch hier ist eine Anpassung der Signalamplituden notwendig. Das \u00fcbernimmt dieses Mal jedoch der Chip TXB0108 von Texas Instruments. Das ist ein 8Bit Bidirektionaler Levelshifter.<\/p>\n<p style=\"text-align: justify\">Ein Taster wird die Datenaufzeichnung starten und stoppen und eine LED soll diverse Statusmeldungen durch Blinkfolgen darstellen.<\/p>\n<p style=\"text-align: justify\">Das optional aufsteckbare GPS Modul arbeitet mit 5V Spannungsversorgung und die Pegel der seriellen Datenkommunikation (RS232) sind ebenfalls 5V kompatibel.<\/p>\n<p style=\"text-align: justify\">Zu guter letzt ist nat\u00fcrlich auch die Spannungsversorgung zu planen. Hier soll lediglich eine externe, stabilisierte 5VDC Quelle angeschlossen werden, um den Logger zu versorgen. Die f\u00fcr die Sensoren und SD-Card ben\u00f6tigten 3,3VDC werden am Board mittels einem LDO (Low Drop Out) Regler erzeugt.<\/p>\n<p style=\"text-align: justify\">Sind alle Komponenten und deren Zusammenspiel definiert, dann wird daraus der Schaltplan gezeichnet. F\u00fcr meine Bastelprojekte verwende ich haupts\u00e4chlich den Schaltplan- und Layout Editor &#8222;Eagle&#8220;.&nbsp; Aus dem Blockschaltbild ergibt sich die unten abgebildete Schaltung.<\/p>\n<p style=\"text-align: justify\"><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/schematic_frosch.png\"><img decoding=\"async\" class=\"aligncenter wp-image-6797 size-large\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/schematic_frosch-1024x700.png\" alt=\"\" width=\"474\" height=\"324\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/schematic_frosch-1024x700.png 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/schematic_frosch-300x205.png 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/schematic_frosch-768x525.png 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/schematic_frosch-1536x1050.png 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/schematic_frosch-2048x1401.png 2048w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/a>Aus dem Schaltplan habe ich ein Layout mit zwei Layern erstellt, dessen Grundriss die Abmessungen 55x25mm hat. Bis auf die Steckverbinder befinden ausschlie\u00dflich SMD Komponenten auf dem Board.<\/p>\n<p style=\"text-align: justify\"><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/controller_top.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-6812 alignleft\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/controller_top-300x200.png\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/controller_top-300x200.png 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/controller_top-1024x683.png 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/controller_top-768x512.png 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/controller_top-1536x1024.png 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/controller_top-2048x1365.png 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>Im Layout Tool gibt es die Funktion, eine optische Vorschau der gefertigten Platine zu betrachten. So kann man vorab \u00fcberpr\u00fcfen, ob die Platine den Vorstellungen entspricht und gegebenenfalls die Lage der Bauteile optimieren. Ist das erledigt, wird aus dem Design ein Paket mit Produktionsfiles (Gerberdateien) erzeugt und das dann dem Platinen Hersteller seines Vertrauens gesendet. Da der auch sehr, sehr weit weg angesiedelt ist, dauert die Produktion auch ein paar Tage. Aber schlussendlich kommen die Platinen an und k\u00f6nnen sich auch sehen lassen.<\/p>\n<p style=\"text-align: justify\"><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075504-1-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6675\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075504-1-300x162.jpg\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075504-1-300x162.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075504-1-1024x551.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075504-1-768x414.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075504-1-1536x827.jpg 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075504-1-2048x1103.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075514-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6677\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075514-300x170.jpg\" alt=\"\" width=\"300\" height=\"170\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075514-300x170.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075514-1024x580.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075514-768x435.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075514-1536x871.jpg 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075514-2048x1161.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>Die beiden Bilder oben zeigen die Platine von der TOP und der BOTTOM Seite. Der n\u00e4chste Schritt besteht darin, die Komponenten entsprechend der Planung zu bestellen und danach zu best\u00fccken.<\/p>\n<p style=\"text-align: justify\"><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075806-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6685\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075806-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075806-300x225.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075806-1024x768.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075806-768x576.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075806-1536x1152.jpg 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075806-2048x1536.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>Die Best\u00fcckung erledige ich per Hand mit einem, f\u00fcr die SMD-Komponenten geeigneten L\u00f6tkolben mit entsprechend kleiner Spitze. F\u00fcr die ganz kleinen Teile, wie den BME280 Sensor, kommt auch noch ein Mikroskop, bzw. eine Mikroskop Kamera zum Einsatz.<\/p>\n<p><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075554-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6679\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075554-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075554-300x169.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075554-1024x576.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075554-768x432.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075554-1536x864.jpg 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075554-2048x1151.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075604-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6681\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075604-300x174.jpg\" alt=\"\" width=\"300\" height=\"174\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075604-300x174.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075604-1024x594.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075604-768x446.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075604-1536x891.jpg 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075604-2048x1188.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify\">Wie die Platine nach der Best\u00fcckung aussieht, zeigen die beiden Bilder oben. Das folgende Foto zeigt den Gr\u00f6\u00dfenunterschied des fertigen Loggers mit dem aufgesteckten GPS Modul im Vergleich zum alten &#8222;Wetterfrosch&#8220;<a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210511_090558-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6793\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210511_090558-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210511_090558-300x225.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210511_090558-1024x768.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210511_090558-768x576.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210511_090558-1536x1152.jpg 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210511_090558-2048x1536.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>Nach der Fertigstellung der Hardware, geht es nun an die Software. Die habe ich praktischer Weise mit dem Arduino IDE Tool gebastelt und per AVRISP mk2 \u00fcber ISP auf den Controller geflashed. Um den AVRISP auf einem Windows 10 Rechner zum Laufen zu bekommen, muss ein geeigneter Treiber installiert sein. (hier hilft libusb-win32-1.2.6.0)<\/p>\n<div id=\"attachment_6820\" style=\"width: 484px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/samplecode.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6820\" class=\"wp-image-6820 size-large\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/samplecode-1024x928.jpg\" alt=\"\" width=\"474\" height=\"430\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/samplecode-1024x928.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/samplecode-300x272.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/samplecode-768x696.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/samplecode.jpg 1042w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/a><p id=\"caption-attachment-6820\" class=\"wp-caption-text\">Programmcode mit der ArduinoIDE erstellt<\/p><\/div>\n<div id=\"attachment_6683\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075653-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6683\" class=\"wp-image-6683 size-medium\" src=\"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075653-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075653-300x225.jpg 300w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075653-1024x768.jpg 1024w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075653-768x576.jpg 768w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075653-1536x1152.jpg 1536w, https:\/\/blog.fh-kaernten.at\/ingmarsretro\/files\/2021\/05\/IMG_20210504_075653-2048x1536.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-6683\" class=\"wp-caption-text\">Controller mit AVRISPmkII geflashed<\/p><\/div>\n<p style=\"text-align: justify\">Auf der SD-Karte wird nach Anlegen der Versorgungsspannung und nach Bet\u00e4tigen des Tasters die Datenaufzeichnung gestartet. Die Messwerte werden im Sekundentakt geschrieben. Wenn, wie in diesem Beispiel der GPS-Sensor gesteckt ist, so werden auch die GPS Daten mit aufgezeichnet. Die Software zeichnet auch auf, wenn der GPS Sensor noch keinen &#8222;fix&#8220; hat. (Da in dem Beispiellog unten noch kein GPS-Fix vorhanden war, sind auch keine g\u00fcltigen GPS Daten enthalten.)<\/p>\n<p>Beispiel des Datenlogs:<\/p>\n<pre>Luftdruck962.41\r\nLuftfeuchte37.05\r\nTemperatur26.96\r\n-----------------------------\r\n$PGACK,103*40\r\n$PGACK,105*46\r\n$PMTK011,MTKGPS*08\r\n$PMTK010,001*$GPGGA,235947.799,,,,,0,00,,,M,,M,,*71\r\n$GPGLL,,,,,235947.799,V,N*73\r\n$GPGSA,A,1,,,,,,,,,,,,,,,*1E\r\n$GPGSV,1,1,00*79\r\n$GPRMC,235947.799,V,,,,,0.00,0.00,050180,,,N*48\r\n$GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32\r\n$GPGGA,235948.799,,,,,0,00,,,M,,M\r\n\r\n-----------------------------\r\nLuftdruck962.39\r\nLuftfeuchte36.72\r\nTemperatur26.95\r\n-----------------------------\r\nLuftdruck962.43\r\nLuftfeuchte36.66\r\nTemperatur26.97\r\n-----------------------------<\/pre>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_6780\" class=\"pvc_stats all  \" data-element-id=\"6780\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>Vor ein paar Jahren habe ich ein Projekt vorgestellt, in dem ein Raspberry Pi als Datenlogger arbeitete. An diesen Raspberry waren ein paar Sensoren angeschlossen, die Umweltdaten, wie Lufttemperatur, relative Luftfeuchte, den Luftdruck und auch die aktuelle GPS Position aufzeichneten. Die Sensoren bestanden gr\u00f6\u00dftenteils aus fertigen Breakoutboards, die \u00fcber die diversen Busse (I\u00b2C, Serial, SPI&#8230;)&hellip; <br \/> <a class=\"read-more\" href=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/2021\/05\/21\/der-wetterfrosch-2-0-oder-umweltdatenlogger\/\">Weiterlesen<\/a><\/p>\n","protected":false},"author":86,"featured_media":6826,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[57],"tags":[1057,475,2078,2077,608,2071,474,2076,2073,1054,2070,2068,2069,2075,2074,2072],"class_list":["post-6780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elektronikbastler","tag-arduinoprojekte","tag-atmega328","tag-avrispmkii","tag-bme280","tag-datalogger","tag-eigenbaulogger","tag-i2c-sensor-am-arduino","tag-libusb-win32","tag-meteologger","tag-microcontroller","tag-selbstgebauter-datalogger","tag-sensorboard","tag-sensoren-mit-atmega-auslesen","tag-umweltdatenaufzeichnung","tag-wetterdatenlogger","tag-wetterfrosch"],"a3_pvc":{"activated":true,"total_views":98,"today_views":0},"_links":{"self":[{"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/posts\/6780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/users\/86"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/comments?post=6780"}],"version-history":[{"count":0,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/posts\/6780\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/media\/6826"}],"wp:attachment":[{"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/media?parent=6780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/categories?post=6780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/tags?post=6780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}