ESP8266 Weather Display – As Seen on Show and Tell!

Thisoldgeek ESP8266 Weather Display

Thanks to Bob for sharing his great weather display project on Show and Tell! Read more about it on his blog here.

The ESP8266 (AKA Wi07C) is a cheap (less than $10), tiny WiFi module that can be hooked up to any micro-controller that can feed it Serial (UART) commands. You can use this module to send data to or receive data from web sites. This puppy is cheap, but capable!

Currently (as of Nov 15, 2014), there are at least 3 versions of the ESP8266 being sold. The hardware wiki at ESP8266-Wiki has details. I got mine from adafruit. Why? Adafruit offers a curated collection of products. They’re either superior products designed by ladyada herself, or vetted outside products that are the current best available. So, I knew I was getting latest model of the ESP8266 which allows modifying the baud rate. When I got my modules from adafruit, the packing bag was labelled “fw 0.9.2.2”. Good to know.

When I googled for what other people had done with the WiFi module, I came across the weather display at zeflo.com. My wife and I are weather freaks. Even though we live in the San Francisco East Bay, where we enjoy a moderate Mediterranean climate, we always check to see what the day has in store. I had some familiarity with wunderground.com weather feeds from a previous project, so this was a good place to start with the WiFi module. I also got some very good tips from Ian Sexton at this site.

Bill of Materials:

  • ESP8266, available on ebay and others. Got mine at adafruit, $8.95 +Ship
  • Arduino Uno/Leonardo or clone, or adafruit’s Pro Trinket 3V version, $9.95+Ship
    • Update 01-07-2015: See Pro Trinket Notes below for special configuration
  • Breadboard
  • LM317 Voltage Regulator TO-220 package or similar, Mouser has them for $0.80
  • R1: 1×200 Ohm Resistor
  • R2: 1×330 Ohm Resistor
  • 0.1uF capacitor
  • 1uF capacitor
  • TTL Level Shifter (5V to 3.3V logic) if you need it – adafruit has ’em for $1.50
  • M to F jumper wires for connecting the ESP8266 to a breadboard and Arduino
  • M to M jumper wires for connecting components on the breadboard/Arduino
  • Power supply – should be at least 500mA/5V; I used a 5V/2A I had in inventory
  • Display – I used a 4 line x 20 character LCD, with Serial input from a ModernDevices LM117 Serial LCD Backpack, but any
  • SPI/I2C graphical or serial display device will do, provided you have enough RAM

Difficulty:

Easy, although not a beginner project. It’s just hooking up a few components and wires, plus installing software and configuring. If you follow the instructions here closely, you should be OK.

Stability:

At present, the WiFi connection needs to be reset periodically. I used the kludge of doing a “hard reset” of the ESP8266 in code to keep it going (courtesy of Ian Sexton).

Hardware Build:

The ESP8266 is a 3.3V module. If you’re used to using a 5V Arduino, you’ll have to make some adjustments.

If you are using a straight-up Arduino or clone, you’ll need a TTL logic level shifter to get the 5V out from the Arduino down to 3.3V that the ESP8266 wants, or risk frying the WiFi module. If you use a Pro Trinket 3.3V model, you won’t have to worry about that – it uses 3.3V logic.

Ladyada pointed out the ESP8266 can have spikes of 300mA or more current, much more than can be supplied directly by the Arduino. Youll want to use an external voltage regulator that can handle more at least that much current. That’s why I’m using the LM317.

Check out the full tutorial here.


Featured Adafruit Products!

NewImage

ESP8266 WiFi Module: This interesting module is a lot of fun for hobbyists and students who are interested in experimenting with the ESP8266 WiFi chipset. We bought a bunch of these modules, updated the firmware to the much-easier-to-use v0.924 and wrote some Arduino code to grab a webpage. Read more.


NewImage

Adafruit Pro Trinket – 3V 12MHz: Trinket’s got a big sister in town – the Pro Trinket 3V! Pro Trinket combines everything you love about Trinket with the familiarity of the core Arduino chip, the ATmega328. It’s like an Arduino Pro Mini with more pins and USB tossed in.

Trinket’s a year old now, and while its been great to see tons of tiny projects, sometimes you just need more pins, more FLASH, and more RAM. That’s why we designed Pro Trinket, with 18 GPIO, 2 extra analog inputs, 28K of flash, and 2K of RAM. Read more.


Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Join Adafruit on Mastodon

Adafruit is on Mastodon, join in! adafruit.com/mastodon

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 36,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


Maker Business — Making sure the CHIPS act isn’t just crumbs

Wearables — Our little secret to weather-proofing your projects

Electronics — Meaningful gains

Python for Microcontrollers — Python on Microcontrollers Newsletter: New Thonny and Git Versions, Plenty of Projects and More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

Adafruit IoT Monthly — Guardian Robot, Weather-wise Umbrella Stand, and more!

Microsoft MakeCode — MakeCode Thank You!

EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — NEW PRODUCTS – CNC Rotary Encoder – 100 Pulses per Rotation – 60mm Black

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



2 Comments

  1. Any code available?

  2. Frank Vigilante

    Anyone out there try the ESP8266 version 12 yet? I have been trying to get it to work for over a week now, but can’t seem to get it running.

Sorry, the comment form is closed at this time.