Skip to content

Slotmachien, slotmachIIn, doorkeeper, ...; this replaces it all. lockbot is a robot that opens the door of the Zeuskelder for members without a key

License

Notifications You must be signed in to change notification settings

ZeusWPI/lockbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

835a828 · Feb 20, 2025

History

22 Commits
Dec 3, 2024
Oct 17, 2022
Sep 13, 2021
Feb 20, 2025
Sep 13, 2021
Sep 13, 2021
Mar 1, 2023
Nov 22, 2023
Feb 20, 2025
Feb 17, 2022
Sep 13, 2021
Sep 13, 2021
Sep 13, 2021
Sep 13, 2021

Repository files navigation

Lockbot

Lockbot is a robot attached to our door that makes it possible for trusted members who don't have a key to open the door. It consists of a servo motor, two gears, a potentiometer and an Arduino Uno + ethernet shield.

A closeup of just the motor and gears

Global picture of lockbot

Microcontroller build instructions

  1. Install the Arduino IDE
  2. Install the needed libraries in the Library Manager (see the top of lockbot.ino)
  3. Copy tokens.h.example to tokens.h and edit them if nescessary
  4. Select 'Arduino Uno' from the Board options
  5. Program the Arduino

3D-print instructions

  1. Install OpenSCAD
  2. To print each lockbot part, open printfile.scad in OpenSCAD, uncomment the part you want to print, render it, export as STL then 3D print it. The big gear should be printed with 5 perimeter walls and solid infill, so it can handle the forces.

The two gears and support used in lockbot

The NFC plate that holds the NFC cards is also included in this repository, see nfc_plate.scad. There's spacers for the motor in spacer.scad, this will need to be modified for different motors.

Components

  • Arduino Uno + power supply for Arduino Uno (5V USB)
  • Servo motor: TD-8130MG 360° Servo Motor - 30kg/cm + separate power supply for the servo motor
  • Relay (also connected to motor power supply)
  • Ethernet shield
  • Buzzer
  • Button
  • 10k multiturn potentiometer

See lockbot.ino for how to connect these components together

Make sure that when turning the lock, the multiturn potentiometer does not go out of bounds (overturning it WILL break it).

Calibration

Before lockbot can be used, you'll need to calibrate 4 points using client.py <subcommand>

  • calibrate_open_pos: the position you'd like lockbot to go to when opening the door
  • calibrate_open_bnd: the last position where you consider the door as 'open'
  • calibrate_close_bnd: the first position where you consider the door as 'locked'
  • calibrate_close_pos: the position you'd like lockbot to go to when closing the door

About

Slotmachien, slotmachIIn, doorkeeper, ...; this replaces it all. lockbot is a robot that opens the door of the Zeuskelder for members without a key

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published