...
We used an Aruduino Uno microcontroller along with a Ardumoto motor control board, with a 12V supply powering the system. For our user input, the bread was placed on the platform and when the user was ready, a button on the front of the device was depressed. This prompted our motor to complete 4 revolutions at a speed of 12 rpm. The Aruduino code for this control system can be seen below:
Wiring Diagram
Attached is a pdf of the wiring diagram. This shows how we connected the motor, power supply, and button to the ardumoto. Note: The ardumoto plugged in directly on top of the Arduino Uno Microcontroller. The ardumoto acted as the motor shield for the arduino.
Arduino Code
/* Ardumoto Example Sketch
...