using zumo reflectance sensor array with only one digital pin?

In my project we're using 3 ultrasonic sensors to aid autonomous control as well as a bluetooth chip and a combined temperature and humidity sensor - after connecting all of these up I have realised that I only have one digital pin left free (almost all of the analogue pins are also unused if this helps.

I had bought the array because it clips neatly into the zumo shield with little effort and didn't really think about pins - my question is, would it be possible to use even one of the sensors on the array with only one digital pin remaining? I just want to use it for edge detection to stop the robot driving off a table for example.

this is the sensor array I'm talking about: https://www.pololu.com/product/1419

Thanks for your help!

I only have one digital pin left free (almost all of the analogue pins are also unused if this helps.

You could try reading the documentation!

Mark

I'v

holmes4:
You could try reading the documentation!

Mark

I've tried but I can't really figure it out, that's why i'm asking :slight_smile:

Hi,
Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

What is bring pointed out in a roundabout fashion is that you can declare the analog input pins as digital, and use them as such.

Tom... :slight_smile: