Skip to the content
2 layers90 × 81 mmSTM32-Environmental Monitor PCB, the printed circuit board in 3D

STM32-Environmental Monitor PCB

angelozyh/STM32-Environmental-Monitor-PCB1

A custom 2-layer PCB designed in KiCad for an STM32-based environmental monitoring system. The board integrates an STM32 NUCLEO-F303K8, BME280 environmental sensor, dual SN74HC595 shift registers, a 4-digit 7-segment…

Size
90 × 81 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
65
Pads
130
Tracks, vias
219, 16
Pours
5
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
24 Aug 2026
Updated
5 Oct 2026

Overview

STM32-Environmental Monitor PCB is an open-source printed circuit board by angelozyh, from the angelozyh/STM32-Environmental-Monitor-PCB repository on GitHub. It is a 2-layer board of 90 × 81 mm with 29 parts on 65 nets, routed with 219 tracks and 16 vias.

It is built around the 74HC595 and CC56-12SURKWA. Its parts include 13 resistors, 5 ICs, 4 transistors, 2 capacitors and 1 switch. It belongs with the STM32 boards of this library.

Main components

2

README

README.md

STM32 Environmental Monitor PCB

A custom 2-layer PCB designed in KiCad for an STM32-based environmental monitoring system. The board integrates an STM32 NUCLEO-F303K8, BME280 environmental sensor, dual SN74HC595 shift registers, a 4-digit 7-segment display, transistor-based digit drivers, and a pushbutton interface.

This project is the hardware implementation of my previously breadboarded STM32 environmental monitoring system. The project involved transitioning the working prototype to a custom PCB through schematic capture, footprint selection, PCB layout and routing, fabrication, hand assembly, board bring-up, troubleshooting, and final hardware validation.

Demo

STM32 Environmental Monitor Demo

▶️ Watch the full project demo on LinkedIn

The pushbutton cycles the displayed measurement between temperature, humidity, and pressure.

Features

  • STM32 NUCLEO-F303K8 development board
  • BME280 temperature, humidity, and pressure sensor
  • I2C communication between the STM32 and BME280
  • 4-digit common-cathode 7-segment display
  • Two SN74HC595 shift registers for display control
  • Four NPN transistor low-side digit drivers
  • Pushbutton user input
  • Timer-interrupt-based display multiplexing
  • UART interface for monitoring and debugging
  • Socketed Nucleo, BME280, shift registers, and display for easy replacement
  • M3 mounting holes for mechanical support

System Overview

The STM32 reads environmental data from the BME280 over I2C and displays the selected measurement on a multiplexed 4-digit 7-segment display.

Two SN74HC595 shift registers expand the available GPIO and provide the signals required to control the display. Four NPN transistors provide low-side switching for digit selection.

A pushbutton cycles the displayed measurement between:

  • Temperature
  • Humidity
  • Pressure

UART communication is also available for system monitoring and debugging.

Hardware

ComponentPurpose
STM32 NUCLEO-F303K8Main microcontroller
BME280Temperature, humidity, and pressure sensing
2x SN74HC595NSerial-to-parallel output expansion
CC56-12SURKWA4-digit common-cathode 7-segment display
4x NPN TransistorsLow-side digit switching
PushbuttonUser input
ResistorsLED current limiting and transistor biasing
100 nF CapacitorsLocal decoupling

Schematic

The original breadboard circuit was converted into a complete KiCad schematic before PCB layout.

STM32 Environmental Monitor Schematic

PCB Design

The PCB was designed in KiCad 10 as a 2-layer carrier board for the STM32 environmental monitoring system.

STM32 Environmental Monitor PCB Layout

Board Specifications

  • 2-layer FR-4 PCB
  • 1.6 mm board thickness
  • 1 oz outer copper
  • Lead-free HASL surface finish
  • Front and back ground pours
  • Plated through-holes and vias
  • 0.8 mm / 0.3 mm drill vias
  • Four 3.2 mm NPTH mounting holes for M3 hardware
  • Copper keepout regions around metal mounting hardware

