Skip to the content
2 layers148.3 × 147.3 mmSaintcon2019, the printed circuit board in 3D

There is also a video of my badge talk at Saintcon https://www.youtube.com/watch?v=MAhJ2WoN14

Size
148.3 × 147.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
119
Nets
128
Pads
625
Tracks, vias
2,527, 277
Pours
5
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
9 Jul 2019
Updated
25 Jan 2020

Overview

Saintcon2019 is an open-source printed circuit board by compukidmike, from the compukidmike/Saintcon2019 repository on GitHub. It is a 2-layer board of 148.3 × 147.3 mm with 119 parts on 128 nets, routed with 2,527 tracks and 277 vias.

It is built around the AP2112K-3.3. Its parts include 27 diodes, 27 switches, 22 capacitors, 18 resistors and 6 connectors. It belongs with the STM32 boards of this library.

Main components

1

README

README.md

Saintcon 2019 Enigma Badge

About the Badge

There is a writeup available at https://mkfactor.com/?p=100

There is also a video of my badge talk at Saintcon https://www.youtube.com/watch?v=MAhJ2W_oN14

Completing the Badge Challenge

Since you probably don't have 26 badges and a Hut 6 "teleprinter" at your house, it will be difficult to complete the challenge. I have created a modified version of the badge firmware that will allow you to complete the challenge at home! You'll need to complete the steps for reprogramming your badge below. Once that's done, grab the Saintcon2019BadgeChallenge.pdf file from this repository. It has all the intercepted messages for you to decode. Be sure to decode them in order! Your badge should say "LEVELED UP" after successfully decoding a message. Good luck! If you get stuck, feel free to reach out on the SaintComms slack, or via twitter @compukidmike or even email compukidmike @ gmail.

Reprogramming your badge

Note: This will completely erase the memory on your badge. Any progress in the challenge, as well as custom messages will be lost.

You will need the STM32CubeProgrammer software from https://www.st.com/en/development-tools/stm32cubeprog.html to reprogram your badge. It's cross-platform, though I've only tested it on Windows 10. Unfortunately ST requires you to create a login to download software :(

You'll also need the 2 hex files called Saintcon2019.hex and fpga.hex from this repository as well as a micro USB cable and one of the plugboard jumper wires from your badge.

Programming Steps:

  1. Turn off the badge.
  2. Connect the 2 TEST pins on your badge using the jumper (On the bottom-right side of your badge). If you haven't soldered that connector, you can put the jumper in from the back and hold it.
  3. Connect the badge to your computer using a micro USB cable.
  4. Turn on the badge. It will boot into DFU (Device Firmware Upgrade) mode.
  5. From the STM32CubeProgrammer application, select USB from the drop-down menu at the top-right.
  6. If you don't see anything next to "Serial number", click the little refresh button.
  7. Click the green "Connect" button in the top-right corner. It should now say "Connected" above that button.
  8. Click the Eraser button on the bottom-left corner (right above the question mark) and click OK to erase the badge memory. This is required for the new program to run correctly as there were many changes made to the way the internal EEPROM is organized.
  9. Now click the "+" tab next to Device Memory and select "Open file". Choose one of the hex files you downloaded earlier. Now do the same for the other hex file.
  10. With one of the hex file tabs selected, click the blue Download button. This will load the file onto your badge. Now do the same for the other hex file tab.
  11. Remove the jumper and turn it off and back on. The first time you turn it on, it will go into a testing mode, where all the LEDs are turned on white. This is normal. Simply press each keyboard button until all the lampboard lights are off. It will say "TEST DONE". Turn it off and back on, and you are finished programming your badge. Enjoy!

Editing Badge Code

The badge code can be found in the Firmware folder. It was written using the STM32CubeIDE. It's cross-platform and works reasonably well. You'll need an ST-Link V2 USB adapter to program and debug your badge. They can be had for ~$10 from Amazon or even less from Aliexpress if you're willing to wait for shipping. The IDE can be downloaded from ST here: https://www.st.com/en/development-tools/stm32cubeide.html

The FPGA code was written using Icestudio https://icestudio.io/ It's a cross-platform IDE for Lattice ICE40 FPGAs

The FPGA code is in SaintconFPGA.ice

Parts

