Arduino Weather Indicator :: Member Project

Want to build an Arduino weather indicator that can get forecasts from the internet?  So did Gerolf, a member of Programming Electronics Academy, and that is exactly what he is doing.

Have you ever seen one of those old fashion weather indicators?  Sometimes they show wind speed and direction, humidity, temperature, pressure, sometimes they even predict future weather conditions.  Gerolf has put a modern spin on this classic idea.

wifi-enabled Arduino weather indicator with LEDs, breadboard, and wires. Very neat.

We’ll let him explain it in more detail below, but essentially his device connects to the web, gets the local weather data, and displays it via LEDs all using a WIfi enabled Arduino compatible microcontroller!  So at a quick glance he knows if it’s sunny, cloudy, or if there’s rain or not. Pretty cool!

Read below to learn more about his project…

Wifi enabled Arduino on perfboard, and breadboard in background perfboard Arduino weather indicator, with 6 LEDs for different weather conditions. Green LED shining.

Why build an Arduino weather indicator?

When I was young my grandparents had a mechanical weather forecaster that worked with the air humidity.

I remember how interesting it was as two figures would move out of a small wooden box which would indicate rain or sun. I wanted to make something similar, but also simple and modern.

This is Part 1 of my project.  I quickly realized the the indication of weather states with single LEDs could be improved by usage of NEO-Pixel LEDs. That will be part 2 of this project!

What type of Arduino board does your project use?

A Wemos D1 Mini.  It’s basically an ESP8266, which is an Arduino compatible WiFi enabled microcontroller.

How does your Arduino weather indicator work?

It does the following…

  • Connects to my local WiFi,
  • Connects to openweathermap.org and uses my location and API key to get weather data. (If your interested, here is a list of some other weather APIs)
  • It parses a Json document for the forecast and weather conditions.
  • It then lights up LEDs to represent various conditions like rain, hail, clear skies, hail, thunderstorms, etc.

Arduino weather indicator on soldered on green perfboard. 6 leds. Arduino Code printed on paper, on desk.

What were your biggest struggles as you worked through this project?

Get it running as it was described in the original documentation and Json versions in Arduino IDE were frustrating.

Looking back on this project, what can you say you have learned about programming and/or electronics through the creation process?

As stated in the lessons at PEA, think about the project as a whole, and write down a plan on how it should work.

close up shot of 6 LEDs on green perf board. Serves as Arduino weather indicator, each different color LED represents a different weather condition

Was the training at Programming Electronics Academy able to help you build your skill?

Yes, I am now more confident doing little programs on my own.  I have a better understanding of structure of programs, how functions are programmed, and how they work.

Do you have future plans for your Arduino weather indicator project?

The project is still under way…

Single LEDs are fine but kind of boring.  So I tested a Neopixel ring with static color (nice but could be better!)  So my final dream is for cloudy weather to make a slowly changing color, fading in and out from light grey to grey, for thunderstorm some flashing.

About Gerolf:

Man with glass by water

Gerolf was a metallurgical casthouse engineer for much of his career.  Now he is “retired” and selling e-bikes and loving it!  He has been an electronics hobbyist since his teenage years.  He started programming with Fortran, later Basic, Visual Basic, Python, and now with Arduino.  His other hobbies also include biking and photography.

 

AppLab Bricks open in background with actual brick

Arduino AppLab Bricks → Marketing Garbage or New Powerful Interface?

Arduino Ventuno single board computer - top side

New Ventuno Q Dual Brain Single Board Computer

AppLab Pip Install

How to Add Python Packages in Arduino AppLab (No pip install needed)

Arduino Power Section Schematic

Kit-on-a-Shield Schematic Review

Just how random is the ESP32 random number generator?

Just how random is the ESP32 random number generator?

7 Comments

  1. Robert on May 16, 2020 at 10:42 am

    Great idea and well executed. You could add an LCD display with text description too although the simplicity is good too.

    • Gerolf Kunde on May 23, 2020 at 1:46 am

      Robert, thank you for your comment. As stated phase 2 of the project is still under construction. I made a second version with a Neo-Pixel ring as indicator and an OLED display (for testing only) and I want to incorporate some color animations.

  2. Eidi on May 16, 2020 at 11:54 am

    Thank for sharing the useful project. It would be better to share the project method as a link because beginner needs more detail of learning.
    Regard

  3. Mike on May 16, 2020 at 12:30 pm

    Cool project. I don’t see the code. Was it included?

  4. Jack Brockhurst on May 16, 2020 at 12:53 pm

    It’s amazing what you can do with some knowledge of programming and Arduinos and some imagination

  5. Christopher Cooper on May 17, 2020 at 8:28 am

    Fantastic Gerolf – I too have started to learn how to programme thanks to Programming Electronics. I’ll be posting my first project soon!

  6. Jet Defloor on May 23, 2020 at 11:58 am

    Interesting concept but couldn’t find how it was done – no code etc.

Leave a Comment