Install the Arduino Software and D1 Mini

For all the old versions of the AirGradient build instructions the Wemos D1 Mini microcontroller was used. This tutorial explains you how to set up the Arduino IDE for this microprocessor in order to flash the software.

Install the Arduino Software

a) Install the Arduino Software on your computer. Do not use the web version but download and install the version for Linux, Mac, or Windows. This software is used to transfer the code to the microprocessor (and make adjustments to the code).

b) Enable the ESP8266 board (Wemos D1 Mini). You need to enable the D1 mini board in the Arduino IDE by following these steps:

  • Start Arduino and open the Preferences window.
  • Enter into Additional Board Manager URLs field.
  • Open Boards Manager from Tools > Board menu and find the ESP8266 platform.
  • Select the latest version you need from a drop-down box.
  • Click the install button.
  • Select the Lolin (Wemos) D1 Mini board from Tools > Board menu after installation.

c) Test if the connection to the ESP8266 is working by flashing the BLINK code. The BLINK code lets the LED on the D1 MINI blink and when doing this successfully you can see if your software and cable work. To do this, follow these steps:

  • In the Arduino IDE open File, Examples,01.Basic, Blink
  • Connect the D1 MINI with your USB port
  • Go to Tools, and ensure that the Lolin (Wemos) D1 Mini board is selected
  • Go to Tools, Port, and select the USB connection to your D1 Mini. Important if the USB connection does not show up it indicates that your cable might not provide the Data capabilities. Then use another cable. Also, sometimes for Mac users, an additional driver might need to be installed.
  • Once you selected the Port, flash the BLINK file to the D1 MINI by clicking on the Upload Arrow
  • If you see the LED on the D1 MINI blinking, you have successfully flashed the software

If you have any problems with the above, please do not hesitate to contact us!