aboutsummaryrefslogtreecommitdiff
path: root/assignments
diff options
context:
space:
mode:
Diffstat (limited to 'assignments')
-rw-r--r--assignments/Makefile8
-rw-r--r--assignments/README.md2
-rw-r--r--assignments/README.pdfbin113254 -> 128533 bytes
-rw-r--r--assignments/blink-a-led/blink-a-led.md4
-rw-r--r--assignments/blink-a-led/blink-a-led.pdfbin722602 -> 722602 bytes
-rw-r--r--assignments/blink-a-led/schematic/blink-a-led.fzz (renamed from assignments/blink-a-led/schematic/assignment-1.fzz)bin21480 -> 21480 bytes
-rw-r--r--assignments/blink-a-led/schematic/blink-a-led_bb.pdf (renamed from assignments/blink-a-led/schematic/assignment-1_bb.pdf)bin354599 -> 354599 bytes
-rw-r--r--assignments/blink-a-led/schematic/blink-a-led_schem.pdf (renamed from assignments/blink-a-led/schematic/assignment-1_schem.pdf)bin263607 -> 263607 bytes
-rw-r--r--assignments/mqtt/mqtt.pdfbin105234 -> 105234 bytes
-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
15 files changed, 33 insertions, 3 deletions
diff --git a/assignments/Makefile b/assignments/Makefile
index 864864e..2f97a07 100644
--- a/assignments/Makefile
+++ b/assignments/Makefile
@@ -1,4 +1,7 @@
-AS=blink-a-led mqtt
+AS =
+AS += blink-a-led
+AS += read-temperature
+AS += mqtt
PDFS=$(foreach A,$(AS),$(A)/$(A).pdf)
@@ -10,6 +13,9 @@ $(1)/$(1).pdf: $(1)/$(1).md
endef
$(eval $(foreach A,$(AS),$(call $(A_PATTERN),$(A))))
+clean:
+ @rm $(wildcard $(PDFS))
+
%.pdf: %.md
@echo pandoc $<
@cd $(dir $<); pandoc $(notdir $<) -o $(notdir $@)
diff --git a/assignments/README.md b/assignments/README.md
index 363ce15..a6f4dc3 100644
--- a/assignments/README.md
+++ b/assignments/README.md
@@ -23,6 +23,8 @@ which should include "NodeMCU 1.0 (ESP-12E Module)".
* Time
* TimeAlarms
* WifiManager
+* *DHT sensor library* by Adafruit
+* *Adafruit sensor library* by Adafruit
## Install Python 3
diff --git a/assignments/README.pdf b/assignments/README.pdf
index 51f6f0b..df80c8d 100644
--- a/assignments/README.pdf
+++ b/assignments/README.pdf
Binary files differ
diff --git a/assignments/blink-a-led/blink-a-led.md b/assignments/blink-a-led/blink-a-led.md
index e7fb5d8..a08bc4e 100644
--- a/assignments/blink-a-led/blink-a-led.md
+++ b/assignments/blink-a-led/blink-a-led.md
@@ -15,9 +15,9 @@ Create a new sketch with *File* -> *New* and compile it with *ctrl-R*.
Wire up this schematic on the bread board:
-![](schematic/assignment-1_schem.pdf)
+![](schematic/blink-a-led_schem.pdf)
-![](schematic/assignment-1_bb.pdf)
+![](schematic/blink-a-led_bb.pdf)
The colors on the wires used does not matter. The resistors
orientation is not important, but the LED's orientation is important.
diff --git a/assignments/blink-a-led/blink-a-led.pdf b/assignments/blink-a-led/blink-a-led.pdf
index 6456260..785547f 100644
--- a/assignments/blink-a-led/blink-a-led.pdf
+++ b/assignments/blink-a-led/blink-a-led.pdf
Binary files differ
diff --git a/assignments/blink-a-led/schematic/assignment-1.fzz b/assignments/blink-a-led/schematic/blink-a-led.fzz
index da3ad5b..da3ad5b 100644
--- a/assignments/blink-a-led/schematic/assignment-1.fzz
+++ b/assignments/blink-a-led/schematic/blink-a-led.fzz
Binary files differ
diff --git a/assignments/blink-a-led/schematic/assignment-1_bb.pdf b/assignments/blink-a-led/schematic/blink-a-led_bb.pdf
index 0995ece..0995ece 100644
--- a/assignments/blink-a-led/schematic/assignment-1_bb.pdf
+++ b/assignments/blink-a-led/schematic/blink-a-led_bb.pdf
Binary files differ
diff --git a/assignments/blink-a-led/schematic/assignment-1_schem.pdf b/assignments/blink-a-led/schematic/blink-a-led_schem.pdf
index a5241b2..a5241b2 100644
--- a/assignments/blink-a-led/schematic/assignment-1_schem.pdf
+++ b/assignments/blink-a-led/schematic/blink-a-led_schem.pdf
Binary files differ
diff --git a/assignments/mqtt/mqtt.pdf b/assignments/mqtt/mqtt.pdf
index aa797bf..4c578f9 100644
--- a/assignments/mqtt/mqtt.pdf
+++ b/assignments/mqtt/mqtt.pdf
Binary files differ
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() {
+}
+