Recently I posted an instructable about a footswitch to hide all the windows in Windows XP, but I spend most of the time in Linux programming drupal websites, so I made this one to be used "At work also" =P

The other day I found an old unused sports wheel, along with its foot pedals, I thought it will be nice to use the pedals to rotate the cube desktop in Linux, just to show off or impress some new customers... well not really.

I have configured my Linux Desktop Effects (I have installed Ubuntu 8.04) this way:
When you press Ctrl + Alt + Right arrow the cube turns right, and
When you press Ctrl + Alt + Left arrow the cube rotates to the left.

So we'll be making a switch to mechanically press the keys in the right order to achieve the effect

This instructable is VERY cheap, but it requires a little bit of work.

Thank you and have fun!

P.S. Some extra pics at: my blog

Step 1: Parts Needed

This instructable is ALMOST the same that https://www.instructables.com/id/Easy_stealth_footswitch_pedal_to_minimize_window/

so, most of the steps are the same.

Parts needed:

1) A computer with linux and the rotating desktop cube installed (I have installed Ubuntu 8.04)
2) An unused / old / not working wheel game with pedals, you will only need the pedals. I think it doesn't matter which model is, we will make custom switches
3) An unused old keyboard - for the keys functionality (I had A LOT of unused keyboards at home)
4) Some foamy sheet - I found one at a handcraft shop, you don't even need a full sheet, just a little bit square inches.
5) A multimeter - not a must, but it really helps to check everything OK
6) A soldering iron
7) A dremel tool
8) Some cable, about 10 ft.
9) Plyers, tape, solder, tin foil, scotch tape, etc...

Step 2: Prepare the Pedal

You will need to open the pedal by removing all the screws on the back of the plate, careful because the springs inside will pop all the thing out!

I think this will work for any kind of computer pedals, the process will be almost the same.

Remove all the dust, dirt and also the electronics, we will not use that stuff for this instructable.

Step 3: Make the Pedal Steps...

I like to keep my current Desktop Effects configuration as it is, so, I need to press the Ctr+Alt+Right or Left arrow to get the cube to move.

That means that I nees to press Ctrl and Alt keys first, and then one or another arrow.

So, we will make a simple mechanism to press first 2 switches and then, while holding those, press the other key.

So, we will need to build a kind of foamy sheet ladder to make this cascading chain of pressings.

1) Let's start by gluing a long piece of foamy along the bottom of both pedals.
2) Then, cut another 2 small squares and glue them over the first foamy layer - this squares will press the Ctrl and Alt switches that we will make next.
3) Then, cut another small square, but also cut it to make it half the original height, like if you were slicing some kind of green ham =P

Step 4: Make the Switches...

We will need some kind of office-made srpings.

I used some unused plastic packaging to make 6 "springs", don't know the name, but it's the plastic you can find in the electronic gadgets.

This kind of lastic is very sturdy, I guess it will work for about 10,000 strokes before failing =P

Make 6 of these switches.

The glue 3 to the bottom plate of the right pedal and another 3 to the bottom plate of the left pedal.

Step 5: Take Apart the Keyboard

This step is ALMOST THE SAME from the https://www.instructables.com/id/Easy_stealth_footswitch_pedal_to_minimize_window

so I will just paste the same content so you don't have to go back and forth.

A keyboard works by closing a circuit between 2 plastic layers; when you press a key, the 2 layers get in contact and a current flow between this connection, sending a signal to the microcontroller inside the keyboard.

1) You will have to disassemble the keyboard. Remove all the screws you might find in the back, and release the back cover.

2) Then, remove the thin plastic layers thar are inside the keyboard.

3) then, put the cover on the back and turn the keyboard facing up, to put the layers over the keys to write with a permanent marker where the keys are, one for the upper layer, and one for the bottom layer.

4) We need to find the Ctrl, Alt and Left and Right arrows.

Step 6: Finding Which Pins Works for Our Keys

Then, you will have to find which two pins on the keyboard microcontroller are the ones to be pressed together to close the circuit and send the key code to the computer, so:

