Skip to the content
2 layers54 × 85.7 mmSTEAMGal STM32F051Kx, the printed circuit board in 3D

STEAMGal STM32F051Kx

WRansohoff/STEAMGal_Tetris

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

1

README

README.md

Overview

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.

STEAMGal_V0

Parts

63
QtyValueFootprintReferences
710nCapacitors_SMD:C_0805_HandSolderingC6, C17, C18, C19, C20, C21, C22
6DBResistors_SMD:R_0805_HandSolderingR10, R11, R12, R13, R14, R15
3100nCapacitors_SMD:C_0805_HandSolderingC5, C8, C9
31uCapacitors_SMD:C_0805_HandSolderingC7, C12, C13
34.7uCapacitors_SMD:C_0805_HandSolderingC2, C14, C15
220pCapacitors_SMD:C_0603_HandSolderingC3, C4
24K7Resistors_SMD:R_0805_HandSolderingR2, R3
2I2C_PUResistors_SMD:R_0805_HandSolderingR5, R6
110uCapacitors_Tantalum_SMD:TantalC_SizeA_EIA-3216_HandSolderingC1
12.2uCapacitors_SMD:C_0805_HandSolderingC16
1<0.5VfDiodes_SMD:SOD-123D1
1Acustom_footprints:Button_SMD_2L_3x6x2.5mmSW7
1AP2210TO_SOT_Packages_SMD:SOT-23_HandsolderingU2
1Bcustom_footprints:Button_SMD_2L_3x6x2.5mmSW8
1Downcustom_footprints:Button_SMD_2L_3x6x2.5mmSW5
1ESDDiodes_SMD:SOD-123D3
1GPIO1Pin_Headers:Pin_Header_Straight_1x05P4
1GPIO2Pin_Headers:Pin_Header_Straight_1x06P5
1HSEcustom_footprints:XTAL_HF_2SMD_1Y1
1I2C_BusPin_Headers:Pin_Header_Straight_1x04P7
1IREFResistors_SMD:R_0805_HandSolderingR4
1JSTIO1custom_footprints:JST_PH_2.0-4P8
1JSTIO2custom_footprints:JST_PH_2.0-4P6
1Leftcustom_footprints:Button_SMD_2L_3x6x2.5mmSW3
1On?LEDs:LED_0805D2
1On?custom_footprints:SPDT_Slide_SMD_RASW1
1PIEZOcustom_footprints:Piezo_Buzzer_MiniS1
1PZ_NPNTO_SOT_Packages_SMD:SOT-23_HandsolderingQ2
1Power_InPin_Headers:Pin_Header_Angled_1x02P1
1ProgPin_Headers:Pin_Header_Angled_1x04P2
1Pump1Capacitors_SMD:C_0805_HandSolderingC11
1Pump2Capacitors_SMD:C_0805_HandSolderingC10
1RB_PzResistors_SMD:R_0805_HandSolderingR9
1RB_ULResistors_SMD:R_0805_HandSolderingR7
1RLEDResistors_SMD:R_0805_HandSolderingR1
1Resetcustom_footprints:Button_SMD_2L_3x6x2.5mmSW2
1Rightcustom_footprints:Button_SMD_2L_3x6x2.5mmSW6
1SSD1306_ribboncustom_footprints:SSD1306_RawP3
1STM32F051K8custom_footprints:LQFP-32_7x7mm_Pitch0.8mm_HandSolderingU1
1ULEDRResistors_SMD:R_0805_HandSolderingR8
1ULED_NPNTO_SOT_Packages_SMD:SOT-23_HandsolderingQ1
1Upcustom_footprints:Button_SMD_2L_3x6x2.5mmSW4
1User_LEDLEDs:LED_0805D4

Similar boards

  • 6 layers98.6 × 88 mmSympetrum V3 FF3, the printed circuit board in 3D

    Sympetrum V3 FF3

    borgel/sympetrum-v3

    The Dragonfly badge as seen at DEFCON26

    134 parts21
  • 4 layers64.9 × 39.2 mmHOLY ESC, the printed circuit board in 3D

    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 mmLeft, the printed circuit board in 3D

    Left

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    63 parts915
  • 2 layers107 × 54 mmInterface board 1, the printed circuit board in 3D

    Interface board 1

    Green-bms/SmartBMS

    Open source Smart Battery Management System

    63 parts756
  • 2 layers81.9 × 39.8 mmCAUTION LIGHTS PANEL, the printed circuit board in 3D

    CAUTION LIGHTS PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    63 parts431
  • 2 layers76.3 × 122.8 mmDiscipad pcb, the printed circuit board in 3D

    Discipad pcb

    coseyfannitutti/discipad

    17-key numpad assembled with only through hole components, including usb type-c

    63 parts221GPL-3.0
  • 2 layers53 × 47 mmServo control, the printed circuit board in 3D

    Servo control

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    63 parts208
  • 2 layers98 × 38 mmBldc control ver2, the printed circuit board in 3D

    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).