I’m working on making a robot that combines functionality for a motor, servo, and range sensor. I’m getting some odd results and I was hoping for some expertise from someone on the forum.
I’ve programmed the robot to use the range sensor to detect objects and turn away from them. When I’ve tested it it seems to work fine while connected to my computer via USB. However when I disconnect the USB the range sensor logic no longer seems to work properly. I’ve tried adding a seperate 6V power supply for the Arduino so that the motor shield and controller each have their own power. I’ve also tried brand new batteries.
Is there any reason XOD would not function without being connected via USB?
Any suggestions on managing power? Should I add a 3rd battery pack? Or should I look into a newer motor shield?
Here’s the attached xodball project if anyone wants to take a look.
fullrobot.xodball (58.1 KB)