🍪 Privacy & Transparency

We and our partners use cookies to Store and/or access information on a device. We and our partners use data for Personalised ads and content, ad and content measurement, audience insights and product development. An example of data being processed may be a unique identifier stored in a cookie. Some of our partners may process your data as a part of their legitimate business interest without asking for consent. To view the purposes they believe they have legitimate interest for, or to object to this data processing use the vendor list link below. The consent submitted will only be used for data processing originating from this website. If you would like to change your settings or withdraw consent at any time, the link to do so is in our privacy policy accessible from our home page..

Vendor List | Privacy Policy
Skip to content

Technik Blog

Programmieren | Arduino | ESP32 | MicroPython | Python | Raspberry PI

Menu
  • About me
  • Contact
  • DeutschDeutsch
  • EnglishEnglish
Menu

DIY Weather Station v2.0

Veröffentlicht am 25. November 202229. April 2023 von Stefan Draeger

In this article I would like to introduce you to the DIY Weather Station V2. This slightly improved version now has an OLED display and a piezo buzzer for the output of signals.

DIY Weater Station v2.0
DIY Weather Station v2.0
  • History – What is the difference to version 1?
  • Structure of the circuit board
  • Sensors & actuators at a glance
  • Programming the DIY Weather Station V2
    • GitHub Repository
    • Program for reading out the sensors
    • Show sensor data on the OLED display
  • Display sensor data on a web page
  • Costs

History – What is the difference to version 1?

In the first version, I had chosen the design of the board to be quite small and compact. This resulted in a round circuit board that was reduced to the essentials. However, it lacked a display on which the values could also be shown. In addition, a small button for print mounting (12 mm high) was added, which can be used to step through the various sensor values.

Furthermore, a small piezo buzzer was missing, which serves to acoustically signal a previously programmed threshold value.

DIY Weather Station V2 - with Sensors and Display
DIY Weather Station V2 – with Sensors and Display
first version of DIY Weather Station
first version of DIY Weather Station

Structure of the circuit board

The installed sensors / actuators are connected via socket connectors. This not only makes it easy to replace sensors, but also allows the sensors to be installed anywhere.

Circuit board of the DIY weather station V2 (without sensors)
Circuit board of the DIY weather station V2 (without sensors)

Sensors & actuators at a glance

The DIY weather station has 3 sensors, an OLED display and a piezo buzzer (and also a print button and a light-emitting diode).

LED with series resistor
LED with series resistor
Piezo Buzzer
Piezo Buzzer
Push button with pull-up resistor
Push button with pull-up resistor
Circuit board of the DIY weather station V2 (without sensors)
Circuit board of the DIY weather station V2 (without sensors)
BMP180 Sensor - Air Pressure Sensor
BMP180 Sensor – Air Pressure Sensor
DHT11 Sensor - Temperature & Relative Humidity
DHT11 Sensor – Temperature & Relative Humidity
UV Sensor - Typ GYML8511
UV Sensor – Typ GYML8511
OLED display - I2C, resolution 64x32
OLED display – I2C, resolution 64×32

The following values can be measured with the installed sensors:

  • DHT11
    • Temperature
    • rel. Humidity
  • BMP180
    • Air pressure
    • Temperature
  • UV Sensor
    • UV-A & UV-B radiation

The BMP180 & DHT11 sensor both provide a temperature that we can process, so we may have the ability to measure a temperature at two locations and process them in one program.

Programming the DIY Weather Station V2

This small weather station can be programmed in the Arduino IDE with C/C++. It is also possible to program the sensors or microcontrollers in ESPeasy or MicroPython, but more about this in a separate article.

How to set up the Arduino IDE on a Microsoft Windows PC is explained in the article Installing the Arduino IDE. If you have a Linux PC, I would recommend the article Installing the Arduino IDE on Linux.

GitHub Repository

On my GitHub repository StefanDraeger / ESP8266—DIY-Wetterstation you can find a detailed explanation of this project with pictures and source code for small projects you can build with this board.

Program for reading out the sensors

On the GitHub repository mentioned above, you can find small examples of the sensors as well as two projects that show the sensor data on the OLED display on the one hand and on a website on the other.

Show sensor data on the OLED display

DIY Wetterstation V2 - Anzeigen der Sensorwerte auf einem OLED Display
Watch this video on YouTube.

Display sensor data on a web page

DIY Wetterstation V2 - Anzeigen der Sensordaten auf einer einfachen Webseite
Watch this video on YouTube.

Costs

The costs for the entire project amounted to 13 € for the components (sensors, actuators, socket connectors, etc.). Theoretically, you would have to add the time that went into the development of the board in EasyEDA, but I am taking this out of the calculation.

The production costs for the board amount to just under $14.45 (approx. €12.67) including shipping via “Global Direct Line Saver”.

Costs with shipping from Jlcpcb for this DIY Weather Station v2
Costs with shipping from Jlcpcb for this DIY Weather Station v2

Shipping via “Global Direct Line Saver” is particularly cheap, but the package takes much longer to reach the recipient. If you use JLCPCB.com, you will receive a message after production and can therefore easily calculate how long it will take from production to dispatch (usually only one day).

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Sponsored Contribution Guidelines

Meta

  • Videothek
  • Impressum
  • Datenschutzerklärung
  • Disclaimer
  • Kontakt
  • Cookie-Richtlinie (EU)

Links

Blogverzeichnis Bloggerei.de Blogverzeichnis TopBlogs.de das Original - Blogverzeichnis | Blog Top Liste Blogverzeichnis trusted-blogs.com
©2023 Technik Blog | Built using WordPress and Responsive Blogily theme by Superb
x
x