Skip to the content
2 layers36 × 55 mmWeatherPCB, the printed circuit board in 3D

This weather station uses darksky for the forecast with a free account. It displays the current weather temperature, a high and low, and the next two days.

Size
36 × 55 mm
Copper layers
2
Thickness
1.6 mm
Parts
19
Nets
18
Pads
69
Tracks, vias
132, 8
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
22 Jan 2021
Updated
19 Sep 2020

Overview

WeatherPCB is an open-source printed circuit board by Lacybad, from the Lacybad/Weather-Station repository on GitHub, published under the LGPL-2.1 licence. It is a 2-layer board of 36 × 55 mm with 19 parts on 18 nets, routed with 132 tracks and 8 vias.

It is built around the DS1822Z+. Its parts include 6 resistors, 4 ICs, 2 transistors, 2 switches and 1 capacitor.

Main components

1

README

README.md

Weather Station

This weather station uses an ESP8266 (WeMos D1 Mini), a TFT KMR-1.8 LCD display, a PIR motion sensor, BJTs and a photoresistor for the display brightness, and an optional 1-wire temperature sensor (no code for it right now).

This weather station uses darksky for the forecast with a free account. It displays the current weather temperature, a high and low, and the next two days.

In Settings.h (or MiscSettings.h), add the GPS coordinates, wifi information, and timezone to make the system work.

This project's PCB was made using JLCPCB. Using the cheapest shipping, it took 6 days to LAX, a week in customs, and then 3-5 days to a location in the US.

Icons / Other Code

The icons used for this project are from erikflowers. Using the makefile command make imageConvert converts the images in the folder weather-icons/svg to bmps in a data folder. This folder can then be uploaded to the ESP8266 using the data-uploader, which uploads the data in the /data folder to the SPIFFS file system. It is recommended if using the D1 mini to have at least 1 MB of storage, and the images take up 124.0 KiB of space.

Other code for this project is from Bodmer's TFT_eSPI library example for the BMP_functions.ino, and converted to work as a C++ library. The modified cpp, h and license are in the src directory.

All other libraries (with given versions used) are not really modified from the source (besides the TFT_eSPI v1.4.20 for the pins and display), and include ESP8266 Board v2.5.2 with docs ESP8266Wifi and WiFiClientSecure, ArduinoJson v6.13.0, BearSSL v1.4.0, SPI - ESP8266, Ticker - ESP8266, Timezone v1.2.2 and TimeLib v1.5.0.

Data Source

This project originally used DarkSky as a source but moved to OpenWeatherMap after DarkSky shut down their API. The DarkSky branch in this repo contains the original code that was working with that API.

Schematic

For the PCB, the d1_mini_kicad library was used along with the digikey-kicad-library and a few default libraries KiCad for the transistors. The parts can be found in the DigiKey purchase list, and this csv file can be uploaded to digikey to buy the parts. Extra parts are included as backup for buying parts along with buying a large quantity means cost savings. It is also possible to use a check to save on shipping (could take an extra few days)

Other parts are from Amazon but can be bought on other sites or vendors if it is cheaper. The parts include a Wemos d1 mini, Photoresistors, IR PIR Motion Sensor, LCD Display, Project Boxes.

Parts

19
QtyValueFootprintReferences
4MountingHoleMounting_Holes:MountingHole_2.7mmH1, H2, H3, H4
210kResistors_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR4, R6
24.7kResistors_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1, R3
10.1uCapacitors_THT:C_Disc_D7.0mm_W2.5mm_P5.00mmC1
1220Resistors_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR2
12N4401-NDTO_SOT_Packages_THT:TO-92_Inline_WideQ2
12N4403-NDTO_SOT_Packages_THT:TO-92_Inline_WideQ1
170-36kResistors_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR5
1DS1822TO_SOT_Packages_THT:TO-92_Inline_WideU4
1PIR_MTN_SNRPin_Headers:Pin_Header_Angled_1x03_Pitch2.54mmU1
1SW_PushButtons_Switches_THT:SW_PUSH_6mm_h5mmSW1
1SW_SPDTPin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmSW2
1TFTLCD_ST7735RPin_Headers:Pin_Header_Straight_1x16_Pitch2.54mmU3
1WeMos_miniModules2:WEMOS_D1_mini_lightU2

Similar boards

  • 2 layers43.9 × 27.7 mmTcd1304-4v, the printed circuit board in 3D

    Tcd1304-4v

    OpnTec/open-spectrometer-hardware

    Open source VIS spectrometer

    19 parts1.5k
  • 2 layers50 × 60 mmDebate Device, the printed circuit board in 3D

    Debate Device

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    19 parts915
  • 2 layers102.9 × 96.7 mmISA adapter, the printed circuit board in 3D

    ISA adapter

    polpo/picogus

    Emulation of ISA sound cards and CD-ROM on Raspberry Pi Pico (GUS, SB/Adlib, MPU-401, Tandy, CMS, Panasonic CD-ROM) with USB mouse/joystick support

    19 parts805
  • 2 layers60 × 39 mmPs2usb, the printed circuit board in 3D

    Ps2usb

    rasteri/HIDman

    Adapting USB devices to work on old computers

    19 parts432
  • 2 layers70.1 × 43.2 mmIaq device, the printed circuit board in 3D

    Iaq device

    nkitanov/iaq_board

    IAQ Board is a DIY (Do-It-Yourself) device for measuring internal air quality

    19 parts396
  • 2 layers80 × 80 mmGB BRK CPU G1, the printed circuit board in 3D

    GB BRK CPU G1

    Gekkio/gb-hardware

    Game Boy -related custom hardware by gekkio

    19 parts379CC-BY-4.0
  • 2 layers25.4 × 25.4 mmIna169, the printed circuit board in 3D

    Ina169

    Ardumower/ardumower

    Develop an open source robotic lawn mower (HW+SW reference platform)

    19 parts282
  • 2 layers58.4 × 28.6 mmNew rele, the printed circuit board in 3D

    New rele

    zmaker/arduino_cookbook

    gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

    19 parts269

Questions

How big is the WeatherPCB PCB?

It measures 36 × 55 mm and has 2 copper layers, 1.6 mm thick.

What parts does the WeatherPCB use?

19 parts, built around the DS1822Z+. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the WeatherPCB KiCad files?

From the Lacybad/Weather-Station repository on GitHub, at the commit this page was made from: the board is weatherPCB/WeatherPCB.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the WeatherPCB design in my own project?

Its repository publishes it under the LGPL-2.1 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).