Skip to the content
4 layers50 × 38.9 mmESP32CAM Weather Station, the printed circuit board in 3D

ESP32CAM Weather Station

EliaKr/ESP32CAM-Weather-Station

[WIP] This repo includes electronics (schematics/PCBs), 3D-printable mechanical parts, and software for a custom ESP32-CAM weather station. Logs data and images to SD card + online services and also has support for APRS/CWOP.

Size
50 × 38.9 mm
Copper layers
4
Thickness
1.58 mm
Parts
96
Nets
57
Pads
327
Tracks, vias
241, 271
Pours
23
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
11 Jan 2026
Updated
15 Mar 2026

Overview

ESP32CAM Weather Station is an open-source printed circuit board by EliaKr, from the EliaKr/ESP32CAM-Weather-Station repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 50 × 38.9 mm with 96 parts on 57 nets, routed with 241 tracks and 271 vias.

It is built around the ESP32-CAM, BME688 and SGP41-D-R4, with the TPS63070RNMR, VEML7700-TT and GDT25-07-S1-RP among its other parts. Its parts include 28 resistors, 21 capacitors, 12 diodes, 10 ICs and 10 connectors. It belongs with the home automation and IoT boards and the ESP32 and RISC-V boards of this library.

Main components

12

README

README.md

ESP32CAM-Weather-Station

Electronics

This project uses a custom weather-station PCB that combines power management, protection, and an I2C sensor/expansion bus.

Power features

  • Supports battery input with input protection.
  • Supports solar input with surge/transient protection.
  • Includes battery charging (status indicators and a battery temperature/thermistor input).
  • Provides regulated rails for the rest of the system (including a 3.3V rail for sensors/logic).
  • Breakouts/headers for accessing power rails (battery and regulated output) for debugging or external loads.

Measurement & sensing features

  • On-board sensing for battery voltage and solar/charging voltage.
  • On-board environmental sensing (temperature/humidity/pressure/gas resistance).
  • On-board gas sensing (VOC/NOx measurements).
  • On-board ambient light sensing (lux).
  • ESP32-CAM on-board sky camera.

I2C bus + expansion features

  • I2C bus includes pullups and ESD/transient protection.
  • Multiple external I2C expansion headers (3.3V / GND / SDA / SCL) for additional sensors.

Extras

  • A PCB that makes the board compatible with the Raspberry Pi Pico (Original or W or 2 or 2W) is also included in the design files.

Media (photos and design files)

Photos below are from testing / bring-up and may show temporary wiring or rework.

PCB front (testing photo)
PCB front during testing

PCB back (testing photo)
PCB back during testing

KiCad PCB layout (screenshot)
KiCad PCB layout

Schematic (export image)
Schematic


Mechanical design (placeholder)

  • TODO: enclosure details, mounting, weatherproofing, cable glands, venting strategy, sensor placement.
  • TODO: 3D print files / CAD links, tolerances, and assembly steps.
  • TODO: photos/diagrams.

Software: Pico Weather Station (Client) + Local Ingest Server (HTTP + HMAC)

This project consists of:

  • Client (Raspberry Pi Pico 2 W): reads sensors over I2C and periodically posts measurements to a server.
  • Server (Python): accepts measurements over HTTP and protects the endpoint with:
    • Bearer token allow-list (multiple devices supported)
    • HMAC-SHA256 request signature (fast reject of unauthenticated spam)
    • Rate limiting (per IP and per token)
    • Max body size and max concurrency
    • CSV logging to two files (same schema)

Security note: This design does not encrypt the data in transit (it is HTTP). It does prevent unauthorized clients from successfully sending data (and helps prevent trivial overload). If you need confidentiality, use HTTPS.

Repository layout (recommended)

PlatformIO (client)
  • src/measurement_post_requests.cpp (or src/main.cpp) — client code
  • include/client_config.h — user-created (not committed)
  • include/wificredentials.h — user-created (not committed)
Server (Python)
  • server/server_config.py
  • server/server_http_hmac.py

1) Server setup (Python)

1.1 Requirements
  • Python 3.9+ recommended (stdlib only)

