{"id":785,"date":"2023-10-31T08:00:00","date_gmt":"2023-10-31T07:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=785"},"modified":"2023-09-19T07:30:30","modified_gmt":"2023-09-19T05:30:30","slug":"arduino-multiplikation","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2023\/10\/31\/arduino-multiplikation\/","title":{"rendered":"Arduino Multiplikation"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Nachdem wir uns im letzten Artikel die Temperatur im seriellen Monitor haben anzeigen lassen, f\u00fchren wir nun eine kleine Multiplikation durch&#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Vorbereitungen:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">F\u00fcr dieses Projekt wird eigentlich nur der Arduino ben\u00f6tigt und der wird per USB-Kabel mit dem Computer verbunden\u2026<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Der folgende Code\/Sketch nimmt eine Zahl entgegen, multipliziert sie mit 2 und zeigt das Ergebnis im seriellen Monitor an.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Programmierung:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int number;\nvoid setup()\n{\nSerial.begin(9600);\n}\n\nvoid loop()\n{\nnumber = 0;\nSerial.flush();\nwhile(Serial.available() == 0)\n{\n\n}\n\nwhile(Serial.available() > 0)\n{\nnumber = Serial.read() - '0';\n}\nSerial.print(\"Du hast eingegeben: \");\nSerial.println(number);\nSerial.print(number);\nSerial.print(\" multipliziert mit zwei macht \");\nnumber = number * 2;\nSerial.println(number);\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nachdem wir uns im letzten Artikel die Temperatur im seriellen Monitor haben anzeigen lassen, f\u00fchren wir nun eine kleine Multiplikation durch&#8230;<\/p>\n","protected":false},"author":1,"featured_media":48,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[22],"class_list":["post-785","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","tag-arduino-gruppe-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=785"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions"}],"predecessor-version":[{"id":786,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions\/786"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/48"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}