Go Down

Topic: can l293d IC be controlled by the analog pins (Read 897 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.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy