Note1: This is a relatively advanced instructable. Don't attempt it if you don't have experience with power electronics. The voltages and currents used in this project can be dangerous and appropriate safety precautions must be used. This instructable outlines what I did to make this project, but it is not a substitute for proper safety training in power electronics. Check with your local community college for availability of classes in your area.
Note2: In addition to the 48V battery voltage, this controller requires a 12V power supply. If your battery pack consists of 12V cells, then you can just tap 12V from the pack. This was not possible for my battery pack, so I used a separate DC-to-DC converter to supply the 12V power. See my other instructable on constructing this DC-to-DC converter.
Note3: This controller is over-designed for this application. The IRFP4468 FETs are rated for a maximum of 195 Amps (each) at 100V. This application will typically use less than 10 Amps at 50V. I have been commuting (10 mile round trip) almost every day for the past 2 months using this controller and it has been trouble free (knock-on-wood :)
Step 1: Parts List
You will also need:
a) a prototype circuit board (the one I used is from a local electronics surplus store)
b) wire. I used 30AWG wire for the low current connections and 14, 12 and 10AWG wire for higher current connections.
c) 1/8" heat shrink tubing (about 2" in length)
d) two 6-32 x 1" screws
e) 4 x insulating pads for the FETs and power diodes (these can be salvaged from a broken PC power supply)
f) a heat sink for the power section. (this can be salvaged from a broken PC power supply)
g) an enclosure. (this can be salvaged from a broken PC power supply)
The following tools are required:
a) a programmer for the microcontroller. I used an AVR ISP programmer (check EBay)
b) a soldering iron (and solder of course)
The following tools are recommended for debugging:
a) a digital multimetter (DMM) for checking connections, etc.
b) an oscilloscope is handy for checking the PWM waveform, etc.
Step 2: Schematic Drawings
Here are the schematic drawings. Sheet 1 is the digital section and sheet 2 is the power section.