I've a DfRobot Romeo V2 which drive a 4wd DFRobot Baron mobile platform.
There are an DfRobot URM37 ultrasonic sensor mounted on a servo and five Sharp GP2Y0A41SK IRSensor (Two on each front side, three on the rear : left, center, right)
When my Romeo is connected to my PC and i test my Robot, all seem working fine : i have all the debugging detecting messages for each sensor on the Serial Monitor and the robot seems taking the good decisions.
So, i deconnect the usb cable, and put the robot on the ground, and nothing work... The robot goes straight away without detecting anything and bumping on objects or walls...
I think it must be a problem with all the instruction, and maybe i have to use interrupts...
The code (i adapt one from many sources) is join to this message
Is someone can help me ?
Sorry for my English, i'm French