DC motor control using LM317 voltage regulator