3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Use foot switch to open Linux terminal

Use foot switch to open Linux terminal
«
  • DSC01744.JPG
  • DSC01745.JPG
  • DSC01746.JPG
  • DSC01757.JPG
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. 

P.S. Sorry for my English. I am from Croatia.

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

Parts needed:
-Arduino system
-Foot switch (I found mine in my workshop)
-Wire
-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.
 
Remove these adsRemove these ads by Signing Up
 

Step 1The pedal switch

The pedal switch
«
  • DSC01747.JPG
  • DSC01748.JPG
  • DSC01749.JPG
  • DSC01750.JPG
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.
« Previous StepDownload PDFView All StepsNext Step »
5 comments
Jan 7, 2012. 8:37 PMComputothought says:
Downloaded your code and will try it with the osepp uno and freebasic (modified of course).
Aug 2, 2011. 3:06 PMsdavenport3 says:
This is a great idea! The Fragpedal can handle pretty much any command you can throw at it. $55 for a 2-button and $80 for a 4-button version. Bind any key press, combination, sequence, or configure advanced button behaviors like shifts, press/releases, tap/press/hold buttons, etc
May 3, 2011. 10:31 AMstevenna says:
Great idea! I am going to do this myself when I have a few minutes of free time. For me though it would be more useful to have the terminal window appear when the pedal is depressed and disappear when it is released. I often find myself needing a terminal for two or three commands, and this would be a great way to "pop in" and "pop out".
May 9, 2011. 1:42 PMscratchr says:
yakuake may be handy for that, map it to a key.
May 5, 2011. 11:50 PMwarlord0 says:
i used a footswitch years ago for start grabbing videopictures. only need the pedal and used the RS232 port. the code was done in vb and is easy:
simply send a ascii in a loop from pin 2 to pin 3 of the RS232, the footswitch breaks or contact this 2 wires. now you can read out pin 3: are there asciis incoming or not? the result can be used to start or do something - there is no need for more hardware or arduino in my case...the reactiontime of the footswitch was near realtime in my case, a few ms only...

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
1
Author:bkovac