DIY Macropad

by blue_kipi in Circuits > Arduino

10505 Views, 13 Favorites, 0 Comments

DIY Macropad

with keycaps.png

Material

-Buttons

-LEDs

-Diode Zener

-Arduino Pro Micro

-Shift register 74hc595

-Resistors

Tools

-Soldering Iron

-Tin

Software

-Eagle

A macropad is a keyboard with programable keys.

Explaining a Matrix

row-col1.png
row-col2x2-switches-diodes.png

Keyboards usually are wired as a matrix, matrix scanning is a common technique used to expand the number of inputs or outputs beyond the number of available pins. If you want to know more visit this site:

https://learn.sparkfun.com/tutorials/button-pad-ho...

Cherry Switches

cherrys tipos.png
Cherry-Switches-Table-Minus-Stiff.png

The switches used in mechanical keyboards are called Cherry MX switches.There are 4 major types of Cherry MX switches - red, black, brown and blue.

Cherry MX Red

Actuation force: 45g

Feel: Linear

Preferred use: Geared towards gaming

The most popular type of mechanical switches, Cherry MX Reds are mostly used for gaming. They are light to press, which is up to personal preference.

Cherry MX Black

Actuation force: 60g

Feel: Linear

Preferred use: Gaming.The high actuation force helps prevent accidental key presses.

Cherry MX Brown

Actuation force: 45-55g

Feel: Tactile bump

Preferred use: Mix of typing and gaming. Considered a middle ground between typing and gaming switches.

Cherry MX Blue

Actuation force: 50-60g

Feel: Clicky, tactile bump

Preferred use: Great for typing! have a tactile bump that can easily be felt, with the resistance being similar to your average keyboard.

if you need more information about the switches visit this page https://mech-keyboards.weebly.com/cherry-mx-switches-explained.html

Design

abrir schematic.png

We recommended to use Eagle.

You can follow this tutorial step by step.

https://blog.adafruit.com/2016/12/17/layer-by-laye...

Add Libraries

cherry.png
featuredwing.png

Required libraries

Cherry MX Eagle Library

https://github.com/c0z3n/cherrymx-eagle

Adafruit Library for Eagle

https://github.com/adafruit/Adafruit-Eagle-Library

Design an Schematic

schematic.png
grid.png
control panel.png
select.png
cherry schematic.png
selecy.png
explicando.png
Untitled.png
teclas.png
schematic terminado.PNG

Add your stuff to play.

First you have to open a schematic in Eagle, then create a grid and choose the units of measure to be used in the project.

Then, the buttons and components that will be used are added and ordered as desired. Parts are renamed and unnecessary labels are removed.

Subsequently, the components are correctly connected, being careful to order them properly.

Downloads

Create a PCB Layout

pcb.png
cableado.png
20200323_224919555_iOS.jpg
pcbnuevo.png

Once you are done with schematic, create a part PCB and order buttons.

When the PCB design is finished it is sent to print.

Downloads

Add Some Nice Render

cambiar icono.png
newcherry.png
20200323_225630358_iOS.jpg

Here you can learn how to edit a PCB, add a render and so.

I got the .step from GrabCAD

Components

ProMicro_Image.png
nxp-74hc595.jpg
IMG_20200330_134142.jpg
IMG_20200330_161343.jpg
IMG_20200330_161546.jpg
IMG_20200330_162039.jpg
20200329_051944182_iOS.jpg
IMG_20200330_164737.jpg
IMG_20200330_164742.jpg

It is recommended to test all components before soldering.

Having the PCB printed, and after testing the components to ensure the operation of each one, we proceed to solder them to the PCB.

Add Keycaps

keycaps.jpg

You can use any keycap designed for cherry MX.

Upload Code

keys.png

In this project we use Arduino Pro Micro wich is a variation of the Arduino Leonardo.

For this project, keys are sorted as

1,2,3,4,5
tab,q,w,e,r
ctrl,d.f.b. spacebar
z,x,c,v,esc

you can put any character you want including macros.

Downloads

Enjoy the Keyboard

with keycaps.png

You can test your keypad with notepad or similiar, we suggest to try before gaming , sometimes you need more dalay or faster reaction. and happy making!