aboutsummaryrefslogtreecommitdiff
path: root/assignments/read-temperature
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-04-26 19:46:03 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-04-26 19:46:03 +0200
commit02e2780d233c2d73fcbd32a2a970d5a6f3696224 (patch)
tree2e0e008622b22f921857e297197836c8f563365a /assignments/read-temperature
parent4c9176f3a07ea8c10301e08f659e3781f69d7a7c (diff)
downloadiot-workshop-ndc-2018-02e2780d233c2d73fcbd32a2a970d5a6f3696224.tar.gz
iot-workshop-ndc-2018-02e2780d233c2d73fcbd32a2a970d5a6f3696224.tar.bz2
iot-workshop-ndc-2018-02e2780d233c2d73fcbd32a2a970d5a6f3696224.tar.xz
iot-workshop-ndc-2018-02e2780d233c2d73fcbd32a2a970d5a6f3696224.zip
wip
Diffstat (limited to 'assignments/read-temperature')
-rw-r--r--assignments/read-temperature/read-temperature.md8
-rw-r--r--assignments/read-temperature/read-temperature.pdfbin0 -> 790129 bytes
-rw-r--r--assignments/read-temperature/schematic/read-temperature.fzzbin0 -> 23036 bytes
-rw-r--r--assignments/read-temperature/schematic/read-temperature_bb.pdfbin0 -> 392490 bytes
-rw-r--r--assignments/read-temperature/schematic/read-temperature_schem.pdfbin0 -> 354997 bytes
-rw-r--r--assignments/read-temperature/solution/read-temperature/read-temperature.ino14
6 files changed, 22 insertions, 0 deletions
diff --git a/assignments/read-temperature/read-temperature.md b/assignments/read-temperature/read-temperature.md
new file mode 100644
index 0000000..2528b4a
--- /dev/null
+++ b/assignments/read-temperature/read-temperature.md
@@ -0,0 +1,8 @@
+
+## Step 1
+
+Wire up this schematic on the bread board:
+
+![](schematic/read-temperature_schem.pdf)
+
+![](schematic/read-temperature_bb.pdf)
diff --git a/assignments/read-temperature/read-temperature.pdf b/assignments/read-temperature/read-temperature.pdf
new file mode 100644
index 0000000..5a13441
--- /dev/null
+++ b/assignments/read-temperature/read-temperature.pdf
Binary files differ
diff --git a/assignments/read-temperature/schematic/read-temperature.fzz b/assignments/read-temperature/schematic/read-temperature.fzz
new file mode 100644
index 0000000..52a9fa0
--- /dev/null
+++ b/assignments/read-temperature/schematic/read-temperature.fzz
Binary files differ
diff --git a/assignments/read-temperature/schematic/read-temperature_bb.pdf b/assignments/read-temperature/schematic/read-temperature_bb.pdf
new file mode 100644
index 0000000..79cc8eb
--- /dev/null
+++ b/assignments/read-temperature/schematic/read-temperature_bb.pdf
Binary files differ
diff --git a/assignments/read-temperature/schematic/read-temperature_schem.pdf b/assignments/read-temperature/schematic/read-temperature_schem.pdf
new file mode 100644
index 0000000..d01ab4b
--- /dev/null
+++ b/assignments/read-temperature/schematic/read-temperature_schem.pdf
Binary files differ
diff --git a/assignments/read-temperature/solution/read-temperature/read-temperature.ino b/assignments/read-temperature/solution/read-temperature/read-temperature.ino
new file mode 100644
index 0000000..71e860e
--- /dev/null
+++ b/assignments/read-temperature/solution/read-temperature/read-temperature.ino
@@ -0,0 +1,14 @@
+#include <DHT.h>
+#include <DHT_U.h>
+
+const auto DHTPIN = D1;
+const auto DHTTYPE = DHT22;
+
+DHT_Unified dht(DHTPIN, DHTTYPE);
+
+void setup() {
+}
+
+void loop() {
+}
+