Adding a shield to a shield

I am using an Arduino Uno with a L293D Motor Drive Shield to drive a robot car. I need an additional 4 inputs for some sensors I want to add. What do i need to do to make this happen?

Thanks

Hi,

]Could you provide us a product code/link for the L293D Motor Drive Shield you are using ?/:m]
]What are the Arduino additional pins you are planning to use and what are the pins you currently using ?/:m]
]Are your sensors Analog or Digital ?/:m]

Hi
Here is a link for the motor shield I am using:
robotshop.com/ca/en/l293d-mo … hield.html
The motor shield will be used with an Arduino Uno board

I am using 2 dc motors, and two servo motors, as well as pins 2 and 13 for an ultrasonic sensors trigger and echo pins. I want to add two magnetic hall sensors and a 3 or 8 sensor line follower array. See the links below for these products.

robotshop.com/ca/en/hall-effect-sensor.html
robotshop.com/ca/en/dfrobots … ensor.html
robotshop.com/ca/en/sparkfun … array.html

Thanks for responding to my question

Steve

Hi,

The L293D Motor Drive Shield uses digital pins : 3,4,5,6,7,8,9,10,11 and 12 and doesn’t use any analog pin. Pin 0 and 1 are already used as RX and TX for USB communication.
You can use the pins 2 and 13 for trigger and echo for the Ultrasonic Sensor as you said and the SparkFun Line Follower Array which uses I2C (analog pins A4 and A5).
You can use your 2 x Hall Effect Sensor on 2 of the remaining analog pins (A0, A1, A2 and A3).

Regards,

Thank You for your help