zteel created page: Week11 sumo wrestling robots authored by Troels Fleischer Skov Jensen's avatar Troels Fleischer Skov Jensen
...@@ -107,21 +107,64 @@ We have gained knowledge about the built in arbitrator and the behavioal interfa ...@@ -107,21 +107,64 @@ We have gained knowledge about the built in arbitrator and the behavioal interfa
//experiment two ultrasonic sensors look at each other
// no effect, using one robot (probably only one of the sensors sending at a time)
## general plan
## Sumo Wrestler Robot
### Building the robot
The main purpose of the robot should be not to lose. To achieve this we got the following general idea for building our robot which was to have as many useful and different sensors as possible. This should reduce the chance that our opponent could trick our robot into doing something unintended to a minimum. One of the first things we realized was that we could have multiple touch sensors connected to the same port, which fit our idea nicely.
The original building plan for the robot was to build a big wall around the robot to protect against whatever unpredictable thing our opponent would do. Among these we wanted to prevent another robot to drive something below our robot and lift it from the floor.
Behind each wall we wanted 2 touch sensors one in each end for a total of 8. The idea here was we could use the ultrasonic sensor to detect the direction of an opponent, and use the touch sensor to detect when the robot was right next to our robot. By having touch sensor all the way around our robot and only try to push the opponent’s robot when they are pressed, we should be able to avoid the case where the opponent's robot drops something and our robot using the ultrasonic sensor interprets the dropped item as the opponent's robots, since that item probably won’t be heavy enough to push in the touch sensors.
To detect the white edge of the arena plate, we wanted 2 light sensors in front connect to one port and 2 light sensor in the back to another port.
We wanted to use the ultrasonic sensor to find our opponent without having turn the car, the best way to do that was to place the ultrasonic sensor on a motor so it could be rotated independently.
![small_IMAG0691](http://gitlab.au.dk/uploads/lego-group-3/lego/c4aedf3d8a/small_IMAG0691.jpg)
Image 2: Image of partial build original idea
So we started building our robot, but we didn’t get that far before we checked the weight and discovered it was way too heavy and so we had to cut down on a lot of things.
After cutting down we had only small walls and no walls behind the robot, we also cut the light sensor behind the robot plus some other small optimizations and we managed to get below 1 kg.
![small_IMAG0692](http://gitlab.au.dk/uploads/lego-group-3/lego/a6438303cf/small_IMAG0692.jpg)
Image 2: Image of almost final version of the robot, some minor things were changed later
### Programming the robot
// we edited robot again, image of new look
// ref behaviour
/* delete:
general idea
ultrasonic rotating on motor = look at opponent, turn to face ultrasonic rotating on motor = look at opponent, turn to face
8 bumpers around the car = detect if hit (ultrasonic knows direction) 8 bumpers around the car = detect if hit (ultrasonic knows direction)
need to check length to object (in case ultra sonic is look at a dropped item, it need to check length to object (in case ultra sonic is look at a dropped item, it
should rotate to find where the attack came from) should rotate to find where the attack came from)
2 light sensor in front to detect white line when driving forward 2 light sensor in front to detect white line when driving forward
2 light sensor in back to detect white line when driving backwards 2 light sensor in back to detect white line when driving backwards
*/
/* maybe just forget about this
//experiment two ultrasonic sensors look at each other
// no effect, using one robot (probably only one of the sensors sending at a time)
*/
...@@ -132,9 +175,3 @@ should rotate to find where the attack came from) ...@@ -132,9 +175,3 @@ should rotate to find where the attack came from)
[1], description - link [1], description - link
* // remember using / referencing to litteratur for higher grade than 7 * // remember using / referencing to litteratur for higher grade than 7
![small_IMAG0691](http://gitlab.au.dk/uploads/lego-group-3/lego/c4aedf3d8a/small_IMAG0691.jpg)
![small_IMAG0692](http://gitlab.au.dk/uploads/lego-group-3/lego/a6438303cf/small_IMAG0692.jpg)