How to connect and program a motor with an Arduino Nano