Skip to the content
2 layersWinddirsensor, the printed circuit board in 3D

A simple stand-alone self-sufficient weather station using LoRa for data transmission

Copper layers
2
Thickness
1.6 mm
Parts
38
Nets
17
Pads
77
Tracks, vias
152, 22
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
4 Sep 2024
Updated
12 Oct 2025

Overview

Winddirsensor is an open-source printed circuit board by 3komma3volt, from the 3komma3volt/LoRaWeatherStation_Hardware repository on GitHub, published under the MIT licence. It is a 2-layer board with 38 parts on 17 nets, routed with 152 tracks and 22 vias.

It is built around the PCF8574TS/3. Its parts include 17 connectors, 9 capacitors, 8 resistors and 1 IC. It belongs with the radio and wireless and home automation and IoT boards of this library.

Main components

1

README

readme.md

LoRa Weather Station

The project was born for testing LoRa devices an has grown to a small weather station ecosystem. Since August 2002, there are 6 station outside running without any maintenance.

Station

Features

  • Completely 3D printed main body
  • Modular with optional extension
  • Simple PCB which can be hand assembled
  • Stations can be equipped with sensors as needed, they don't have to be the same kind
  • Using TheThingsStack for receiving data
  • Storage and analysis of data using a PHP framework (other repository)

Housing

Rendering

The main housing consists of:

  • Main housing
  • Front door
  • Sensor cover or light sensor mount
  • 2x side dust filter fixture
  • Front door dust filter fixture

On the sides and in the front door, there is the possibility to mount some 3mm fleece filters to prevent dust going into the housing and keep bugs out. A disadvantage is, that the inside gets a bit hotter if exposed to the sun. The best mounting position of the station is 2m from the ground facing north and protected from sun exposure (The solar cell will get enough light to charge the battery). A 80x55mm 7V solar cell is used to charge the battery. The solar cell is glued to the main body using silicone glue. This works great to keep rain out, On the bottom is a intended breaking point to mount 12mm screw connectors for external sensors e.g. rain sensor or wind direction sensor. On the left side is a hole for mounting a SMA connector for the LoRa antenna. The housing can be mounted on a wall using a hook or screw.

PCB

The PCB is kept simple, so it can be assembled by hand. It has to be screwed into the main body using M3x8 (or similar length, there is plenty of space for longer screws)

PCB

It is possible to use it just as carrier board, in this case, no component needs to be assembled. For easier installation, XH connectors are used to connect sensors, battery, solar cell etc. The CubeCell AB01 board is the brain of the weather station. It has a battery connector on its bottom side. For easier replacement of board or battery, this connector is connected with the PCB which again connects to the battery. A BME280 board is connected using a standard header, so it can be replaced easily.

Wiring

Two holes on the lower side of the PCB are for mounting a lithium battery using zip ties. A standard 1000mA 3.7V LIPO battery works great and never ran out even on cold and dark winter weeks.

Wind Direction Sensor

Winddir

The wind direction sensor uses 8 reed contacts, a I2C port expander, a bearing (608ZZ) and a paddle to read the wind direction.

Winddir2

Only the expander and some few components need to be assembled.

WindAssemly

The reed contacts are pushed through the sensor main body, On the upper side, a short wire has to be soldered to the reed contact and threaded through the second hole. The sensor and wire are then soldered to the sensor PCB. A ⌀6x3mm magnet is glued into the sensor pin.

Wind Speed Sensor

WindSpeedAndDir

The wind speed sensor using the same style bearing and manget like the direction sensor. It only consists of one reed contact. This sensor is an early alpha state, because the baring is to difficult to move and won't turn on low wind speeds. Maybe switching to a off-the-shelf product for this use case.

Rain sensor

The 3D printed version of a rain sensor was not reliable enough. A cheap off the shelf sensor which is sold as spare part for weather stations works well.

Light sensor

A VEML7700 can be mounted on the side of the main body. For this print the mount and install the sensor within the mount. Fill up the space with transparent silicone. It will get watertight and works well.

Firmware

The firmware is made using PlatformIO and the Heltec development platform. Simply open with VSCode and edit the platform.ini You can change following build flags:

  • ENABLE_RAINSENSOR=0 ; enables the rain drip sensor
  • ENABLE_BRIGHTNESSENSOR=1 ; enables the brightness sensor
  • ENABLE_WINDDIRSENSOR=0 ; enables the wind direction sensor
  • ENABLE_WINDSPEEDSENSOR=0 ; enables the winds speed sensor
  • DEBUG_UART=0 ; enables UART data sending for debug purposes

Enable the functionalities as wanted.

Wind speed and direction are BETA!

As brightness sensor the VEML7700 is used. The BH1750 was also tested, but the results with this sensor were not really great. It was not really possible to get the cheap housing with the light dome watertight and several sensors died after a few days. If you want to use the BH1750, some changes in the code are necessary since this parts were removed.

Then hook up with TheThingsStack. There add a new device and get the neccessary data for OTAA transmission. Insert the information in the src/ttnparams.h file.

You probably will need a payload formatter for each individual weather station, since not all stations must have the same functionallity.

Here is a example formatter:

text
function Decoder(bytes, port) {
var temperature = (bytes[0] << 8 | bytes[1]);
var humidity = (bytes[2] << 8 | bytes[3]);
var pressure = ((bytes[4]) << 24) + ((bytes[5]) <<  16) + ((bytes[6]) << 8) + ((bytes[7]));
var battery = (bytes[8] << 8) | bytes[9];
var unused = (bytes[10] << 8) | bytes[11]; // formally used for battery percent calculation
var brightness = (bytes[12] << 8) | bytes[13];
var rain = bytes[14];

var lux = brightness * 2.1504; // Datasheet: Gain 1/8, 25ms integration time
lux = Math.round(6.0135e-13 * Math.pow(lux, 4) - 9.3924e-9 * Math.pow(lux, 3) + 8.1488e-5 * Math.pow(lux, 2) + 1.0023 * lux);

var sensorSqure = 10.9 * 4.9; // for round rain sensors: sensorSqure = Math.PI * pow(sensorRadius, 2);
var tipsPer100ml = 100 / 1.5;
var mlPerTip = 100 / $tipsPer100ml;
var rainAmount = $mlPerTip / $sensorSqure;

return {
  temperature: temperature / 100,
  humidity: humidity,
  pressure: pressure / 100,
  battery: battery / 1000,
  brightness: lux,
  rain: rainAmount
  }
}

If a station doesnt have a specific feature, just remove it from the return. The value has to be null to indicate, that the sensor is not available.

Example formatter for the most basic station just with a BME280:

text
function Decoder(bytes, port) {
var temperature = (bytes[0] << 8 | bytes[1]);
var humidity = (bytes[2] << 8 | bytes[3]);
var pressure = ((bytes[4]) << 24) + ((bytes[5]) <<  16) + ((bytes[6]) << 8) + ((bytes[7]));
var battery = (bytes[8] << 8) | bytes[9];
var unused = (bytes[10] << 8) | bytes[11]; // formally used for battery percent calculation

return {
  temperature: temperature / 100,
  humidity: humidity,
  pressure: pressure / 100,
  battery: battery / 1000,
  }
}

Parts

38
QtyValueFootprintReferences
16Conn_01x01_PinTestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mmJ2, J3, J4, J5, J6, J7, J8, J9, J10, J11, J12, J13, J14, J15, J16, J17
8100kResistor_SMD:R_0603_1608MetricR1, R2, R3, R4, R5, R6, R7, R8
830pCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2, C3, C4, C5, C6, C7, C8, C9
3MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3
1100nCapacitor_SMD:C_0603_1608MetricC1
1Conn_01x04_PinConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ1
1PCF8574TSPackage_SO:SSOP-20_4.4x6.5mm_P0.65mmU2

More from 3komma3volt/LoRaWeatherStation_Hardware

1
  • 2 layers59.8 × 109.3 mmLoraWeatherstation, the printed circuit board in 3D

    LoraWeatherstation

    3komma3volt/LoRaWeatherStation_Hardware

    A simple stand-alone self-sufficient weather station using LoRa for data transmission

    50 parts2MIT

Similar boards

  • 4 layers173.9 × 93.4 mmZ3660 v022, the printed circuit board in 3D

    Z3660 v022

    shanshe/Z3660

    Amiga 4000 CPU accelerator board based on A3660 and Z-turn FPGA board

    198 parts78GPL-3.0
  • 2 layers43.2 × 58.4 mmAfdDriver, the printed circuit board in 3D

    AfdDriver

    jduanen/alienFontDisplay

    Display made of six eight-segment EL display units

    58 parts1MIT
  • 4 layers70 × 90 mmMicromouse, the printed circuit board in 3D

    Micromouse

    Andy46/micromouse-pcb

    Repository to host the PCB design of the micromouse robot

    68 parts
  • 2 layers101.6 × 76.2 mmI2CMultiplexer, the printed circuit board in 3D

    I2CMultiplexer

    freudenthal/I2CTCA9548Multiplexer

    An I2C multiplexer using a TCA9548 and a PCF8574 for interrupt.

    110 parts
  • 2 layers57.1 × 76.2 mmPCF8574DIOI2C, the printed circuit board in 3D

    PCF8574DIOI2C

    freudenthal/PCF8574DIOI2C

    PCF8574 I2C expander module.

    93 parts
  • 2 layers165.1 × 88.9 mmTeensyIrrigation, the printed circuit board in 3D

    TeensyIrrigation

    freudenthal/TeensyIrrigation

    178 parts
  • 2 layers160.2 × 60.2 mmControler NRF24L01 Exclude, the printed circuit board in 3D

    Controler NRF24L01 Exclude

    Minorzar/2223_Projet1A_SNES_Controller

    This is the repository of the snes project made in the ENSEA by the 2025 promotion.

    82 parts1

Questions

What parts does the Winddirsensor use?

38 parts, built around the PCF8574TS/3. 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 Winddirsensor KiCad files?

From the 3komma3volt/LoRaWeatherStation_Hardware repository on GitHub, at the commit this page was made from: the board is Schematics/WindDirSensor/winddirsensor.kicad_pcb and its schematic Schematics/Weatherstation/loraWeatherstation.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Winddirsensor design in my own project?

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