The board primarily uses through-hole components to simplify hand assembly, modification, and component replacement.

3D Preview

STM32 Environmental Monitor 3D Render

PCB Design Process

The PCB development process included:

  1. Converting the breadboard implementation into a complete KiCad schematic
  2. Selecting and verifying component footprints using manufacturer datasheets
  3. Creating custom footprints for board-specific components
  4. Positioning components based on signal flow and mechanical requirements
  5. Routing signals across the front and back copper layers
  6. Adding ground planes
  7. Adding mounting holes and mechanical copper keepouts
  8. Configuring manufacturing constraints
  9. Running KiCad Design Rule Checks (DRC)
  10. Generating Gerber and Excellon drill files
  11. Inspecting the manufacturing files in KiCad Gerber Viewer
  12. Verifying the final board using the manufacturer's Gerber preview
  13. Hand assembling and soldering the fabricated PCB
  14. Performing electrical checks and initial board bring-up
  15. Troubleshooting and correcting hardware issues
  16. Validating the completed system

Custom Footprints

Custom KiCad footprints were created where appropriate, including footprints for:

  • STM32 NUCLEO-F303K8 carrier connections
  • BME280 sensor module
  • TO-92 transistor layout

Dimensions, pin spacing, drill sizes, and component orientation were checked against component and module documentation before PCB fabrication.

Firmware

Firmware was developed in C using STM32CubeIDE and the STM32 HAL.

The firmware includes:

  • GPIO control
  • I2C communication
  • BME280 sensor interfacing
  • Timer interrupts
  • 7-segment display multiplexing
  • SN74HC595 shift-register control
  • External button interrupts
  • Button debouncing
  • UART communication and debugging

Design Verification

Before generating the manufacturing files, the PCB was checked using KiCad's Design Rule Checker.

Final manufacturing files were also visually inspected to verify:

  • Board outline
  • Front and back copper
  • Ground pours
  • Through-hole locations
  • Via locations
  • PTH and NPTH drill files
  • Solder-mask openings
  • Silkscreen placement
  • Mounting-hole clearances

Assembly and Board Bring-Up

After fabrication, the PCB was assembled and soldered by hand. Socketed components were used where practical to simplify component replacement and troubleshooting.

Initial bring-up included:

  • Visual inspection
  • Continuity and short-circuit checks
  • Power and ground verification
  • STM32 power-up and firmware testing
  • BME280 I2C communication testing
  • Shift-register testing
  • 7-segment display testing
  • Pushbutton input testing
  • UART debugging

Finished Assembled PCB

Hardware Revision

During initial board bring-up, testing identified missing power and ground connections in the shift-register circuitry.

The issue was diagnosed through electrical measurements and inspection of the schematic and PCB connections. Jumper wires were added to provide the required power and ground connections.

After the hardware correction, the board was retested and full system functionality was verified.

PCB Hardware Revision - Correction Wires

The required connections will be incorporated directly into the PCB layout in a future board revision.

Final Validation

Following the hardware correction, the completed PCB successfully demonstrated:

  • BME280 temperature, humidity, and pressure measurements
  • I2C communication
  • SN74HC595 shift-register operation
  • Timer-based 7-segment display multiplexing
  • Pushbutton measurement selection
  • UART monitoring and debugging
  • Stable operation of the assembled system

The final PCB reproduces the functionality of the original breadboard prototype on a dedicated custom board.

Tools

Hardware Design and Assembly

  • KiCad 10
  • Digital multimeter
  • Soldering equipment
  • KiCad Gerber Viewer

Embedded Development

  • STM32CubeIDE
  • STM32CubeMX
  • STM32 HAL
  • C
  • Tera Term
  • Git / GitHub

