I am working on an Arduino UNO Project and running out of digital pins.
Can I convert the six analog pins to digital I/O and use them to drive servos?
Please suggest me a method
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.
Sign up to join this communityI am working on an Arduino UNO Project and running out of digital pins.
Can I convert the six analog pins to digital I/O and use them to drive servos?
Please suggest me a method
A0 through A5 already have GPIO capability; treat them as you would any other non-PWM pin.
A6 and A7, found in similar boards that use a SMD package, do not have any GPIO capability whatsoever and can only be used for analog input.
digitalWrite(A0)
or digitalWrite(14)
and the effect would be the same.
Jul 30, 2015 at 10:51