Friday, November 7, 2008

This is stage 3 of my programming, the ultrasonic sensor.

When I tested my first program I found that having the switches one after the other meant that when the extra speed was added from the touch sensor the motors stopped before restarting the loop so I put the touch sensor switch inside the light sensor switch and that seemed to solve the problem.

I put both the motor speeds into a switch so that it did not pause when it changed speeds. so it ran more efficiently.

I had a little bit of a problem with the ultrasonic sensor i could not get it working very well so it just changes direction a little when it sees something.

I think more testing and making changes according to that testing will make my robot ready for the competition.

Programming

Hello,

This is the first stage of my programming it is for the light sensor and detecting the white line.
i think the rules say that you need to wait 5 seconds at the start i cant remember thats why i put the wait 5 seconds command at the start.


Next I done the touch sensor. For the touch sensor I have the motors increase there power when the touch sensor is pressed. I have the touch sensor on the front of the robot so when a robot hits the front of mine it increases its speed to push the other robot out of the ring.

Wednesday, November 5, 2008

Finished Robot Pictures

Hello,

Here are the pictures of my finished robot, it has the extended front to allow room for the touch sensor.




I am going to start the programming tomorrow and I am going to ask the Mr Darby if i can take the robot kit home and do the programming over the weekend. Here are some more pictures of my robot from other angles.



Sunday, November 2, 2008

I have nearly finished the building of my robot there will be photos of the finished robot soon with all the modifications i made to it. i will be posting screen shots of my programming as i start.

For the programming I was thinking about having everything in two different flow lines, like you can see in the screen shot of my other programming. one line will be the actions for not seeing a line and the other will be the actions for having seen a line. I think I will do the same for the touch sensor, i am not sure about the other sensors I will have to think about that some more.
I was thinking about the touch sensor that I have mounted on the side of the robot and how good it will be at detecting the robots hitting the front of my robot.

I thought that it would be a better idea to have it mounted in the middle of the ram so that it could detect collisions from both sides of the ram. The way that I built the front meant that there was not enough room for the touch sensor in the middle so I had to extend it.
This is a screen shot of a little bit of the programming i done with the default robot. it does not do much, it waits 5 seconds before the start following the rules of the robot sumo and it moves around the ring until it hits a line. When it hits the line it puts one motor going forwards and one motor going backwards so that it can turn faster.

This is the base of my robot. I only put two wheels on it because it will turn a lot faster and easier. I put the computer on top of the motors because i thought that it was important for the robot to be able to turn fast.


This is the front of the robot, it is going to push the other robots out of the ring. I was thinking of putting the touch sensor on the front so that when another robot hits it I can put all the power into the motors to push them out of the ring. the light sensor is also mounted on here pointing at the ground.

This is the first design of the robot, it is not very good. I had to mount the touch sensor on the side of the robot because there was not enough room next the the light sensor. I have not started programming this yet but I do have a screen shot of when I was playing with the programming of the default robot I will post a screen shot of what that looked like.