Skip to the content
2 layersKey, the printed circuit board in 3D

The DIYkey a hardware token that stores one static password. This repo will contain all the information you need if you want to build your own token.

Copper layers
2
Thickness
1.6 mm
Parts
64
Nets
9
Pads
192
Tracks, vias
320, 0
Pours
8
Routed
Yes
KiCad
KiCad 4
Created
6 May 2017
Updated
23 Jan 2018

Overview

Key is an open-source printed circuit board by rosatolen, from the rosatolen/DIYkey repository on GitHub. It is a 2-layer board with 64 parts on 9 nets, routed with 320 tracks and 0 vias.

Its parts include 8 ICs, 8 diodes, 8 connectors and 8 switches. It belongs with the AVR (ATmega, ATtiny) boards of this library.

README

README.md

DIYkey

The DIYkey a hardware token that stores one static password. This repo will contain all the information you need if you want to build your own token.

Hardware Setup Instructions

Prerequisite Materials

One of our goals is to keep the cost of materials low. Initially we created the first prototype with around 7 USD but the goal was to make large batch assembly cost as close to $1 as possible.

You will need:

  1. 1 Breadboard or a protoboard and a soldering station if you feel comfortable with the assembly: Option 1 or Option 2
  2. 1 ATTiny85
  3. 2 Resistors 68 Ohms
  4. 1 Resistor 1500 Ohms (1200 Ohms works)
  5. 1 Resistor 330 Ohms
  6. 2 Zener Diodes
  7. 1 LED
  8. 1 Male USB Type A connector
  9. Some Connecting Wire (if needed)

Instructions

text
WARNING

You should not solder the ATTiny85 to a permaproto board before programming it
unless you have clips to easily help you install software once it has been
placed.

Use the below image to connect the hardware materials. Double check that the diode polarity is correct.

schematic

Software Setup Instructions

Prerequisite Materials

  1. Adafruit AVR Programmer or Sparkfun AVR Programmer

Instructions

  1. Install the following dependencies:
    1. Arduino with the DigisparkKeyboard libraries
    2. avrdude
    3. make autotools
  2. Pull this repository
  3. Run make deps
  4. cd micronucleus/firmware/
  5. make
  6. Return to the main DIYkey directory
  7. Connect your DIYkey to a Attiny85 programmer and run make bootflash
  8. cd micronucleus/commandline/
  9. make
  10. Install avrdude for your operating system
  11. Search through your system for the arduino DigisparkKeyboard directory
text
find / -name DigisparkKeyboard 2>/dev/null
  1. Open the usbconfig.h file in that directory
  2. Change the usbconfig.h file in DigiKeyboard folder for Ardunio
  3. Change the value for ATTiny85 USB_CFG_DMINUS_BIT from 3 to 0
  4. Change the value for ATTiny85 USB_CFG_DPLUS_BIT from 4 to 1
  5. Open the arduino\_code/DIYkey/DIYkey program in Arduino
  6. Edit the preferences of Arduino to show verbose compilation output
  7. Compile the program and record where the .hex file for this program is stored
  8. Put the path to the .hex file in the main Makefile under the programflash command
  9. Plug the DIYkey into one of your USB ports and run make programflash

Parts

64
QtyValueFootprintReferences
32RResistors_SMD:R_12061.5k1, 1.5k1, 1.5k1, 1.5k1, 1.5k1, 1.5k1, 1.5k1, 1.5k1, 1.5k2, 1.5k2, 1.5k2, 1.5k2, 1.5k2, 1.5k2, 1.5k2, 1.5k2 +16
8ATTINY85-PSOIC127P600X175-8N:SOIC127P600X175-8NIC1, IC1, IC1, IC1, IC1, IC1, IC1, IC1
8LEDLEDs:LED_0402D3, D3, D3, D3, D3, D3, D3, D3
8SW_PUSHButtons_Switches_SMD:SW_SPST_FSMSMSW1, SW1, SW1, SW1, SW1, SW1, SW1, SW1
8USB_Akicad_files:usb-PCBP1, P1, P1, P1, P1, P1, P1, P1

Similar boards

  • 2 layers76.5 × 120 mmNumpad project, the printed circuit board in 3D

    Numpad project

    hackclub/OnBoard

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

    64 parts915
  • 2 layers160 × 99.1 mmFlat hierarchy, the printed circuit board in 3D

    Flat hierarchy

    drandyhaas/KiCadRoutingTools

    A set of Python/Rust tools to aid routing in KiCad

    64 parts744MIT
  • 2 layers49 × 53.2 mmDB25 External, the printed circuit board in 3D

    DB25 External

    BlueSCSI/BlueSCSI-v2

    BlueSCSI v2/Ultra - an open source, open hardware, SCSI emulator using the Pi Pico PR2040 and Pico 2 RP2350

    64 parts459GPL-3.0
  • 2 layers90 × 71 mmTd hv, the printed circuit board in 3D

    Td hv

    tdaede/td-crt

    tubes

    64 parts373
  • 2 layers28 × 30 mmOtterIron Devkit, the printed circuit board in 3D

    OtterIron Devkit

    Jana-Marie/Otter-Iron-PRO

    USB-PD soldering station for JBC C245 handles.

    64 parts321
  • 2 layers192.9 × 59.5 mmAlpha pro micro, the printed circuit board in 3D

    Alpha pro micro

    PyrooL/Alpha

    A 28-key semi-ortholinear mechanical keyboard designed by PyroL

    64 parts298MIT
  • 2 layers128 × 88 mmFireball revD, the printed circuit board in 3D

    Fireball revD

    ugcs/ddc

    Drone Show Software is software designed for drone shows, allowing flight path planning as well as control of dozens of drones simultaneously in a synchronized manner.

    64 parts223
  • 2 layers78 × 81 mmEncoder, the printed circuit board in 3D

    Encoder

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    64 parts208

Questions

What parts does the Key use?

64 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 Key KiCad files?

From the rosatolen/DIYkey repository on GitHub, at the commit this page was made from: the board is kicad_files/key.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Key design in my own project?

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