I am presently developing a project using an Arduino Uno R3 MPU with a stacked Adafruit VI Motor Shield on top of it. The shield however uses all the Arduino pins and the Digital pins are no longer available for adding input and/or output peripheral items.
I am trying to assemble a Smart Robot Car to my own design and want to run 2 or more DC motors for the wheels, Servo motor for the HC-0SR04 avoidance sensor, lights for use in low light conditions with a PhotoResistor, and a few other ideas.
The V1 Motor shields allows me access to the A0 to A5 pins but they are Analog. The HC-SR04 requires (as far as I know) digital Outputs & Input and the lights, etc would require Digital pins. Somewhere I seem to remember that some of the Analog pins can be used as Digital pins but I can't find the article again.
If anyone can help me with identifying the Analog pins which I can use I would appreciate the information. Also, if anyone has any experience with the Adafruit Motor Shield V1 (V1 only), do they know if the Male header pins can be swapped for Female-Male Stacking socket/pins without affecting the rest of the Shields functions please let me know.
Airborne2:
The V1 Motor shields allows me access to the A0 to A5 pins but they are Analog. The HC-SR04 requires (as far as I know) digital Outputs & Input and the lights, etc would require Digital pins. Somewhere I seem to remember that some of the Analog pins can be used as Digital pins but I can't find the article again.
Analogue pins are just digital pins, with the added functionality of analogue-in.
digitalRead(A0) or digitalWrite(A0) is ok. Or pin number 14-19 for A0-A5.
There are also "screw shields" that can go between the Uno and the shield.
So you can use all the pins that are not used by the motor shield.
Leo..
Wawa...many thanks for your info and the idea of the "screw" shield. Never thought of that but it should do the job.