1 of 16

Sumorobot Workshop

Prior experience is not required

2 of 16

Plan for today

  • Get into robotics
  • Learn to program
  • Give a unique behaviour
  • Compete against each other

3 of 16

What is robotics

  • Physics
  • Mathematics
  • Mechatronics
  • Electronics
  • Computer Science
  • Etc. ...

4 of 16

Purpose of robotics

  • Industry automation
  • Home automation
  • Social robotics
  • Reinvent human nature

5 of 16

Components of a robot

  1. Sensors
  2. Actuators
  3. Processing unit
  4. Program
  5. Etc. ...

3

2

1

1

6 of 16

Before getting started

  • Form teams
  • Give a name

7 of 16

Let us get started

  • Every team has a robot
  • It only lacks wisdom�
  • Run Arduino
  • File -> Examples -> Sumorobot -> Stub_EN
  • Connect robot

8 of 16

Programming

void setup()

{

start();

}

void loop()

{

forward();

backward();

}

9 of 16

Testing

  • Upload the program
  • Run the robot
  • Oscillation motion

10 of 16

Reprogramming

void setup()

{

start();

}

void loop()

{

forward();

delay(1000);

backward();

delay(1000);

}

11 of 16

Testing

  • Works as expected
  • 1 second forward and backward
  • Try other functions
    • left();
    • right();
    • leftMotor(FORWARD, 100);
    • rightMotor(BACKWARD, 25);

12 of 16

Programming Sensors

  • 5 sensors
  • 2 for opponent
    • OPPONENT_LEFT
    • OPPONENT_RIGHT
  • 3 for line
    • BOTTOM_LEFT
    • BOTTOM_MIDDLE
    • BOTTOM_RIGHT

13 of 16

Programming Sensors

void setup()

{

start();

}

void loop() {

if (BOTTOM_RIGHT) {

left();

} else {

forward();

}

}

14 of 16

Happy programming !

15 of 16

Competition

Team Names

Matid

Katid

Vurajad

Vinged

Maadlejad

Matid

-

Katid

-

Vurajad

-

Vinged

-

Maadlejad

-

16 of 16

Thank you for attending !