hcsr04 sensor not sensing on autonomous ground vehicle.

hey guys. i’m struggling here with my project.

the project that i am building is a ground vehicle that can travel autonomously via a hcsr04 ultrasonic sensor.

the motors work fine but the sensor does not seem to be working.

i tested my code here with just the sensor and that seems to work fine but when i attach the sensor to my ground vehicle, it does not work.

also it appears that the trigger is not sending out the signal

here is the code: http://pastebin.com/7d3PP7kC

any help WOULD BE LOVELY!!!

Power supply spikes from the motors?

You aren’t giving us much the work with so that is my basic guess.

arduinoordie:
also it appears that the trigger is not sending out the signal

Huh? Are saying the "Arduino" is not triggering the sonar ?

When and where is Cmode set to 2 ?