Keyboard/Amps Foot Switch

Introduction: Keyboard/Amps Foot Switch


The goal is to build a small equipment that can:

  • Control a music teleprompter on a computer (replace a keyboard).
  • Control a music amps

This project is a merge of several project I found on a web.

Required items

  • 2 diodes 1N4148, example: Here
  • 1 ATmega32U4 (since you need the keyboard capability), example: Here
  • 3 Foot Switch, example: Here
  • 3 resitors 10K and 1 resistor 220
  • Optional: 3 Leds to find the button eaqsily with the foot if you plan to use the device in dark room
  • A stereo Female Jack socket, found it in all the good music shop
  • Few wires to connect all this, example Here
  • A box to host the system, example: Here


  1. Add a wireless capability for the control of the music teleprompter via Bluetooth based on This

Step 1: The Wiring

Step 2: The Code

This is the code for the Arduino. It is sending F2, F3 and F4 to the computer. You can change this based on the software you use as a teleprompter.

You can also adjust the speed of the letter by changing the delay.

int keys[] = {2,3,4};
int pinCount = 3; int pinLed = 5;

void setup() { // put your setup code here, to run once: Keyboard.begin(); // setup keyboard for (int i = 0; i < pinCount; ++i) { // initilize pins pinMode(keys[i], INPUT); } pinMode(pinLed, OUTPUT); }

void loop() { digitalWrite(pinLed, HIGH); // put your main code here, to run repeatedly: for (int i = 0; i < pinCount; ++i) { // check buttons if(readButton(keys[i])) { doAction(keys[i]); } } delay(100); }

boolean readButton(int pin) { // check and debounce buttons if (digitalRead(pin) == HIGH) { delay(100); if (digitalRead(pin) == HIGH) { return true; } } return false; }

void doAction(int pin) { // perform tasks switch (pin) { case 2: // Keyboard.write(0x41); Keyboard.write(0xC5); // 0xC2 -> F1 break; case 3: // Keyboard.write(0x42); Keyboard.write(0xC4); // 0xC3 -> F2 break; case 4: // Keyboard.write(0x43); Keyboard.write(0xC3); // 0xC4 -> F3 break; } }

Be the First to Share


    • Rocks, Gems, and Stones Speed Challenge

      Rocks, Gems, and Stones Speed Challenge
    • Robots Contest

      Robots Contest
    • Tinkercad Student Design Contest

      Tinkercad Student Design Contest