This document describes the design of a fuzzy logic controller for speed control of a separately excited DC motor. A fuzzy PID controller is designed where the proportional, integral and derivative gains (KP, KI, KD) of the PID controller are adjusted using fuzzy logic. Membership functions are designed for the two inputs - speed error and change in speed error, and the three outputs - KP, KI, and KD. Twenty-five fuzzy rules are created to tune each parameter of the PID controller. Simulation results in MATLAB show that the fuzzy PID controller provides better dynamic response compared to a conventional PID controller, with less rise time, overshoot and steady state error.