119
QtyValueFootprintReferences
26LED_RGBLEDs:LED_RGB_5050-6D1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +10
26SW_PushTACT_6MM_SMD_SQUARE_TOP:TACT_6MM_SMD_SQUARE_TOPSW1, SW2, SW10, SW11, SW12, SW13, SW14, SW15, SW16, SW17, SW18, SW19, SW20, SW21, SW22, SW23 +10
110.1uFCapacitors_SMD:C_0603C1, C2, C3, C4, C6, C7, C14, C16, C18, C20, C22
61uFCapacitors_SMD:C_0603C8, C13, C15, C17, C19, C21
5100kResistors_SMD:R_0603R6, R7, R10, R12, R18
51KResistors_SMD:R_0603R1, R2, R3, R4, R17
54.7uFCapacitors_SMD:C_0603C5, C9, C10, C11, C12
41kResistors_SMD:R_0603R13, R14, R15, R16
22kResistors_SMD:R_0603R8, R9
2Conn_01x02JST-LEB-Connectors:JST-LEB-2POS-FEMALEX1, X2
2Conn_01x02JST-LEB-Connectors:JST-LEB-2POS-MALEX3, X4
2Conn_02x07_Odd_EvenPin_Headers:Pin_Header_Straight_2x07_Pitch2.54mmJ3, J4
110kResistors_SMD:R_0603R5
120kResistors_SMD:R_0603R11
1AP2112K-3.3TO_SOT_Packages_SMD:SOT-23-5U3
1ASCOESC_Oscillators:ESC-2520MVY1
1Battery_CellSparkFun-Connectors:JST-2-SMDBT1
1Conn_01x03SparkFun-Connectors:1X03J1
1Conn_02x10_Counter_ClockwiseBergStakBTBConnectors:BergStak_20Pin_0.5mm_Female_5.3mmJ2
1Conn_02x10_Odd_EvenPin_Headers:Pin_Header_Straight_2x10_Pitch2.54mmJ5
1IS31FL3736Housings_DFN_QFN:QFN-40-1EP_5x5mm_Pitch0.4mmU4
1LEDLEDs:LED_0603D27
1LOGOSCShield2G***
1MCP73832-2-OTTO_SOT_Packages_SMD:SOT-23-5U2
1STM32L433VCTxHousings_QFP:LQFP-100_14x14mm_Pitch0.5mmU1
1SW_SPSTC&KSlideSwitches:JS102011SAQNSW27
1USB_B_MicroAmphenolMicroUSB:10118192-0002LFJ6
1Val**Saintcon2019BaseBoardArtworkBack
1Val**Saintcon2019TopBoardArtwork2Ref**

The 113 most common of 119 parts.

More from compukidmike/Saintcon2019

3
  • 4 layers148.3 × 147.3 mmSaintcon2019TopBoard, the printed circuit board in 3D

    Saintcon2019TopBoard

    compukidmike/Saintcon2019

    There is also a video of my badge talk at Saintcon https://www.youtube.com/watch?v=MAhJ2WoN14

    1,120 parts20
  • 2 layers264.2 × 264.2 mmSaintconMinibadgeDisplay10x10, the printed circuit board in 3D

    SaintconMinibadgeDisplay10x10

    compukidmike/Saintcon2019

    There is also a video of my badge talk at Saintcon https://www.youtube.com/watch?v=MAhJ2WoN14

    139 parts20
  • 2 layers94 × 61 mmSaintconMinibadgeHolder8, the printed circuit board in 3D

    SaintconMinibadgeHolder8

    compukidmike/Saintcon2019

    There is also a video of my badge talk at Saintcon https://www.youtube.com/watch?v=MAhJ2WoN14

    29 parts20

Similar boards

  • 2 layers26 × 30 mmMicrocontroller, the printed circuit board in 3D

    Microcontroller

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    34 parts1.1kCC-BY-4.0
  • 2 layers53.2 × 24.8 mmPicoLink, the printed circuit board in 3D

    PicoLink

    ErichStyger/mcuoneclipse

    McuOnEclipse projects and examples

    46 parts765
  • 2 layers36 × 20 mmCombined, the printed circuit board in 3D

    Combined

    adamb314/ServoProject

    Getting the most out of your hobby servo

    24 parts545
  • 2 layers25 × 25 mmSmallEncoder, the printed circuit board in 3D

    SmallEncoder

    DDeGonge/OS-ARM

    This arm is not industrial and it will not be fast, but that is not my goal. But it will hopefully be a very nice looking arm fully capable of 6dof motion, cheap enough to keep it accessable but capable enough to…

    17 parts498MIT
  • 4 layers70 × 72 mmSPINC AA Charger, the printed circuit board in 3D

    SPINC AA Charger

    CoretechR/SPINC

    DIY Automatic Battery Charger Using RP2040

    101 parts467GPL-3.0
  • 4 layers60.8 × 61.3 mmOS3M Mouse, the printed circuit board in 3D

    OS3M Mouse

    spoter368/os3m-hardware

    All the hardware needed to build your own OS3M Mouse!

    51 parts399
  • 4 layers74 × 104 mmBeepy, the printed circuit board in 3D

    Beepy

    sqfmi/beepy-hardware

    Beepy Hardware

    160 parts348MIT

Questions

How big is the Saintcon2019 PCB?

It measures 148.3 × 147.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Saintcon2019 use?

119 parts, built around the AP2112K-3.3. 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 Saintcon2019 KiCad files?

From the compukidmike/Saintcon2019 repository on GitHub, at the commit this page was made from: the board is Hardware/KiCad Files/Saintcon2019/Saintcon2019.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Saintcon2019 design in my own project?

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