This is the handout that belongs to the workshop ‘Internet of Things (IOT)’. With the help of this handout and a presentation you will learn the basics of ‘the Internet Of Things’ within three-quarter time. This workshop constists of two assignments:
- In the first assignment you will learn how to program a minicomputer. After you have done this assignment the minicomputer will light up a LED every second. How cool is that 😉
- In the second assignment you will build a functioning weather station that is connected to the internet. Through the internet connection you are able to view the temperature and humidity of this weather station anywhere in the world!
After this workshop, you know as one of the few what you’re talking about when it comes to ‘The Internet of Things’. You will have reasonable feeling about what ingredients are required. Next to this you will have understanding of the most basic electronic components, you know how to program a few rules and you will be surprised by the ease and the final result!
Have fun the next three quarters of an hour and, Good luck!
Preperation for this workshop:
- Make groups of three. One PC per group (not Macc!)
- Grap ALL the files from this link
- Follow instructions below (a.k.a. install the software)
In order to follow this workshop you need to install some software your PC. I cannot guarantee the functionalities on a Macbook.
Step 1: Grap or Download the software
Are you following a workshop? Install the .exe file that you just took from the USB. Make sure to agree on all terms.
If you do not follow a workshop you can download the software: ‘Arduino IDE’ on the webpage: https://www.arduino.cc/en/main/software
Step 2: Select the Board packages
After installing the software we must indicate that we want to work with a not pre-defined minicomputer: the Node-MCU. Enable working with this minicomputer as follows:
- Make sure the computer is connected via the internet
- Start the software ‘Arduino IDE’
- Go to: Bestand >> Voorkeuren (file >> preferences)
- Copy the following URL at ‘ Additionele Bordenbeheerder URLs’ :
- Click: OK
- Click on the tab ‘Hulpmiddelen’ >> ‘board…’ >> ‘Bordenbeheerder..; in the top of the folding down tab. Type in the search field ‘NodeMCU’. Select and download the board.
- Restart the software.
- Check the tab ‘Hulpmiddelen’ for the board :NodeMCU 1.0 (ESP-12 E). Select this board. It is possible that you have to scroll down.
Step 3: Download libraries
In order to prevent long code we will refer in our code to so called ‘libraries’. A library is a peace of code that can be found somewhere else on the computer. There are two library’s required for the workshop: DHT.h and Adafruit_Sensor.h
Add both library as follows:
- Grap the folder ‘librarys’ and place both .ZIP files on your desktop
- Open Arduino IDE and go to: ‘Schets’ >> ‘Bibliotheek gebruiken’ >> ‘.ZIP Bibliotheek toevoegen’.
- Select both .ZIP files after eachother.
- Restart Arduino IDE .