Go Down

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


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.


Yes, analog pins can be digital also.
A0-A5 are D14-D19.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


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