No pip packages required.

1.2 Files

Create a directory (example):

text
server/
  server_http_hmac.py
  server_config.py
1.3 Configure server_config.py

Key options:

  • Bind / endpoint: HOST, PORT, INGEST_PATH
  • Auth: AUTH_TOKENS, ALLOW_BEARER_HEADER
  • Protections: REQUIRE_HMAC, REQUIRE_TIMESTAMP, RATE_LIMIT_*, MAX_BODY_BYTES, MAX_CONCURRENT_REQUESTS
  • CSV: CSV_PATH_1, CSV_PATH_2, CSV_HEADER

If you are not setting time on the Pico (no NTP), set REQUIRE_TIMESTAMP = False.

1.4 Run the server

From the server/ directory:

bash
python3 server_http_hmac.py
1.5 Test health endpoint
bash
curl http://<server-ip>:<port>/health

2) Client setup (PlatformIO / Pico 2 W)

2.1 Create user config headers (required)

Create these two files under the PlatformIO include directory:

  • include/client_config.h
  • include/wificredentials.h

These should not be committed (they contain secrets).

include/wificredentials.h
cpp
#pragma once

#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASS "YOUR_WIFI_PASSWORD"

#define USE_STATIC_IP 1

#if USE_STATIC_IP
  #define WIFI_LOCAL_IP   IPAddress(192,168,2,55)
  #define WIFI_DNS_IP     IPAddress(1,1,1,1)
  #define WIFI_GATEWAY_IP IPAddress(192,168,2,1)
  #define WIFI_SUBNET_IP  IPAddress(255,255,255,0)
#endif
include/client_config.h
cpp
#pragma once

#define DEVICE_ID "pico2w-01"
#define SERVER_URL "http://192.168.2.8:8080/ingest"

// Token secret: must exist in server_config.AUTH_TOKENS
#define AUTH_TOKEN "CHANGE_ME_TO_A_LONG_RANDOM_SECRET"

#define POST_INTERVAL_MS 1000
#define HTTP_TIMEOUT_MS 5000

Parts

96
QtyValueFootprintReferences
101kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR9, R10, R11, R12, R13, R14, R18, R19, R22, R27
8SD05C-7SD05C-7:SOD2513X120ND1, D2, D6, D7, D8, D9, D10, D11
610kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6, R7, R8, R21, R25, R26
5100nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC13, C15, C17, C20, C21
410uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC11, C12, C14, C16
41uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C3, C18, C19
4B4B-PH-SM4-TB_LF__SN_B4B-PH-SM4-TB_LF__SN_:B4B-PH-SM4_1J1, J2, J3, J4
4Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ7, J8, J9, J10
4MountingHoleMountingHole:MountingHole_3.2mm_M3_Pad_ViaH2, H3, H4, H6
322uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC6, C7, C8
210uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC9, C10
220kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R4
2CSD16406Q3CSD16406Q3:DQG_VSON-CLIPQ2, Q3
2LED_GREENLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD3, D14
10.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1
110Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR30
1100kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
112BHC186P2-GR12BHC186P2-GR:12BHC186P2GRH1
1130kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR29
12.2kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR17
122uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC4
1330Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR16
14.7Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR31
147uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5
1511kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR24
1549Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR20
1680kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR28
191kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR23
1BME688BME688:BME688IC1
1BQ24093DGQRBQ24093DGQR:SOP50P490X110-11NIC4
1BQ29707DSETBQ29707DSET:TPS610985DSETIC5
1Conn_01x04_SocketConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5
1DFE252012P-1R0M=P2DFE252012P-1R0M=P2:DFE2HCAH1R0MJ0LL1
1ESP32-CAMESP32-CAM:ESP32-CAMU1
1GDT25-07-S1-RPGDT25-07-S1-RP:GDT2507S1RPU3
1LED_REDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4
1MCP3426A0T-E_SNMCP3426A0T-E_SN:SOIC127P600X175-8NIC6
1MF-USHT125KX_12-2MF-USHT125KX_12-2:MFUSHT125KX122F2
1MountingHole_PadMountingHole:MountingHole_3.2mm_M3_DIN965_PadH5
1SF-1206FP400-2SF-1206FP400-2:FUSC3116X70NF1
1SGP41-D-R4SGP41-D-R4:SON80P244X244X95-7NIC2
1SMBJ20CA-TRSMBJ20CA-TR:DIONM5436X265ND5
1TPS63070RNMRTPS63070RNMR:TPS630701RNMRIC7
1TPS631000DRLRTPS631000DRLR:SOTFL50P160X60-8NU2
1TS18-5-25-SL-260-SMT-TRTS18-5-25-SL-260-SMT-TR:TS18525SL260SMTTRS1
1VEML7700-TTVEML7700-TT:VEML7700IC3
1XFL4020-152MECXFL4020-152MEC:XFL4020152MECL2
1XT30UPB-MXT30UPB-M:AMASS_XT30UPB-MJ6