Project Status

  • Breadboard prototype
  • Firmware development
  • Schematic capture
  • Footprint selection and verification
  • Custom footprint creation
  • PCB placement and routing
  • Design Rule Check
  • Gerber and drill generation
  • Manufacturing file verification
  • PCB fabrication
  • PCB assembly
  • Initial board bring-up
  • Hardware troubleshooting and rework
  • Hardware validation
  • Final demonstration

Future Improvements

A future PCB revision would incorporate the shift-register power and ground corrections identified during board bring-up directly into the PCB layout.

Additional improvements could include:

  • Further optimization of component placement and routing
  • Reduction of overall board size
  • Improved silkscreen organization
  • Additional test points for easier board bring-up and debugging

Parts

29
QtyValueFootprintReferences
8390Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R3, R4, R5, R6, R7, R8, R9
41kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR10, R11, R12, R13
4Q_NPN_EBCSTM32_Environmental_Monitor_Footprints:TO-92_Inline_P1.778mmQ1, Q2, Q3, Q4
2100nCapacitor_THT:C_Disc_D4.7mm_W2.5mm_P5.00mmC1, C2
274HC595Package_DIP:DIP-16_W7.62mm_SocketU4, U5
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1BME280-ModuleSTM32_Environmental_Monitor_Footprints:BME280_Module_SocketU2
1CC56-12SURKWASTM32_Environmental_Monitor_Footprints:CC56-12SURKWA_SocketU3
1NUCLEO-F303K8STM32_Environmental_Monitor_Footprints:NUCLEO-F303K8_SocketU1
1SW_PushButton_Switch_THT:SW_PUSH_6mmSW1

The 25 most common of 29 parts.

Similar boards

  • 2 layers66 × 66 mmAttiny85 7seg, the printed circuit board in 3D

    Attiny85 7seg

    Spac3y/seg7-85

    A 4-digit 7-segment display driven by an ATtiny85, scrolling a text message across the display.

    31 parts
  • 2 layers61.3 × 87 mmTemp, the printed circuit board in 3D

    Temp

    AvishkaVishwa/Microcontroller-Design-Project-Temperature-Monitoring-System

    This project is a temperature display and alarm system designed for educational purposes as part of the IA 2209 - Microcontroller Laboratory course.

    38 parts4
  • 2 layers68 × 110 mmMultimeter, the printed circuit board in 3D

    Multimeter

    schuyler4/Multimeter

    My multimeter design.

    133 parts3MIT
  • 2 layers96.5 × 60 mmPocket sunrise, the printed circuit board in 3D

    Pocket sunrise

    Yasu31/pocket-sunrise

    DIY wake-up light alarm clock

    30 parts1MIT
  • 2 layers85 × 74 mmFuente de voltaje, the printed circuit board in 3D

    Fuente de voltaje

    aaronledesma/TCI-display-voltage-CAD

    Easy EDA design PCB

    21 parts
  • 2 layers100 × 100 mmCan ssr, the printed circuit board in 3D

    Can ssr

    czalinski/ThlHats

    Test devices with Raspberry PI HAT form factor

    201 partsMIT
  • 4 layers293.6 × 143.3 mmSchema and PCB, the printed circuit board in 3D

    Schema and PCB

    SVIELCOM/MWE_Schema_and_PCB

    Схема и плата ШВУ-2

    251 parts
  • 2 layers76.2 × 165.1 mmMicrowave, the printed circuit board in 3D

    Microwave

    Tektronica/embedded

    Monorepo - home to embedded projects

    67 parts

Questions

How big is the STM32-Environmental Monitor PCB PCB?

It measures 90 × 81 mm and has 2 copper layers, 1.6 mm thick.

What parts does the STM32-Environmental Monitor PCB use?

29 parts, built around the 74HC595 and CC56-12SURKWA. 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 STM32-Environmental Monitor PCB KiCad files?

From the angelozyh/STM32-Environmental-Monitor-PCB repository on GitHub, at the commit this page was made from: the board is STM32_Environmental_Monitor_PCB.kicad_pcb and its schematic STM32_Environmental_Monitor_PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the STM32-Environmental Monitor PCB design in my own project?

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