Robots!!

Robotics

Home

Robotics Project

Pybot Module

Today we built and propramed a robot. Using a kit, we built a robot with instructions from the internet. However, my group decided to modify the bot. This is our robot We named our robot Moosen. The front of the bot reminded us of the antlers a moose has. And we added -en just because. Thus, Moosen was born.

To program our, we used the wonderful Python programming. Before we started programming the bot, we imported the pybot file. This will help us with the programming by a lot. The imported file has a ton of programming on it that will make progrmming the robot much easier and faster. The program comes with variables, and simple functions for our bot.

Search for the Color

The next day, we worked on the bot's vision. We added a color sensor that could detect color at close range. We programmed the bot to walk around until it found a colored paper on the floor, detect the color, then shut itself down.

After programing the bots, we then tested our robot against other robots, to see which robot would find the color first. However, this search for color, somehow turned into a fighting arena for robots. Our robot wasn't meant for battle, but somehow, we managed to defeat 5 other robots. Including a very intimidating scorpion bot.

As one of the creators, I am very proud of our Moosen bot.

Follow the Blue Line

Today, we had a different role for our robot. Our Moosen would use his color sensor, to follow the blue line.

When programming Moosen, we had several different ideas. The first idea, was to make a program for Moosen that would follow the specific path of the blue line. However, we felt like we were cheating by doing this, so we started a new program. This time, Moosen will see what color was in front of his sensor. If he saw blue, he would step forward. If he saw a color other than blue, he would rotate. But, Moosen kept wandering away from the line. So we came up with another idea. Moosen would constantly be rotating. If he ever sensed blue, then he would walk forward. Here is some of the code we used.

The image above this, shows a snippet of code that was used to make Moosen "sneeze".

Scatter Bots

The goal of today, was to make the bots scatter, and be the last one standing. If the touch sensors of the bots were touched, the bot would shut down. We programmed our bot to "scream" when it died. When our bot "screamed", I thought it was really funny and could't stop laughing.

Hole Detector

Today, we programmed Moosen to detect the edge of the desk, and stay away from it to prevent himself from falling off. We used the color sensor to detect the clor of the desk, and the edge of the desk. The color of the dek is white, so if the color sensor detected white, Moosen would step forward. If hee sensed the edge of the desk, which was black, Moosen would step back and rotate. Here is the code used to keep Moosen from falling (he is really afraid of heights).

Home