Use foot switch to open Linux terminal using an Arduino

So here is how i made my foot pedal used to start Linux terminal using an Arduino. It’s made because I am board of pressing the terminal icon with my mouse.
Arduino foot switch
P.S. Sorry for my English. I am from Croatia.

Tools needed:
-Soldering iron and some solder
-Wire clippers or any other cutting tool

Parts needed:
-Arduino system
-Foot switch (I found mine in my workshop)
-10k pull-down resistor or you can use one integrated in arduino
-Header connector

Computer with Linux (I am using Debian stable (Sid) with XFCE), python with installed serial and OS module and, of course, the Arduino program.

Step 1: The pedal switch

OK, I found mine pedal in my workshop but you can order it on-line for pretty cheap.

First you need to open it and find contacts for the switch.

If you have NC(normally closed), NO(normally opened) and COM(common). Use the NO and COM.

Strip the isolation form the wires off.

Now connect the wires to the NO and COM connectors and close up the casing.

Step 2: Connecting pedal to the Arduino

Arduino foot switch connection

First strip the insulation from the other end of the wire. And solder the stripped part of the wire on to the header connector.

Snip the connector into half one connect to pin 8 and other to GND. If you are using external 10 k ohm resistor connect one pin to the pin

8 of the Arduino and second pin to the 5V pin of the Arduino.

[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]-Arduino system
-Foot switch


For more detail: Use foot switch to open Linux terminal using an Arduino

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation, and engineering. I have a clear and simple writing style and am skilled in using infographics and diagrams. I am a great researcher and is able to present information in a well-organized and logical manner.

Scroll to Top