diff options
Diffstat (limited to 'assignments')
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 Binary files differindex 51f6f0b..df80c8d 100644 --- a/assignments/README.pdf +++ b/assignments/README.pdf 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 Binary files differindex 6456260..785547f 100644 --- a/assignments/blink-a-led/blink-a-led.pdf +++ b/assignments/blink-a-led/blink-a-led.pdf diff --git a/assignments/blink-a-led/schematic/assignment-1.fzz b/assignments/blink-a-led/schematic/blink-a-led.fzz Binary files differindex da3ad5b..da3ad5b 100644 --- a/assignments/blink-a-led/schematic/assignment-1.fzz +++ b/assignments/blink-a-led/schematic/blink-a-led.fzz diff --git a/assignments/blink-a-led/schematic/assignment-1_bb.pdf b/assignments/blink-a-led/schematic/blink-a-led_bb.pdf Binary files differindex 0995ece..0995ece 100644 --- a/assignments/blink-a-led/schematic/assignment-1_bb.pdf +++ b/assignments/blink-a-led/schematic/blink-a-led_bb.pdf diff --git a/assignments/blink-a-led/schematic/assignment-1_schem.pdf b/assignments/blink-a-led/schematic/blink-a-led_schem.pdf Binary files differindex a5241b2..a5241b2 100644 --- a/assignments/blink-a-led/schematic/assignment-1_schem.pdf +++ b/assignments/blink-a-led/schematic/blink-a-led_schem.pdf diff --git a/assignments/mqtt/mqtt.pdf b/assignments/mqtt/mqtt.pdf Binary files differindex aa797bf..4c578f9 100644 --- a/assignments/mqtt/mqtt.pdf +++ b/assignments/mqtt/mqtt.pdf 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 Binary files differnew file mode 100644 index 0000000..5a13441 --- /dev/null +++ b/assignments/read-temperature/read-temperature.pdf diff --git a/assignments/read-temperature/schematic/read-temperature.fzz b/assignments/read-temperature/schematic/read-temperature.fzz Binary files differnew file mode 100644 index 0000000..52a9fa0 --- /dev/null +++ b/assignments/read-temperature/schematic/read-temperature.fzz diff --git a/assignments/read-temperature/schematic/read-temperature_bb.pdf b/assignments/read-temperature/schematic/read-temperature_bb.pdf Binary files differnew file mode 100644 index 0000000..79cc8eb --- /dev/null +++ b/assignments/read-temperature/schematic/read-temperature_bb.pdf diff --git a/assignments/read-temperature/schematic/read-temperature_schem.pdf b/assignments/read-temperature/schematic/read-temperature_schem.pdf Binary files differnew file mode 100644 index 0000000..d01ab4b --- /dev/null +++ b/assignments/read-temperature/schematic/read-temperature_schem.pdf 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() { +} + |