{"id":2983,"date":"2026-02-10T08:00:00","date_gmt":"2026-02-10T07:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=2983"},"modified":"2026-02-02T07:53:00","modified_gmt":"2026-02-02T06:53:00","slug":"arduino-thermometer-mit-ampelanzeige","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2026\/02\/10\/arduino-thermometer-mit-ampelanzeige\/","title":{"rendered":"Arduino Thermometer mit Ampelanzeige"},"content":{"rendered":"\n<p><br>Projekt 8 bringt uns zum Thermometer mit Ampelanzeige&#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><br><strong>Programmierung:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define HOT 13\n#define NORMAL 12\n#define COLD 11\nfloat voltage = 0;\nfloat celsius = 0;\nfloat hotTemp = 26;\nfloat coldTemp = 20;\nfloat sensor = 0;\n\nvoid setup ()\n{\npinMode(HOT, OUTPUT);\npinMode(NORMAL, OUTPUT);\npinMode (COLD, OUTPUT);\n}\n\nvoid loop()\n{\nsensor = analogRead(0);\nvoltage = (sensor*5000)\/1024;\nvoltage = voltage-500;\ncelsius = voltage\/10;\n\nif (celsius &lt; coldTemp)\n{\ndigitalWrite(COLD, HIGH);\ndelay(1000);\ndigitalWrite(COLD, LOW);\n}\nelse if (celsius  > coldTemp &amp;&amp; celsius &lt;= hotTemp)\n{\ndigitalWrite(NORMAL, HIGH);\ndelay(1000);\ndigitalWrite(NORMAL, LOW);\n}\nelse\n{\ndigitalWrite(HOT, HIGH);\ndelay(1000);\ndigitalWrite(HOT, LOW);\n}\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Projekt 8 bringt uns zum Thermometer mit Ampelanzeige&#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-2983","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\/2983","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=2983"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/2983\/revisions"}],"predecessor-version":[{"id":2984,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/2983\/revisions\/2984"}],"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=2983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=2983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=2983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}