Internet weather gadget with color LCD and Wemos D1 mini

This project mainly focuses on weather data and real time displayed on a small color LCD. It shows city name, weather condition, weekday, date and time, temperature, humidity and wind speed.

Parts required

1. Wemos D1 mini (NodeMCU/ any ESP8266 board will work)

Buy option 1 | Buy option 2

2. 0.96inch 80x160 display (ST7735)

Buy option 1 | Buy option 2

Circuit diagram (for Wemos D1 mini board)

Pin connection for NodeMCU/ other ESP8266 boards

Follow these steps to avoid any errors and be successful when uploading code

Step1: Install ESP8266 board for Arduino IDE (Skip if already installed or watch this simple tutorial)

ESP8266 installing tutorial

Step2: Install three libraries.

i. TFT_eSPI
ii. NTPClient
iii. ArduinoJson

Step3: Edit pin definition from TFT_eSPI library (very important)

a. Open Arduino > libraries > TFT_eSPI

i. Open User_Setup_Select.h with notepad

ii. Put double slash // in front of this line.

iii. Remove double slash // from this line.

 Save the file (CTRL+S)

b. Again from the root folder open User_Setups folder with Notepad and edit like the photo below.

 Save the file and exit.

Step4: To get the weather data from API go to Openweathermap and sign in for free.

Copy your API and paste in the Arduino Code.

Step5: Edit WiFi name and password , API and City name in Arduino code.

Arduino code Click Here

If you face any problems feel free to send email with subject "Weather Gadget"

abidbusiness.01@gmail.com

Comments