Skip to the content
2 layers60 × 80 mmBaseBoard, the printed circuit board in 3D

Balcony weather station in Plzeň: an ESP32 measuring temperature, humidity, pressure, noise and light, with a calibrated shade air temperature estimate checked against ČHMÚ Plzeň-Mikulka. Laravel and Livewire dashboard.

Size
60 × 80 mm
Copper layers
2
Thickness
1.6 mm
Parts
13
Nets
12
Pads
68
Tracks, vias
262, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 Sep 2026
Updated
6 Nov 2026

Overview

BaseBoard is an open-source printed circuit board by rajtik76, from the rajtik76/weather-station repository on GitHub. It is a 2-layer board of 60 × 80 mm with 13 parts on 12 nets, routed with 262 tracks and 0 vias.

Its parts include 4 resistors, 3 connectors, 2 capacitors and 2 ICs. It belongs with the home automation and IoT and sensors and measurement boards and the ESP32 boards of this library.

README

README.md

Balcony Station

CI Site Readings License

A weather station on an east-facing balcony in Plzeň, Czech Republic, measuring temperature, humidity and pressure. Its goal is to estimate outdoor air temperature as accurately as possible by correcting the heating error of this particular radiation shield and balcony setup.

The SHT4x measures temperature inside a passive radiation shield. Sunlight can heat the shield and make the sensor read above the surrounding air temperature. The project aims to retain the original readings and show a corrected estimate alongside them.

Current status: a PHP correction model can be calibrated and evaluated against ČHMÚ observations through Artisan. Overview and Charts display the original temperature alongside the calculated shade estimate. The Reference page compares the shade estimate with the shade reference and Mikulka by day, up to 30 days back, and reports deviations over the last 30 days.

Running at weather.rajtik.com.

Reference and evaluation

ČHMÚ Plzeň-Mikulka, approximately 3.5 km away, is the professional reference for developing and evaluating the correction. Its historical observations are available through ČHMÚ open data. Location, elevation and microclimate can produce real differences between Mikulka and the balcony; agreement with Mikulka is a measurable reference, with that limitation.

The correction is therefore fitted and judged against a shade reference (ShadeReference): Mikulka shifted by the balcony's own offset from it. The offset is read while the shield is in shade, in the hour before the sun reaches it (below 300 lx) and 30 to 60 minutes after the sun has left, and runs in a straight line between the two from the moment the sun reaches the shield until an hour after it leaves, while the shield's heating history decays. Outside that window the shade reference is Mikulka. A day without both anchors has no reference in that window, and its readings there are left out of calibration and validation. On overcast mornings between 1 October and 5 November 2026, when the right difference is zero, the shade reference was 0.21 °C from zero on average and Mikulka 0.52 °C. The straight line between the anchors is an assumption that overcast mornings cannot check.

The correction will be evaluated against the uncorrected sensor on the same observations, using days excluded from calibration. Both the mean absolute error and the mean signed error should be compared, with sunny periods and nights evaluated separately.

The setup changed during the record:

  • Radiation shield installed on 16 September 2026 at 15:00 Europe/Prague
  • BME280 replaced by an SHT4x on 23 September 2026
  • SHT4x sensor replaced and VEML7700 installed on 30 September 2026

These events are recorded in station_events and marked on the charts. They do not block calibration or invalidate an existing correction model.

Temperature correction

The model estimates solar heating from light inside the shield and the Sun's position relative to the balcony wall. Feature version 2 combines the current light with exponentially weighted histories of 10 and 30 minutes, and scales the 10 minute history by low sun (below 20° elevation the shield heats more for the same light) and by the microphone's 25 Hz band (wind ventilates the shield). Regularized regression learns the response of this installation; heating coefficients stay non-negative, the wind term takes either sign. Version 1 (light with 20 and 60 minute histories) is still applied for calibrations trained with it. The shade estimate is the measured temperature minus the estimated heating; original records are unchanged.

Calibration and inference run in PHP, without a separate service. ČHMÚ temperature is used for calibration and evaluation only. The running model uses the station's light and sound history, time and calibrated installation geometry. The wall direction is the balcony facade at 71.8° clockwise from true north; override it when calibrating another installation.

sh
php artisan temperature:import-reference
php artisan temperature:import-reference --days=30
php artisan temperature:import-reference --month=2026-09
php artisan temperature:import-reference /path/to/mikulka-20261001.json
php artisan temperature:calibrate sensor-001 --from=2026-09-30 --validate-from=2026-10-10 --until=2026-10-15
php artisan temperature:show sensor-001

Dates are local calendar boundaries in Europe/Prague, with exclusive ends. Station events do not restrict the calibration range. At least seven calibration days and three later validation days must each have 100 reference pairs; calibration also needs two sunlit mornings. Validation reports MAE and signed error for the same raw and corrected observations, split into sun-facing periods, daytime shade and night, plus each day. The validation days are never used to fit coefficients. An accepted model is available to inference only after its validation period ends.

The scheduler imports the previous and current UTC day's references every hour. Run --days=30 once to backfill history from monthly and daily archives; the scheduled import continues to fetch only yesterday and today. Missing reference periods stay missing. ČHMÚ's good and unknown-quality observations are eligible; suspect, poor, estimated, missing and flagged observations are excluded.

