Diecimila resets easily when controlling a motor

10UF is tiny in terms of a motor- try 220UF, on on the Motor VCC an done on the logic Vcc and let us know if it works!

D