

STEAMGal STM32F051Kx
Try writing some 'tetris' firmware for a development board with a very small display, a buzzer, and a few buttons. That should introduce a few core peripherals.
- Size
- 54 × 85.7 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 63
- Nets
- 54
- Pads
- 205
- Tracks, vias
- 330, 35
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 4
- Created
- 2 May 2018
- Updated
- 6 May 2018
Overview
STEAMGal STM32F051Kx is an open-source printed circuit board by WRansohoff, from the WRansohoff/STEAMGal_Tetris repository on GitHub, published under the MIT licence. It is a 2-layer board of 54 × 85.7 mm with 63 parts on 54 nets, routed with 330 tracks and 35 vias.
It is built around the STM32F051K8U6. Its parts include 22 capacitors, 15 resistors, 9 switches, 8 connectors and 4 diodes. It belongs with the STM32 boards of this library.
Main components
1README
README.mdOverview
This is firmware for a 'tetris' game on a 'STEAMGal' board driven by an STM32 chip.
Current Status
Incomplete. The firmware initializes the system clock to 48MHz driven by the HSI oscillator, then draws a simple menu to the OLED screen.
It sets up hardware interrupts for each of the 6 buttons - the 'A' button selects the test menu's start menu to start the game, and the 'Up' button returns to the menu from within the game. I'm hoping to add a 'pause' menu, though.
The onboard LED blinks on and off each game 'tick', which causes the current block to drop if it can, and fix in place on the grid if not. A 'game over' happens when a brick gets fixed in place while part of it is above the top line. Rows are cleared if necessary when a brick is fixed in place.
But there's no scoring, the game doesn't get faster as it progresses, there's no "next brick" display, etc. Just the basics.
Currently, only the STM32F051K8 is supported, but I hope to add the STM32F303K8 as well if time permits.
Board Design
The board design is available under the 'board_design_v0' directory. It includes a circuit for 30-pin 128x64 SSD1306 monochrome OLED screens which seems to work, although I did crib that from the cheap 4-pin screen modules you can get off of ebay/aliexpress/etc for a few bucks. I've gotten several slightly different boards like that, and they all seem to use roughly the same design. Some of them omit the diode in the reset circuit, but since the screen has an onboard charge pump to generate a display bias voltage higher than 3.3V, I figure better safe than sorry.
Here's the first version of the board as rendered by OshPark. It seems to work as expected, but the ribbon connection is just barely close enough to the cutout to fold the screen over; I'll be moving that a bit in the next revision, along with adding an EEPROM chip. Also, the buzzer is sort of loud; I should probably add a potentiometer for volume control.

