control a DC motor with L293D to control the speed and direction to get the motor to spin back and forth for an amount of periods that i change with analog potentiometer and display few things on an oled display

just plug it all as you see in the diagram nothing special