Go Down

Topic: can l293d IC be controlled by the analog pins (Read 825 times) previous topic - next topic

pulkitvijay2

I M USING arduino decimilla.
i m using 1 L293D IC   which is connected with the digital pwm pins and controls 2 D.C. motors.
the other digital pins are connected with the line sensor array pins.
i have to connect 1 more L293D IC to control 1 more D.C. MOTOR which depends on the IR sensors.
shall i connect this L293D with the analog pins as there are no more pins left.

CrossRoads

Yes, analog pins can be digital also.
A0-A5 are D14-D19.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.


Onions

Or you can use pinMode(Ax, OUTPUT);  and digitalRead(Ax), as well as digitalWrite(Ax, state); , where x is the analog pin and state is the state you want to set it to.
My website: http://www.harryrabbit.co.uk/electronics/home.html Up and running now! (Feel free to look round!) :D

Go Up