Installing the driver for D1 Mini Board You will need to install the drivers for this board. (The piece of software that allows the board to communicate with your computer.) You can find a link to the driver on the product home page. Click the “Getting Started with Arduino” link and follow the install instructions. https://wiki.wemos.cc/products:d1:d1_mini
Installing the Board Start Arduino IDE and open Preferences window (Figure 1). Using File>Preferences
Figure 1: Preferences Window
Copy and paste the following link into the additional board’s manager URLS box (marked in red in the figure): http://arduino.esp8266.com/versions/2.3.0/package_esp8266com_index.json next open the boards manager. (Figure 2)
Figure 2: Opening the Boards Manager
Start typing “esp8266” in the search box (Figure 3). You should see the “esp8266 by esp8266 community” appear. Click the Install button.
Figure 3: Board Manager
Installing the required Libraries. You will need to install some libraries into you Arduino IDE to be able to complete this assignment. To do this you can follow the links below and install each library according to the instruction below. ArduinoHttpClient https://github.com/arduino-libraries/ArduinoHttpClient Adafruit Mqtt Library https://github.com/adafruit/Adafruit_MQTT_Library
Adafruit IO Library https://github.com/adafruit/Adafruit_IO_Arduino WEMOS_DHT12_Arduino_Library https://github.com/wemos/WEMOS_DHT12_Arduino_Library
1) After clicking the link (Figure 4) click the “clone or download” button and select Download Zip. 2) Next open the Arduino IDE 3) Click Sketch>Include Library>Add .ZIP Library (Figure 5) 4) Navigate to your downloads folder, where the zip file is saved and install the library. 5) Restart the Arduino IDE. 6) Repeat steps 1 to 5 for the other libraries to install
Figure 4: Screen shot of Github repository
Figure 5: Arduino IDE
Installing the Neo Pixel Library The neo pixel library is included with most versions of the new Arduino IDE. And as such, you can install it directly in the IDE. To install he Neo pixel library Open the Arduino IDE libraries manager.(Figure 6) and start to type neo pixel in the top search box (Figure 7) . You should now see the “Adafruit neoPixel by adafruit” library. Click the install button for that library.
Figure 6: Libraries Manger
Figure 7: Libraries Manger Screen
Useful code. You are now ready to start the complete the assignment. Three example .ino files can be found in the module learning materials. With these three sketches (listed below) it should be possible to do the assignment. You will need to understand the code in each and seek out the relevant pieces of code to create a new code that has all the required functionality listed in the assignment brief.
Other Useful Resources. https://learn.adafruit.com/home-automation-in-the-cloud-with-the-esp8266-and-adafruitio?view=all https://www.instructables.com/class/Internet-of-Things-Class/ https://wiki.wemos.cc/tutorials:get_started:get_started_in_arduino https://learn.adafruit.com/adafruit-neopixel-uberguide https://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-installation