The 94 most common of 96 parts.

More from EliaKr/ESP32CAM-Weather-Station

1
  • 2 layers54 × 26.3 mmESP32CAM to PicoW Adapter, the printed circuit board in 3D

    ESP32CAM to PicoW Adapter

    EliaKr/ESP32CAM-Weather-Station

    [WIP] This repo includes electronics (schematics/PCBs), 3D-printable mechanical parts, and software for a custom ESP32-CAM weather station.

    3 partsGPL-3.0

Similar boards

  • 6 layers151.5 × 71 mmBe iot v v1 0, the printed circuit board in 3D

    Be iot v v1 0

    hamit3/brn_pcb

    nrf9160 sens publisher

    150 parts
  • 8 layers90.5 × 49.5 mmOpen race v2, the printed circuit board in 3D

    Open race v2

    teehee567/Aevia

    gnss module collecting track data

    337 parts5
  • 2 layers47.7 × 80 mmFlight Controller, the printed circuit board in 3D

    Flight Controller

    Sai-Santosh09/Flight-Controller

    Flight Controller is a compact STM32F722-based flight controller designed for drones and other unmanned aerial systems.

    79 parts1
  • 2 layers46 × 42.7 mmFlightController, the printed circuit board in 3D

    FlightController

    Acidicts/FlightController

    PCB BOM UNSELECTED - Most due to not being in stock or I couldn't find them on lcsc

    79 parts
  • 4 layers59.7 × 65 mmPower supply, the printed circuit board in 3D

    Power supply

    ericmullally/power_supply

    Design and code for a bread board power supply

    60 partsMIT
  • 4 layers64 × 56 mmEsp32s3-devkit-5v, the printed circuit board in 3D

    Esp32s3-devkit-5v

    eshelton328/forge

    Hardware design monorepo with software-grade CI/CD. KiCad PCB projects with automated ERC/DRC, multi-fab rule validation, schematic & BOM checks, and auto-generated board documentation.

    124 parts
  • 4 layers73.3 × 74.4 mmPiezo sensing, the printed circuit board in 3D

    Piezo sensing

    Markvsid/Piezo_sensing

    Exploratory project using piezoelectric contact sensor to attempt to extract footstep count, breathing, and heartbeat. 4 layer stm32H7 PCB with analog charge amplifier front end.

    105 parts

Questions

How big is the ESP32CAM Weather Station PCB?

It measures 50 × 38.9 mm and has 4 copper layers, 1.58 mm thick.

What parts does the ESP32CAM Weather Station use?

96 parts, built around the ESP32-CAM, BME688, SGP41-D-R4 and TPS63070RNMR. 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 ESP32CAM Weather Station KiCad files?

From the EliaKr/ESP32CAM-Weather-Station repository on GitHub, at the commit this page was made from: the board is electronics/ESP32CAM-Weather-Station/ESP32CAM-Weather-Station.kicad_pcb and its schematic electronics/ESP32CAM-Weather-Station/ESP32CAM-Weather-Station-backups/ESP32CAM-Weather-Station-2026-01-18_001710/ESP32CAM-Weather-Station.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESP32CAM Weather Station design in my own project?

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