Skip to the content
PCBKitNew board
2 layers68.6 × 53.3 mmSduino uno, the printed circuit board in 3D

A development board with STM8S105K6 MCU in Arduino UNO form factor

Size
68.6 × 53.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
51
Nets
61
Pads
253
Tracks, vias
826, 93
Pours
13
Routed
Yes
KiCad
KiCad 4
Created
6 Oct 2017
Updated
18 Nov 2017

Overview

Sduino uno is an open-source printed circuit board by roybaer, from the roybaer/sduino_uno repository on GitHub. It is a 2-layer board of 68.6 × 53.3 mm with 51 parts on 61 nets, routed with 826 tracks and 93 vias.

It is built around the CH340G, LM358 and CD1206-S01575, with the FDN340P and MF-MSMF050-2 among its other parts. Its parts include 12 capacitors, 6 ICs, 5 crystals, 2 diodes and 2 connectors. It belongs with the microcontroller boards boards and the AVR (ATmega, ATtiny) and STM8 boards of this library.

Main components

5

README

README.md

sduino UNO

The sduino UNO is an attempt at creating a mechanically and electrically Arduino-UNO-compatible development board based on the STM8S105K6 microcontroller. Both, mechanical and electrical design are to a notable degree based on the Arduino UNO board.

sduino UNO board

Components and silkscreen can be viewed in more detail in a picture of the component side and a picture of the back side of the assembled board.

Pin mapping

NumberUNO pin nameATMEGA328 pin nameSTM8S105K6 pin name
0IO0/RXPD0/RXDPD6/UART2_RX
1IO1/TXPD1/TXDPD5/UART2_TX
2IO2PD2/INT0PD7/TLI [TIM1_CH4]
3IO3PD3/INT1/OC2BPD2 (HS)/TIM3_CH1 [TIM2_CH3]
4IO4PD4/T0/XCKPD0 (HS)/TIM3_CH2 [TIM1_BKIN]/[CLK_COO]
5IO5PD5/T1/OC0BPD4 (HS)/TIM2_CH1 [BEEP]
6IO6PD6/AIN0/OC0APD3 (HS)/TIM2_CH2/ADC_ETR
7IO7PD7/AIN1PD1 (HS)/SWIM
8IO8PB0/ICP1/CLKOPC1 (HS)/TIM1_CH1/UART2_CK
9IO9PB1/OC1APC3 (HS)/TIM1_CH3
10IO10/SSPB2/NSS/OC1BPC4 (HS)/TIM1_CH4
11IO11/MOSIPB3/MOSI/OC2APC6 (HS)/SPI_MOSI
12IO12/MISOPB4/MISOPC7 (HS)/SPI_MISO
13IO13/SCKPB5/SCKPC5 (HS)/SPI_SCK
14AD0PC0/ADC0PB0/AIN0 [TIM1_CH1N]
15AD1PC1/ADC1PB1/AIN1 [TIM1_CH2N]
16AD2PC2/ADC2PB2/AIN2 [TIM1_CH3N]
17AD3PC3/ADC3PB3/AIN3 [TIM1_ETR]
18AD4/SDAPC4/ADC4PB5/AIN5 [I2C_SDA]
19AD5/SCLPC5/ADC5PB4/AIN4 [I2C_SCL]
20AD6----
21AD7----
22AREFAREFPF4/AIN12
23IO23--PC2 (HS)/TIM1_CH2
24IO24/SS--PE5/SPI_NSS
--RESETNRESETNRST
----PB6/TOSC1/XTAL1PA1/OSCIN
----PB7/TOSC2/XTAL2PA2/OSCOUT

For evaluation purposes, most of the sduino UNO's functionality can be imitated with an STM8-DISCOVERY board and a USB to Serial converter, as described in this document.

Differences

The following paragraphs highlight the most important differences between Arduino UNO and sduino UNO.

Mechanical

The gap between the upper socket strips has been reduced from 0.06 to 0.05 inches. This should not significantly impact mechanical compatibility with Arduino UNO shields and increases the available radius around the center of the upper left M3 mounting hole from 2.286 to 2.54 millimeters, which should be just enough to fit in a standard M3 spacer (5mm wrench).

Electrical

Most importantly, the sduino UNO can be switched between 5V and 3.3V operating voltage. The RX and TX LEDs are connected to the RX and TX lines (IO pin 0 and 1, respectively) via 1k resistors, rather than to the USB interface chip.

Functional

Like many Arduino UNO clones, the sduino UNO uses a CH340G USB to serial converter instead of an Atmega16U2 for communication with the host PC. The USB interface Chip therefore cannot be repurposed as a coprocessor or keyboard/mouse simulator.

There is no analog comparator in the STM8S105K6 microcontroller and AREF is actually an additional analog input. Its use as reference voltage for A/D conversion has to be imitated in software. IO11 has no hardware PWM functionality for analog_write, IO8 and IO4 have. IO2, AD0, AD1 and AD2 can be used as PWM outputs via alternate function mapping.

Likewise, IO10 does not serve as hardware-slave-select line for the SPI bus. This, however, can mostly be overcome by software-emulation, because the STM8 allows for slave-select to be controlled in software, e.g. in an interrupt handler. The actual slave-select line has been made available via an exra pin.

Software

