so I am using the ever so popular L293D to drive a DC motor with control over speed an direction. But there's an odd thing I noticed.
All tutorials I've seen use 3 Pins to drive one motor: Enable (with PWM for speed) + 2 Digital outs for direction logic & stop. Like here http://itp.nyu.edu/physcomp/Labs/DCMotorControl (connections to Aruino added in blue)
but I noticed I can get away with +5 from the arduino on the enable pin, and one digital and one pwm pin for the motor logic, like so:
The control logic then is:
Digital Pin = 0 PWM Pin: 0-255 -> zero to Max speed forward
Digital Pin = 1 PWM Pin: 255-0 -> zero to Max speed backwards
This is working on my beardboard right now, but as I've only seen the 3 pin variant elsewhere, i wonder if there is any disadvantage I'm overlooking?