Skip to the content
2 layers26.4 × 18.8 mmSTM8S003F3, the printed circuit board in 3D

STM8S003F3 Breakout board and Simple STM8 C examples with the SDCC compiler

Size
26.4 × 18.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
16
Nets
23
Pads
70
Tracks, vias
178, 19
Pours
4
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
6 Aug 2020
Updated
21 Aug 2020

Overview

STM8S003F3 is an open-source printed circuit board by TLDR-Electronics, from the TLDR-Electronics/STM8S003F3_PCB_Breakout_and_C_examples repository on GitHub, published under the MIT licence. It is a 2-layer board of 26.4 × 18.8 mm with 16 parts on 23 nets, routed with 178 tracks and 19 vias.

It is built around the STM8S003F3P6 and AMS1117-3.3. Its parts include 5 capacitors, 3 resistors, 3 connectors, 2 ICs and 2 diodes. It belongs with the interfaces and adapters and microcontroller boards boards and the STM8 boards of this library.

Main components

2

README

README.md

STM8S003F3 PCB Breakout and C examples

Breakout board and some lightweight C examples of the STM8S003F3 using the Small Device C Compiler (SDCC). Without the need for the STM8S/A Standard peripheral library. Some examples are also compatable with the IAR compiler.

Breakout Boards

Gerbers and design files for low cost breakout boards for the STM8S003F3 are available in the hardware folder. The breakout boards are designed in EasyEDA and KiCAD are placed in the hardware folder. The EasyEDA gerbers and assembly files have been phyically tested with JLCPCB. KiCAD files have not been tested.

Software Setup

To compile and run this SDCC will need to be installed. On linux, this can be done with the sudo apt update and sudo apt install sdcc

Flashing the STM8

The stm8flash utility is used to program the stm8 devices: https://github.com/vdudouyt/stm8flash Make sure you have an compatable ST-LINK programmer This will need to be compiled. The directory for the executable was placed in:

/home/<your username>/tools/stm8flash/

Make Commands

Typing in the following commands in the development folder:

  • make blink will compile the blink program to the ./bin/ folder.
  • make tim2 will compile the timer2 interrupt program to the ./bin/ folder.
  • make t2delay will compile the timer2 delay program to the ./bin/ folder.
  • make burn command will flash the device depending on the last build.
  • make clean will clear the binary and the ./bin/ folder.

Depending on your programmer, the makefile may need to be edited.

Parts

16
QtyValueFootprintReferences
3100nCapacitor_SMD:C_0402_1005MetricC1, C3, C5
21kResistor_SMD:R_0402_1005MetricR1, R2
2Conn_01x10Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ1, J2
2LEDLED_SMD:LED_0603_1608MetricD1, D2
1100nCapacitor_SMD:C_0603_1608MetricC2
110kResistor_SMD:R_0402_1005MetricR3
11uCapacitor_SMD:C_0402_1005MetricC4
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1STM8S003F3PPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU1
1SW_PushButton_Switch_SMD:SW_SPST_CK_RS282G05A3SW1

Similar boards

  • 2 layers32.1 × 41.2 mmIr signalgen lite, the printed circuit board in 3D

    Ir signalgen lite

    dilshan/ir-clone

    Open-source infrared remote control signal analysis and generating tool

    40 parts58MIT
  • 4 layersKvm base, the printed circuit board in 3D

    Kvm base

    thatoddmailbox/kvm-base

    The main board for the open-source HDMI KVM switch I built.

    70 parts19
  • 2 layers72.8 × 32 mmMicro fm radio, the printed circuit board in 3D

    Micro fm radio

    dilshan/rda5807-fm-radio-module

    RDA5807M based stereo FM radio receiver

    56 parts8MIT
  • 2 layers65 × 56 mmRas pi supercap ups, the printed circuit board in 3D

    Ras pi supercap ups

    akuker/SuperUPS

    This is a fork of the original Supercapacitor UPS board for a Raspberry Pi by Scott Baker, http://www.smbaker.com/

    88 parts7
  • 2 layers45 × 46 mmFan robot V3, the printed circuit board in 3D

    Fan robot V3

    Amir-imani/Autonomous-Mobile-Robot

    Thesis project: Design and Construction of a Mobile Robot with Intelligent Path Planning in Dynamic Environments.

    52 parts
  • 2 layers68.8 × 70 mmTempController4Oven, the printed circuit board in 3D

    TempController4Oven

    maupassant9/TemperatureControllerForOven

    Temperature Controller for oven with ESP8266

    37 partsMIT

Questions

How big is the STM8S003F3 PCB?

It measures 26.4 × 18.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the STM8S003F3 use?

16 parts, built around the STM8S003F3P6 and AMS1117-3.3. 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 STM8S003F3 KiCad files?

From the TLDR-Electronics/STM8S003F3_PCB_Breakout_and_C_examples repository on GitHub, at the commit this page was made from: the board is hardware/STM8S003F3.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

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