I have a Zumo with the Reflectance Sensor array that I built from the kit. I have successfully done most of the Arduino library examples. And have been successful in doing the border detect program. I plan to do the line following and maze examples in near future. I am a newbie to Arduino and Robots so bear this in mind when responding.
I want to install a Sharp analog distance sensor like GP2Y0A21YK0F or the GP2Y0A02YK0F to add object (other bots) detection. The problem I am having is understanding what specific pins I connect it on the front expansion of the Zumo shield. I have read several forum discussions, but the pin availability is still not clear. Further, it is not clear as to how many of these sensors are needed to effectively detect objects.
For reference, I have the Reflective Sensor array attached and all the pins of the female socket are soldered to the Zumo shield. I have also installed the jumper block for the buzzer using pin 3 (have Arduino Uno) and the jumper for the battery. Separately, I do not want to do any resoldering or cutting of circuit board contacts to make pins available unless absolutely necessary.
So here are my questions:
-
What analog and digital pins are available? I have seen so many different answers on the forum, it is confusing as to what is available. Plus, the guide’s reference apparently does not include what pins are being used with Reflectance Sensor. Based on my forum searching, I believe the available pins are: Digital 2 and 6, and Analog 1, 4, and 5. Can someone confirm this is correct for my setup or if not what it should be? Also, does using any of these pins interfere with the compass or accelerometer?
-
How many distance sensors do you need? I have seen examples of 1 and 2. I assume that you take one Analog pin for each sensor and connect the other 2 wires to 5v and ground. Please confirm this is correct. Should the sensor be mounted vertical or horizontal?
-
What do you recommend for connection to the available pins? I would like to not solder the sensors directly, but rather be able to easily disconnect for other sensors I might want to use. I was thinking of using bent male headers or permanently soldering a wire with a plug for the connection. Any suggestions?