Motor fundamentals Fritzing diagram and Arduino code