Skip to the content
2 layers36.6 × 36.4 mmShirtty, the printed circuit board in 3D

Badge addon with infrared receive/transmit

Size
36.6 × 36.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
25
Pads
93
Tracks, vias
256, 30
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
21 Oct 2019
Updated
24 Apr 2020

Overview

Shirtty is an open-source printed circuit board by sarfata, from the sarfata/shirtty-addon repository on GitHub. It is a 2-layer board of 36.6 × 36.4 mm with 26 parts on 25 nets, routed with 256 tracks and 30 vias.

It is built around the ATSAMD21E18A-AF, AP2112K-3.3 and TSOP77438TT. Its parts include 4 capacitors, 4 resistors, 3 ICs, 3 diodes and 3 transistors. It belongs with the lEDs and displays boards and the SAM D and SAM boards of this library.

Main components

3

README

README.md

shIRtty

A CircuitPython compatible, SAMD21 shitty addon with IR transmit/receive and RGB LED.

Bugs / Issues on v1.

IMPORTANT To make things more shitty the SAO header is upside down on the badge. You will need a shitty inverser (included in this repo) or to put the addon upside down.

This is the pinout when looking at the face of the badge. Note that VCC is bottom right (bottom left if you are looking at the connector).

pinout

TODOs

  • the SAO connector is upside down
  • we need more capacitance on the +3V line otherwise we brown out when transmitting IR
  • replace the very unreliable PCB usb connector by a micro usb connector
  • make the reset button smaller so we can actually fit a SMD 6 pin SAO shrouded connector
  • expose some GPIOs?

Micropython variant

Build

Look at the readme in ports/atmel-samd.

text
# needed so gettext/msgfmt is available during build
export PATH="/usr/local/opt/gettext/bin:$PATH"

git clone git@github.com:adafruit/circuitpython.git
git submodule update --init --recursive
make -C mpy-cross

cd ports/atmel-samd

make BOARD=trinket_m0
(stopped there something funky going on where echo toto |xargs arm-none-eabi-gcc does not work)

Bootloader

Some reference:

TODO:

  • Change the led configuration so they work on the RGB led we have on our board

Build the bootloader

We only add two files from the adafruit version of the uf2 bootloader:

text
git clone git@github.com:adafruit/uf2-samdx1.git

~/work/uf2-samdx1/boards/shirtty/board.mk

text
CHIP_FAMILY = samd21
CHIP_VARIANT = SAMD21E18A

uf2-samdx1/boards/shirtty/board_config.h

text
#ifndef BOARD_CONFIG_H
#define BOARD_CONFIG_H

#define CRYSTALLESS 1

#define VENDOR_NAME "@sarfata"
#define PRODUCT_NAME "shIRtty"
#define VOLUME_LABEL "shIRtty"
#define INDEX_URL "https://github.com/sarfata/shirtty-addon"
#define BOARD_ID "shIRtty"

#define USB_VID 0x239A
#define USB_PID 0x001E

#define LED_PIN PIN_PA14

#endif

Then build with:

text
$ make BOARD=shirtty

I got an error at the end on a selfmain.c used for self update. #aintgottimeforthat - does not matter because the elf for the bootloader was built properly earlier.

Using the Black Magic Probe

Connect:

  • GND of the board to GND of BMP (use the SAO header)
  • VCC of the board to VCC of BMP (use the SAO header)
  • SWC/SWD/RST on the board to BMP (RST is optional - see below)
text
$ arm-none-eabi-gdb build/shirtty/bootloader-shirtty-v3.7.0-54-g63b4c6f.elf
(gdb) target extended-remote /dev/cu.usbmodem7AB17EC11

# If you need the black magic to provide power:
(gdb) monitor tpwr enable

(gdb) monitor swdp_scan
Target voltage: 3.3V
Available Targets:
No. Att Driver
 1      Atmel SAMD21E18A (rev D)
(gdb) attach 1

# if the bootloader is protected
(gdb) monitor unlock_bootprot

