Skip to the content
2 layers17.8 × 33 mmSTC8G ProMini, the printed circuit board in 3D

STCmicro's STC8G2K32 break-out, Pro Mini form factor

Size
17.8 × 33 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
37
Pads
100
Tracks, vias
269, 32
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
21 Jun 2022
Updated
21 Mar 2025

Overview

STC8G ProMini is an open-source printed circuit board by akita11, from the akita11/STC8G_ProMini repository on GitHub, published under the MIT licence. It is a 2-layer board of 17.8 × 33 mm with 22 parts on 37 nets, routed with 269 tracks and 32 vias.

It is built around the LM1117-5.0. Its parts include 5 capacitors, 5 connectors, 4 resistors, 3 diodes and 2 ICs. It belongs with the 8051 (CH55x, STC, AT89) boards of this library.

Main components

1

README

README.md

ST8G_ProMini

中国STCmicro(宏晶科技)の8ビットマイコンSTC8G2K322を使った、Arduino Pro Mini型のマイコンボードです。 主な特徴は以下のとおりです。

  • Arduino Pro Mini型(プログラム書き込みは、FTDI-Basicまたはその互換のUSB-シリアル変換器が必要です→例)
  • 電源電圧5V
  • 全ピンアナログ入力・PWM出力可能
  • RAM=2KB, フラッシュ=32KB
  • 通信機能: UARTx4、SPI、I2C

またArduino Pro Miniとは、以下のような違いがあります。

  • 現時点ではArduinoIDEでのプログラム開発環境はありませんが、それを実現する進行中のプロジェクトがあります。
  • RAW端子に、外部電源から+7V以上を供給可能で、ボード上のレギュレータで+5Vを生成します。

ピン配置

ボード上のArduino Pro Miniのピン位置とSTC8G2K32のピン名称との対応は以下の通りです。

  • D0 - D7 : P3.0 - P3.7
  • D8 - D13 : P2.0 - P2.5
  • A0 - A7 : P1.0 - P1.7

基板上の"LED"(オレンジ)はP2.5(D13の位置)で駆動できます。詳細は回路図を参照してください。

プログラムのコンパイルと書き込み

現時点では、ArduinoIDEは使えませんので、プログラムのコンパイルと書き込みは、それぞれ別のツールを使うことになります。(使い方のメモも参照してください)

プログラムのコンパイル

STC8Gマイコンは8051コアですので、フリーから商用のものまでいろいろなコンパイラがあります。動作確認をしたものを照会しておきます。またsourceフォルダ以下に、プログラム例があります(ビルド方法は、以下のKsylitoliの手順を参照)。

  • SDCC(オープンソースなコンパイラ)。Macでの使用例はKsylitoliの説明がわかりやすいです。またWindows用やLinux用もあります(SDCC公式サイトからダウンロードできる)
  • FwLib_STC8。簡易ライブラリですが、レジスタ定義ファイルを流用できます。

プログラムの書き込み

STCmicroのWebページから、書き込みツールSTC-ISPをダウロードします。

USB-シリアル変換器をPCに接続し(初回時は、ここではまだSTC8G_ProMiniは接続しない)、STC-ISPを起動し、以下の設定をします。

  • "MCU Type"で、STC8G2K32S4を選択
  • "Scan Port"には、接続しているUSB-シリアル変換器のCOMポートを選択
  • "Open Code File"で、コンパイルで得られた*.binを指定
  • "H/W Option"で、RESET pin used as I/O portのチェックをはずす(これのチェックが入っていると、RSTピンが通常のI/Oピン(P5.4)となり、リセットSWやFTDI-Basicからのリセットがかけられません。それでもよいのでP5.4を通常のI/Oとして使用する場合はチェックを入れる)
  • 内部フラッシュ内のキャリブレーション情報を使う場合は、Add a reset code in front of IDをチェックする

設定が済んだら、"Download/Program"ボタンを押します。