The model needs an uninterrupted hour of light measurements after startup or a gap. Unsupported readings and inputs beyond its calibrated light or heating range return no estimate. Validation scores against the shade reference. With at least two sunlit validation mornings, acceptance requires a sun-facing MAE at least 10% below the raw sensor and a smaller sun-facing bias; with fewer, the sun-facing MAE may not exceed the raw sensor's by more than 0.05 °C. Always: no overall MAE increase above 0.05 °C, at least 90% validation coverage, no MAE increase above 0.05 °C at night or 0.1 °C in daytime shade. A retrained model must also be within 0.02 °C of the model in use, overall and sun-facing, on the same pairs.

The model corrects solar heating. Local air differences, reflected heat from the building and night-time radiation are not corrected: in afternoon shade the balcony runs up to about a degree colder than Mikulka on sunny, calm days and warmer on windy, overcast ones, and that is the balcony's air, not the shield. A smaller error against the shade reference is evidence of a better shield correction, not a measurement of the remaining error on the balcony. Calibration over a few autumn days does not establish accuracy in other seasons.

Measurements

text
SHT4x    --I2C--+
VEML7700 --I2C--+
BMP280   --I2C--+--> ESP32 --HTTPS--> Laravel API --> PostgreSQL
INMP441  --I2S--+                                      |
                                                 Livewire pages
  • SHT4x: temperature and humidity, outside in the radiation shield
  • BMP280: pressure, on the indoor base board; its temperature is unused
  • VEML7700: light inside the shield, retained as a potential correction input
  • INMP441: sound in the shield, with an experimental indication of rain from its spectrum
  • Samples every 30 seconds, uploaded as ten-minute windows with means and extremes
  • Original measurements remain stored in the firmware's units; display conversions happen on read

Light behind the shield's louvers is specific to this mounting. Its absolute lux values are not an open-sky radiation measurement. The microphone's rain indication is experimental: its thresholds were fitted to this mounting against ČHMÚ Mikulka's rain gauge, and the owner's reports on Discord keep checking it.

Run it

Requires PHP 8.4, Node 24 and Docker. Docker Compose runs PostgreSQL 18; Laravel Herd serves the local site and Vite provides the development assets.

sh
docker compose up -d
composer setup
npm run dev

For a local demonstration, php artisan migrate:fresh --seed replaces the local database with a month of sample measurements for two stations. The sample weather series comes from ČHMÚ Plzeň-Mikulka, with synthetic station variation, light and sound added for the dashboard.

ČHMÚ data is licensed CC BY 4.0. Source: Czech Hydrometeorological Institute. The sample series uses hourly means of its ten-minute observations for August 2025. Sample pressure is adjusted from Mikulka's elevation of 359.8 m to the balcony's 345 m before the synthetic station variation is added.

Documentation

Parts

13
QtyValueFootprintReferences
247RBaseBoard:R_Axial_P10.16R3, R4
24k7BaseBoard:R_Socketed_1x02R1, R2
10RBaseBoard:R_Jumper_P10.16JP1
1100nBaseBoard:C_Disc_P2.54C1
110uBaseBoard:CP_Radial_D5.0mm_P2.54C2
15V inBaseBoard:PinHeader_1x02J2
1BMP280 0x76BaseBoard:BMP280_Module_SocketedU2
1ESP32 DevKit V1BaseBoard:DOIT_ESP32_DevKit_V1_SocketedU1
1FTP cableBaseBoard:PinHeader_1x09J1
1SPS30 cableBaseBoard:PinHeader_1x07J3
1perfboard 22 x 27BaseBoard:Perfboard_22x27PERF1

More from rajtik76/weather-station

1
  • 2 layers70 × 30 mmShieldHub, the printed circuit board in 3D

    ShieldHub

    rajtik76/weather-station

    Balcony weather station in Plzeň: an ESP32 measuring temperature, humidity, pressure, noise and light, with a calibrated shade air temperature estimate checked against ČHMÚ Plzeň-Mikulka. Laravel and Livewire dashboard.

    6 parts

Similar boards

  • 2 layers40 × 20 mmUsb uart, the printed circuit board in 3D

    Usb uart

    earthtojake/text-to-cad

    Design physical products with AI

    13 parts26kMIT
  • 2 layers35 × 29 mmMagSpoofTC, the printed circuit board in 3D

    MagSpoofTC

    samyk/magspoof

    A portable device that can spoof/emulate any magnetic stripe, credit card or hotel card "wirelessly", even on standard magstripe (non-NFC/RFID) readers.

    13 parts4.2k
  • 2 layers20.6 × 23.6 mmAO-03 signal amplifier, the printed circuit board in 3D

    AO-03 signal amplifier

    fossasia/pslab-scripts

    Pocket Science Lab - Scripts for Sensor Experiments

    13 parts1.6kApache-2.0
  • 2 layers47 × 35.6 mmMX7-C-35PL C11, the printed circuit board in 3D

    MX7-C-35PL C11

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    13 parts1.2k
  • 2 layers95 × 95 mmCube batteryboard, the printed circuit board in 3D

    Cube batteryboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    13 parts1.1kGPL-3.0
  • 2 layers15.2 × 20.3 mmPt100stick, the printed circuit board in 3D

    Pt100stick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    13 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    13 parts1kGPL-3.0

Questions

How big is the BaseBoard PCB?

It measures 60 × 80 mm and has 2 copper layers, 1.6 mm thick.

What parts does the BaseBoard use?

13 parts. 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 BaseBoard KiCad files?

From the rajtik76/weather-station repository on GitHub, at the commit this page was made from: the board is docs/hardware/kicad/BaseBoard/BaseBoard.kicad_pcb and its schematic docs/hardware/kicad/BaseBoard/BaseBoard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the BaseBoard design in my own project?

Its repository states no licence, so its author keeps all rights: ask rajtik76 before reusing the design.