Robotics

home

hello on monday we learned how to do stuff with robots these are some examples

well the first thing we did was we dis assembeld the robot parts it didnt really take a long time the hard thing is rebuilding the robot.

then we built the nxt robot we had a few problems the first one was that one of our group members wanted to add a moving sensor but we didnt want thatwe wanted for it to be simple just attach the sensor to the car as shown in the picture below

then we started making a code so we code that if it hits the wall it would go reverse and turn around and go the other way it was called scatter() the sonar what it bassicly does is sense if theirs something in front of it.

end of monday next is tuesday

variables: bot.PORT_1 = color = Color20(bot.brick, PORT_1)this is where the color sensor is connected. bot.PORT_3 = touch = Touch(bot.brick, PORT_3)this is where the touch sensor is connected and where the robot will look at to connect

bot.PORT_4 = sonar = Ultrasonic(bot.brick, PORT_4)this is where the sonar is connected

color sensor : the color sensor if programmed right can ind a certain color or it can detect what color its looking at so if theirs a peice of paper

under it it will detect what color it is and send it to the computer.

the touch sensor senses the touch of anything that touches it.

the sonar as shown in the picture below it basicly sends out signal waves out and they bounce back and that way it checks it surroundings around them.

finally this is the picure of our code so far what this code does is it basicly the robot starts looking for a specific color and when it finds the color it will send the color to the computer.

and then it will start randomly moving everywhere.

today is wendsday today we tried to make a code to make the robot go follow a blue line and we succeeded we got the robot to stay on line but it was challenging every time the robot kept moving sideways and we found out that it did that b/c the the wheels were broken

thursday today we made a code so our robots will fight it took some time but we got the robot to run away when the sonar senses something it moves away from it so if the other people tried to hit our robot it will run away from it and if it senses a wall it will go away from that here a picture of our car that we built

we also started controlling the robots manually using the keyboard here a picture of one of the fights that was the funniest part of the activity we all faught eachothers robots we one the first fight ever.we also made the robot faster and then we

this is the code we used for the robot so it can fight

today for extra credit we programed the robot to stay on the desk their was some difficulties the robot kept outputting the wrong numbers and the it will fall try to fall off the desk

then after that we got the robots and and put a iphone in the front of the robot so we can see what its seeing