I even tried to connect two reed switches in parallel to extend the area they can detect. But it didn't help too much. Because the primary problem is the robot will deviate eventually and the deviation accumulates as it goes.
The robot system is now open loop and it is very hard to make it go straight by purely adjusting the speed of two motors as the actual behavior depends not only on the rotating speed of wheels but also the mass on the body. I tried to add some mass on the rear of the body to make the robot even. This helped a bit but trying to close the loop and adjust the behavior along the way should be the best solution. Therefore we picked a 3-axis accelerometer/magnetometer IMU and we'll connect it with mbed using SPI instead.
No comments:
Post a Comment