[[Image:Arduino_serialtest.png|200px]]
Cautions: powering off of external power supply (12V instead of USB power 5V).
Cautions: powering off of external power supply # Connect PWM output (pin 9) to Pin 1 on L293. This is the Enable (12V instead of USB power 5VEN)input. PWM here will turn on/off the motordriver, accomplishing speed control. # Make two simple Active High digital input switches, and hook them up to Pins 1A and 2A. Pressing 1A will spin it one way, pressing 2A will spin it the other way, and both at once will do a "Fast Stop". This is described in the logic table to the right.
== Moving a solenoid ==