Skip to content

Latest commit

 

History

History
61 lines (59 loc) · 2.22 KB

README.md

File metadata and controls

61 lines (59 loc) · 2.22 KB

KeyGen

The purpose of this project is to create a device that can automatically create a 3d-printable clone of a key.

Materials

  • Pi Zero W
  • Pi Camera v1.3
  • MakerBot Replicator+
  • CoolBase Led
  • Light Diffuser "2x Water Bottle Lids"

Dependencies

  • Raspian Jessie v?.??
  • python v3.6
  • numpy-stl,numpy
  • open-cv2
  • imutils?
  • picamera
  • time,datetime

Imaging

Once the key is palced on a Solid Background

  • Key Reading

The image is converted to a Grayscale image which is then converted to a B&W mask of the key, using the open-cv threshold function.

  • Enclosure

The device enclosure was designed in Sketchup and replaces the need for a seperate black drop.

    • Circuits

??Ohm Resistor

    • Lighting

CoolBase Led Which is glued to two Water Bottle Caps to diffuse the light

Modelling

The Modelling is passed a mask of the key.

  • Edge Extraction

Since the key orientaion is controlled the top edge of the image is taken

  • Scaling

The % pixel difference between the max y and the y each value of the mask is multiplied by the predetermined key height

  • Blanks

Key Blanks are manually created for the program to modify

    • Key Way

Printing

  • Settings

    • Mini-Fill
    • Temp: 200 C

Current Tests

  • Inclusion of a umbrella effect to reduce light flares
  • Remove Gloss from paint with steel wool to reduce light flares
  • Testing on a white background to reduce light flares
  • Adjusting the picamera lens for macro photography

Future Developments

  • Storing keys on server
  • Notification Lights
  • Reliability with varying key colors
  • Method of KeyWay User input
  • Portable Power with a Lipo Battery
  • Using Button to initiate cloning procedure

Shopping List

References