1) Take the upper plastic layer (it's glued to the bottom layer, you can use a Xacto knife to cut the small glue spot that puts the 2 layers together.

2) Put one of the multimeter probes at the brown spot, and then put the other probe in the first of the circuit track endings

3) Get the resistance reading in the multimeter (the one with the OHM symbol on it) , if you don't get any reading, move the probe to the next pin in the track endings, until you got some reading.

If you don't have a multimeter don't worry, just follow the track until the ends, just don't get lost because of the tiny lines =P

Once you find where the key ends, do the same procedure for the bottom layer of the keyboard, you need to find the track ending for the Ctrl, Alt and Right and Left arrows.

Make some drawings to remember which pin is for which key.

Step 7: Soldering the Cables in the Keyboard Microcontroller

Ok, so now that we know which pins (or track endings) are the ones for our key, we have to solder some cable in the keyboard circuit.

Before soldering the cables, use the dremel tool to remove the black material over the tracks in the circuit, this will help the solder to stick to the circuit.

Put a little bit solder over the cable, check your drawings to assure you're soldering over the right pins of the microcontroller.

Step 8: Join the Pedal to the Microcontroller

Now, you have to join the pedal cables to the microcontroller cables use the diagram drawings you made to know where to solder the cables.

Apply some solder to the joints to give extra strength.

Then use some electrical tape to insulate the wires.

Step 9: Put the Microcontroller in a Box

Put the circtuit inside a small box.

I had a box from a cell phone, I guess it's the exact size


Step 10: Connect the Pedal and Test It

I used a PS2 to USB adapter to connect the pedal to my computer.

Use the button "Grab key combination" to catch when you press the Ctrl + Alt + Right and Ctrl + Alt + Left

Press "Ok"

and then...

Press the pedal and you should see the Linux cube rotate!!!

Step 11: Done!!!

We have a fancy way to change our desktop in Linux!!!

Thank you for watching!!!
can you show me the electronic inside the pedals because i want to make a pedals to play games? thanks.<br />
Hi there, thanks for your comment!<br /> <br /> Mmm, I'm afraid I don't know how to do that, I salvaged the pedal exactly because I needed just the mechanical movement, but all the electronics were removed, they won't ever work again to play games.<br /> <br /> Or I misunderstood your question? Let me know.<br /> <br /> Thanks!<br />
i'm asking to see the circuit component so that i can make one.<br /> thanks
I'd love one of these.. mostly for the gimmick factor but also because it would save time in photo editing. I have Ctrl+2 as "switch to workspace 2" and Ctrl+Shift+2 as "move this window to workspace 2"- I wonder if you can do key combinations across more then one keyboard? Hold shift and press a pedal to move a window...
Nice idea, the idea behind that kind of plastic "switches" and the foamy ladder is to press first one key, and then, while holding that key, press another one, tho achieve the same effect of pressing a key and it's modifier key. I guess you can wire the "Ctrl" and the "2" keys to the swtches under the left pedal (for example), and change the viewport while you hold the shift key in your keyboard. Did I get you right?
Exactly- Ctrl and 2 under the switch, shift as an optional modifier to move the window rather than the view.
Hey! just to know if you got into doing your own pedal for your app, any news?
So, I think you can keep the project as it is, just replace the "Left arrow" and "Right arrow" cables and solder them to the microcontroller pins of the correspondent "2" and "3" keys, this way you can access the 2nd and 3rd viewport in your cube, and when you hold the shift key the window will be dropped to that viewport. What do you think?
<em>Hold shift and press a pedal to move a window...</em><br/><br/>A computer with a manual transmission?<br/>
Hahaha, nice tought!!! Hahahaha!!!

About This Instructable




Bio: Hi there, member since long time ago, don't have many instructables, but happy to browse around.
More by eliastorre:Change the look and feel of the Xbox 360 controllers Make a pedal for rotating the Linux cube Easy stealth footswitch / pedal to minimize windows and show Desktop 
Add instructable to: