{"id":3079,"date":"2026-06-16T08:00:00","date_gmt":"2026-06-16T06:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=3079"},"modified":"2026-05-05T08:38:14","modified_gmt":"2026-05-05T06:38:14","slug":"arduino-digitalthermometer","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2026\/06\/16\/arduino-digitalthermometer\/","title":{"rendered":"Arduino Digitalthermometer"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Projekt 20 bringt uns mit dem Arduino zum Digitalthermometer und dieser Artikel liefert den Code dazu\u2026<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Programmierung:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define DATA 6       \/\/ Arduino-Pin 6 wird verbunden mit Schieberegister-Pin 14 \n#define LATCH 8      \/\/ Arduino-Pin 8 wird verbunden mit Schieberegister-Pin 12\n#define CLOCK 10     \/\/ Arduino-Pin 10 wird verbunden mit Schieberegister-Pin 11\n\nint temp = 0;\nfloat voltage = 0;\nfloat celsius = 0;\nfloat sensor = 0;\nint digits&#91;]={252, 96,218,242,102,182,190,224,254,246,238,62,156,122,158,142};\n\nvoid setup()\n{\npinMode(LATCH, OUTPUT);\npinMode(CLOCK, OUTPUT);\npinMode(DATA, OUTPUT);\n}\n\nvoid displayNumber(int n)\n{\nint left, right = 0;\nif (n &lt; 10)\n{\ndigitalWrite(LATCH, LOW);\nshiftOut(DATA, CLOCK, LSBFIRST, digits&#91;n]);\nshiftOut(DATA, CLOCK, LSBFIRST, digits&#91;0]); \n     digitalWrite(LATCH, HIGH);    \n   }\n   if (n>= 10)\n   {\n     right = n %10;\n     left = n \/ 10;\n     digitalWrite(LATCH, LOW);\n     shiftOut(DATA, CLOCK, LSBFIRST, digits&#91;right]);\n     shiftOut(DATA, CLOCK, LSBFIRST, digits&#91;left]); \n     digitalWrite(LATCH, HIGH);         \n   }\n}\n\nvoid loop()\n{\nsensor = analogRead(5);\nvoltage = (sensor * 5000) \/ 1024;\nvoltage = voltage - 500;\ncelsius = voltage \/ 10;\ntemp = int(celsius);\n\ndisplayNumber(temp);\ndelay(500);\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Projekt 20 bringt uns mit dem Arduino zum Digitalthermometer und dieser Artikel liefert den Code dazu\u2026<\/p>\n","protected":false},"author":1,"featured_media":48,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[22],"class_list":["post-3079","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\/3079","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=3079"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3079\/revisions"}],"predecessor-version":[{"id":3080,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3079\/revisions\/3080"}],"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=3079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=3079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=3079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}