I've converted a cordless drill and an ancient pedal from a sewing-machine to work with my cordless powertools in order to have a better drill/screwdriver/polisher/etc and my workbench.
Step 1: What I Used .. What You'll Need.
1. cheap cordless drill
2. scavenged pedal from sewingmachine
3. misc. screws, cableties, contactcement etc
Step 2: At the Heart ..
.. of it is the controller from the drill.
You'll have to take your own apart and there's plenty of information on that so I won't show any.
Step 3: Taking the Speed Controller Apart ..
.. You may need to separate the controller into its various parts but be warned:
The little controller is all surfacemount wierdness and the chances of getting it back together are slim so don't break open any of the plastic. Just separate the switch from the controller.
Also make sure to note position and connections of all cables.
After gutting the pedal I pulled four cables in:
+/- (Black/Red) from the battery/powersource
2 orange from the controller to the forward/reverse-switch
Step 5: Forward/Reverse, Battery, Motor and Testdrive.
I put the F/R-switch between the cables from the controller and the cables to the motor on a basic connector.
It's a good idea to oversize things a bit since you never know how much power you might one day be pulling of this.
The whitesocket is connected like this:
Switch out1 <-> To Motor1
Switch out2 <-> To Motor2
Powe out1 <-> Switch in -
Powe out2 <-> Switch in +
Step 6: That's Pretty Much It .. and Other Final Thoughts
I imagine there's any number of uses for this hack such as:
Build an electric car for a kid with a real gas-pedal
Controll a mini-lathe with your foot
Gas-pedal for electric car