Weather Station Guide Manual
by ideaSpark
1. Overview:This manual describes how to make a miniature weather station by Arduino IDE ......................................... 2
2. Step 1: Install USB-To-Serial........................................................................................................................................................7
3. Step 2: Install Arduino IDE for ESP8266.................................................................................................................................... 9
4. Step 3: Burning Firmware to ESP8266.....................................................................................................................................13
5. Step 4: Connecting Components...............................................................................................................................................15
6. Step 5: Register OpenWeathermap, thingspeak new account.............................................................................................16
7. Step 6: Import WeatherStation code in the Arduino IDE........................................................................................................19
8. Step 7: Add Library.......................................................................................................................................................................21
9. Step 8: Modify File WeatherStation.ino.....................................................................................................................................22
10. Step 9: Set the Board and Port again......................................................................................................................................26
11. Step 10: Burn code to ESP8266..............................................................................................................................................27
12. Step 11: Result............................................................................................................................................................................28
13. Thank You....................................................................................................................................................................................31
Attention:Only Arduino IDE version 1.8.4 is
recommended,other version may can’t work with
the weather station kits source code.
1. Overview : This manual describes how to make a miniature
weather station by Arduino IDE
Features:
1) Get weather data from OpenWeathermap, showing the weather of today and the weather
forecast for the next 3 days in any city in the world
2) Read the current temperature, humidity
3) Read atmospheric pressure and light intensity
4) Upload temperature, humidity, atmospheric pressure and light intensity data to thingspeak.com
at regular intervals
5) View weather forecast on Display and view environmental monitoring chart on thingspeak.com
Result:
Wiring Diagram:
2. Step 1: Install USB-To-Serial
1) We need computer to recognize the Serial Port, so install USB-to-Serial
2) After the installation is successful, connect as shown below. Your computer will recognize
ESP8266:
3) You can see it on My Computer -> Device Manager:
3. Step 2: Install Arduino IDE for ESP8266
Only          Arduino       IDE       version   1.8.4   is
recommended,other version may can’t work with
the weather station kits source code.
Arduino IDE 1.8.4 download URL:
https://www.amazon.com/clouddrive/share/
5hYUsaMRYFatPBizWinTapxlSzqdW8LQtVyiihAYIS
5
Open Arduino IDE
File > Preferences
Insert the following link in the "Additional Boards Manager URLs:" text box::
     http://arduino.esp8266.com/stable/package_esp8266com_index.json
4) Click "OK" to close the dialog.
5) Go to Tools > Board > Board Manager and click this option
6)Type "ESP8266" in the text box, search, and display an option "ESP8266 by ESP8266
Community"
7) Click on "more info" and then click on the "Install" button
8) After the installation process is complete (may take 1 minute or 2 minutes), you can close the
dialog by pressing the "Close" button
9) Go back to Tools > Boards and you should list some "new" boards at the bottom of the list.
Select "NodeMCU 1.0 (ESP-12E Module)"
10) Choose the correct port:
4. Step 3: Burning Firmware to ESP8266
1) The computer is connected to the ESP8266 via the data cable:
2) Use ESP8266Flasher.exe Burning Ai-Thinker_ESP8266_DOUT_8Mbit_v1.5.4.1-a_20171130.bin
to ESP8266
3) Operation as shown:
5. Step 4: Connecting Components
1) Pins Map
                                 ESP8266-12E     OLED
                                     3.3V         VCC
                                      GND         GND
                                       D3         SDA
                                       D4         SCL
                                 ESP8266-12E     DHT11
                                     3.3V          VCC
                                      GND          GND
                                       D5         DATA
                                 ESP8266-12E   BH1750FVI
                                     3.3V         VCC
                                      GND         GND
                                       D3         SDA
                                       D4         SCL
                                 ESP8266-12E    BMP180
                                     3.3V         VCC
                                      GND         GND
                                       D3         SDA
                                       D4         SCL
                                 ESP8266-12E   Computer
                                  Micro-USB       USB
6. Step 5: Register OpenWeathermap, thingspeak new account
1) Sign up new account at https://home.openweathermap.org/api_keys to get the API Keys for
openweathermap:
1) Sign up for a new account at https://thingspeak.com
    A) Create a new Channel and receive the temperature, humidity, light and atmosphere data
from ESP8266-12E(WeatherStation)
    B) Set Channel to Public
C) Get the API_keys of the channle
D) You can view the updated data later
7. Step 6: Import WeatherStation code in the Arduino IDE
1) Import \Weather Station\Arduino IDE for ESP8266 Code\esp8266-weather-station-master.zip
2) View Demo code:
8. Step 7: Add Library
1) Add \Weather Station\Arduino IDE for ESP8266 Library\json-streaming-parser-master.zip
2) Add \Weather Station\Arduino IDE for ESP8266 Library\esp8266-oled-ssd1306-master.zip
3) Add Library Adafruit_BMP085
9. Step 8: Modify File WeatherStation.ino
1)Open WeatherStation.ino
2)Update your WIFI username and password:
3)Update API_Keys of OpenWeatherMap.org
4)Update the API_Keys of thingspeak.com
10. Step 9: Set the Board and Port again
11. Step 10: Burn code to ESP8266
1) Verify Project
2) Upload Project
12. Step 11: Result
1) OLED Display Data
2) Serial Monitor Data
3) thinkspeak.com Data
13. Thank You
If the following error occurs in the Arduino IDE:
Step 1: Setup Recommended Arduino IDE version 1.8.4 for Windows:
https://www.amazon.com/clouddrive/share/5hYUsaMRYFatPBizWinTapxlSzqdW8LQtVyiihAYIS5
Step 2: Follow the instructions in the attached picture to update the "esp8266 weather station
library" version to 1.6.5 or 1.6.6,this will resolve this error:
If you still have questions, please feel free to contact us