Cluster Bot lives! First run of Arduino/Tamiya/Toshiba robot..



ClusterBot is assembled and I've written some rudimentary Arduino code to get it up and running. I wrote some simple subroutines for basic maneuvering like rotateLeft(), goForward(), goBackward(), applyBrakes(), turnAround(), etc. to make programming the bot a little easier. 
The robot is performing fairly well, with some limitations. First of all, the robot is stupid. No active sensors at this time, ClusterBot will simply go exactly where you tell it, with no obstacle avoidance in place.

I had to spend a little time getting ClusterBot to track straight. I've got no physical way to do a front-end alignment on the robot, so I tweaked the goForward() and goBackward() functions by changing the PWM values until the bot tracked relatively straight. It's not crucial that it's perfect with this robot, but when I first ran ClusterBot, he would move in arcs instead of lines. I'm not sure if the robot is not tracking straight because it is physically crooked, the weight is unevenly distributed, the PWM signals are different from the two pins on the Arduino, or if it's simply a matter of different performance characteristics of the two cheap-o motors. Probably a combination of all of the above.

I also took some rough measurements of the angular distance travelled when rotating left and right so I could easily make the robot turn roughly 90 degrees, 180 degrees, etc. The problem with this is that as the batteries discharge, the angular travel will decrease also. It's just a rough estimate. It might not be on this bot, but I will have to have encoders on my wheels at some point, or just use stepper motors. Encoded wheels will probably be the answer though.

ClusterBot has been a qualified success so far, and I've learned a ton about the mechanical construction, Arduino code and motor drivers. The next order of business is to get some sensors on this bot, starting with the HC-SR04 ultrasonic sensor. I'll also put some microswitches tied to bump sensors. Eventually I'd like to make ClusterBot have line following or avoiding capabilites also.

Comments

Popular posts from this blog

Different types of BMW accessories

Tips For Securing Smartwatch | Smartwatch Security Advice