On this video you can see how to pogram the control of a DC motor with Arduino by Serial communication. Timkercad is an online circuit simulation software, very easy to use and with a great variety of components.