HC-SR04 ultrasonic and Adadfruit motor shield

I'm using a Mega 2560, I am trying to create a robot that avoids objects. I am trying to use the Adadfruit motor shield(http://goo.gl/4T0vD) with the HC-SR04 ultrasonic sensor. The motor shield uses all the pwm ports on my mega, I was wondering if there was any other way to use the ultrasonic with the the motor shield?

What have PWM resources (aka outputs) got to do with an ultrasonic sensor?

I dont know what ports the Motorshield uses, but if you use an ultrasonic sensor like THIS you only need an digital input and an Digital output (no pwm). And its only a small shield for like the Arduino Uno, so you should have plenty more free digital ports.

thank you Robohac, after thinking about it i realized that there was no need for PWM's

The motor shield uses all the pwm ports on my mega

Which motor shield uses 12 PWM pins? That the shield covers the pins has nothing to do with whether it uses the pins.