Pages: [1]   Go Down
Author Topic: can l293d IC be controlled by the analog pins  (Read 680 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 439
Posts: 23797
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, analog pins can be digital also.
A0-A5 are D14-D19.
Logged

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.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank u sir for this
Logged

Newcastle, England
Offline Offline
Sr. Member
****
Karma: 2
Posts: 489
Always learning!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

My website: http://www.harryrabbit.co.uk/electronics/home.html Up and running now! (Feel free to look round!) smiley-grin

Pages: [1]   Go Up
Jump to: