|
Arduino pro micro |
x 1 | |
|
Cherry MX or Gateron switches |
x 6 | |
|
3mm LED |
x 4 | |
|
Keycaps |
x 6 |
Arduino Macropad
Small macropad for any custom button configuration you want using the basic arduino keyboard library using the code below, this is NOT a matrix and uses pins 3-8 on INPUT_PULLUP.
they can use any cherry MX switches, all 4 LEDs are in 2 sets of series so the 5V output works just fine for them.
the pins on the board will need to be soldered flush with the top side of the board(with the squares and silkscreen silkscreen) so it doesnt block the keys themselves. solder the pin headers, LEDs and switches first then arduino onto the pin headers or it will be difficult to remove and reattach.
all the code used is below and can be copy pasted straight onto the board through the arduino IDE.
#include <Keyboard.h>
void setup() {
pinMode(3, INPUT_PULLUP);
pinMode(4, INPUT_PULLUP);
pinMode(5, INPUT_PULLUP);
pinMode(6, INPUT_PULLUP);
pinMode(7, INPUT_PULLUP);
pinMode(8, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
Keyboard.begin();
if (digitalRead(3) == 0){
Keyboard.write(0xD1);
delay(250);
}
else if (digitalRead(4) == 0){
Keyboard.write(0xD1);
delay(250);
}
else if (digitalRead(5) == 0){
Keyboard.write(0xD1);
delay(250);
}
else if (digitalRead(6) == 0){
Keyboard.write(0xD1);
delay(250);
}
else if (digitalRead(7) == 0){
Keyboard.write(0xD1);
delay(250);
}
else if (digitalRead(8) == 0){
Keyboard.write(0xD1);
delay(250);
}
Keyboard.end();
}
Arduino Macropad
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(3)
- Mr. Marsupial Sep 17,2023
- gdlchris Aug 08,2022
- Susana Alves dos Santos Jun 18,2021
- 2 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
10design
-
10usability
-
10creativity
-
10content
-
10design
-
10usability
-
9creativity
-
10content
More by Toasty WF
- Plank56RP PCB 14 by 4 Planck style keyboard built from the ground up using all 1U keys designed to be very low pro...
- Arduino Pro Micro Macropad 6 key macropad, solder arduino and type c port first, pin headers flush against the bottom of the pc...
- Arduino Macropad Small macropad for any custom button configuration you want using the basic arduino keyboard library...
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
130 0 0 -
DIY Laser Power Meter with Arduino
200 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
176 0 2 -