{"id":1011,"date":"2019-02-11T10:02:16","date_gmt":"2019-02-11T09:02:16","guid":{"rendered":"https:\/\/martin-kuettner.de\/?p=1011"},"modified":"2019-04-15T12:31:25","modified_gmt":"2019-04-15T11:31:25","slug":"zauberkiste-v3-1-navirechner","status":"publish","type":"post","link":"https:\/\/martin-kuettner.de\/?p=1011","title":{"rendered":"Zauberkiste v3.1 (Navirechner)"},"content":{"rendered":"<p>\u00dcber das Thema, wie ich die Navigation auf dem Schiff l\u00f6sen m\u00f6chte gibt es mittlerweile schon recht viel.<\/p>\n<p>Trotzdem mu\u00df ich an das Thema noch mal ran.<\/p>\n<p>Schon verbl\u00fcffend, wie sich das Ganze von \u201eDVB-T Stick am Laptop\u201c zu einer Art \u201eZentraleinheit\u201c entwickelt hat.<\/p>\n<p><a href=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002.png\"><noscript><img decoding=\"async\" class=\"alignnone wp-image-1017 size-large\" src=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002-1024x576.png\" alt width=\"525\" height=\"295\" srcset=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002-1024x576.png 1024w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002-300x169.png 300w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002-768x432.png 768w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002.png 1920w\" sizes=\"(max-width: 525px) 100vw, 525px\"><\/noscript><img decoding=\"async\" class=\"alignnone wp-image-1017 size-large lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20525%20295%22%3E%3C%2Fsvg%3E\" alt width=\"525\" height=\"295\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20525%20295%22%3E%3C%2Fsvg%3E 525w\" sizes=\"(max-width: 525px) 100vw, 525px\" data-srcset=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002-1024x576.png 1024w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002-300x169.png 300w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002-768x432.png 768w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002.png 1920w\" data-src=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.01_22_53_35.Standbild002-1024x576.png\"><\/a><\/p>\n<p><!--more--><\/p>\n<p>Wie dem auch sei: Das Teil hat die letzten 2 Jahre gut funktioniert und die Liste der Probleme war recht kurz:<\/p>\n<p>&#8211; Wlan Empfang ist hin und wieder ausgefallen (das interne WLan vom RPI3 ist nicht wirklich gut, behoben durch Wlan Stick + externer 6dB Antenne)<\/p>\n<p>&#8211; defekte SD Karte (vermutlich durch nicht korrektes Herunterfahren, behoben durch Shutdown-Routine)<\/p>\n<p>&#8211; ausschalten vergessen \u2013 Schutzschaltung vom LiPo hat Tiefentladung verindert<\/p>\n<p>Ungel\u00f6ste Dinge:<\/p>\n<ol>\n<li>&nbsp;LED Reihe zur schnellen Kontrolle, ob alles funktioniert ohne Funktion<\/li>\n<li>&nbsp;LCD Display funktioniert meistens nicht (Zeit Position, Geschwindigkeit, Kurs und Luftdruck unabh\u00e4ngig vom Raspberry)<\/li>\n<li>&nbsp;Schaltung, damit Raspberry sicher herunterfahren kann ist stark verbesserungsw\u00fcrdig<\/li>\n<li>&nbsp;L\u00fcfter f\u00fcr Zwangsk\u00fchlung ist sehr laut \/ hat ein unangenehmes Ger\u00e4usch (ist ein 25mm L\u00fcfter, der gute 10000Upm drehen kann)<\/li>\n<li>&nbsp;GPS Datenstrom setzt hin und wieder grundlos aus\u2026 *grrrr*<\/li>\n<\/ol>\n<p><a href=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001.png\"><noscript><img decoding=\"async\" class=\"alignnone wp-image-1019 size-large\" src=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001-1024x576.png\" alt width=\"525\" height=\"295\" srcset=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001-1024x576.png 1024w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001-300x169.png 300w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001-768x432.png 768w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001.png 1920w\" sizes=\"(max-width: 525px) 100vw, 525px\"><\/noscript><img decoding=\"async\" class=\"alignnone wp-image-1019 size-large lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20525%20295%22%3E%3C%2Fsvg%3E\" alt width=\"525\" height=\"295\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20525%20295%22%3E%3C%2Fsvg%3E 525w\" sizes=\"(max-width: 525px) 100vw, 525px\" data-srcset=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001-1024x576.png 1024w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001-300x169.png 300w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001-768x432.png 768w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001.png 1920w\" data-src=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste.00_03_14_37.Standbild001-1024x576.png\"><\/a><\/p>\n<p><a href=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout.jpg\"><noscript><img decoding=\"async\" class=\"alignnone wp-image-1014 size-large\" src=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout-1024x576.jpg\" alt width=\"525\" height=\"295\" srcset=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout-1024x576.jpg 1024w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout-300x169.jpg 300w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout-768x432.jpg 768w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout.jpg 2048w\" sizes=\"(max-width: 525px) 100vw, 525px\"><\/noscript><img decoding=\"async\" class=\"alignnone wp-image-1014 size-large lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20525%20295%22%3E%3C%2Fsvg%3E\" alt width=\"525\" height=\"295\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20525%20295%22%3E%3C%2Fsvg%3E 525w\" sizes=\"(max-width: 525px) 100vw, 525px\" data-srcset=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout-1024x576.jpg 1024w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout-300x169.jpg 300w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout-768x432.jpg 768w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout.jpg 2048w\" data-src=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/Zauberkiste-Pinout-1024x576.jpg\"><\/a><\/p>\n<p><a href=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001.png\"><noscript><img decoding=\"async\" class=\"alignnone wp-image-1018 size-large\" src=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001-1024x576.png\" alt width=\"525\" height=\"295\" srcset=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001-1024x576.png 1024w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001-300x169.png 300w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001-768x432.png 768w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001.png 1920w\" sizes=\"(max-width: 525px) 100vw, 525px\"><\/noscript><img decoding=\"async\" class=\"alignnone wp-image-1018 size-large lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20525%20295%22%3E%3C%2Fsvg%3E\" alt width=\"525\" height=\"295\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20525%20295%22%3E%3C%2Fsvg%3E 525w\" sizes=\"(max-width: 525px) 100vw, 525px\" data-srcset=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001-1024x576.png 1024w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001-300x169.png 300w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001-768x432.png 768w, https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001.png 1920w\" data-src=\"https:\/\/martin-kuettner.de\/wp-content\/uploads\/2019\/02\/00094_Sub_01.00_21_01_38.Standbild001-1024x576.png\"><\/a><\/p>\n<p>Einiges war einfach, wie z.B.:<\/p>\n<ol>\n<li>&nbsp;ein simpler Kabelbruch bei den LED und<\/li>\n<li>LCD, wobei ich mich bei letzterem dann doch f\u00fcr ein I2C Display entschieden habe, um ein paar Pins am Arduino zu sparen.<\/li>\n<li>Die neue Abschaltautomatik war schon schwieriger. Vorher lief das einfach \u00fcber ein Relais, welches \u00fcber einen Transistor + Kondensator gehalten wurde. Somit hatte der Raspberry vom Moment es Abschaltens etwa 12 Sekunden Zeit \u2013 viel zu wenig um alle Dienste zu beenden. Deshalb habe ich f\u00fcr die Zeitsteuerung den guten alten ATMega 328P (Arduino Nano) genommen und eine Zustandsmaschine programmiert. Das hat den Vorteil, da\u00df nun statt der 3 Zust\u00e4nde (\u201eAus\u201c, \u201eArduino ein\u201c und \u201eArduino und Raspbbery ein\u201c) mehr Zust\u00e4nde zur Verf\u00fcgung stehen, da auch die vorherige Schalterstellung ber\u00fccksichtigt wird. Zudem kommen jetzt bistabile Relais zum Einsatz, die keinen permanenten Haltestrom ben\u00f6tigen.<\/li>\n<li>Den L\u00fcfter habe ich durch einen Noctua NF-A6x25 getauscht, der wesentlich leiser ist.<\/li>\n<li>Ja und dann noch die Sache mit dem GPS Datenstrom. Das hat Nerven gekostet. Ganz kurz erkl\u00e4rt: Ich brauche den Datenstrom in 4800 Baud, da sonst die Funke damit nicht klar kommt. Das GPS sendet aber mit 9600 Baud und damit kommt man in Probleme (Buffer\u00fcberlauf), wenn der Datenstrom vom Arduino zwar mit 9600 Baud empfangen wird, aber nur mit 4800 wieder rausgeht\u2026 Aber es gibt eine L\u00f6sung! Man initialisiert das GPS mit 9600 Baud, sendet einen Befehl, um es auf 4800 Baud umzuschalten und verbindet neu mit 4800 Baud. Funktioniert 1A, au\u00dfer da\u00df das Modul anscheinend hin und wieder auf 9600 Baud zur\u00fcckf\u00e4llt. Warum auch immer. Auch der Support konnte mir daf\u00fcr keine Erkl\u00e4rung geben. Die L\u00f6sung ist ein Work-Around. Sobald keine verwertbaren PGTOP Daten (Die sagen etwas \u00fcber den Zustand der GPS Antenne) mehr kommen, wird mit 9600 Baud verbunden und das Modul auf 4800 zur\u00fcckgesetzt. Ist keine sch\u00f6ne L\u00f6sung, aber mir f\u00e4llt keine andere ein. Sicherlich w\u00e4re es besser die Firmware des Moduls zu \u00e4ndern, aber da ist kein Herankommen\u2026<\/li>\n<\/ol>\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/uCp4hbGx_2E\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00dcber das Thema, wie ich die Navigation auf dem Schiff l\u00f6sen m\u00f6chte gibt es mittlerweile schon recht viel. Trotzdem mu\u00df ich an das Thema noch mal ran. Schon verbl\u00fcffend, wie sich das Ganze von \u201eDVB-T Stick am Laptop\u201c zu einer Art \u201eZentraleinheit\u201c entwickelt hat.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1011","post","type-post","status-publish","format-standard","hentry","category-tchnical"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=\/wp\/v2\/posts\/1011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1011"}],"version-history":[{"count":7,"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=\/wp\/v2\/posts\/1011\/revisions"}],"predecessor-version":[{"id":1144,"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=\/wp\/v2\/posts\/1011\/revisions\/1144"}],"wp:attachment":[{"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/martin-kuettner.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}