{"id":67,"date":"2014-01-24T08:14:08","date_gmt":"2014-01-24T08:14:08","guid":{"rendered":"https:\/\/www.experimini.org\/blog\/?page_id=67"},"modified":"2014-01-24T08:25:52","modified_gmt":"2014-01-24T08:25:52","slug":"raspberry-pi-getting-started","status":"publish","type":"page","link":"https:\/\/www.experimini.org\/blog\/?page_id=67","title":{"rendered":"Raspberry Pi: Getting Started"},"content":{"rendered":"<h2 dir=\"ltr\">Material<\/h2>\n<ul>\n<li>Raspberry Pi<\/li>\n<li>Stromversorgung (Handy-Ladeger\u00e4t mit Micro-USB)<\/li>\n<li>Netzwerkkabel<\/li>\n<li>USB Maus und Tastatur<\/li>\n<li>(optional) USB Hub<\/li>\n<li>(optional) USB WLAN Stick<\/li>\n<\/ul>\n<h2 dir=\"ltr\">Software<\/h2>\n<ul>\n<li dir=\"ltr\">\n<p dir=\"ltr\">Betriebssystem, z:B. Raspbian, Pidora o.\u00e4. Gibt\u2019s hier: <a href=\"http:\/\/www.raspberrypi.org\/downloads\">http:\/\/www.raspberrypi.org\/downloads<\/a><\/p>\n<\/li>\n<\/ul>\n<p dir=\"ltr\">Es gibt zwei Varianten, um die Software auf die Speicherkarte zu \u00fcbertragen:<\/p>\n<ol>\n<li dir=\"ltr\">\n<p dir=\"ltr\">Installation von NOOBS (New Out Of Box Software):<br \/>\nSD Karte formatieren mit https:\/\/www.sdcard.org\/downloads\/formatter_4\/<br \/>\nNOOBS herunterladen und auf die SD Karte \u00fcbertragen<\/p>\n<\/li>\n<li dir=\"ltr\">\n<p dir=\"ltr\">Installation von Raspbian:<br \/>\nRaspbian downloaden (780 MB)<br \/>\nImage entpacken (unzip, 2,75 MB)<br \/>\nMit Win32DiskImager <a href=\"http:\/\/sourceforge.net\/projects\/win32diskimager\/\">http:\/\/sourceforge.net\/projects\/win32diskimager\/<\/a> (oder dd) Image auf Karte \u00fcbertragen<\/p>\n<\/li>\n<\/ol>\n<h2 dir=\"ltr\">Los geht\u2019s<\/h2>\n<ol>\n<li>Raspberry starten<\/li>\n<li>Konfiguration: raspi-config<\/li>\n<li>Default User \/ PW: pi \/ raspberry<\/li>\n<li>(optional) Window Manager starten: startx<\/li>\n<\/ol>\n<h2 dir=\"ltr\">Webserver Apache installieren<\/h2>\n<ul>\n<li>sudo su<\/li>\n<li>apt-get update<\/li>\n<li>apt-get install apache2<\/li>\n<\/ul>\n<p>Nach der Installation wird der Webserver automatisch gestartet und ist \u00fcber die Adresse http:\/\/localhost\/ bzw. im Netzwerk \u00fcber die zugewiesene Adresse erreichbar.<\/p>\n<h2 dir=\"ltr\">piface<\/h2>\n<p dir=\"ltr\">Zur Ansteuerung von externen Ger\u00e4ten und Auswertung von Signalen ist das piface Board geeignet: <a href=\"http:\/\/www.piface.org.uk\/guides\/\">http:\/\/www.piface.org.uk\/guides\/<\/a><\/p>\n<h3 dir=\"ltr\">piface Software installieren<\/h3>\n<p dir=\"ltr\">Ausf\u00fchrliche Anleitung (engl.) unter <a href=\"http:\/\/my.pi3g.com\/en\/interfaces\/piface-digital\/\">http:\/\/my.pi3g.com\/en\/interfaces\/piface-digital\/<\/a> oder <a href=\"https:\/\/github.com\/thomasmacpherson\/piface\">https:\/\/github.com\/thomasmacpherson\/piface<\/a> und http:\/\/www.farnell.com\/datasheets\/1684425.pdf<\/p>\n<pre dir=\"ltr\">apt-get install python-dev python-gtk2-dev git automake libtool \r\napt-get install espeak python-django python-simplejson\r\ngit clone <a href=\"https:\/\/github.com\/thomasmacpherson\/piface.git\">https:\/\/github.com\/thomasmacpherson\/piface.git\r\n<\/a>cd piface\/python\/\r\nsudo python setup.py install<\/pre>\n<h3 dir=\"ltr\">SPI Driver laden<\/h3>\n<pre dir=\"ltr\">modprobe spi-bcm2708<\/pre>\n<h3 dir=\"ltr\">Programmierung des piface<\/h3>\n<p dir=\"ltr\"><a href=\"http:\/\/www.bartbania.com\/index.php\/piface-digital\/\">http:\/\/www.bartbania.com\/index.php\/piface-digital\/<\/a><br \/>\nhttps:\/\/docs.google.com\/document\/d\/145TkSMwnPAJaqKMLxdvD8aGULQ8UgIIU3hg-JAKwAa0\/edit<br \/>\nhttp:\/\/piface.github.io\/pifacedigitalio\/example.html<br \/>\nhttp:\/\/extant.me\/projects\/autonomous-vehicle\/controlling-piface-with-python-script\/<\/p>\n<p dir=\"ltr\">Hier ist unser erstes Testprogramm:<\/p>\n<pre dir=\"ltr\">#!\/usr\/bin\/python\r\nfrom time import sleep\r\nimport piface.pfio as p\r\np.init()<\/pre>\n<pre dir=\"ltr\">while True:\r\n \u00a0\u00a0\u00a0p.digital_write(0,1)\r\n \u00a0\u00a0\u00a0sleep(0.25)\r\n \u00a0\u00a0\u00a0p.digital_write(1,1)\r\n \u00a0\u00a0\u00a0sleep(0.25)\r\n \u00a0\u00a0\u00a0p.digital_write(2,1)\r\n \u00a0\u00a0\u00a0sleep(0.25)\r\n \u00a0\u00a0\u00a0p.digital_write(2,0)\r\n \u00a0\u00a0\u00a0sleep(0.25)\r\n \u00a0\u00a0\u00a0p.digital_write(1,0)\r\n \u00a0\u00a0\u00a0sleep(0.25)\r\n \u00a0\u00a0\u00a0p.digital_write(0,0)\r\n \u00a0\u00a0\u00a0sleep(0.25)<\/pre>\n<p dir=\"ltr\">Das Programm kann mit dem Editor nano (oder wer&#8217;s mag mit vi) erstellt werden:<\/p>\n<pre dir=\"ltr\">nano testleds.py<\/pre>\n<p dir=\"ltr\">Der Aufruf des Programms erfolgt mit<\/p>\n<pre dir=\"ltr\">python testleds.py<\/pre>\n<p dir=\"ltr\">Wenn alles geklappt hat, werden die ersten drei LEDs nacheinander ein- und ausgeschaltet.<\/p>\n<figure id=\"attachment_57\" aria-describedby=\"caption-attachment-57\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.experimini.org\/blog\/wp-content\/uploads\/2014\/01\/20140123_221618.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-57\" alt=\"Ein kleines Python-Programm steuert den Raspberry Pi.\" src=\"https:\/\/www.experimini.org\/blog\/wp-content\/uploads\/2014\/01\/20140123_221618-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.experimini.org\/blog\/wp-content\/uploads\/2014\/01\/20140123_221618-300x225.jpg 300w, https:\/\/www.experimini.org\/blog\/wp-content\/uploads\/2014\/01\/20140123_221618-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-57\" class=\"wp-caption-text\">Ein kleines Python-Programm steuert den Raspberry Pi.<\/figcaption><\/figure>\n<h2 dir=\"ltr\">Sprachausgabe<\/h2>\n<pre dir=\"ltr\">apt-get install mplayer espeak\r\nespeak \"i can't stop raving.\"\r\nespeak -v de \"das gef\u00e4llt mir echt gut.\"<\/pre>\n<p dir=\"ltr\">Die Fehlermeldungen k\u00f6nnen ignoriert werden.<\/p>\n<h2 dir=\"ltr\">Resources on the web<\/h2>\n<ol>\n<li>http:\/\/www.instructables.com\/id\/Raspberry-Pi-GPIO-home-automation\/?lang=de<\/li>\n<li>http:\/\/pihome.harkemedia.de\/<\/li>\n<li>http:\/\/www.michael-heck.net\/index.php\/tippstricks\/hausautomatisierung-fs20<\/li>\n<li>http:\/\/raspberrypiguide.de\/howtos\/powerpi-raspberry-pi-haussteuerung\/<\/li>\n<li>http:\/\/www.sweetpi.de\/blog\/<\/li>\n<li>http:\/\/www.makeuseof.com\/tag\/how-to-build-home-automation-system-raspberry-pi-and-arduino\/<\/li>\n<li>http:\/\/www.penguintutor.com\/electronics\/simple-homeautomation-raspberrypi<\/li>\n<li>http:\/\/www.penguintutor.com\/electronics\/halloween<\/li>\n<li><a href=\"http:\/\/rayshobby.net\/?page_id=5816\">http:\/\/rayshobby.net\/?page_id=5816<\/a><\/li>\n<li><a href=\"http:\/\/www.raspberrypi.org\/archives\/tag\/home-automation\">http:\/\/www.raspberrypi.org\/archives\/tag\/home-automation<\/a><\/li>\n<li>Projekte und Zubeh\u00f6r; <a href=\"http:\/\/www.raspiprojekt.de\/\">http:\/\/www.raspiprojekt.de\/<\/a><\/li>\n<li>Vergleich von Einplatinencomputern unter 100 EUR; <a href=\"http:\/\/www.heise.de\/ct\/heft\/2014-3-ARM-Boards-fuer-unter-100-Euro-2085405.html\">http:\/\/www.heise.de\/ct\/heft\/2014-3-ARM-Boards-fuer-unter-100-Euro-2085405.html<\/a><\/li>\n<li>Ausf\u00fchrliche Anleitung zur Inbetriebnahme des Raspberry Pi; <a href=\"http:\/\/www.engadget.com\/2012\/09\/04\/raspberry-pi-getting-started-guide-how-to\/\">http:\/\/www.engadget.com\/2012\/09\/04\/raspberry-pi-getting-started-guide-how-to\/<\/a><\/li>\n<li>Apache installieren; <a href=\"http:\/\/www.forum-raspberrypi.de\/Thread-tutorial-raspberry-pi-als-webserver-apache-2-installation\">http:\/\/www.forum-raspberrypi.de\/Thread-tutorial-raspberry-pi-als-webserver-apache-2-installation<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Material Raspberry Pi Stromversorgung (Handy-Ladeger\u00e4t mit Micro-USB) Netzwerkkabel USB Maus und Tastatur (optional) USB Hub (optional) USB WLAN Stick Software Betriebssystem, z:B. Raspbian, Pidora o.\u00e4. Gibt\u2019s hier: http:\/\/www.raspberrypi.org\/downloads Es gibt zwei Varianten, um die Software auf die Speicherkarte zu \u00fcbertragen: Installation von NOOBS (New Out Of Box Software): SD Karte formatieren mit https:\/\/www.sdcard.org\/downloads\/formatter_4\/ NOOBS herunterladen &hellip; <a href=\"https:\/\/www.experimini.org\/blog\/?page_id=67\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Raspberry Pi: Getting Started<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":20,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-67","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=\/wp\/v2\/pages\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67"}],"version-history":[{"count":6,"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=\/wp\/v2\/pages\/67\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=\/wp\/v2\/pages\/67\/revisions\/77"}],"up":[{"embeddable":true,"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=\/wp\/v2\/pages\/20"}],"wp:attachment":[{"href":"https:\/\/www.experimini.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}