I have some issues while marking up a switch holes and wire soldering so i decided to share my templates and "how to" guide.
Original credits goes to AMSTUDIO and Opensimhardware.
Table of Contents
Utilize it for drilling holes for buttons and switches. It has real sizes for all components listed below, just print it and put it over your plastic case 200 x 120 mm. Use inside circles diameters. You should have drill bits sized 6, 7, 12, 14, 16 mm.
It's another side of the box cover that's why all buttons are mirrored. You can open the source file in diagrams.net editor.
Here's what I used for building button box. Overall cost US $34.4 (2629 Rub).
Arduino Pro Micro ATmega32U4 5V 16MHz
US $4.18 (319 Rub)
PZOZ Micro USB Cable (2 m)
US $1.87 (143 Rub)
Waterproof Black Electronic Case (200 x 120 x 75 mm)
US $8.99 (688 Rub)
3D Carbon Fiber Vinyl Black (30 x 127 cm)
US $3.69 (284 Rub)
Reset (Momentary) Round Engine Start Metal Push Button(16mm Red)
US $3.32 (253 Rub)
Miniature Toggle Momentary (on-off-on) Switches (MTS-123 Reset) x 5 Pcs
US $1.87 (143 Rub)
Toggle Switch Illuminated Led Red (ASW-07D)
US $1.69 (129 Rub)
Toggle Switch Illuminated Led Blue (ASW-07D)
US $1.69 (129 Rub)
Momentary (Reset) Push Button White (PBS-33B) x 10 Pcs
US $1.68 (128 Rub)
Momentary (Reset) Push Button Red (PBS-33B) x 10 Pcs
US $1.68 (128 Rub)
Rotary Encoder EC11 w Push Button 20mm Plum handle x 5 Pcs
US $1.97 (150 Rub)
Rotary Caps Black x 5 Pcs
US $0.63 (48 Rub)
PVC Tinned Copper Wire Cable Black (30 AWG) 2m
US $0.38 (29 Rub)
PVC Tinned Copper Wire Cable Red (30 AWG) 2m
US $0.38 (29 Rub)
PVC Tinned Copper Wire Cable White (30 AWG) 2m
US $0.38 (29 Rub)
Ten simple steps any of you can done without special programming skills.
- Download and install Arduino IDE.
- Download ArduinoJoystickLibrary.
- In the Arduino IDE, select
Sketch
>Include Library
>Add .ZIP Library...
. Browse to where the downloaded ZIP file is located and clickOpen
. The Joystick library's examples will now appear underFile
>Examples
>Joystick
. - Get 32-FUNCTION-BUTTON-BOX sketch file.
- Open Arduino IDE and add
Keypad.h
library by clickingSketch
>Include Library
>Manage Libraries...
> Search forKeypad
and install the one that is created byMark Stanley and Alexander Brevig
). - Connect your Arduino board to your computer by plugging in the USB cable.
- To upload the code select the Arduino type by going to
Tools
>Board:...
>Arduino Leonardo
. - To select the correct USB port go to
Tools
>Port:
>COMx (Arduino Leonardo)
. - Verify the sketch by clicking on the
✓
in the top left corner (under File). - Press the
→
next to it to upload it to the Arduino.