To begin with the robosumo module we first learned about the schedule for the next twelve weeks, each week with another part of the project that would have to be completed for both the tip the can competition on week 5 and the final robosumo competition on week 10. After being split up into our groups, each group was given a number that we had to change into binary code which after building our first LED circuit, we would pass this binary code through the circuit in order to display a pattern with the LEDs.
As can be seen in the above video we built this curcuit and used the arduino coding software in order to make the LED flash on for 1 second and off for 1 second and to loop over again. after completing this simple circuit we then changed our group number 84 to the binary code 10101011. The (FIG1) shows the calculations to change from 84 to binary code.

Fig:1 Binary code calculations
Our color coding for our wires that we would use throughout this project was red for positive, black to the negative, yellow to the signal and purple to the motors. Next we built a circuit with 2 LEDs that would allow us to show a pattern made by the new binarry code. Every 1 symbolising for LED1 to be on while LED2 is off and viceversa for every 0. The circuit needed for part 2 can be seen in (FIG2).

FIG2: Dual LED circuit
Now using the binary code we had to make the LEDs show our pattern in order to pass the pattern test for week 1. Using the following coding (FIG3) we succesfully completed our first test in the robosumo module.
void setup()
{
// Digital output for LED on pin D2
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
int Space;
}
void loop()
{
int Space = 500;
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(5*Space); //0 for 5 Seconds to Start
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); //Start Bit
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(2*Space); // 0 0
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); //1
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(Space); //0
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); //1
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(Space); //0
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); //1
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(Space); //0
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(Space); //End Bit
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); //Start Bit
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); //1
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); //1
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(Space); //0
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); // 1
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(Space); // 0
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); // 1
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(Space); // 0
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(Space); // 1
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(Space); // End Bit
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(5*Space); // 0 for 5 Seconds to End
}
After passing the code through the circuit we succesfully completed the light pattern test as can be seen in the following video and thus completed week one of the module.

FIG4 Pattern Test Matched










