Robotics

Robotics

This is an NXT Windstorm brick that my group as well as most of the other groups used to make a robot that was programmed using Monty Python. Our robot, which I don't have any pictures of at the moment, had two sensors a touch sensor that used a button and once it was pressed, for example you can program it to stop when its activated. We also had a sonar sensor, which you can program to, when it senses an object that is too close, stop.

This is the touch sensor that we used to make part of our robot. Though we still haven't really used it as much as the sonar sensor because the coding was easier to do for sonar sensor. It is the more vital sensor if your making 2 or more robots fight then you have to use the touch sensor so you can program the robot so that once the touch sensor is activated it will stop/sleep. Now I don't have the code for this sensor because I deleted it, but Chris has it, I deleted it because my code did't work and I think I remember that Chris's did.

This is the other sensor that we used to make part of our robot we used this part of the bot the most since it was the easiest part to code once the movement coding was done. I created the first part of the code for the sonar sensor the Chris made the other part with the code. So we made the programs and shared our ideas with each other to see how we can improve the code we had and either change it or combine it. It was fun and I learned how to code NXT bots with python, I made it use sonar to stop when objects are too close and I made it touch objects and stop when the touch sensor is activated.

This the sonar code that I used for the bot, the first one named sonarcheck was given to the whole class. So, I used it to make the other piece of code named sonardemo, it was a separate test i made to see if what I was thinking was correct I don't remember if it worked but I'm sure that it did.


Home