Skip to the content
PCBKitNew board
2 layers25 × 37.3 mmTheLock schematics, the printed circuit board in 3D

TheLock schematics

bitraf/toollock

Each lock has a key with a matching key pattern. The key is physically attached to the tool using a wire. An optical sensor detects that the right key is used.

Size
25 × 37.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
14
Nets
11
Pads
32
Tracks, vias
65, 2
Routed
Yes
KiCad
KiCad 4
Created
1 Jul 2017
Updated
19 Feb 2018

Overview

TheLock schematics is an open-source printed circuit board by bitraf, from the bitraf/toollock repository on GitHub. It is a 2-layer board of 25 × 37.3 mm with 14 parts on 11 nets, routed with 65 tracks and 2 vias.

It is built around the PMV20XNER. Its parts include 4 resistors, 4 connectors, 2 diodes and 2 transistors. It belongs with the home automation and IoT boards of this library.

Main components

1

README

README.md

TheLock

Electronic lock connected via wireless (Wi-Fi) and MQTT using MsgFlo. The lock is intended to enforce 'checking out' and 'checking in' portable tools in a shared workshop environment.

It makes it possible to:

  • Know whether a tool is currently in its station
  • Checking for neccesary safety course before allowing usage
  • Holding people responsible when equipment is not get returned or broken

First funtional prototype

Each lock has a key with a matching key pattern. The key is physically attached to the tool using a wire. An optical sensor detects that the right key is used. IR leds normally light through, only a matching key will fully block light.

Key & lock geometry

The key and lock can be CNC-milled, lasercut or 3d-printed.

Status

Proof of concept

  • July 2017: Functional prototype was built during 2-day hackathon
  • First production version planned for October 2017

Bill of Materials

Google Doc

  • Microcontroller - ESP8266 or similar. We used a Wemos D1 board.
  • actuator - we used a solenoid that is rated for 12V (it actually actuates at about 7V, but slowly), it draws about 0.3 - 0.7 A. Alternatives: 1 2
  • mosfet - we used a IPP055N03L
  • resistor - a 10k ohm resistor for pulldown on the control signal
  • power supply - a 12V DC power supply for the actuator / solenoid
  • IR led 0805, 120deg. Kingbright kp-2012f3c
  • IR phototransistor 0805, 120 deg. Kingbright kp-2012p3c

https://wiki.wemos.cc/products:d1:d1_mini https://github.com/esp8266/esp8266-wiki/wiki/Pin-definition

Setup firmware

  • Install Arduino libraries PubsubClient and Msgflo
  • Setup wifi connection: Add a file Config.h defining parameters WIFI_SSID and WIFI_PASSWORD
  • Configure MQTT details in the sketch

TODO

v1.0: First fabricated version

  • Electronics: Switch to a standard transmissive detector, PCB mounted.
  • Mechanics: Update to vertical PCB orientation, check connections
  • Produce initial 4 locks
  • Mechanics: Add a casing/box for 4-8 locks. Securely wall/table mountable.

License

MIT

Made by

einsmein, tingox and jonnor

State machine

State machine diagram

Electronics

Developed in KiCAD. Schemantic used for first protototype

Mechanics

Developed in FreeCAD. Lock model

SIG: gnd+in PWR: 12v+gnd OUT: 12v+out

IN GND 12v 12v OUT

Parts

14
QtyValueFootprintReferences
110kResistors_SMD:R_1210_HandSolderingR1
118kResistors_SMD:R_1210_HandSolderingR3
147Resistors_SMD:R_1210_HandSolderingR2
1CONN_IRBOARDSocket_Strips:Socket_Strip_Angled_1x02_Pitch2.54mmJ3
1CONN_IRLEDPin_Headers:Pin_Header_Angled_1x02_Pitch2.54mmJ4
1CONN_POWERPin_Headers:Pin_Header_Angled_1x04_Pitch2.54mmJ2
1CONN_SIGNALPin_Headers:Pin_Header_Angled_1x04_Pitch2.54mmJ1
1IR LEDLEDs:LED_0805_HandSolderingD1
1IR PHOTOTRANSDiodes_SMD:D_0805Q2
1LEDLEDs:LED_1206_HandSolderingD2
1PMV20XNETO_SOT_Packages_SMD:SOT-23W_HandsolderingQ1
1RResistors_SMD:R_1210_HandSolderingR4

The 12 most common of 14 parts.

Questions

How big is the TheLock schematics PCB?

It measures 25 × 37.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the TheLock schematics use?

14 parts, built around the PMV20XNER. 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 TheLock schematics KiCad files?

From the bitraf/toollock repository on GitHub, at the commit this page was made from: the board is TheLock-schematics/TheLock-schematics.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the TheLock schematics design in my own project?

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

Similar boards

  • 2 layers99.1 × 99.1 mmVent, the printed circuit board in 3D

    Vent

    pandemiaplan/OP-Vent

    A Simple, Open-Source Ventilator using a Proportional Solenoid Valve

    113 parts5
  • 2 layers85.7 × 85.7 mmAttiny85 time switch, the printed circuit board in 3D

    Attiny85 time switch

    UCSIG/attiny85_time_switch

    Low-power time switch using the ATtiny85 microcontroller.

    32 parts1MIT
  • 2 layers74 × 25 mmRakieta, the printed circuit board in 3D

    Rakieta

    PTR-projects/PTR_arecorder

    A compact, high-g flight data recorder designed specifically for model and amateur rocketry. The Arecorder logs 3-axis acceleration and orientation data to an SD card during launch, ascent, apogee, and recovery.

    83 partsMIT
  • 2 layers116.8 × 30 mmType d, the printed circuit board in 3D

    Type d

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    14 parts3kApache-2.0
  • 2 layers32 × 22 mmDiff driver, the printed circuit board in 3D

    Diff driver

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    14 parts990GPL-3.0
  • 2 layers34 × 45 mm2032Charger, the printed circuit board in 3D

    2032Charger

    hackclub/OnBoard

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

    14 parts915
  • 2 layers34 × 109.9 mmTdisplay s3, the printed circuit board in 3D

    Tdisplay s3

    landonr/homeThing

    Wifi Smart Home Remotes that run on ESPHome

    14 parts551GPL-3.0