PO Box Combination Lock w/servo
Uses potentiometer and joystick for input of combination. Three 1 or two characters are each step in the combo with 8000 permutations.
Devices & Components
Arduino Mega 2560 Rev3
Rotary potentiometer (generic)
Analog joystick (Generic)
Servo Module (Generic)
Alphanumeric LCD, 20 x 4
Hardware & Tools
3D Printer (generic)
Software & Tools
Arduino IDE
TinkerCAD
Project description
Code
Running framework for your code and functional sub for combo lock
arduino
This is the minimum required code to implement a three character PO Box combination lock - add to your own code
Running framework for your code and functional sub for combo lock
arduino
This is the minimum required code to implement a three character PO Box combination lock - add to your own code
Downloadable files
Gadget block diagram - DOESN'T MATCH PINS IN CODE
Basic schematic with available components on TinkerCad. Match Z-axis DI wired to value in code.
Gadget block diagram - DOESN'T MATCH PINS IN CODE

KY-023 Joystick
KY-023 Joystick
KY-023 Joystick

LCD2004 I2C Address Jumpers
I2C addressing jumpering
LCD2004 I2C Address Jumpers

Door Linkage
How servo rotation angles were determined
Door Linkage

KY-023 Joystick
KY-023 Joystick
KY-023 Joystick

LCD2004 I2C Address Jumpers
I2C addressing jumpering
LCD2004 I2C Address Jumpers

Door Linkage
How servo rotation angles were determined
Door Linkage

Gadget block diagram - DOESN'T MATCH PINS IN CODE
Basic schematic with available components on TinkerCad. Match Z-axis DI wired to value in code.
Gadget block diagram - DOESN'T MATCH PINS IN CODE

Documentation
Large Servo Mount 3D .STL print file
This mounts a large (3/4" x 1-9/16") servo. It has cable exit holes on both sides so the servo can be mounted in either direction. the base had f #6 thru holes for mounting. The servo attaches with four 6-32 x 1/2 screws. You should tap the four holes 6-32 before use.
Large Servo Mount 3D .STL print file
5/16" shaft mini potentiometer 8-way mount - 3D .STL print file
Mounts any standard 5/16" shaft mini potentiometer commonly found in Arduino starter kits. Has four anti-rotation holes sized to fit the tab on the pot. Allows mounting in any of four positions from either side for universal 8-way mounting.
5/16" shaft mini potentiometer 8-way mount - 3D .STL print file
20 x 4 LCD front side panel mount - 3D .STL print file
Use this to mount 2004A type LCD displays
20 x 4 LCD front side panel mount - 3D .STL print file
DuPont 5 station slip on connector shroud 3D .STL print file
Slips over cable to change five loose DuPont connections into a single, unified, connector.
DuPont 5 station slip on connector shroud 3D .STL print file
Door pivot for far end of servo 3D .STL print file
Servo arm has 1/16" dia holes for connecting rod. This little piece has a matching 1/16" hole and two #6 thru holes for mounting on the door.
Door pivot for far end of servo 3D .STL print file
Arduino Uno/Mega 2560 wide mount for screw shield clearance - 3D .STL print file
Mounts Uno/Mega
Arduino Uno/Mega 2560 wide mount for screw shield clearance - 3D .STL print file
20 x 4 LCD front side panel mount - 3D .STL print file
Use this to mount 2004A type LCD displays
20 x 4 LCD front side panel mount - 3D .STL print file
Arduino Uno/Mega 2560 wide mount for screw shield clearance - 3D .STL print file
Mounts Uno/Mega
Arduino Uno/Mega 2560 wide mount for screw shield clearance - 3D .STL print file
DuPont 5 station slip on connector shroud 3D .STL print file
Slips over cable to change five loose DuPont connections into a single, unified, connector.
DuPont 5 station slip on connector shroud 3D .STL print file
Large Servo Mount 3D .STL print file
This mounts a large (3/4" x 1-9/16") servo. It has cable exit holes on both sides so the servo can be mounted in either direction. the base had f #6 thru holes for mounting. The servo attaches with four 6-32 x 1/2 screws. You should tap the four holes 6-32 before use.
Large Servo Mount 3D .STL print file
5/16" shaft mini potentiometer 8-way mount - 3D .STL print file
Mounts any standard 5/16" shaft mini potentiometer commonly found in Arduino starter kits. Has four anti-rotation holes sized to fit the tab on the pot. Allows mounting in any of four positions from either side for universal 8-way mounting.
5/16" shaft mini potentiometer 8-way mount - 3D .STL print file
Door pivot for far end of servo 3D .STL print file
Servo arm has 1/16" dia holes for connecting rod. This little piece has a matching 1/16" hole and two #6 thru holes for mounting on the door.
Door pivot for far end of servo 3D .STL print file
KY-023 Joystick Case 3D .STL print file
This mounts a standard Arduino starter kit KY-023 joystick. Four holes are to be tapped 4-40 for mounting the joystick. The top cover mounts with four 6-32 screws and ca be used without tapping, do not over torque! A cable outlet is provided large enough to a five wire DUPONT5 connector shroud.
KY-023 Joystick Case 3D .STL print file
Comments
Only logged in users can leave comments