Parts
63| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 10n | Capacitors_SMD:C_0805_HandSoldering | C6, C17, C18, C19, C20, C21, C22 |
| 6 | DB | Resistors_SMD:R_0805_HandSoldering | R10, R11, R12, R13, R14, R15 |
| 3 | 100n | Capacitors_SMD:C_0805_HandSoldering | C5, C8, C9 |
| 3 | 1u | Capacitors_SMD:C_0805_HandSoldering | C7, C12, C13 |
| 3 | 4.7u | Capacitors_SMD:C_0805_HandSoldering | C2, C14, C15 |
| 2 | 20p | Capacitors_SMD:C_0603_HandSoldering | C3, C4 |
| 2 | 4K7 | Resistors_SMD:R_0805_HandSoldering | R2, R3 |
| 2 | I2C_PU | Resistors_SMD:R_0805_HandSoldering | R5, R6 |
| 1 | 10u | Capacitors_Tantalum_SMD:TantalC_SizeA_EIA-3216_HandSoldering | C1 |
| 1 | 2.2u | Capacitors_SMD:C_0805_HandSoldering | C16 |
| 1 | <0.5Vf | Diodes_SMD:SOD-123 | D1 |
| 1 | A | custom_footprints:Button_SMD_2L_3x6x2.5mm | SW7 |
| 1 | AP2210 | TO_SOT_Packages_SMD:SOT-23_Handsoldering | U2 |
| 1 | B | custom_footprints:Button_SMD_2L_3x6x2.5mm | SW8 |
| 1 | Down | custom_footprints:Button_SMD_2L_3x6x2.5mm | SW5 |
| 1 | ESD | Diodes_SMD:SOD-123 | D3 |
| 1 | GPIO1 | Pin_Headers:Pin_Header_Straight_1x05 | P4 |
| 1 | GPIO2 | Pin_Headers:Pin_Header_Straight_1x06 | P5 |
| 1 | HSE | custom_footprints:XTAL_HF_2SMD_1 | Y1 |
| 1 | I2C_Bus | Pin_Headers:Pin_Header_Straight_1x04 | P7 |
| 1 | IREF | Resistors_SMD:R_0805_HandSoldering | R4 |
| 1 | JSTIO1 | custom_footprints:JST_PH_2.0-4 | P8 |
| 1 | JSTIO2 | custom_footprints:JST_PH_2.0-4 | P6 |
| 1 | Left | custom_footprints:Button_SMD_2L_3x6x2.5mm | SW3 |
| 1 | On? | LEDs:LED_0805 | D2 |
| 1 | On? | custom_footprints:SPDT_Slide_SMD_RA | SW1 |
| 1 | PIEZO | custom_footprints:Piezo_Buzzer_Mini | S1 |
| 1 | PZ_NPN | TO_SOT_Packages_SMD:SOT-23_Handsoldering | Q2 |
| 1 | Power_In | Pin_Headers:Pin_Header_Angled_1x02 | P1 |
| 1 | Prog | Pin_Headers:Pin_Header_Angled_1x04 | P2 |
| 1 | Pump1 | Capacitors_SMD:C_0805_HandSoldering | C11 |
| 1 | Pump2 | Capacitors_SMD:C_0805_HandSoldering | C10 |
| 1 | RB_Pz | Resistors_SMD:R_0805_HandSoldering | R9 |
| 1 | RB_UL | Resistors_SMD:R_0805_HandSoldering | R7 |
| 1 | RLED | Resistors_SMD:R_0805_HandSoldering | R1 |
| 1 | Reset | custom_footprints:Button_SMD_2L_3x6x2.5mm | SW2 |
| 1 | Right | custom_footprints:Button_SMD_2L_3x6x2.5mm | SW6 |
| 1 | SSD1306_ribbon | custom_footprints:SSD1306_Raw | P3 |
| 1 | STM32F051K8 | custom_footprints:LQFP-32_7x7mm_Pitch0.8mm_HandSoldering | U1 |
| 1 | ULEDR | Resistors_SMD:R_0805_HandSoldering | R8 |
| 1 | ULED_NPN | TO_SOT_Packages_SMD:SOT-23_Handsoldering | Q1 |
| 1 | Up | custom_footprints:Button_SMD_2L_3x6x2.5mm | SW4 |
| 1 | User_LED | LEDs:LED_0805 | D4 |
Similar boards
- 6 layers98.6 × 88 mm

- 4 layers64.9 × 39.2 mm

HOLY ESC
0BAB1/HOLY_ESC
An open-source closed loop ESC PCB / Hardware platform. Based on a STM32F051 (Cortex M0 based) MCU. Tested using AM32 ESC software.
81 parts8 - 2 layers143.3 × 116.6 mm

- 2 layers107 × 54 mm

- 2 layers81.9 × 39.8 mm

- 2 layers76.3 × 122.8 mm

Discipad pcb
coseyfannitutti/discipad
17-key numpad assembled with only through hole components, including usb type-c
63 parts221GPL-3.0 - 2 layers53 × 47 mm

Servo control
eddyem/stm32samples
Code samples and ready projects based on bare-metal STM32
63 parts208 - 2 layers98 × 38 mm

Bldc control ver2
pekkaroi/bldc-drive
Cheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller
63 parts199GPL-2.0
Questions
How big is the STEAMGal STM32F051Kx PCB?
It measures 54 × 85.7 mm and has 2 copper layers, 1.6 mm thick.
What parts does the STEAMGal STM32F051Kx use?
63 parts, built around the STM32F051K8U6. 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 STEAMGal STM32F051Kx KiCad files?
From the WRansohoff/STEAMGal_Tetris repository on GitHub, at the commit this page was made from: the board is board_design_v0/STEAMGal_STM32F051x/STEAMGal_STM32F051Kx.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the STEAMGal STM32F051Kx 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).