We introduce a reverse engineering approach to drive a RC circuit. This technique is implemented experimentally 1) to reach a stationary regime associated to a sinusoidal driving in very short amount of time, 2) to ensure a fast discharge of the capacitor, and 3) to guarantee a fast change of stationary regime associated to different driving frequencies. This work can be used as a simple experimental project dedicated to the computer control of a voltage source. Besides the specific example addressed here, the proposed method provides an original use of simple linear differential equation to control the dynamical quantities of a physical system, and has therefore a certain pedagogical value.