This project contains the code for a custom-built macro keyboard powered by an Arduino Micro. The macro keyboard is designed to emulate a standard keyboard, with each key programmed to send specific keypress events when pressed. This can be useful for automating repetitive tasks or creating custom shortcuts.
- Custom-built macro keyboard with mechanical switches
- Arduino Micro as the controller
- Custom PCB for connecting the switches to the Arduino Micro
- Keycaps for easy identification and use
- USB cable for connecting the macro keyboard to a computer
- Assemble the macro keyboard with the mechanical switches, custom PCB, keycaps, and Arduino Micro. Make sure all connections are secure and accurate.
- Connect the Arduino Micro to your computer using the USB cable.
- Open the Arduino IDE, and load the
keyboard_driver.ino
sketch. - Select the appropriate board (Arduino Micro) and port from the "Tools" menu in the Arduino IDE.
- Upload the sketch to the Arduino Micro by clicking the "Upload" button in the IDE.
- After uploading, the macro keyboard is ready to use. Press the keys on the macro keyboard to send the corresponding keypress events to the connected computer.
To customize the key mappings, modify the buttons
array in the keyboard_driver.ino
sketch. Change the character associated with each button to the desired key event. For example, to change the key event sent when the first button is pressed, update the following line:
{2, '7', false, 0},
Change the character '7' to the desired key event. Then, upload the modified sketch to the Arduino Micro.
- PCB Design: A custom PCB was created to connect the pins of an Arduino Micro to the two pins of 16 key switches.
- Soldering: The Arduino Micro and the switches were soldered onto the PCB.
- Case Design: A custom case was designed to fit the PCB and its components.
- 3D Printing: The case was 3D printed using PLA.
- Assembly and Programming: Everything was assembled, and the software was loaded onto the macro keyboard.
MIT License
Copyright (c) 2020 Carl Krogmann
Carl Krogmann
Built with passion and dedication for custom electronics and automation.