Robotics

Robotics



The picture above is the robot I have built and programmed this week. The robot has a total of three motors, and has multiple programs. In order to make the robot move I had to program each individual motor. Each wire connects to a different motor, and a different port.

The two items above are one of the most important parts of the robot. The first part to the left allows the robot to know if something is in front of it. For example, if the robot did not have the sensor on it, it would not be able to recognize if there is something in front of it and it would run into a wall. The item to the right of it is a color sensor, and I have programmed it to recognize the color blue and green.

The picture above is my coding for the robot to scatter. Scatter allows the robot to use is sensors to detect if something is in front of it. If something is in front of it, the robot will back up and change directions. The most important part of this program was getting the mac address of the robot. The mac address is what allows the computer to control the robot. (Mac address is at top in green)

The picture above shows the code to allow the robot to make a square. While making this code I had to program how fast the robot would have to change, its speed, and how long it should pause for.

The picture to the left are the commands I made to control my robot and have it use its sensors to detect the color green. In the picture to the right is where I had to test and see what numbers each color. For example, green was the number 4 so I had to memorize what each number represented. I then had to define what each number/color were.

The picture to the left are the commands I made to have to robot avoid creators and essentially be on "mars." Using these codes the robot was able to sense the holes in "mars" and avoid falling into them. When seeing the crators, the robot backed up and went a different way. Unfortunatly I was not able to program the sensor to detect the blue tape "water." Today, 2-6-14 is the last day that we will be using this robot.

Link back to index: Home