Skip to content

rosatolen/DIYkey

Repository files navigation

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

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
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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages