Sei sulla pagina 1di 7

Food

Living

Outside

Play

Technology

Workshop

Arduino TFT Forecast Weather Station with ESP8266


by tufantas on January 21, 2015

Table of Contents
Arduino TFT Forecast Weather Station with ESP8266 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Intro: Arduino TFT Forecast Weather Station with ESP8266 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 1: Materials: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 2: Connections : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 3: Lcd Brightness Control (If you want to skip this step!) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 4: Icon Files and Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 5: Sketch file modifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

http://www.instructables.com/id/Arduino-TFT-Forecast-Weather-Station-with-ESP8266/

Intro: Arduino TFT Forecast Weather Station with ESP8266


This project, builds on Wunderground weather forecast via the Internet.
Specs:
1. 3 days weather forecast (Low&High temps, probably of precipitation, condition icons)
2. Current weather conditions (Current temp, feelslike temp, humidity, pressure)
3. Current wind directions & speed with analog gauge meter.
4. Indoor temperature with Dallas 18b20 Temperature sensor.
5. NTP time via Wunderground time server.

Step 1: Materials:
1. Arduino Mega 2560,
2. 7" inch TFT display (I used this display Ebay Link )
3. TFT/SD shield (I used this shield Ebay Link )
4. ESP8266 Serial WiFi module,
5. Logic level converter or use voltage divider. ( Sparkfun Link )
6. Dallas 18b20 one wire temperature sensor.
7. 40 pin Male to Female Ribbon cable (Ebay Link )
8. For 7" LCD case. Maybe use this or another case. (Ebay Link )
9. 256mb to 2gb(maximum) SD card for icon storage. (Must be FAT16 formatted).
10. 9v or 12v power supply or usb cable for power connection.
11. Some wires and soldering iron.

http://www.instructables.com/id/Arduino-TFT-Forecast-Weather-Station-with-ESP8266/

Step 2: Connections :
Connections we make, as shown in picture. After making the connections, we are installing a TFT/SD shield.
I use voltage divider instead of logic level converter. But I would definitely recommend using logic level converter.

http://www.instructables.com/id/Arduino-TFT-Forecast-Weather-Station-with-ESP8266/

http://www.instructables.com/id/Arduino-TFT-Forecast-Weather-Station-with-ESP8266/

Step 3: Lcd Brightness Control (If you want to skip this step!)
CAUTION : May damage the TFT Screen. If you dont want to change the brightness, skip this step.
Remove the resistor of LED_A.
Connect cable as in the picture.
And connect Arduino pin 12 (must be connect PWM pin).

Step 4: Icon Files and Libraries


Necessary libraries :
Henning Karlsen UTFT Library - Link
Henning Karlsen TinyFat Library - Link
Henning Karlsen UTFT_TinyFat Library - Link
Time Library - Link
Timer Library - Link
OneWire Library - Link
Dallas Temperature Library - Link
ArduinoJson Library - Link
Unrar Icons.rar file and copy files to "SdCard" root folder.

File Downloads

Icons.rar (277 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Icons.rar']

http://www.instructables.com/id/Arduino-TFT-Forecast-Weather-Station-with-ESP8266/

Step 5: Sketch file modifications


First of all edit sketch file for your information :
SSID "Your Ap Name" - For example SSID "Tufan_Home"
PASS "Your AP password" - For example PASS "1234567890"
LOCATION ID "Your location name" - For example LOCATION ID "England/London"
GMT Settings this line : "ntpTime = ((longConv) + 7200);" //7200 = +7200 secs = +2 Hour ;)
If you have connected TFT Brightness PWM pin, uncomment this line --- //analogWrite(tftPwmPin, 250);
Have fun!
Edit Note : (I have uploaded last updated files 28.01.2015)

File Downloads

ESP8266_Wunderground_2015_Metric.rar (25 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'ESP8266_Wunderground_2015_Metric.rar']

Related Instructables

ESP8266 mini
Tutorial by
GreatScottLab

A newbie's
guide to setup
ESP8266 with
Arduino Mega
2560 or Uno by
shinteo

Use ESP8266 to
Internet enabled
AC Appliances
by shinteo

ESP8266 WiFi
relay switch by
EasyIoT

An inexpensive ESP8266 based


IoT enabler
web
using ESP8266
configurable
wifi general
by
gopinath.marappan purpose control
(Part II) by
HoracioBouzas

http://www.instructables.com/id/Arduino-TFT-Forecast-Weather-Station-with-ESP8266/

Advertisements

Comments
3 comments

Add Comment

ta1dr says:

Feb 4, 2015. 6:42 AM REPLY

Gzel bir proje olmu? ba?ar?lar...

tufantas says:

Feb 4, 2015. 8:38 AM REPLY

Te?ekkr ederim.

EasyIoT says:

Jan 29, 2015. 2:06 AM REPLY


Nice project. I'm building very similar project - ESP8266 touch screen thermostat with EasyIoT library, but your graphic display is nicer. I will look in your
code to get some ideas :)

http://www.instructables.com/id/Arduino-TFT-Forecast-Weather-Station-with-ESP8266/

Potrebbero piacerti anche