L293D pin diagram |
the first pin EN1 is use to enable IN1 & IN2 pin to get input and same as EN2 is use to enable IN3 & IN4 pin. if we simple drive a DC motor we connect these both pin to +5V applied at 16th pin
of L293.but to control speed of DC motor we are connect these both pin to PWM pins of Microcontroller.then we can simple control the speed of DC motor by control the Duty cycle.