How is the motor connected? Do you want just on/off or variable speed?
Some references that will be useful:
On/Off - digitalWrite() - Arduino Reference
Variable speed - analogWrite() - Arduino Reference
How is the motor connected? Do you want just on/off or variable speed?
Some references that will be useful:
On/Off - digitalWrite() - Arduino Reference
Variable speed - analogWrite() - Arduino Reference