Unfortunately, there is no free C++ compiler available for the STM8 platform, yet. The Arduino language along with the large pool of existing Arduino sketches can therefore not be used without modifications.

Fortunately, there is the C-based sduino library that in fact inspired the creation of the sduino UNO and that this board borrows its name from. By using the sduino library, the changes required to run many exsting Arduino sketches on an STM8 platform can be kept within manageable bounds.

Possibilities to bring C++ support to the STM8 platform with a free compiler are being evaluated.

Copying

Even though the sduino UNO CAD files have been created from scratch and the design is not identical, to avoid legal ambiguity, the CAD files for the sduino UNO board are released under the same creative commons license as those of the Arduino UNO board:

This work is licensed under the Creative Commons Attribution-ShareAlike 2.5 Generic License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.5/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

Parts

51
QtyValueFootprintReferences
6100nCapacitors_SMD:C_0603C7, C8, C9, C10, C11, C12
422pCapacitors_SMD:C_0603C1, C2, C5, C6
3YELLOWLEDs:LED_0805LED_L1, LED_RX1, LED_TX1
21kResistors_SMD:R_Array_Concave_4x0603RN2, RN3
21µCapacitors_SMD:C_0805C3, C4
247µCapacitors_SMD:CP_Elec_6.3x5.8PC1, PC2
2Conn_01x08Socket_Strips:Socket_Strip_Straight_1x08_Pitch2.54mmIOL1, POWER1
110kResistors_SMD:R_Array_Concave_4x0603RN1
112MHzCrystals:Crystal_HC49-4H_VerticalY1
116MHzCrystals:Crystal_HC49-4H_VerticalY2
1CD1206-S01575Diodes_SMD:D_1206D2
1CH340GHousings_SOIC:SOIC-16_3.9x9.9mm_Pitch1.27mmU3
1Conn_01x02Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmJ2
1Conn_01x03Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmVSEL1
1Conn_01x04Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mmJ1
1Conn_01x06Socket_Strips:Socket_Strip_Straight_1x06_Pitch2.54mmAD1
1Conn_01x10Socket_Strips:Socket_Strip_Straight_1x10_Pitch2.54mmIOH1
1Conn_02x04_Odd_EvenPin_Headers:Pin_Header_Straight_2x04_Pitch2.54mmSPI_PWR1
1FDN340PTO_SOT_Packages_SMD:SOT-23Q1
1GREENLEDs:LED_0805LED_ON1
1Jack-DCConnect:JACK_ALIMX1
1LM358Housings_SOIC:SOIC-8_3.9x4.9mm_Pitch1.27mmU5
1M7Diodes_SMD:D_SMAD1
1MF-MSMF050-2Resistors_SMD:R_1812F1
1NCP1117-3.3_SOT223TO_SOT_Packages_SMD:SOT-223-3Lead_TabPin2U2
1NCP1117-5.0_SOT223TO_SOT_Packages_SMD:SOT-223-3Lead_TabPin2U1
1STM8S105K6T6C_LQFP32Housings_QFP:LQFP-32_7x7mm_Pitch0.8mmU4
1STM8S105K6U6A_UFQFPN32Housings_DFN_QFN:QFN-32-1EP_5x5mm_Pitch0.5mmU6
1TS42031-160R-TR-7260Buttons_Switches_SMD:SW_SPST_B3S-1000RESET1
1USB_BConnect:USB_BX2
1USB_OTGConnectors_USB:USB_Micro-B_Molex_47346-0001X3

The 45 most common of 51 parts.

Questions

How big is the Sduino uno PCB?

It measures 68.6 × 53.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Sduino uno use?

51 parts, built around the CH340G, LM358, CD1206-S01575 and FDN340P. 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 Sduino uno KiCad files?

From the roybaer/sduino_uno repository on GitHub, at the commit this page was made from: the board is kicad/sduino_uno.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Sduino uno design in my own project?

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

Similar boards

  • 2 layers101.6 × 53.3 mmSduino mb, the printed circuit board in 3D

    Sduino mb

    roybaer/sduino_mb

    A development board with STM8S208MB MCU in Arduino MEGA form factor

    56 parts4
  • 2 layers68.6 × 53.3 mmArduino Uno SMD, the printed circuit board in 3D

    Arduino Uno SMD

    kaustubh850/ArduinoEquipped

    A Repo wit Arduino Uno Compatible Boards with on-board Addons.

    69 parts
  • 2 layers68.6 × 53.3 mmArduino Uno SMD, the printed circuit board in 3D

    Arduino Uno SMD

    kaustubh850/ARMduino-UNO-PY32

    52 parts
  • 4 layers124 × 89.4 mmATMega 328 PU Board, the printed circuit board in 3D

    ATMega 328 PU Board

    olexsu/ATmega328_control_Board

    Custom ATmega328 embedded control board designed in KiCad with Arduino firmware.

    140 parts
  • 2 layers70 × 50.5 mmArduino Uno, the printed circuit board in 3D

    Arduino Uno

    Tetteh-EkuPrince/KicadProject_ArduinoUno

    46 parts
  • 4 layers48.3 × 17.8 mmArduino Micro, the printed circuit board in 3D

    Arduino Micro

    sabogalc/KiCad-Arduino-Boards

    A collection of Arduino boards recreated from scratch in KiCad. Legacy USB connectors have been replaced with USB-C where applicable.

    48 parts95WTFPL