diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-06-13 20:41:24 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-06-13 20:41:24 +0200 |
commit | a4cbbee0671ff20560c31a2f3945b6131496ab2b (patch) | |
tree | 7b3a7d80db0eb3377d87bb812a3cc233f7f0cd4d /assignments/read-temperature | |
parent | e4bdeee49319bc5570dfa0e998e4e68f3c33ee8c (diff) | |
download | iot-workshop-ndc-2018-a4cbbee0671ff20560c31a2f3945b6131496ab2b.tar.gz iot-workshop-ndc-2018-a4cbbee0671ff20560c31a2f3945b6131496ab2b.tar.bz2 iot-workshop-ndc-2018-a4cbbee0671ff20560c31a2f3945b6131496ab2b.tar.xz iot-workshop-ndc-2018-a4cbbee0671ff20560c31a2f3945b6131496ab2b.zip |
wip
Diffstat (limited to 'assignments/read-temperature')
-rw-r--r-- | assignments/read-temperature/read-temperature.md | 13 | ||||
-rw-r--r-- | assignments/read-temperature/read-temperature.pdf | bin | 794796 -> 0 bytes | |||
-rw-r--r-- | assignments/read-temperature/schematic/read-temperature.fzz | bin | 23036 -> 0 bytes | |||
-rw-r--r-- | assignments/read-temperature/schematic/read-temperature_bb.pdf | bin | 392490 -> 0 bytes | |||
-rw-r--r-- | assignments/read-temperature/schematic/read-temperature_schem.pdf | bin | 354997 -> 0 bytes | |||
-rw-r--r-- | assignments/read-temperature/solution/read-temperature/read-temperature.ino | 24 |
6 files changed, 0 insertions, 37 deletions
diff --git a/assignments/read-temperature/read-temperature.md b/assignments/read-temperature/read-temperature.md deleted file mode 100644 index 31a32a8..0000000 --- a/assignments/read-temperature/read-temperature.md +++ /dev/null @@ -1,13 +0,0 @@ -# Read the temperature and humidity sensor DHT22 - -## Step 1 - -Wire up this schematic on the bread board: - -![](schematic/read-temperature_schem.pdf) - -![](schematic/read-temperature_bb.pdf) - -## Step 2 - -* Change sampling frequency diff --git a/assignments/read-temperature/read-temperature.pdf b/assignments/read-temperature/read-temperature.pdf Binary files differdeleted file mode 100644 index f1ec641..0000000 --- a/assignments/read-temperature/read-temperature.pdf +++ /dev/null diff --git a/assignments/read-temperature/schematic/read-temperature.fzz b/assignments/read-temperature/schematic/read-temperature.fzz Binary files differdeleted file mode 100644 index 52a9fa0..0000000 --- a/assignments/read-temperature/schematic/read-temperature.fzz +++ /dev/null diff --git a/assignments/read-temperature/schematic/read-temperature_bb.pdf b/assignments/read-temperature/schematic/read-temperature_bb.pdf Binary files differdeleted file mode 100644 index 79cc8eb..0000000 --- a/assignments/read-temperature/schematic/read-temperature_bb.pdf +++ /dev/null diff --git a/assignments/read-temperature/schematic/read-temperature_schem.pdf b/assignments/read-temperature/schematic/read-temperature_schem.pdf Binary files differdeleted file mode 100644 index d01ab4b..0000000 --- a/assignments/read-temperature/schematic/read-temperature_schem.pdf +++ /dev/null diff --git a/assignments/read-temperature/solution/read-temperature/read-temperature.ino b/assignments/read-temperature/solution/read-temperature/read-temperature.ino deleted file mode 100644 index b261dc5..0000000 --- a/assignments/read-temperature/solution/read-temperature/read-temperature.ino +++ /dev/null @@ -1,24 +0,0 @@ -#include <DHT.h> -#include <DHT_U.h> - -const auto DHTPIN = D1; -const auto DHTTYPE = DHT22; - -DHT_Unified dht(DHTPIN, DHTTYPE); - -void setup() { - Serial.begin(115200); - pinMode(D2, INPUT); - pinMode(D0, OUTPUT); -} - -void loop() { - if (digitalRead(D2) == HIGH) { - Serial.println("HIGH"); - } else { - Serial.println("LOW"); - } - digitalWrite(D0, digitalRead(D2)); - delay(100); -} - |