Skip to the content
4 layers17.4 × 53.1 mmGreenpill, the printed circuit board in 3D

a samd51 dev board, mimicking the bluepill/blackpill stm32 board design

Size
17.4 × 53.1 mm
Copper layers
4
Thickness
1.6 mm
Parts
34
Nets
66
Pads
206
Tracks, vias
555, 67
Pours
3
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
26 Jun 2020
Updated
28 Sep 2020

Overview

Greenpill is an open-source printed circuit board by Stary2001, from the Stary2001/greenpill repository on GitHub. It is a 4-layer board of 17.4 × 53.1 mm with 34 parts on 66 nets, routed with 555 tracks and 67 vias.

It is built around the ATSAMD51J20A-MU, MIC5504-3.3YM5 and BAT54C. Its parts include 13 capacitors, 6 resistors, 4 connectors, 3 ICs and 3 diodes. It belongs with the microcontroller boards boards and the SAM D and SAM boards of this library.

Main components

3

README

README.md

Greenpill

Breadboard-able SAMD51 development board

Assembled PCB in a breadboard

Inspired by the popular low-cost "Bluepill" and "Blackpill" STM32 boards, Greenpill aims to maintain some compatibility with those designs while adding features from the SAMD5x platform. Greenpill is designed to be used with CircuitPython, although a SAMD51 port of Arduino could also be used.

Features

  • SAMD51J20A-M microcontroller
    • Arm Cortex-M4 @ 120 MHz
    • 8 USB endpoints – enough for CDC & MSC (for CircuitPython), and some extras (eg. AUDIO)
  • Reversible USB Type-C connector supporting USB 2.0 data rates
  • On-board user LED and button
  • External 32.768 kHz crystal oscillator for RTC + clock source.
  • Up to 13 PWM-capable pins usable simultaneously
  • SPI flash footprint on underside - no pin conflicts with broken out pins (uses SERCOM2).

Greenpill Schematic

Flashing CircuitPython

  1. TODO: add UF2 bootloader instructions
  2. Build CircuitPython from the fork. Use the atsamd port and BOARD=greenpill.
  3. Enter the UF2 bootloader by double-tapping the RESET button on Greenpill
  4. You should now have a removable storage device called CPYBOOT. Copy PATHTOUF2 to the root directory of this device. Once it has finished copying, CPYBOOT will disappear and GREENPILL will appear. You have now installed CircuitPython.

Pin assignment

Pins are numbered counter-clockwise starting at the top-left pin (to the left of the USB-C connector).

Greenpill PinGPIO nameAvailable SERCOMs*Available PWM timers*Comment
User LEDPB09-TC4/WO[1]
User ButtonPB06--Externally pulled up to 3v3
VBat sensePB03--Connected to VBat via diode D3
1PA16SERCOM1/PAD[0]
SERCOM3/PAD[1]
TCC1/WO[0]
TCC0/WO[4]
2PA17SERCOM1/PAD[1]
SERCOM3/PAD[0]
TC2/WO[1]
TCC1/WO[1]
TCC0/WO[5]
3PA18SERCOM1/PAD[2]
SERCOM3/PAD[2]
TCC1/WO[2]
TCC0/WO[6]
4PA19SERCOM1/PAD[3]
SERCOM3/PAD[3]
TC3/WO[1]
TCC1/WO[3]
TCC0/WO[7]
5PB16SERCOM5/PAD[0]TCC3/WO[0]
TCC0/WO[4]
6PB01SERCOM5/PAD[3]TC7/WO[1]
7PB00SERCOM5/PAD[2]-
8PA24USB D-
9PA25USB D+
10PA20SERCOM5/PAD[2]
SERCOM3/PAD[2]
TCC1/WO[4]
TCC0/WO[0] -
11PB22SERCOM1/PAD[2]
SERCOM5/PAD[2]
12PB23SERCOM1/PAD[3]
SERCOM5/PAD[3]
TC7/WO[1]
13PA27--
14PB31SERCOM5/PAD[0]TC0/WO[1]
TCC4/WO[1]
TCC0/WO[7]
15PA22SERCOM3/PAD[0]
SERCOM5/PAD[1]
TCC1/WO[6]
TCC0/WO[2]
16PB17SERCOM5/PAD[1]TC6/WO[1]
TCC3/WO[1]
TCC0/WO[5]
17PB02SERCOM5/PAD[0]TCC2/WO[2]
185V
19Ground
203.3V
21VBat
22PB04--
23PA03--
24PB30SERCOM5/PAD[1]TCC4/WO[0]
TCC0/WO[6]
25¬Reset
26PA02--
27PA08SERCOM4/PAD[0]-
28PA05SERCOM0/PAD[1]TC0/WO[1]
29PA07SERCOM0/PAD[3]TC1/WO[1]
30PA06SERCOM0/PAD[2]-
31PA04SERCOM0/PAD[0]-
32PA09SERCOM0/PAD[1]TC0/WO[1]
TCC0/WO[1]
TCC1/WO[5]
33PA10SERCOM0/PAD[2]TCC0/WO[2]
TCC1/WO[6]
34PB10SERCOM4/PAD[2]TCC0/WO[4]
TCC1/WO[0]
35PB11SERCOM4/PAD[3]TC5/WO[1]
TCC0/WO[5]
TCC1/WO[1]
36PB12SERCOM4/PAD[0]TCC3/WO[0]
TCC0/WO[0]
37PB13SERCOM4/PAD[1]TC4/WO[1]
TCC3/WO[1]
TCC0/WO[1]
383.3V
39Ground
405V