初回時のみ、その後で、FTDI-BasicにSTC8G_ProMiniを、向きに注意して接続します。(FTDI-BasicのGNDと、STC8G_ProMiniの"BLK"が揃う向き)すぐに書き込みが始まります。終了したらRSTスイッチでリセットするとプログラムが実行されます。 STC-ISPの設定で、RSTピンを使うように指定してあれば、2回目以降は、FTDI-Basicに接続したままで、Download/Promramを押すだけで自動でリセットがかかり、書き込みができます。

Author

Junichi Akita (@akita11) / akita@ifdl.jp

Parts

22
QtyValueFootprintReferences
30.1uCapacitor_SMD:C_0603_1608MetricC1, C3, C5
210uCapacitor_SMD:C_0603_1608MetricC2, C4
21kResistor_SMD:R_0603_1608MetricR1, R2
2Conn_01x02Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ3, J4
2Conn_01x12Connector_PinSocket_2.54mm:PinSocket_1x12_P2.54mm_VerticalJ1, J2
2Jumper_2_BridgedJumper:SolderJumper-2_P1.3mm_Bridged_Pad1.0x1.5mmJP1, JP2
2LEDLED_SMD:LED_0603_1608MetricD1, D2
1100Resistor_SMD:R_0603_1608MetricR3
110kResistor_SMD:R_0603_1608MetricR4
1Conn_01x06Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ5
1DIODEakita:D_SOD123FLD3
1LM1117-5.0Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1MCU_STC8G2Kxx-LQFP32Package_QFP:LQFP-32_7x7mm_P0.8mmU2
1SW_PushButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKSW1

Similar boards

  • 2 layers40 × 108 mmSol, the printed circuit board in 3D

    Sol

    wntrblm/Sol

    An open-source MIDI-to-CV Eurorack module that runs CircuitPython

    59 parts76
  • 2 layers133 × 98 mmPrecharge, the printed circuit board in 3D

    Precharge

    michaelruppe/FSAE

    Projects for Formula SAE Electric Vehicle competition (Australia 2019/2020)

    121 parts59MIT
  • 2 layers84.3 × 58.4 mmEnocderDriver, the printed circuit board in 3D

    EnocderDriver

    NikodemBartnik/Small-Projects

    All of smaller projects (Arduino, PCBs, electronics, code)

    35 parts55
  • 2 layers109.4 × 108.5 mmQUAAD V1 1, the printed circuit board in 3D

    QUAAD V1 1

    mzourack/QUAAD

    quad 4-step Eurorack CV sequencer

    191 parts45
  • 2 layers240 × 194 mmInfinitas, the printed circuit board in 3D

    Infinitas

    freeDSP/freeDSP-INFINITAS

    USB Audio Class 2 compliant audio interface with up to 32 input and up to 32 output channels and optional ADAU1452 DSP.

    1,020 parts35
  • 2 layers100 × 88 mmHootswitch, the printed circuit board in 3D

    Hootswitch

    saybur/hootswitch

    ADB keyboard/mouse switch for vintage Mac computers.

    127 parts24
  • 2 layers38.1 × 101.6 mmRP2040 Audio, the printed circuit board in 3D

    RP2040 Audio

    emeb/RP2040_Audio

    A Eurorack module for stereo audio effects based on the Raspberry Pi RP2040 MCU

    121 parts23MIT
  • 2 layers97 × 97 mmQO100 RX, the printed circuit board in 3D

    QO100 RX

    barisdinc/N3B_SDR_Transceiver_HW

    V/U/SHF and QO-100 SDR Transceiver Project

    167 parts20GPL-3.0

Questions

How big is the STC8G ProMini PCB?

It measures 17.8 × 33 mm and has 2 copper layers, 1.6 mm thick.

What parts does the STC8G ProMini use?

22 parts, built around the LM1117-5.0. 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 STC8G ProMini KiCad files?

From the akita11/STC8G_ProMini repository on GitHub, at the commit this page was made from: the board is STC8G_ProMini.kicad_pcb and its schematic STC8G_ProMini.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the STC8G ProMini 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).