(gdb) load
(gdb) compare-sections

# if you want the new bootloader protected
(gdb) monitor lock_bootprot

Note: if you don't connect the RST line, you have to press reset after applying power, before running the monitor command. If the RST line is connected that is not needed.

Unprotecting / Protecting the bootloader

First I had to update the firmware on my black magic probe (I had 1.6.1), I followed readme recommendations and installed daily build.

Version before:

text
Black Magic Probe (Firmware 04d9749) (Hardware Version 3)

Upgrade with:

text
sudo dfu-util -d 1d50:6018,:6017 -s 0x08002000:leave -D ~/Downloads/blackmagic-native.bin

Version after:

text
Black Magic Probe (Firmware 04d9749) (Hardware Version 3)

Then the commands monitor unlock_bootprot becomes available.

Note: commands above do not work on the trinket m0 because the bootloader is protected. They should work on a fresh samd21e18 though.

Parts

26
QtyValueFootprintReferences
5Conn_01x01TestPoint:TestPoint_Pad_1.5x1.5mm3V3, GND, RST, SWC, SWD
41kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1, R2, R3, R4
210uFCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC3, C4
21uFCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1, C2
2LEDLED_THT:LED_D5.0mmD1, D2
2Q_PNP_BECPackage_TO_SOT_SMD:SOT-23Q1, Q2
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U3
1ATSAMD21E18A-AFATSAMD21E18A-AF:QFP80P900X900X120-32NU1
1Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical_SMDJ1
1LED_RGBALED_SMD:LED_Avago_PLCC4_3.2x2.8mm_CWD3
1LOGOshirtty:logoG***
1Q_NPN_BECPackage_TO_SOT_SMD:SOT-23Q3
1SW_SPSTButton_Switch_SMD:SW_Push_1P1T_NO_6x6mm_H9.5mmRESET
1TSOP77438tsop77438:TSOP774xxU2
1USB_PCBusb-connector:usb-PCBJ2

More from sarfata/shirtty-addon

1
  • 2 layers10 × 15.2 mmShitty inverser, the printed circuit board in 3D

    Shitty inverser

    sarfata/shirtty-addon

    Badge addon with infrared receive/transmit

    2 parts7

Similar boards

  • 2 layers19.5 × 26.8 mmBikeleds, the printed circuit board in 3D

    Bikeleds

    minor-industries/hardware

    Minor Industries' PCBs

    16 parts
  • 4 layers24 × 27.3 mmAaronjamt Framework IR Module, the printed circuit board in 3D

    Aaronjamt Framework IR Module

    hackclub/OnBoard

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

    39 parts915
  • 4 layers44.5 × 34.9 mmEclair, the printed circuit board in 3D

    Eclair

    upbeatcarri/eclair

    Pocket device for taking quick notes, acting as a USB keyboard for PC sync etc., with custom apps samd21, tinygo

    56 parts25
  • 2 layers54.6 × 68 mmRng pcb, the printed circuit board in 3D

    Rng pcb

    mitsake/rng-pcb

    A hardware random number generator that uses avalanche noise. Based on the Trinket M0.

    46 parts5CC-BY-SA-4.0
  • 2 layers12 × 30 mmElectric greetings, the printed circuit board in 3D

    Electric greetings

    electricui/electricui-helloboard

    Cute arduino compatible development board for introducing people to Electric UI

    19 parts1
  • 4 layers37.6 × 30.6 mmBias generator LT8362, the printed circuit board in 3D

    Bias generator LT8362

    OpenSiPM/sipm-bias-control

    Single channel silicon photomultipliers for high-speed fluorescence imaging

    61 parts44

Questions

How big is the Shirtty PCB?

It measures 36.6 × 36.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Shirtty use?

26 parts, built around the ATSAMD21E18A-AF, AP2112K-3.3 and TSOP77438TT. 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 Shirtty KiCad files?

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

Can I use the Shirtty design in my own project?

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