* SERCOM2 and all TCn/WO[0] have been removed from this table. SERCOM2 is used by the SPI flash, and TCn/WO[0] timers are not usable for PWM output by CircuitPython. For a full reference of pin capability, see Table 6-1 in the SAM D5x datasheet

License

The contents of this repository, which include the Greenpill hardware, documentation, and design files, are released under the Solderpad 2.1 license. The recommended firmware for GreenPill (CircuitPython) is NOT part of this repository. Both Adafruit/CircuitPython and the fork that provides Greenpill compatibility are released under the MIT License

Parts

34
QtyValueFootprintReferences
8100nCapacitor_SMD:C_0402_1005MetricC1, C2, C3, C4, C6, C9, C10, C13
210kResistor_SMD:R_0603_1608MetricR5, R6
210uCapacitor_SMD:C_0603_1608MetricC7, C8
212pCapacitor_SMD:C_0603_1608MetricC11, C12
25.1kResistor_SMD:R_0603_1608MetricR1, R2
2Conn_01x20_MaleConnector_PinHeader_2.54mm:PinHeader_1x20_P2.54mm_VerticalJ1, J2
2LEDLED_SMD:LED_0603_1608MetricD1, D2
2SW_Pushgreenpill:PTS636SW1, SW2
1261Resistor_SMD:R_0603_1608MetricR3
14.7uCapacitor_SMD:C_0603_1608MetricC5
160.4Resistor_SMD:R_0603_1608MetricR4
1ATSAMD51J20A-MPackage_DFN_QFN:QFN-64-1EP_9x9mm_P0.5mm_EP4.7x4.7mmU1
1BAT54CPackage_TO_SOT_SMD:SOT-23D3
1Conn_01x04_MaleConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ3
1Crystal_GND23Crystal:Crystal_SMD_3215-2Pin_3.2x1.5mmY1
1Ferrite_Bead_SmallResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderFB1
1MIC5504-3.3YM5Package_TO_SOT_SMD:SOT-23-5U2
1S25FL064Package_SO:SOIC-8_5.23x5.23mm_P1.27mmU3
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_XKB_U262-16XN-4BVC11J5

The 33 most common of 34 parts.

More from Stary2001/greenpill

1
  • 4 layers17.4 × 53.1 mmGreenpill, the printed circuit board in 3D

    Greenpill

    Stary2001/greenpill

    a samd51 dev board, mimicking the bluepill/blackpill stm32 board design

    31 parts1

Similar boards

  • 2 layers26.9 × 68.6 mmMcu, the printed circuit board in 3D

    Mcu

    wntrblm/Hubble

    Re-usable test jig controller

    27 parts23
  • 2 layers100 × 100 mmHubble, the printed circuit board in 3D

    Hubble

    kitspace-test-repos/kicad6-file-collection

    125 partsMIT
  • 2 layers172 × 152.9 mmTrackpad, the printed circuit board in 3D

    Trackpad

    george-norton/peacock

    A big QMK powered trackpad

    102 parts309CERN-OHL-S-2.0
  • 2 layers22.9 × 36.7 mmUsb2usb, the printed circuit board in 3D

    Usb2usb

    tmk/USB2USB_Converter

    USB to USB keyboard protocol converter supported by TMK keyboard firmware

    26 parts152
  • 2 layers78 × 130 mmLofence, the printed circuit board in 3D

    Lofence

    kiu/lofence

    LoFence is a LoRaWAN capable IoT electric fence monitoring system running on the The Things Network.

    65 parts142MIT
  • 2 layers96.5 × 55 mmVera module rev2, the printed circuit board in 3D

    Vera module rev2

    fvdhoef/vera-module

    Versatile Embedded Retro Adapter

    120 parts138MIT
  • 2 layers120 × 130 mmSingularitySurfer V1, the printed circuit board in 3D

    SingularitySurfer V1

    nkrackow/SingularitySurfer-FPGA-Lock-In-Amplifier

    Repository for the development of an FPGA based DSP Lock-In Amplifier

    174 parts80MIT

Questions

How big is the Greenpill PCB?

It measures 17.4 × 53.1 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Greenpill use?

34 parts, built around the ATSAMD51J20A-MU, MIC5504-3.3YM5 and BAT54C. 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 Greenpill KiCad files?

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

Can I use the Greenpill design in my own project?

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