{"id":2138,"date":"2013-05-12T16:18:26","date_gmt":"2013-05-12T16:18:26","guid":{"rendered":"https:\/\/blog.ecotronics.ch\/wordpress\/?p=2138"},"modified":"2013-11-16T10:18:55","modified_gmt":"2013-11-16T10:18:55","slug":"blink-2-0-arduino-goes-solar","status":"publish","type":"post","link":"https:\/\/blog.ecotronics.ch\/wordpress\/?p=2138","title":{"rendered":"Blink 2.0 &#8211; Arduino goes solar"},"content":{"rendered":"<p>Hier mein erstes Mini-Arduino-Projekt <strong>mit Solarzelle<\/strong>. Es handelt sich um jenes Projekt, dass jeder mit Arduino einmal macht, n\u00e4mlich ein LED-L\u00e4mpchen blinken lassen. Unter den offiziellen Beispielsketches in der Entwicklungsumgebung von Arduino findet man das Projekt unter dem Namen <strong>Blink<\/strong>. Doch nun wird der Arduino <strong>unabh\u00e4ngig vom Stromnetz<\/strong>, d.h. <strong>offgrid<\/strong> betrieben. M\u00f6glich macht dies der <a href=\"http:\/\/www.seeedstudio.com\/wiki\/index.php?title=Solar_Charger_Shield_v2.0b\" target=\"_blank\">Solar Charger Shield<\/a> von Seeed (kein Tippfehler, hat wirklich 3 e).<\/p>\n<h1>Projektziel<\/h1>\n<p>Arduino mit Akku und Solarzelle im Aussenbereich ohne Stromanschluss betreiben<\/p>\n<h1>Komponenten<\/h1>\n<div id=\"attachment_2145\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Komponenten_20130512_162729.jpg\"><img aria-describedby=\"caption-attachment-2145\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-2145\" title=\"Arduino goes solar - Komponenten\" src=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Komponenten_20130512_162729-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Komponenten_20130512_162729-300x225.jpg 300w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Komponenten_20130512_162729-150x112.jpg 150w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Komponenten_20130512_162729-400x300.jpg 400w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Komponenten_20130512_162729.jpg 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-2145\" class=\"wp-caption-text\">Arduino goes solar - Komponenten<\/p><\/div>\n<p>Die Materialliste ist wohl das Interessanteste am Projekt<\/p>\n<ul>\n<li>1 Arduino UNO<\/li>\n<li>1 Steckbrett<\/li>\n<li>1Watt-Solarzelle, die man z.B. bei <a href=\"http:\/\/shop.boxtec.ch\/solar-panel-80x100-p-40309.html\" target=\"_blank\">boxtec<\/a> kaufen kann<\/li>\n<li><a href=\"http:\/\/www.seeedstudio.com\/wiki\/index.php?title=Solar_Charger_Shield_v2.0b\" target=\"_blank\">Solar Charger Shield V2.0b<\/a> von Seeed<\/li>\n<li>10mm-LED<\/li>\n<li>470 Ohm Widerstand<\/li>\n<li>2 M\/M-Jumperkabel<\/li>\n<li>1 Lithium Ionen Polymer Batterie 3.7 Volt 1A 0der 500mA, zu beziehen u.a. bei <a href=\"http:\/\/shop.boxtec.ch\/lithium-ionen-polymer-batterien-p-40311.html\" target=\"_blank\">boxtec<\/a><\/li>\n<li>1 leere Patisserieverpackung als Schutzh\u00fclle<\/li>\n<li>1 Pritt-Haftpunkt als Halterung f\u00fcr die Solarzelle<\/li>\n<\/ul>\n<p>Mit 3.7 Volt ist die Batterie eigentlich zu schwach f\u00fcr einen Arduino, aber Tatsache ist, dass zumindest dieses Projekt mit einer einzigen LED noch ziemlich lange in die Nacht hinein geblinkt hat, obwohl die Batterie nur ein paar Stunden bei relativ schlechtem Wetter geladen wurde.<\/p>\n<h1>Best\u00fcckungsplan und Verkabelung<\/h1>\n<p>Der Best\u00fcckungsplan ist absolut uninteressant, ein LED an den Mikrokontroller geh\u00e4ngt hat jedes Arduino-Greenhorn schon einmal.<\/p>\n<div id=\"attachment_2147\" style=\"width: 438px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Steckplatine.jpg\"><img aria-describedby=\"caption-attachment-2147\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2147 \" title=\"Arduino mit blinkendem LED - Best\u00fcckungsplan\" src=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Steckplatine.jpg\" alt=\"\" width=\"428\" height=\"600\" srcset=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Steckplatine.jpg 428w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Steckplatine-214x300.jpg 214w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Steckplatine-107x150.jpg 107w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_Steckplatine-400x560.jpg 400w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/><\/a><p id=\"caption-attachment-2147\" class=\"wp-caption-text\">Arduino mit blinkendem LED - Best\u00fcckungsplan<\/p><\/div>\n<p>Interessanter ist die Verkabelung des Solar Charger Shiels: An den Anschluss ganz links h\u00e4ngt man die Batterie, an den dritten Anschluss von links neben dem USB-Anschluss die Solarzelle. Stellt man diese Kombination ans Licht, dann beginnt bereits das Laden der Batterie, noch ohne dass man den Arduino darunter gesteckt hat. Das suggeriert zumindest das rote L\u00e4mpchen oberhalb des Solarzellen-Anschlusses.<\/p>\n<table>\n<tbody>\n<tr>\n<td valign=\"top\">\n<p><div id=\"attachment_2148\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_VerkabelterSolarShield_20130512_162920.jpg\"><img aria-describedby=\"caption-attachment-2148\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-2148\" title=\"Solar Charger Shield mit angeschlossener Batterie und Solarzelle\" src=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_VerkabelterSolarShield_20130512_162920-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_VerkabelterSolarShield_20130512_162920-300x225.jpg 300w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_VerkabelterSolarShield_20130512_162920-150x112.jpg 150w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_VerkabelterSolarShield_20130512_162920-400x300.jpg 400w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_VerkabelterSolarShield_20130512_162920.jpg 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-2148\" class=\"wp-caption-text\">Solar Charger Shield mit angeschlossener Batterie und Solarzelle<\/p><\/div><\/td>\n<td valign=\"top\">\n<p><div id=\"attachment_2149\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_SolarShieldAufArduinoAufstecken_20130512_163207.jpg\"><img aria-describedby=\"caption-attachment-2149\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-2149\" title=\"Solar Charger Shield wird auf Arduino aufgesteckt\" src=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_SolarShieldAufArduinoAufstecken_20130512_163207-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_SolarShieldAufArduinoAufstecken_20130512_163207-300x225.jpg 300w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_SolarShieldAufArduinoAufstecken_20130512_163207-150x112.jpg 150w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_SolarShieldAufArduinoAufstecken_20130512_163207-400x300.jpg 400w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_SolarShieldAufArduinoAufstecken_20130512_163207.jpg 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-2149\" class=\"wp-caption-text\">Solar Charger Shield wird auf Arduino aufgesteckt<\/p><\/div><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1>Code<\/h1>\n<p>Die LED wird mit dem analogen Anschluss 13 verkabelt. Der Code entspricht dem Standardbeispiel <b>Blink<\/b>.<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nint led = 13;\r\n\r\nvoid setup() {                \r\n  pinMode(led, OUTPUT);     \r\n}\r\n\r\nvoid loop() {\r\n  digitalWrite(led, HIGH); \/\/ LED anschalten\r\n  delay(1000);               \r\n  digitalWrite(led, LOW);  \/\/ LED ausschalten\r\n  delay(1000);   \r\n}\r\n<\/pre>\n<h1>Demo<\/h1>\n<p>So sieht das vollst\u00e4ndige Projekt aus:<\/p>\n<div id=\"attachment_2151\" style=\"width: 810px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_ganzesProjektZusammengebaut_20130511_174619.jpg\"><img aria-describedby=\"caption-attachment-2151\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2151\" title=\"Arduino wird mit Batterie und Solarzelle betrieben\" src=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_ganzesProjektZusammengebaut_20130511_174619.jpg\" alt=\"\" width=\"800\" height=\"600\" srcset=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_ganzesProjektZusammengebaut_20130511_174619.jpg 800w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_ganzesProjektZusammengebaut_20130511_174619-300x225.jpg 300w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_ganzesProjektZusammengebaut_20130511_174619-150x112.jpg 150w, https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2013\/05\/ArduinoSolarMitLED_ganzesProjektZusammengebaut_20130511_174619-400x300.jpg 400w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><p id=\"caption-attachment-2151\" class=\"wp-caption-text\">Arduino wird mit Batterie und Solarzelle betrieben<\/p><\/div>\n<p>Im Video sieht man, dass das LED-L\u00e4mpchen wirklich blinkt, wenn der Arduino ohne USB- oder Stromanschluss betrieben wird.<br \/>\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"http:\/\/www.youtube.com\/embed\/zOclvXGHHIc?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hier mein erstes Mini-Arduino-Projekt mit Solarzelle. Es handelt sich um jenes Projekt, dass jeder mit Arduino einmal macht, n\u00e4mlich ein LED-L\u00e4mpchen blinken lassen. Unter den offiziellen Beispielsketches in der Entwicklungsumgebung von Arduino findet man das Projekt unter dem Namen Blink. Doch nun wird der Arduino unabh\u00e4ngig vom Stromnetz, d.h. offgrid betrieben. M\u00f6glich macht dies der [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":2151,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[160,244,158],"tags":[296,170,226,215],"_links":{"self":[{"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2138"}],"collection":[{"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2138"}],"version-history":[{"count":15,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2138\/revisions"}],"predecessor-version":[{"id":2454,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2138\/revisions\/2454"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/2151"}],"wp:attachment":[{"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}