This document presents a method for identifying and controlling a DC motor. It describes an experimental setup using sensors to measure the motor's speed. A parametric estimation method called PEM is used to identify the dynamic model of the motor based on input-output data. The identified model is validated via simulation. Then, an optimal linear quadratic regulator (LQR) controller is designed using the identified model to control the motor's speed and position. Simulations and experiments show the controller is able to track step and square wave position and velocity commands.