Skip to content

Drop-in replacement for Arduino Nano based on STM8S003F3P6 chip

License

Notifications You must be signed in to change notification settings

sonocotta/stm8s003-dev-board

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM8S003 Development Board

Open Source Hardware Open Source Software I sell on Tindie
Dev Chat

The STM8S003 development board is a low-cost and easy-to-use board that provides a drop-in replacement for the popular Arduino Nano. The board is based on the STM8S003F3 microcontroller, which offers high performance and low power consumption.

The development board features a compact design with a small form factor, making it easy to integrate into projects of all sizes. It includes all the necessary components for the microcontroller, including a USB port for easy programming and communication with a computer.

The STM8S003 development board is ideal for both hobbyists and professionals who want a simple, yet powerful development platform. It offers a wide range of features, including 16 MHz clock speed, 8 KB of flash memory, 1 KB of RAM, and 128 bytes of EEPROM. It also supports a variety of communication protocols, including SPI, I2C, and UART.

Additionally, the STM8S003 development board is compatible with the Arduino IDE, allowing users to take advantage of a large community of developers and a wide range of libraries and tools. This makes it easy to get started with programming, even for those who are new to the field.

Overall, the STM8S003 development board is an excellent choice for anyone who needs a low-cost and easy-to-use development platform that offers high performance and flexibility. Whether you are working on a hobby project or a professional application, this board has everything you need to get started quickly and easily.

image

Features

  • STM8S003F3 8-bit MCU in a 20-pin package
  • Up to 16 MHz CPU clock
  • 8 KB Flash
  • 1 KB SRAM
  • 128B of EEPROM
  • SWIM interface for flashing and debugging
  • Onboard 5V LDO (disconnected for low power applications)
  • Flash using Arduino IDE, Platformio, or the IDE of your choice
  • Onboard USB-Serial bridge (CH340E) connected to hardware Serial port
  • One RGB LED (WS2812B)
  • One Push button

STM8S003F3

STM8S003F3 is an entry-level 8-bit MCU in the STM8 line. Generally they offer what modern 8-bit MCU should deliver, including popular communication interfaces, low power consumption in sleep mode (down to few micro-amps) and ease of use.

STM8S003F3 ATTINY1616 ATmega168P CH32V003
Max Frequency 16 Mhz 20 Mhz 16Mhz 48Mhz
Flash 8KB 16KB 16KB 16KB
SRAM 1KB 2KB 1KB 2KB
EEPROM 128B 128B 512B
GPIO count 15 18 23 14
UART Yes Yes Yes Yes
I2C Yes Yes Yes Yes
SPI Yes Yes Yes Yes
Timers 3 4 3 2
ADC pins 5 12 8 6

Board Pinout

image

MCU Pinout

image

How to programm

To program the STM8S microcontroller, you will need ST-LINK programmer or any compatible programmer supporting SWIM interface. Most common in the field is to use ST-Link USB dongle

image

You need to connect GND, SWIM and RESET. +5V is optional as long as you power board from the USB

image

Arduino IDE

Add https://github.com/tenbaht/sduino/raw/master/package_sduino_stm8_index.json to the board manager

image

After that you should install sduino from Board Manager

image

Select STM8S103F3 as target and other necessary settings in the board settings after

image

Next press Build or Upload button, it should just work

image

Platformio IDE

After installing Plarformio IDE, open sample arduino project or native project. Run Build command to install necessary tools and libraries.

Next run Upload: stm8s003-dev-board task if you're using stlinkv2 programmer. Monitor task should give you Serial monitor, as long as you have your board connected via USB as well.

TODO (Work in Progress)

  • Firmware samples
    • UART
    • RGB led (requires library)
    • Debugging (it should just work in Plarformio)

Hardware

The board schematic can be found in the hardware section

image

  • image STM8S003 MCU
  • image CH340E USB-Serial Adapter connected to Hardware Serial
  • image WS2812B RGB LED
  • image Programming and Debug header
  • image Hardware Reset button
  • image VIN disconnect - cut this line to disconnect LDO chip and power-on LED, recommended for low-power applications

Where to buy

Available at Tindie and Elecrow

Links

About

Drop-in replacement for Arduino Nano based on STM8S003F3P6 chip

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages