Skip to the content
2 layers17.8 × 14 mmUSBC2, the printed circuit board in 3D

Basic projects with CH552G

Size
17.8 × 14 mm
Copper layers
2
Thickness
1.6 mm
Parts
8
Nets
12
Pads
34
Tracks, vias
16, 0
Pours
14
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
29 Oct 2022
Updated
1 Nov 2026

Overview

USBC2 is an open-source printed circuit board by nicola-strappazzon, from the nicola-strappazzon/CH552 repository on GitHub, published under the LGPL-2.1 licence. It is a 2-layer board of 17.8 × 14 mm with 8 parts on 12 nets, routed with 16 tracks and 0 vias.

Its parts include 6 connectors and 2 resistors. It belongs with the 8051 (CH55x, STC, AT89) boards of this library.

README

README.md

CH552G examples

C examples, hardware designs, and notes for the WCH CH552G, an 8-bit microcontroller based on the 8051 architecture. It has native USB and a built-in bootloader, so firmware can be uploaded without a separate programmer.

See the datasheet and WCH examples.

Specifications

  • 3.3 V or 5 V operation.
  • 16 KB code flash, 1 KB XRAM, 256 bytes internal RAM, and 128 bytes data flash.
  • USB, UART, and SPI.
  • Three timers, two PWM channels, and four ADC inputs.
  • Built-in bootloader and 24 MHz internal oscillator.
  • Factory chip identifier.

CH552G SOP-16 pinout with colour-coded peripheral functions

The pinout groups functions by colour and marks default and alternate pin mappings. See the LaTeX sources and build instructions to edit or regenerate it. See the datasheet for all pin functions and package options. Check the clock timing for applications that need accurate delays.

Code flash is rated for about 200 programming cycles at 5 V. Data flash is rated for about 10,000 erase/write cycles; spread writes across it to reduce wear.

Minimum circuit

  • One CH552G.
  • Two 100 nF capacitors.
  • Two 10 kΩ resistors.
  • Two 1 kΩ resistors.
  • Two buttons: boot and reset.

Minimum circuit

Breadboard circuit

Examples

  • ADC: read a potentiometer and send values over UART.
  • Blink: blink an LED.
  • Bootloader: enter the bootloader at startup.
  • Button: control an LED with a button.
  • Button and RGB LED: change color with a button.
  • UART: send and receive text through a CH340 adapter.
  • Data flash: save the last LED color.
  • DHT11: show temperature and humidity on an OLED.
  • DHT20: wiring notes; sensor code is not implemented yet.
  • DS1307: show the date and time on an OLED.
  • Fade: fade an LED with software PWM.
  • Hardware PWM: fade an LED with PWM1.
  • SSD1306: write text to an I2C OLED.
  • Unique ID: send chip configuration bytes over USB CDC.
  • USB CDC TX: send text over USB.
  • USB CDC RX: echo bytes received over USB.
  • Watchdog: reset after a simulated hang.

Documentation

  • Pinout: LaTeX sources, peripheral groups, pin mappings, and diagram build instructions.
  • SDCC: install the compiler and build examples.
  • Bootloader: enter upload mode.
  • Flash: upload firmware with wchisp.
  • Hardware: KiCad designs.
  • Links: related resources.

Related projects

Third-party projects

Parts

8
QtyValueFootprintReferences
5Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1, J2, J3, J4, J6
25.1kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1, R2
1USB_C_2.0Connector_USB:USB_C_Receptacle_GCT_USB4085P1

More from nicola-strappazzon/CH552

2
  • 2 layers40.6 × 27.9 mmCH552, the printed circuit board in 3D

    CH552

    nicola-strappazzon/CH552

    Basic projects with CH552G

    23 parts37LGPL-2.1
  • 2 layers61 × 17.8 mmTQFP48, the printed circuit board in 3D

    TQFP48

    nicola-strappazzon/CH552

    Basic projects with CH552G

    3 parts37LGPL-2.1

Similar boards

  • 2 layers20.5 × 24.8 mmPi interface, the printed circuit board in 3D

    Pi interface

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    8 parts3.7k
  • 2 layers59.9 × 25.7 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    8 parts1kGPL-3.0
  • 2 layers52 × 12.6 mmUSB, the printed circuit board in 3D

    USB

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    8 parts960Apache-2.0
  • 2 layers87.5 × 48.5 mm7 input macropad, the printed circuit board in 3D

    7 input macropad

    hackclub/OnBoard

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

    8 parts915
  • 2 layers36.2 × 63.1 mmPicoMemcard pico, the printed circuit board in 3D

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers36 × 10 mmPCB4-PWR BTN Rev.A, the printed circuit board in 3D

    PCB4-PWR BTN Rev.A

    OLIMEX/DIY-LAPTOP

    Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop

    8 parts578Apache-2.0

Questions

How big is the USBC2 PCB?

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

What parts does the USBC2 use?

8 parts. 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 USBC2 KiCad files?

From the nicola-strappazzon/CH552 repository on GitHub, at the commit this page was made from: the board is hdw/USBC2/USBC2.kicad_pcb and its schematic assets/src/adc/schematic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the USBC2 design in my own project?

Its repository publishes it under the LGPL-2.1 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).